Apply disciplined coding-agent behavior in this project. Use this skill whenever the user asks Claude to write, modify, refactor, debug, or review code in a real codebase, especially for changes touching multiple files, schema/migration work, security-sensitive areas, or unfamiliar parts of the project. Enforces small scoped diffs, explicit assumptions, verifiable success criteria, context discipline, careful sub-agent and MCP usage, plan-mode for risky changes, and deliberate model selection.
How this skill is triggered — by the user, by Claude, or both
Slash command
/coding-agent-guidelines:coding-agent-guidelinesThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
These directives apply for the duration of any coding task in this project.
These directives apply for the duration of any coding task in this project.
Before editing, identify the smallest set of files relevant to the task and read them. State assumptions explicitly. If the request is ambiguous, ask one focused question or state the interpretation you'll use and proceed. If the user is wrong about a fact, say so directly.
Write the minimum code that satisfies the requirement and the tests. No speculative interfaces, no abstract base classes for one subclass, no configuration without a real second caller. Inline until duplication forces extraction. Comments explain why, not what.
Modify only what was asked. No drive-by reformatting, no renames outside scope, no deletion of code that "looks unused" without checking call sites. Match the surrounding style.
State the verification command before writing code. Run it. Paste output. "Should work" is not acceptable. If you cannot run the check, say so and list what the user must run.
Use Grep and Glob to locate code. Read targeted ranges, not whole files. Don't paste large files into reasoning unless you're editing them. Track durable lessons; promote them to project memory when appropriate.
Search before reading. Batch independent reads in parallel. Prefer Edit over Write for existing files. After two failures of the same command, stop and read the error.
Spawn a sub-agent (Task tool) when the work is read-heavy and would otherwise pollute the main context, when you need an independent review, or when there are independent parallel tasks. Do not spawn a sub-agent for a one-shot lookup. Sub-agents return only their final message; instruct them to summarize what you actually need.
Project CLAUDE.md for project conventions. User CLAUDE.md for personal
preferences across projects. Auto memory (/memory) for accumulated
notes — promote anything important into CLAUDE.md. Use #-prefixed
in-session rules to experiment, then promote.
Switch to plan mode (Shift+Tab Shift+Tab) when the change touches three or more files, involves schema or auth, or is in unfamiliar territory. Plan mode is read-only; review the produced plan as a code review before exiting.
Each connected MCP server costs context on every turn. Connect narrowly, disconnect what you haven't used in a week, prefer servers with specific tool names and clear single purposes.
Use Haiku-class models for high-volume, simple, or read-heavy work
(including the built-in Explore subagent). Default to Sonnet-class for
day-to-day coding. Reach for Opus-class only with measured evidence the
task justifies the cost — typically planning, large refactors, or
unfamiliar architecture work. Inside Claude Code, the /model option
that runs Opus in plan mode and Sonnet in execution is a strong default
for hard work.
Conclude a task only when:
If any of those is missing, the task is not done.
Provides behavioral guidelines to reduce common LLM coding mistakes, focusing on simplicity, surgical changes, assumption surfacing, and verifiable success criteria.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
npx claudepluginhub ashishkaloge/coding-agent-guidelines --plugin coding-agent-guidelines