agent-skills
CLAUDE.md4 starsChanged 3 months agoMITView on GitHub
This project uses the agent-skills repository to enforce strict coding constraints and avoid common LLM pitfalls. As an AI coding agent, you MUST follow these directives when working in this repository: Trigger: ANY time you need to search for code structure, refactor symbols, analyze impact, find dead code, or trace dependencies. (e.g., "find all calls to fetch", "rename oldApi to newApi safely"). Skill to use: ast-code-graph Directive: You MUST NOT use basic text search (grep) or guess at references for…
We split this CLAUDE.md into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
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
- Very specific: line 23
Directive: Do NOT use sed or raw regex for structural code changes.
- Distinctive: line 27
Trigger: ALWAYS at the end of complex tasks, debugging sessions, or when learning a new project codebase quirk.
≈ “Common” is an estimate: at least 1 in 5 of the 25,680 CLAUDE.md 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
Agent Instructions
This project uses the agent-skills repository to enforce strict coding constraints and avoid common LLM pitfalls.
As an AI coding agent, you MUST follow these directives when working in this repository:
1. Architectural Changes & Refactoring
Trigger: ANY time you need to search for code structure, refactor symbols, analyze impact, find dead code, or trace dependencies. (e.g., "find all calls to fetch", "rename oldApi to newApi safely").
Skill to use: ast-code-graph
Directive: You MUST NOT use basic text search (grep) or guess at references for structural modifications. You must use this skill's ast-grep CLI instructions to parse the AST semantically, generate JSON outputs, and safely perform refactoring or impact analysis.
2. Debugging & Test Failures
Trigger: AUTOMATICALLY anytime you encounter a stack trace, test failure, production bug, or unexpected behavior.
Skill to use: systematic-debugging
Directive: You MUST NOT guess the solution or propose random fixes. You are constrained to the "No fixes without root cause" protocol. You must trace the error boundary, heavily utilize grep_search to understand context, and prove the failure with a reproduction script before any code modification. If 3 fixes fail, you MUST escalate and stop modifying code.
3. Structural Code Refactoring
Trigger: ANY time you need to do bulk structural replacements across files — renaming function arguments at call sites, migrating deprecated API call shapes, rewriting patterns that regex/sed would botch (nested parens, multiline, string boundary issues), extracting code locations with file+line output. Also trigger for Python 2 → 3 migrations.
Skill to use: structural-refactor
Directive: Do NOT use sed or raw regex for structural code changes. Use comby for cross-language pattern replacement, 2to3 for Python 2 → 3 migrations, and pyupgrade to modernize Python 3 idioms. Always run a preview step (-diff or dry-run) before applying changes in-place.
4. Post-Task Reflection
Trigger: ALWAYS at the end of complex tasks, debugging sessions, or when learning a new project codebase quirk.
Skill to use: self-reflection
Directive: You MUST trigger this skill before closing a complex task to codify hard-won lessons into reusable project rules (saving them to AGENTS.md, .cursorrules, etc.). Future agents should not have to repeat your mistakes.
In this repository7 other files it gives its agents.
- AGENTS.mdAGENTS.md
- llms.txtllms.txt
- ast-code-graphSkill
- ast-grepSkill
- self-reflectionSkill
- structural-refactorSkill
- systematic-debuggingSkill
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.

