Rebuild and maintain the project standards index file (.agent-os/standards/project/index.yml).
Install
npx skillscat add weegigs/claude-kitbash/standards-index Install via the SkillsCat registry.
Standards Index
Rebuild and maintain the project standards index file (index.yml).
Purpose
The index enables /standards-inject to suggest relevant standards without reading all files. It maps each standard to a brief description for quick matching.
Note: This indexes project standards only. Baseline standards have their own manifest.
Process
Step 1: Scan for Project Standards Files
- List all
.mdfiles in.agent-os/standards/project/and its subfolders - Build a list organized by folder:
api/response-format.md api/error-handling.md database/migrations.md
Step 2: Load Existing Index
Read .agent-os/standards/project/index.yml if it exists. Note which entries already have descriptions.
Step 3: Identify Changes
Compare the file scan with the existing index:
- New files — Standards files without index entries
- Deleted files — Index entries for files that no longer exist
- Existing files — Already indexed, keep as-is
Step 4: Handle New Files
For each new standard file:
- Read the file to understand its content
- Use AskUserQuestion to propose a description:
New standard needs indexing:
File: api/response-format.md
Suggested description: "API response envelope structure and error format"
Accept? (yes / or type a better description)Keep descriptions to one short sentence — they're for matching, not documentation.
Step 5: Handle Deleted Files
If there are index entries for files that no longer exist:
- List them for the user
- Remove them from the index automatically
Report: "Removed 2 stale index entries: api/old-pattern.md, testing/deprecated.md"
Step 6: Write Updated Index
Generate .agent-os/standards/project/index.yml:
folder-name:
file-name:
description: Brief description hereRules:
- Alphabetize folders
- Alphabetize files within each folder
- File names without
.mdextension - One-line descriptions only
Example:
api:
error-handling:
description: Error codes, exception handling, error response format
response-format:
description: API response envelope structure, status codes, pagination
database:
migrations:
description: Migration file structure, naming conventions, rollback patternsStep 7: Report Results
Index updated:
✓ 2 new entries added
✓ 1 stale entry removed
✓ 8 entries unchanged
Total: 9 standards indexedWhen to Run
- After manually creating or deleting project standards files
- If
/standards-injectsuggestions seem out of sync - To clean up a messy or outdated index
Note: /standards discover runs this automatically as its final step.
Output
Updates .agent-os/standards/project/index.yml