name: update-openspec-config description: Use only to update shared generated OpenSpec skills. Do not use for normal OpenSpec proposal, exploration, application, or archive workflows.
Update generated OpenSpec skill files. Run the generator, copy the shared skills into the repo, and verify the copies. Do not use this skill for normal OpenSpec workflows.
Workflow
- Install the latest OpenSpec CLI:
npm install -g @fission-ai/openspec@latest - Clean any pre-existing staging directory, then create a fresh one in
/tmp/(e.g.,/tmp/openspec-staging/). - Run
openspec init --tools piin the staging directory. - Copy generated OpenSpec skill directories from
.pi/skills/intodotfiles/agents/skills/:- Remove stale
openspec-*directories from the target before copying. - Copy only directories whose names start with
openspec-. - Exclude
openspec-explore.
- Remove stale
- Verify the copied skills:
- Use
diff -rto compare each copied target skill directory against its matching source directory. - Confirm
openspec-exploreis absent from the target. - Use
findwithwc -lto count the copied skill directories. - Report the counts and flag any content mismatches.
- Use
Gotchas
- If
openspec initfails, check that the CLI installed correctly and the tool name (pi) is valid in the current version. - The generated skill directories always start with
openspec-. Only copy those; leave other directories untouched. - Cleaning the staging directory before starting (step 2) avoids stale state from a previous run.
- If the number of generated skill directories differs from the previous run, the OpenSpec CLI version may have changed. Report the deviation without assuming it is an error.
Rules
- Always use
/tmp/for the staging directory. - Do not manually rewrite generated content.
- Do not use this skill for regular OpenSpec proposal, exploration, apply, or archive workflows.
- Keep the copy limited to generated OpenSpec skill outputs.
- Always exclude
openspec-explorefrom the copied skills.
Output
Return a concise summary with:
- update result
- copied skill count
- verification results, including any count deviations
- any tool-reference findings