ns-sdd-execution-handoff-generator
About ns-sdd-execution-handoff-generator
A skill for generating and maintaining execution-handoff.md files that track task order, status, token usage, and elapsed time. It supports teams moving planned tasks into implementation and tracking progress through version closure.
Key features
- 01Generate handoff files from task documents
- 02Track task status and execution order
- 03Recalculate token and time totals
- 04Record blockers, waivers, and closure
Use cases
- 01Prepare a handoff after planning is complete
- 02Update progress as implementation tasks change
- 03Record final review and delivery timestamps
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ nextstage-brasil/ skills --skill ns-sdd-execution-handoff-generatorAfter installing, type/ns-sdd-execution-handoff-generatorin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
evals/evals.jsonreferences/execution-handoff.template.mdrun-implementation.mdDetails
From the project READMEExecution Handoff Generator
Bridge planning → implementation. Produces and maintains
{product_root}/docs/versions/{version_san}/execution-handoff.md — the single
source of truth for task order, progress, tokens, and elapsed time.
requirements.mdsays what;tasks/task-NNN-*.mdsays how;execution-handoff.mdsays in what order and where execution stopped.
Harness discovery
See ../ns-harness/references/harness-discovery.md and
../ns-harness/references/artifact-layout.md.
When to use
| Trigger | Action |
|---|---|
End of planning (all task-NNN-*.md written) | Generate initial handoff |
| Tasks exist but handoff is missing | Generate before implementation |
| Task starts, completes, blocks, or is waived | Update status + recalculate times/tokens |
| All tasks done — review / living specs / closure | Update version status + final timestamps |
For the full implementer loop (read handoff → task cycle → closure), see
references/run-implementation.md.
Prerequisites (generation)
{product_root}and{version_san}defined{product_root}/docs/versions/{version_san}/requirements.mdexists- At least one
{product_root}/docs/versions/{version_san}/tasks/task-*.md - Template:
references/execution-handoff.template.md - Planning timestamps from the planning session:
planning_started_at(ISO localYYYY-MM-DDTHH:MM:SS)planning_finished_at(ISO localYYYY-MM-DDTHH:MM:SS)planning_total_seconds(integer ≥ 0)
For subversions: write handoff under
subversions/{subversion_san}/execution-handoff.md (slice scope only).
Initial generation
1. Collect task metadata
For each task-NNN-*.md in numeric order:
| Field | Source |
|---|---|
| Task | Short id only: task-NNN (from task-NNN-*.md — drop the slug) |
| Layer | infer from filename or task body (backend, frontend, infra, unit-tests, e2e) |
Do not put Feature, model tier, or free-form Notes in the handoff table — those belong in the task file.
2. Build execution rules block
Read requirements.md and {product_root}/docs/context/stack-confirmed.md when
present. Add up to 10 critical bullets to {execution_rules_block} — legacy DB
constraints, multitenancy, test environment rules, etc. Do not duplicate the full
requirements file.
3. Write the file
Save to {product_root}/docs/versions/{version_san}/execution-handoff.md using
references/execution-handoff.template.md:
- All tasks start
Status: pending, timestamps—,Time (s): 0,Tokens: 0 - Header Tokens (total):
0 {next_task_id}= first short id (e.g.task-001){base_branch}/{work_branch}fromgitlab-sync-config.mdwhen present; else—
4. Report to orchestrator
Return: handoff path, total tasks indexed, first task ID, and instruction to
start implementation via references/run-implementation.md.
Status updates (during implementation)
Task starts, completes, blocks, or waived:
- Locate task row in Task status
- Update
Status,Started at(onin_progress),Finished at(oncompleted),Time (s)(Finished at − Started at),Tokens,Updated at Tokensrequired beforecompleted. Sources (priority):- Usage/tokens from Task result / UI of
coder-agent+ other subagents for that task - Parent tokens for that task loop if platform surfaces them
- Nothing exposed: ask human once; if declined,
~Nestimate + task## Execution noteslinetokens: ~N (estimated)Forbidden:0oncompletedtask that did LLM work
- Usage/tokens from Task result / UI of
- Recalculate Tokens (total) = sum of
Tokenscolumn (integers;~Ncounts asN) - Recalculate Progress (
Next task= firstpendingorin_progress) - Recalculate Time tracking (seconds):
Implementation — start= earliest filledStarted atImplementation — end= latest filledFinished atwhen presentImplementation — total (s)= end − startTotal task time (s)= sum ofTime (s)columnTotal process time (s)=Planning — total (s)+Implementation — total (s)+ (Final delivery — end−Implementation — endwhen present)Last recalculated= current timestamp
- Update Version status (see template)
- Optionally append Session history (Date + ultra-short Notes only)
- Important notes (blockers, waivers): append to task file
## Execution notes— relevant only; never Notes column in handoff
Version closure (review, living specs, _done/ move): fill
Post-implementation review — end, Review — tokens (or Session history
note — not last task Tokens column), Living specs — end (when
applicable), Final delivery — end; recalculate Total process time (s).
Allowed task statuses
pending | in_progress | completed | blocked | waived
waived: requires human waiver in the task's Execution notes. Do not waive P0 test tasks (tenant isolation, URL RBAC, auth rate limits) without documented risk acceptance.- Forbidden: mark version
completedwithoutCode Review: Approved - Forbidden: reorder tasks or rewrite the base prompt without human approval
- Forbidden: delete session history — append only
If tasks are added or removed after generation, regenerate preserving existing statuses by task short id.
Integration
| Stage | Skill / reference |
|---|---|
| After task generation | This skill (generate handoff) |
| Classic implementation | references/run-implementation.md + coder-agent (MUST when available) / ns-code-coder |
| Partitioned implementation | ns-execution-orchestrator (slice handoffs + master closure) |
| End-of-version review | reviewer-agent (MUST when available) / ns-code-reviewer |
| Living specs | ns-sdd-living-spec-consolidator |
| GitLab board sync | ns-gitlab-board-sync (when config exists) |
References
| File | When |
|---|---|
references/execution-handoff.template.md | Handoff structure |
references/run-implementation.md | Classic version execution loop |