OpenSpec Reindex
Regenerate openspec/INDEX.md after specs or changes are modified.
When to Use
- After archiving a change (e.g. with
/opsx:archive) - After adding new capabilities or specs
- When the index appears stale or incomplete
How to Run
Execute the bundled script:
python .agents/skills/opsx-reindex/scripts/reindex.py
What It Does
- Scans
openspec/specs/*/for all capabilities and extracts the## Purposeline fromspec.md - Queries
openspec list --jsonfor active changes and maps them to their delta specs - Scans
openspec/changes/archive/*/for archived changes and maps them to their specs - Rebuilds
openspec/INDEX.mdwith:- Categorized capability table (by domain: dual-arm, weld template, coarse positioning, etc.)
[A]= active changes,[N]= archived changes- Active changes summary table at the bottom