원클릭으로
applying
ALWAYS invoke this skill before implementing any spec-tree work item. NEVER write code for a spec-tree node without this skill.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
ALWAYS invoke this skill before implementing any spec-tree work item. NEVER write code for a spec-tree node without this skill.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
ALWAYS invoke this skill when auditing ADRs for Python or after writing an ADR. NEVER implement from an unaudited ADR.
ALWAYS invoke this skill when auditing code for Python or after writing code. NEVER modify a spec to match code without auditing the code first.
ALWAYS invoke this skill when auditing tests for Python or after writing tests. NEVER use auditing-python for test code.
Python ADR conventions enforced across architect and auditor skills. Loaded by other skills, not invoked directly.
ALWAYS invoke this skill when auditing PDRs or after writing a PDR. NEVER audit PDRs without this skill.
ALWAYS invoke this skill when auditing test evidence quality, after writing tests for a spec node, or before closing an outcome.
| name | applying |
| description | ALWAYS invoke this skill before implementing any spec-tree work item. NEVER write code for a spec-tree node without this skill. |
| hooks | {"PostToolUse":[{"matcher":"Skill","hooks":[{"type":"command","command":"${CLAUDE_SKILL_DIR}/scripts/enforce-gates.sh"}]}]} |
<quick_start>
</quick_start>
<language_detection>
Before starting Phase 3, determine the project language:
tsconfig.json exists → TypeScriptpyproject.toml or setup.py exists → PythonUse the detected language for ALL Phases 3–8. Do not switch mid-flow.
</language_detection>
<skill_map>
Phases 1–2 are language-independent. Phases 3–8 use the detected language.
| Phase | Purpose | TypeScript | Python |
|---|---|---|---|
| 1 | Load methodology | Skill("spec-tree:understanding") | same |
| 2 | Load context | Skill("spec-tree:contextualizing", args: "{node-path}") | same |
| 3 | Architect | Skill("architecting-typescript") | Skill("architecting-python") |
| 4 | Architecture audit | Skill("auditing-typescript-architecture") | Skill("auditing-python-architecture") |
| 5 | Write tests | Skill("testing-typescript") | Skill("testing-python") |
| 6 | Test audit | Skill("auditing-typescript-tests") | Skill("auditing-python-tests") |
| 7 | Implement | Skill("coding-typescript") | Skill("coding-python") |
| 8 | Code audit | Skill("auditing-typescript") | Skill("auditing-python") |
You MUST invoke the exact Skill tool call shown. Do not substitute, skip, or reorder.
</skill_map>
Invoke /understanding.
This loads the spec-tree methodology — node types, assertion formats, durable map rules. Skip if SPEC_TREE_FOUNDATION marker is already present in this session.
Do not proceed until complete.
Invoke /contextualizing with the node path.
Load the full context hierarchy for the specific node — parent chain, sibling nodes, applicable decisions, assertions.
Repeat for every new node. Do not reuse context from a previous node.
Do not proceed until complete.
Invoke the architecting skill for the detected language.
Produce the ADR(s) for the work item. The architecture must be complete before audit.
Invoke the architecture audit skill for the detected language.
REJECT → fix → re-invoke this phase. Loop until APPROVED.
Invoke the testing skill for the detected language.
Write tests for all assertions in the spec. Tests come before implementation — no exceptions.
Invoke the test audit skill for the detected language.
REJECT → fix → re-invoke this phase. Loop until APPROVED.
Invoke the coding skill for the detected language.
Write implementation code. All tests from Phase 5 must pass.
Invoke the code audit skill for the detected language.
REJECT → fix → re-invoke this phase. Loop until APPROVED.
<review_gates>
Phases 4, 6, and 8 are blocking review gates. Each audit skill emits APPROVED or REJECT.
APPROVED is not present, stop — invoke Phase 4.APPROVED is not present, stop — invoke Phase 6.APPROVED is not present, stop — invoke Phase 8.On REJECT: fix the findings, re-invoke the same audit skill, and scan again.
3 consecutive REJECTs on the same gate → STOP. Report which gate failed and why, and ask the user for guidance.
</review_gates>
When something breaks or behaves unexpectedly, your instinct will be to write ad hoc code — a quick script, a throwaway snippet, a print-and-pray debugging session. That instinct is the symptom, not the fix. The problem you hit exists because your tests were insufficient. The ad hoc code patches over one instance; a proper test catches every future instance too.This is not slower. The ad hoc script you were about to write takes the same effort as a test, but the script gets deleted and the test stays.
<success_criteria>
Scan the conversation for these markers before declaring done:
SPEC_TREE_FOUNDATION marker present (Phase 1)SPEC_TREE_CONTEXT marker present (Phase 2)APPROVEDAPPROVEDAPPROVED</success_criteria>