원클릭으로
hack-tdd
Execute the ProdOps TDD cycle. Use after bootstrap to implement a behavior change through red, green, and yellow phases.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Execute the ProdOps TDD cycle. Use after bootstrap to implement a behavior change through red, green, and yellow phases.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | hack/tdd |
| description | Execute the ProdOps TDD cycle. Use after bootstrap to implement a behavior change through red, green, and yellow phases. |
Execute only the TDD cycle of the Hack flow.
Read before starting:
prodops/artifacts/bdd/ (committed) or
prodops/artifacts/experiments/<NNN-slug>/features/ (exploratory)prodops/artifacts/obcs/ or experiment directoryReferences: DDD (ubiquitous language, domain events) (product-local) · ProdOps TDD (integration-first, mocking policy).
References: Clean Code (naming, functions) (product-local).
References: Clean Code — refactoring (product-local) · DDD (aggregates, repositories) (product-local) · observability.
The Yellow Bar is where refactoring and the transversal Security, Quality, and
Documentation validations run. These are not extra steps — they are the cycle's
exit gates. The full checklist is in
../../../../framework/journeys/delivery/phases/hack/quality-gates.md.
Refactor — improve names, reduce duplication, apply Clean Code rules. Do not change behavior. Re-run tests after each refactor step to stay green.
Lint (Quality gate) — run lint for the affected package:
cd api && npm run lintcd validation-workbench && npm run build
Resolve all lint errors before continuing. Do not suppress rules without justification.Security gate — confirm the diff contains no secrets, tokens, or insecure configs, and that no PII is written to logs.
Quality gate — confirm the diff contains no forbidden test double
(jest.fn() as a service replacement, .overrideProvider()) and no .only
left in a spec. See
../../../../framework/journeys/delivery/phases/finish/quality-gates.md.
Event Storming — if the change adds, removes, or renames a domain event
(eventEmitter.emit() or @OnEvent()), update
prodops/artifacts/event-storming/plan.json:
_exception variants to customEvents;sloSuggestions entry if on the critical path;assumptions[last] with today's date and a change summary.
Use prodops/artifacts/event-storming/plan-model.json as the format reference.Architecture — if the change is structural (new module, route, external
dependency, table, or event topic), update
prodops/artifacts/architecture/overview.md:
Release Trail — append evidence to the active session trail (prodops/artifacts/trails/sessions/YYYY-MM-DD-<session-id>.md):
jest.fn(), .overrideProvider()) or .only left behind.quality-gates.md is satisfied.| Reference | When to use |
|---|---|
../../../references/engineering/tdd-prodops/red-green-refactor.md | Allowed/prohibited actions per phase |
../../../references/engineering/tdd-prodops/mocking-policy.md | What is permitted in Yellow Bar |
../../../references/engineering/tdd-prodops/observability.md | What to validate after Green |
../../../references/local/engineering/clean-code/refactoring.md (local) | Refactoring techniques for Yellow phase |
Proactive drift-scan cycle. Reads all active OBCs and Issues, identifies divergences, and repairs what can be automated. Runs across the entire active backlog, not for a specific OBC.
Read all active OBCs and compare declared state with backlogs and external tools. Produces a divergence list. Does not repair — only identifies gaps.
Event-driven cycle triggered by a product decision. Captures the decision as an OBC, attaches a Work Item, promotes it through the backlog hierarchy, and closes it when the OBC reaches Operational. Runs for a specific OBC.
Create or update an OBC from the decision that triggered the Diligence Sync cycle. Use when an Assessment decision, Discovery experiment, or Operation signal requires canonical state to be recorded before Work Items are created.
Synchronize OBC state across backlogs and tools. Runs event-driven cycle (diligence-sync) or proactive drift-scan cycle (diligence-async). Never touches product code.
Classify divergences from Scan and register them as pending Diligence items with severity and corrective action. Does not repair — only signals.