/code-agent-skills:init-agent-projectfrom code-agent-skills
Bootstraps a project for AI-agent usage in any agent.
Ships in code-agent-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
<essential_principles>
Principle 1: AGENTS.md Is the Single Source of Truth
All agent instructions live in one file at the project root: AGENTS.md. Agents that read AGENTS.md natively (e.g. Codex) use it directly. Agents that do not read it natively (e.g. Claude → CLAUDE.md, Gemini → GEMINI.md) get a thin stub file whose only content is @AGENTS.md — an import/include that points back to the canonical file. Never duplicate instruction content across files; the stub only imports.
Principle 2: Agent-Agnostic Execution This skill runs inside any agent, so it never relies on a single vendor's tooling. Before installing an MCP server, re-fetch the latest README at runtime (the reference files carry URLs + fallback commands) so install commands stay current. For an agent you know how to configure, use its native install command. For an agent you do not, write the canonical MCP JSON to its config location if known, otherwise emit a clear manual-setup note — never guess a fake CLI command.
Principle 3: Ask, Don't Assume
At every decision point, present choices using the host agent's own native structured-question / selection tool — Claude has AskUserQuestion; Codex, Gemini and other CLIs have their own interactive question mechanisms. Always offer suggested options. Only fall back to plain numbered text prompts when the running agent has no question tool at all.
Principle 4: Secrets Are Prompted, Never Invented
For any API key (e.g. GEMINI_API_KEY for Nano Banana), ask the user. If they don't provide it, write a clearly-marked placeholder like <YOUR_GEMINI_API_KEY> and tell them exactly which file to edit. Never hardcode a real key and never invent one.
Principle 5: Idempotent
Detect existing AGENTS.md, stub files, MCP entries, and appended sections. Merge or append rather than clobber; skip work already done. Re-running the skill must not duplicate sections or overwrite a user-customized file without asking first.
</essential_principles>
This skill runs as a short linear pipeline. Unless the user asks for a single sub-step, run the two core workflows in order:workflows/setup-agent-files.md — ask which agents to support, then write AGENTS.md + any needed stub files.workflows/install-features.md — ask which features to install, then run the matching install workflow(s).If the user explicitly wants just one piece (e.g. "just add UI verification", "only install playwright"), use the routing table to jump straight there. Otherwise begin at setup-agent-files.md.
Always present the agent and feature choices through the host agent's native question tool (see Principle 3).
| Intent | Workflow | |--------|----------| | Full setup, "init for agents", "set up this repo" | `workflows/setup-agent-files.md` then `workflows/install-features.md` | | "which agents", "create AGENTS.md", "add CLAUDE.md" | `workflows/setup-agent-files.md` | | "install features", "add MCPs" | `workflows/install-features.md` | | "playwright mcp", "browser automation" | `workflows/install-playwright-mcp.md` | | "nano banana", "image generation mcp" | `workflows/install-nano-banana-mcp.md` | | "ui verification", "screenshot before/after" | `workflows/add-ui-verification.md` |After reading the workflow, follow it exactly.
<reference_index>
Domain knowledge in references/:
AGENTS.md natively, its stub filename if not, its MCP install command, and its MCP config file path. Includes guidance for handling unknown agents.mcpServers JSON for the Playwright and Nano Banana servers, the per-agent install-command matrix, the runtime-refetch rule, secrets handling, and idempotent-merge guidance for existing configs.
</reference_index><workflows_index>
| Workflow | Purpose |
|---|---|
| setup-agent-files.md | Ask which agents to support; create/merge AGENTS.md and per-agent @AGENTS.md stubs |
| install-features.md | Ask which features to install; route to the matching install workflow(s) |
| install-playwright-mcp.md | Install the Playwright MCP for each selected agent, do not install it for claude code |
| install-nano-banana-mcp.md | Install the Nano Banana image MCP (with prompted GEMINI_API_KEY) per agent |
| add-ui-verification.md | Append the before/after screenshot UI-verification section to AGENTS.md |
| </workflows_index> |
<success_criteria> A project initialized with this skill:
AGENTS.md at the project root holding all agent instructions@AGENTS.md stub for every selected agent that doesn't read AGENTS.md natively (and none for those that do, e.g. Codex)references/agent-registry.md (opens in a new tab)references/mcp-install-patterns.md (opens in a new tab)workflows/add-ui-verification.md (opens in a new tab)workflows/install-features.md (opens in a new tab)workflows/install-nano-banana-mcp.md (opens in a new tab)workflows/install-playwright-mcp.md (opens in a new tab)workflows/setup-agent-files.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub ari-ayvazyan/aiskills --plugin code-agent-skills14 skills in this plugin
/archifyCreate polished, validated architecture, workflow, sequence, data-flow, and lifecycle/state diagrams. Use when the user asks to visualize system architecture, infrastructure, cloud/security/network topology, technical workflows, API call sequences, request lifecycles, data pipelines, ETL/ELT, data lineage, state machines, or to convert/beautify Mermaid./architecture-decisionsALWAYS Execute this skills before deciding any technical/architectural matter, to avoid reintroducing already-solved issues.
/architecture-planGenerate concise, mobile-friendly architecture cards for reviewing plans, proposed changes, finished work and commit overviews./codebase-designShared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary./create-agent-skillsExpert guidance for Claude Code Skills. Use when working with SKILL.md files, authoring new skills, improving existing skills, or understanding skill structure./diagnosing-bugsDiagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports something broken/throwing/failing/slow.