con un clic
spec-kitty-tasks-finalize
// Validate dependencies, finalize WP metadata, and commit all task artifacts.
// Validate dependencies, finalize WP metadata, and commit all task artifacts.
| name | spec-kitty.tasks-finalize |
| description | Validate dependencies, finalize WP metadata, and commit all task artifacts. |
| user-invocable | true |
Version: 3.2.0
Run the finalization command to parse dependencies from tasks.md, validate
them, update WP frontmatter, and commit all task artifacts to the target branch.
IMPORTANT: This step works in the planning repository. NO worktrees created.
The content of the user's message that invoked this skill (everything after the skill invocation token, e.g. after /spec-kitty.<command> or $spec-kitty.<command>) is the User Input referenced elsewhere in these instructions.
You MUST consider this user input before proceeding (if not empty).
CRITICAL: Run this preflight command from repo root before any mutating finalization:
spec-kitty agent mission finalize-tasks --validate-only --mission <mission-slug> --json
This command will:
Requirement Refs from tasks.mdIf the JSON output contains "error": "Requirement mapping validation failed",
do not run finalization. Report the blocking fields
(missing_requirement_refs_wps, unknown_requirement_refs, and
unmapped_functional_requirements), then fix mappings with
spec-kitty agent tasks map-requirements --mission <mission-slug> --json or by
updating WP requirement_refs.
Only after validate-only exits successfully, run the mutating finalization command from repo root:
spec-kitty agent mission finalize-tasks --mission <mission-slug> --json
This command will update WP frontmatter, compute lanes, and commit all tasks to the target branch.
The JSON output includes:
"commit_created": true/false — whether a commit was made"commit_hash" — the commit hash if created"wp_count" — number of WP files processed"dependencies_parsed" — dependency relationships found"requirement_refs_parsed" — requirement reference mapping foundmissing_requirement_refs_wps, unknown_requirement_refs, unmapped_functional_requirements)IMPORTANT — DO NOT COMMIT AGAIN AFTER THIS COMMAND:
finalize-tasks commits the files automaticallycommit_created=true, files are ALREADY committed — do not run git commit againgit status (templates, config) are UNRELATEDcommit_hash from JSON output, not by running git add/commit againProvide a concise outcome summary:
tasks.md/spec-kitty.analyze or /spec-kitty.implement)After completing this step:
dependencies field in frontmatterrequirement_refs field in frontmatterNext step: spec-kitty next --agent <name> will advance to implementation.