بنقرة واحدة
speckit-cleanup
Validate and reorganize spec-kit artifacts with proper numbering and structure
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Validate and reorganize spec-kit artifacts with proper numbering and structure
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Review a production UX checkout harness run against the deployed Studio (daikonic). Use after `pnpm --filter @rune-langium/studio run test:prod-ux` (or test:prod-smoke) completes, when the user asks to review/triage a prod checkout run, or when a nightly prod-ux artifact needs auditing. Consumes report/run-manifest.json + screenshots + traces and produces a severity-ranked UX review with per-journey verdicts.
Documentation site and generated agent skills for rune-langium APIs
Documentation site and generated agent skills for rune-langium APIs Use when: Validating a single `.rosetta` file or snippet in memory.
Documentation site and generated agent skills for rune-langium APIs Use when: Embedding a Rune DSL language server in a web application via WebSocket.
Documentation site and generated agent skills for rune-langium APIs Use when: Rendering two or more `RuneTypeGraph` components simultaneously (different....
Runtime <ZodForm> renderer for Zod v4 schemas Use when: You need form rendering in storybook, playgrounds, or low-traffic admin UIs —.... Also: zod, zod-v4, react, forms, form-generation, react-hook-form, schema-driven, dynamic-forms, form-renderer, hookform-resolver, zod-form-renderer.
| name | speckit-cleanup |
| description | Validate and reorganize spec-kit artifacts with proper numbering and structure |
| compatibility | Requires spec-kit project structure with .specify/ directory |
| metadata | {"author":"github-spec-kit","source":"workflows:commands/cleanup.md"} |
The user input to you can be provided directly by the agent or as a command argument - you MUST consider it before proceeding with the prompt (if not empty).
User input:
$ARGUMENTS
This workflow validates the organization of all spec-kit artifacts in the specs/ directory, checking for:
IMPORTANT: This workflow only validates and reorganizes documentation in specs/. It NEVER moves or modifies code files.
Understand the request: Parse the user input for:
Run the cleanup script from the repo root:
For validation only (dry-run):
.specify/extensions/workflows/scripts/bash/create-cleanup.sh --json --dry-run "$ARGUMENTS"
For validation with auto-fix:
.specify/extensions/workflows/scripts/bash/create-cleanup.sh --json --auto-fix "$ARGUMENTS"
For validation only:
.specify/extensions/workflows/scripts/bash/create-cleanup.sh --json "$ARGUMENTS"
Parse the JSON output which includes:
status: "success" or "issues_found"message: Summary messageissues: Array of issues found (with severity)actions: Array of actions taken or suggestedPresent the results to the user:
If status is "success":
Spec structure validation complete
No issues found - all spec-kit artifacts are properly organized!
If status is "issues_found":
Spec structure validation found issues
**Issues detected: [count]**
[List issues from JSON with severity badges]
**Actions [taken/suggested]: [count]**
[List actions from JSON]
**Next Steps:**
- Review the issues and actions
- Apply fixes (`--auto-fix` or agent-driven) after user confirmation
- Rerun the script in `--dry-run` mode to verify it reports no issues
- Repeat fix + dry-run until clean, then commit the cleanup separately from feature work
Provide guidance based on issues (automatic vs. agent-driven fixes):
bugfix-001-* under specs/ instead of specs/bugfix/001-*). The agent should: inspect contents, propose the target path, ask for confirmation, then move.NNN-description rename, ask for confirmation, then apply.specs/ that are neither numbered specs nor known workflow folders (e.g., specs/copilot/). The agent should summarize contents and ask whether to move/rename/ignore.bug-report.md, refactor-spec.md, or spec.md). The agent should suggest creating the required file and ask before doing so.Validation before release:
/speckit.workflows.cleanup "validate before v2.0 release"
Fix numbering after merge:
/speckit.workflows.cleanup --auto-fix "fix numbering after merge"
Dry-run to see what would change:
/speckit.workflows.cleanup --dry-run --auto-fix "check organization"
Remind users that:
specs/ directoryAfter merging branches: Specs from different branches may have overlapping numbers. Cleanup detects duplicates and can renumber automatically.
Before releases: Validate that all specs are properly organized before tagging a release.
Periodic maintenance: Monthly or quarterly cleanup runs help keep specs organized as the project grows.
After reorganization: If you manually moved or renamed specs, run cleanup to validate the new structure.
Remember: This workflow is about organization and validation, not content. It ensures specs are numbered and located correctly but doesn't change what's written in them.