Skip to content

Commit 7535635

Browse files
Twinsen81claude
andcommitted
Add skill execution rules to AGENTS.md
Reinforce that skills are mandatory workflows with strict phase gates. Agents must never skip approval phases or write code before plan approval. Co-Authored-By: Claude Opus 4.6 <[email protected]>
1 parent e291a7b commit 7535635

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

AGENTS.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ This file provides guidance to coding agents when working with code in this repo
88
- Treat me as an expert Android developer. Give overviews, not tutorials.
99
- Always give an overview of the solution before diving into implementation (unless explicitly asked to implement right away).
1010
- Do not add comments for trivial logic or when the name is descriptive enough.
11+
- **Skills are mandatory workflows** — when a skill is triggered (via `/command` or trigger phrases), follow its SKILL.md phases strictly. NEVER skip approval gates. Present plan and STOP before writing code.
1112

1213
## Architecture Overview
1314

@@ -148,3 +149,9 @@ PAGER=cat gh pr diff <NUMBER>
148149
| Skill | Trigger phrases |
149150
|-------------|--------------------------------------------------------------------------------------------------|
150151
| `implement` | "implement", "fix this", "work on this", "build this", "add feature", any implementation request |
152+
153+
### Skill execution rules (CRITICAL)
154+
- When a skill is triggered (via `/command` or matching trigger phrases), you MUST follow the skill's phases **sequentially and completely**
155+
- **NEVER skip a phase that requires user approval** — if a phase says "STOP and wait for approval", you must STOP
156+
- The skill's SKILL.md is your instruction set — treat each phase gate as a hard blocker, not a suggestion
157+
- Do NOT write production code before the plan phase is explicitly approved by the user

0 commit comments

Comments
 (0)