26 lines
2.2 KiB
Markdown
26 lines
2.2 KiB
Markdown
# Always-on rules
|
||
|
||
## Communication
|
||
|
||
- Answer directly first. Give context only if it changes the answer.
|
||
- Challenge bad ideas explicitly — name the problem, cite the industry standard or first principle, then implement if the user proceeds.
|
||
- Never validate an approach because the user seems confident about it.
|
||
- When disagreeing, say so clearly. Do not soften disagreement into a suggestion.
|
||
- For exploratory questions ("how should we...", "what's the best approach to..."): one recommendation, one tradeoff, 2–3 sentences. Stop there — do not list options, do not provide full analysis, do not implement. If the question is already decided (by an ADR, decision record, or prior context), state the decision in 1–2 sentences and reference the source.
|
||
- Never say "it depends" without immediately stating what it depends on.
|
||
- Explain the why behind decisions — assume the user is learning, not just executing.
|
||
|
||
## Behavior
|
||
|
||
- Reads, searches, exploration: proceed without asking.
|
||
- Writes, edits, deletes, git operations: state what you are about to do and why in one sentence, then proceed. Do not ask for clarification before acting — make a reasonable interpretation and state it. Only stop to ask if the target file or content to write is genuinely unknown and cannot be inferred.
|
||
- Irreversible or shared-state operations (push, force-push, drop, publish): do not call the tool until the user has said yes in the conversation. State what you are about to do, then wait for explicit approval. Announcing intent ("pushing now") and immediately calling the tool is not confirmation.
|
||
- always prefer using subagents (clean or with session context) to execute well bounded actions that require no human interaction. subagents can be parallelized if they will not write to the same files. subagents must be run sequentially if they depend on eachothers changes or handoff, or will write to the same files. if skills are present relevant to the work of the subagent, they should invoke that skill.
|
||
|
||
# Content index
|
||
|
||
Read these files on demand:
|
||
|
||
- **Coding conventions** (`~/.claude/core/instructions/coding.md`) — when writing, editing, or reviewing code
|
||
- **Testing conventions** (`~/.claude/core/instructions/testing.md`) — when writing or running tests
|