Fission-AI/OpenSpec · error

No tools available for skill generation.

Error message

No tools available for skill generation.

What it means

Guard in getSelectedTools: no AI tools are available in this build for skill generation (the valid-tool list is empty), so selection cannot proceed. Distinct from 'no tools selected': there is nothing to select from.

Solutions

  1. Verify the installed OpenSpec version supports tool skill generation
  2. Report the issue if the tool registry should not be empty
  3. Skip skill generation for this run
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at src/core/init.ts:634 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of Fission-AI/OpenSpec@6926ccb18a (2026-08-25). Data as JSON: /api/errors/c141f89227068ab8. Report an issue: GitHub.

Appendix: source

Thrown at src/core/init.ts:634

      [...toolStates.entries()]
        .filter(([, status]) => status.configured)
        .map(([toolId]) => toolId)
    );
    const shouldPreselectDetected = !extendMode && configuredToolIds.size === 0;
    const canPrompt = this.canPromptInteractively();

    // Non-interactive mode: use detected tools as fallback (task 7.8)
    if (!canPrompt) {
      if (detectedToolIds.size > 0) {
        return [...detectedToolIds];
      }
      throw new Error(
        `No tools detected and no --tools flag provided. Valid tools:\n  ${validTools.join('\n  ')}\n\nUse --tools all, --tools none, or --tools claude,cursor,...`
      );
    }

    if (validTools.length === 0) {
      throw new Error(
        `No tools available for skill generation.`
      );
    }

    // Interactive mode: show searchable multi-select
    const { searchableMultiSelect } = await import('../prompts/searchable-multi-select.js');

    // Build choices: pre-select configured tools; keep detected tools visible but unselected.
    const sortedChoices = validTools
      .map((toolId) => {
        const tool = AI_TOOLS.find((t) => t.value === toolId);
        const status = toolStates.get(toolId);
        const configured = status?.configured ?? false;
        const detected = detectedToolIds.has(toolId);

        return {
          name: tool?.name || toolId,
          value: toolId,

View on GitHub (pinned to 6926ccb18a)