gate-c
Skill1 starsChanged 2 months agoMITView on GitHub
Code implementation after Gate B completion. Use on '구현', 'Gate C 시작', 'Gate C 진행', '계획대로 구현', etc.
In this repository8 other files it gives its agents.
- auditSkill
- doc-cleanupSkill
- gate-aSkill
- gate-bSkill
- gate-dSkill
- gate-eSkill
- harness-updateSkill
- initSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. About 0 are common, 6 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Follow the file list·change direction·execution order approved at Gate A verbatim
- Distinctive: line 11
No additional changes·refactoring·comment cleanup beyond the plan
- Distinctive: line 14
After implementation, summarize the result as text output — include the items below:
- Distinctive: line 19
No listing diffs without reasons — Gate D cannot trace change intent otherwise.
- Very specific: line 24
If TEST_PLAN.md exists at the target repo root:
- Very specific: line 26
Leave ## Verification Checklist marker (<!-- Gate D에서 채워짐 -->) untouched — Gate D fills it.
- Very specific: line 27
Update DOC_INDEX.md: change TEST_PLAN.md row Status → Partial.
- Very specific: line 28
If TEST_PLAN.md does not exist: skip silently.
- Very specific: line 30
If API_SPEC.md exists and this session changed an endpoint contract:
- Very specific: line 32
Update DOC_INDEX.md: API_SPEC.md row Status → Partial (or Complete if every endpoint this session touches is now documented)
- Very specific: line 42
Update the plan document(s) (status: C (확인 대기), write the Gate C block) — run the file-editing tool
- Distinctive: line 48
STOP — await user document review·confirmation
- Distinctive: line 79
After completing the entire Gate C procedure (code implementation + plan document(s) update), output the block below at the very end of the …
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Gate C Procedure (follow order strictly)
- Based on the Gate A detailed plan, implement the code
- Follow the file list·change direction·execution order approved at Gate A verbatim
- No additional changes·refactoring·comment cleanup beyond the plan
- Ladder check (R-4-6): if an abstraction·helper not in the Gate A plan emerges mid-implementation, it is a ladder rung-1 violation — stop and apply the rung at the actual call site, or escalate per the Advisor rule below. (Restates the
Exceeding change scopeprohibition as a ladder check — no new rule.)
- After implementation, summarize the result as text output — include the items below:
- The actual changed-file list (state the reason if it differs from the Gate A plan)
- Per-file key implementation summary (design decisions·core before→after difference)
- Differences from the Gate A plan and their reasons (if none, "계획 그대로 구현")
- ReAct deliverable guard (R-3): For each changed file, output one pair of 「Reasoning(왜 이 변경) → Action(실제 diff 요약)」. No listing diffs without reasons — Gate D cannot trace change intent otherwise. Compress each pair to within 3 lines (no verbose reasoning).
Layer 2 document update (if --docs=full was used at /init)
If TEST_PLAN.md exists at the target repo root:
- Fill
## Test Casessection: list happy/edge/error cases per changed unit (per/initStep 10-b table format) - Leave
## Verification Checklistmarker (<!-- Gate D에서 채워짐 -->) untouched — Gate D fills it. - Update
DOC_INDEX.md: changeTEST_PLAN.mdrowStatus→Partial. - If
TEST_PLAN.mddoes not exist: skip silently.
If API_SPEC.md exists and this session changed an endpoint contract:
- Fill
## Endpointsand## Request / Response Shapesfor the changed endpoints only - Update
DOC_INDEX.md:API_SPEC.mdrowStatus→Partial(orCompleteif every endpoint this session touches is now documented) - No API change → leave it untouched and say so in one line. A skeleton that stays a skeleton is the correct outcome for a session with no endpoint work; do not invent contracts to fill it.
Added 2026-09-24 (HARNESS-DOC-GATE-SCHEME-2).
/inithas always assignedAPI_SPEC.mdto a gate, but no gate skill actually wrote it — the assignment pointed at Gate B, which is the comprehension gate under the current scheme. Endpoint contracts are produced while implementing, so the work belongs here.
- Update the plan document(s) (status:
C (확인 대기), write the Gate C block) — run the file-editing tool- Plan document(s) — tier-aware, see
SKILL_DETAIL.md §Plan-Doc Update Pattern ${SESSION_INDEX_FILE}YAML${CURRENT_SESSION_FILE}dashboard + Gate C block
session-dashboard.html update:
session-dashboard-sync.pyalways runs as the first entry of theStophook array, auto-regenerating the HTML (HARNESS-STALE-GUARD-3). No skill Bash Step needed. - Plan document(s) — tier-aware, see
- STOP — await user document review·confirmation
No test·build execution in this turn after Gate C completion (
npm test/pytest/./gradlew test, etc.). Proceed in a separate turn after Gate D verification confirmation.
Scope of 「구현해라」-like Instructions
「구현해」「계획대로 구현」「다음 계획을 구현해라」 mean Gate C only. To allow C→E, the user must specify the scope in a sentence such as 「Gate C부터 E까지 한 번에」「C~E 일괄로 진행해」.
Advisor Escalation (optional)
During Gate C execution, if the situation below applies, you may make a single call to an Opus subagent for advice and then return.
Gate C trigger conditions (call only in these situations):
- A design branch not in the Gate A plan is discovered
- Conflict with an existing architecture pattern — cannot judge which direction is correct
- Cannot choose among 2+ implementation options
Call prohibited (resolve directly): syntax·API reference lookup (Grep/WebFetch suffices)
Session-cumulative max_uses: 3 times. On exceeding → escalate: ① git restore . (or git stash) to revert to the last clean state ② report to the user — which files were reverted, what was attempted, and why it failed → request a new Gate A re-plan.
Detailed call template·recording method·guardrails → CLAUDE_DETAIL.md §Advisor Escalation
This Gate response's mandatory final output
After completing the entire Gate C procedure (code implementation + plan document(s) update), output the block below at the very end of the response. Omitting it or replacing it with other content is a PROC violation.
---
**다음 단계**: Gate C 확인 후 「Gate D 시작」또는 「검증」으로 응답하면 `/gate-d` (Gate D 검증)가 시작됩니다.
**권장 모델 전환**: ${CURRENT_SESSION_FILE} "Gate별 권장 모델" 표를 참조하여 필요 시 `/model {모델}` 실행 후 진행하세요.
💡 **compact 권장 시점**: Gate C 구현이 끝난 지금이 `/compact` 최적 타이밍입니다. Gate D는 테스트 결과라는 새로운 맥락으로 시작하므로, C의 시행착오 컨텍스트를 정리하면 토큰을 절약할 수 있습니다.Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

