From agent-skills
Use whenever creating CLAUDE.md, AGENTS.md, GEMINI.md, or other AI coding assistant instruction files at any scope level (user/global, project root, parent folder, subdirectory). Covers scope diagnosis, content taxonomy, multi-tool compatibility for Claude Code, Codex, Gemini CLI, and OpenCode, plus cookbook templates for Python, TypeScript, monorepo, agent/MCP, and minimal projects. Invoke when the user asks to "create a CLAUDE.md", "set up Claude for this project", "what should go in my AGENTS.md", "write agent instructions", "help me set up my global Claude configuration", or any similar request — even without explicit mention of CLAUDE.md or AGENTS.md. If the user is starting a new project or onboarding into an existing one and no instruction file exists, proactively suggest creating one.
How this skill is triggered — by the user, by Claude, or both
Slash command
/agent-skills:agent-instructionsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
A builder skill for creating `CLAUDE.md`, `AGENTS.md`, `GEMINI.md`, and related AI coding
references/content-taxonomy.mdreferences/cookbook/agent-mcp-project.mdreferences/cookbook/minimal-project.mdreferences/cookbook/monorepo.mdreferences/cookbook/python-project.mdreferences/cookbook/typescript-project.mdreferences/cookbook/user-global.mdreferences/multi-tool-compat.mdreferences/scope-hierarchy.mdA builder skill for creating CLAUDE.md, AGENTS.md, GEMINI.md, and related AI coding
assistant instruction files at any scope level, for any tool.
Invoke this skill when the user:
CLAUDE.md, AGENTS.md, GEMINI.md, or similar file~/.claude/CLAUDE.md)| Scope | File(s) | Reference |
|---|---|---|
| User/global | ~/.claude/CLAUDE.md | references/scope-hierarchy.md, references/cookbook/user-global.md |
| Project root | CLAUDE.md or AGENTS.md | references/scope-hierarchy.md, project cookbook |
| Personal (gitignored) | CLAUDE.local.md | references/scope-hierarchy.md |
| Subdirectory / path-scoped | .claude/rules/*.md | references/scope-hierarchy.md, references/cookbook/monorepo.md |
| Multi-tool project | CLAUDE.md + AGENTS.md + GEMINI.md | references/multi-tool-compat.md |
Ask — or infer from the codebase and conversation context:
Use the Scope Decision Guide below if unsure.
For project-level files, read the codebase first. Check package.json, pyproject.toml,
Makefile, README.md — don't ask for things you can discover. Then determine:
CLAUDE.local.md
for personal preferences)For user-global files, ask the user about:
Read the relevant file from references/cookbook/ and adapt it to the actual project.
Remove sections that don't apply; add project-specific content.
| Project type | Template |
|---|---|
| Python (FastAPI, library, data) | references/cookbook/python-project.md |
| TypeScript (Next.js, API, CLI, agent) | references/cookbook/typescript-project.md |
| Monorepo (any language) | references/cookbook/monorepo.md |
| Agent, MCP server, or plugin | references/cookbook/agent-mcp-project.md |
| Side project / minimal | references/cookbook/minimal-project.md |
User global (~/.claude/CLAUDE.md) | references/cookbook/user-global.md |
Quality targets:
| Scope | Target length | Key principle |
|---|---|---|
| User-global | 100–200 lines | Comprehensive personal preferences |
| Project-level | 20–80 lines | Concrete facts about this codebase |
| Subdirectory rule | 5–20 lines | Path-scoped, laser-focused |
Every line costs context on every session. Trim ruthlessly — if removing a line wouldn't confuse a new contributor, remove it.
If multiple tools are in use, read references/multi-tool-compat.md before generating.
Write the file(s) to disk at the correct paths, then tell the user where each one lives.
Need agent instructions for...
├── Every project on this machine → ~/.claude/CLAUDE.md (user-global)
├── This specific project only
│ ├── Solo project → CLAUDE.md at project root
│ ├── Team project (checked in) → CLAUDE.md or AGENTS.md at project root
│ └── Personal prefs on a team → CLAUDE.local.md (add to .gitignore)
├── Monorepo with distinct sub-packages
│ ├── Spans all packages → root CLAUDE.md
│ └── Package-specific rules → CLAUDE.md in that package dir, or
│ .claude/rules/<name>.md with paths: frontmatter
└── Multi-tool (2+ AI assistants)
└── See references/multi-tool-compat.md
Avoid these — they make instruction files worse over time:
| Anti-pattern | Why it fails | Alternative |
|---|---|---|
| Multi-step procedures ("to deploy, step 1...") | Bloats every session; hard to maintain | Move to a skill or a runbook |
| Large reference material | Expensive on every session | @import or a skill with references/ |
| "Always use X" with no context | Gets ignored; no reasoning to generalize from | Explain the why: "Use X because Y" |
| Git history or incident notes | Stale fast; belongs in commits | Commit message or ADR |
| Duplicate content across scope levels | Diverges silently | Use @import to share a single source |
| Instructions for hypothetical scenarios | Not active constraints | Only write what shapes daily work |
| Personal preferences in a team file | Pollutes shared instructions | Put personal prefs in CLAUDE.local.md |
For projects used with more than one AI coding tool, read references/multi-tool-compat.md
for the full decision matrix. Quick summary:
CLAUDE.md, use @import freelyAGENTS.md (plain Markdown, no imports)AGENTS.md; CLAUDE.md = single line @AGENTS.mdGEMINI.md as a plain-Markdown copy of
AGENTS.md (Gemini doesn't support imports)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.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub joeblackwaslike/agent-marketplace --plugin agent-skills