speckit-companion-capture-tasks

Writes tasks completion state into .spec-context.json for the SpecKit Companion GUI.

Updated May 28, 2026
One-click install
npx skills add https://github.com/whw23/PingoGate --skill speckit-companion-capture-tasks-whw23
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: speckit-companion-capture-tasks
Source: https://github.com/whw23/PingoGate/tree/main/.claude/skills/speckit-companion-capture-tasks
Command: npx skills add https://github.com/whw23/PingoGate --skill speckit-companion-capture-tasks-whw23

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? After the /speckit.tasks workflow finishes, the SpecKit Companion GUI needs to know that the tasks step is complete. This Skill records that state (currentStep=tasks, status=ready-to-implement) into the feature's .spec-context.json so the GUI re-renders with the correct step and status. ## Core Features & Use Cases - State Capture Hook: Runs as the after_tasks lifecycle hook, writing step and status into .spec-context.json via a Python writer script. - Automatic Feature Resolution: Resolves the active feature directory from an explicit flag, environment variables, .specify/feature.json, or the current git branch prefix. - Graceful Degradation: Never fails the host command; skips with a warning if python3 is missing or the feature directory cannot be resolved. - Use Case: After running /speckit.tasks to generate a tasks document for feature specs/003-user-auth, invoke this capture step so the Companion GUI immediately shows the feature as ready-to-implement. ## Quick Start Run the companion capture-tasks step after /speckit.tasks completes so the GUI reflects the ready-to-implement status for the current feature.

Frequently Asked Questions about speckit-companion-capture-tasks

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I update .spec-context.json after running speckit tasks?▼

Run the write-context.py script with --step tasks --status ready-to-implement from the repository root. The script resolves the active feature directory automatically and writes the state atomically, appending to the history array.

How does the companion script resolve the active feature directory?▼

It checks in order: an explicit --feature-dir flag, the SPECIFY_FEATURE_DIRECTORY environment variable, the SPECIFY_FEATURE variable, .specify/feature.json, and finally the current git branch prefix.

What happens if python3 is not installed when the capture hook runs?▼

The capture is skipped with the warning '[companion] Warning: python3 not detected; skipped .spec-context.json capture'. The host command does not fail, since the hook is state-writing only and best-effort.

Does the capture-tasks hook create the tasks document itself?▼

No. The tasks document is created by the core /speckit.tasks workflow. This hook only writes the completion state into .spec-context.json so the Companion GUI re-renders with the correct step and status.

Why does the capture script exit without writing anything?▼

If the active feature directory cannot be resolved from any of the fallback sources, the script prints a warning to stderr and exits 0 without writing. Pass --feature-dir explicitly to make resolution unambiguous.