Skip to the content.

Skill Index Generator

Scope guard: This skill is not available in LITE scope projects. LITE scope does not support skills or knowledge bundles. If the target project’s AGENTS.md contains agentfs-scope: lite, refuse with a clear message.

Regenerate index.md for a skills directory by scanning all SKILL.md files.

Rules

Do NOT fabricate or invent command output, status, or results. Every report MUST come from actual script or command execution. If a command fails, report the actual error — do not guess.

Do NOT skip steps or combine multiple operations into one step. Execute each step in order and verify before proceeding.

Skill Location Selection

User signal Skills root used
(no hint) — “refresh skill index”, “index skills” USER: ~/.agents/skills/
“project skills”, “index for project”, “local skills” PROJECT: ./.agents/skills/
Explicit path provided Use the provided path as-is

Default to USER. Only use ./.agents/skills/ when the user specifically calls out project scope.

Steps

  1. Resolve the skills root — apply location selection rules above.
  2. Run the canonical index generator:
    python3 ~/.agents/skills/agentfs-setup/scripts/regen-skill-index.py <skills_root>
    
  3. Report — show output (skill count, warnings) to user.

What the script does

Verification

Changelog

See CHANGELOG.md for version history.