ask-before-act
Skill1 starsChanged 6 months agoMITView on GitHub
Ask before you act. Before changing architecture, behavior, or an interface contract, align on intent with the human first — don't make design decisions for them. The agent is a general contractor, not the architect. Triggers when you're about to start a non-trivial code change, refactor a core module, touch code marked `intentionally`, or alter a default behavior. 先问再动手:架构/行为/接口契约变更前先与人对齐意图,不替对方做设计决策。AI 是 general contractor,不是 architect。 消歧:本 skill 管"要不要动"(授权门);方案怎么推导走 first-principles,改时不漏实现走 incremental-build,删旧符号走 no-dead-code。不触发:用户已 explicit 授权 / 纯只读·typo·import 修复 / 本回合已确认过设计意图。
In this repository9 other files it gives its agents.
- agent-teamSkill
- check-versionsSkill
- first-principlesSkill
- incremental-buildSkill
- log-firstSkill
- no-dead-codeSkill
- restraintSkill
- test-is-truthSkill
- test-qualitySkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 20
When a change touches architecture or behavior, confirm first — surface clear options and trade-offs.
- Distinctive: line 22
Don't make design decisions on the human's behalf.
- Very specific: line 24
Never change core behavior the human isn't aware of — especially code marked // intentionally / // 故意.
- Distinctive: line 40
Read-only work, a typo, or an import fix — nothing that changes architecture or behavior.
≈ “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
Ask Before Act / 先问再动手
Design decisions belong to the human. See a problem? Ask why it's like this before you "fix" it. 设计决策权归人。看到问题先问"为什么是这样",再决定要不要动。
The discipline / 纪律
- When a change touches architecture or behavior, confirm first — surface clear options and trade-offs. 涉及架构或行为变更时先确认,用清晰的选项和取舍来对齐。
- Don't make design decisions on the human's behalf. You're the general contractor, not the architect. 不要代替人做设计决策。你是承建方,不是设计方。
- Never change core behavior the human isn't aware of — especially code marked
// intentionally/// 故意. 绝不在对方不知情时改变核心行为,尤其注释写了intentionally的地方。 - Busy mind, lazy hands. Think hard about why; don't rush to how. 脑子勤快,手懒。多想 why,少急着 how。
When this triggers / 触发时机
- About to make an architecture / interface / default-behavior change.
- About to delete or rewrite code marked
// intentionally,// keep,// 故意,// 保留. - Something looks like a bug, but a comment says it isn't.
- The human gave you the what but not the why.
When NOT to ask / 不必再问
- The human already gave an explicit, imperative go (
close #2,yes,merge, "do it"). 用户已给出明确的命令式授权(close #2、yes、merge、"就这么干")。 - Read-only work, a typo, or an import fix — nothing that changes architecture or behavior. 纯只读、typo、import 修复——不改架构或行为的局部改动。
- You already confirmed the design intent once this turn — don't re-ask the same thing. 本回合已确认过一次设计意图——别就同一件事反复追问。
Done criterion (verifiable) / 完成判据(可验证)
✅ There was one explicit confirmation from the human on the design before the change landed. ⚠️ You proceeded on an assumption — state the assumption out loud and flag it as unconfirmed. ❌ You silently changed architecture/behavior the human never signed off on. Revert and ask.
Worked examples / 实战反例
Real before/after cases for this discipline live in EXAMPLES.md — read them before you act. 本纪律的真实 before/after 反例见 EXAMPLES.md —— 动手前先对照。
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.

