AGENT SKILL

tdd-slice

Use when implementing one selected scenario slice that requires test-first delivery and revision-bound verification evidence.

License 许可
MIT
最近更新
2026-07-18
Stars
★ 0
Forks
0

01 前言 Front Matter

name
tdd-slice
description
Use when implementing one selected scenario slice that requires test-first delivery and revision-bound verification evidence.

02 资源文件 1

03 SKILL.md 正文

TDD Slice

Deliver the smallest observable behavior across the real boundary. Report reader-facing progress in profile.language.

Red, Green, Refactor

  1. Confirm one scenario, its acceptance criterion, repository owner, deliverable ID, and current run-plan check IDs.

  2. Declare missing checks with workbench task required-check declare --id <check-id> --owner <owner> --deliverable-id <deliverable-id> --format json.

  3. Write one behavioral test and run its exact command. Preserve the observed failing test output; a compile error or unrelated failure is not valid red.

  4. Implement a minimal vertical slice that makes that test pass. Avoid adjacent features and speculative abstractions.

  5. Run the focused command and required regression checks. Refactor only after green, then rerun all affected checks.

  6. Commit the tested state. Update the deliverable to that immutable commit SHA, then record each result:

    workbench task evidence record --id <evidence-id> --owner <owner> \
      --subject-ref workbench:deliverable/<deliverable-id> \
      --subject-revision <commit-sha> --check-id <check-id> \
      --result passed --source local --command <exact-command> --format json
    

Evidence belongs to the exact command and commit SHA. A later revision makes old evidence stale; rerun and record new evidence. Never mark a PR accepted, complete the task, merge, or deploy from this skill.

04 同仓库更多 Skills

YOOGOMJA
YOOGOMJA/workbench-kit

ticket-incubate

Use to turn an idea that has no issue/ticket yet into an actionable GitHub issue. Grow a vague notion by divergence, narrow only the gaps via a deficit-based interview, and create the issue once the four required elements (background, goal, done criteria, out-of-scope) are filled. Triggers on "I have an idea", "let's make this a ticket", "create an issue", "interview me", or describing something to make/fix/improve without an issue number, even if the user never says the word "ticket". It is the front of the workbench lifecycle (idea -> ticket-incubate -> issue -> task-start). Distinct from brainstorming/design skills: those work out the how of what to build now; this captures the what of later work as a well-honed ticket.

★ 0
YOOGOMJA
YOOGOMJA/workbench-kit

task-tickets

Use to scan open workbench tickets joined with task branches and lifecycle events into unstarted / claim-attempted / in-progress / awaiting-PR / cleaned-up states. Read-only.

★ 0
YOOGOMJA
YOOGOMJA/workbench-kit

task-submit

Use when the user asks to submit, wrap up, or extract from a task, or when work has reached a point to open a PR.

★ 0
YOOGOMJA
YOOGOMJA/workbench-kit

task-status

Use to see local and remote task status at a glance and diagnose drift (unpushed, stale status, missed cleanup). When you want to know where everything stands before starting or submitting, or after a multi-device handoff.

★ 0
YOOGOMJA
YOOGOMJA/workbench-kit

task-start

Use when the user asks to start a task, pick up an issue, or begin a new attempt, or hands over an issue number to start work.

★ 0
YOOGOMJA
YOOGOMJA/workbench-kit

task-done

Use when the user asks to clean up or discard a task, or to clear the workspace after a PR is merged.

★ 0