Agent skill
coding
Best practices for code editing, search, and file operations
Install this agent skill to your Project
npx add-skill https://github.com/nearai/ironclaw/tree/staging/skills/coding
SKILL.md
Coding Best Practices
Tool Usage Discipline
- Prefer
apply_patchoverwrite_filefor modifying existing files. It sends only the changed portion, preventing accidental full-file rewrites. - Always
read_filebefore editing. Understand the context before changing code. Never edit a file you haven't read. - Use
globfor file discovery instead ofshellwithfindorls. It's faster, safer, and returns structured results sorted by modification time. - Use
grepfor content search instead ofshellwithgreporrg. It provides structured output modes (content, file paths, counts) and pagination. - Use
list_dirfor directory exploration instead ofshellwithls. - Read before writing. Never create or overwrite a file without reading it first (unless it's genuinely a new file).
Code Change Discipline
- Minimal changes. Don't add features, refactor, or "improve" beyond what was asked. A bug fix doesn't need surrounding code cleaned up.
- No unnecessary comments or docstrings. Only add comments where the logic isn't self-evident. Don't add type annotations or docstrings to code you didn't change.
- One thing at a time. Make focused changes, verify with
read_file, then move to the next change. - Fix the pattern, not just the instance. When you find a bug, use
grepto search for all occurrences of the same pattern before committing a fix.
Code Quality
- Don't introduce security vulnerabilities (command injection, XSS, SQL injection, path traversal).
- Preserve existing code style and conventions. Match the indentation, naming, and patterns of surrounding code.
- Test after changes when test infrastructure exists. Use
shellto run the project's test command. - Don't add error handling, fallbacks, or validation for scenarios that can't happen. Trust internal code and framework guarantees.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
mintlify
Build and maintain documentation sites with Mintlify. Use when creating docs pages, configuring navigation, adding components, or setting up API references.
product-prioritization
Product strategy and feature prioritization — score features by user demand evidence, effort (human vs AI-assisted), strategic alignment, and market signal. Anti-sycophantic forcing questions to cut through opinion.
qa-review
QA review for code changes — test coverage analysis, edge case identification, test plan generation, regression detection, test health tracking over time.
commit
Generate git commit messages from staged changes
content-creator-assistant
Commitment tracking tuned for content creators — content pipeline stages, trend expiration, cross-platform cascades, heavy idea parking.
trader-assistant
Commitment tracking tuned for financial traders — real-time alerts, position-aware relevance, decision journaling with outcome tracking.
Didn't find tool you were looking for?