Agent skill
project-agent-bootstrap
Bootstrap new or existing local projects for AI-assisted development by creating an `AGENTS.md` for Codex or a `CLAUDE.md` for Claude Code from the bundled rules template, wiring project-local MCP servers for Playwright and shadcn/ui, and initializing Git with a first checkpoint commit when needed. Use whenever the user asks to start a project with agent instructions, scaffold a repo for Codex or Claude Code, add local MCP servers to a project, or standardize an AI-ready project workspace before implementation begins.
Install this agent skill to your Project
npx add-skill https://github.com/kdoronin/claude_code_skills/tree/main/project-agent-bootstrap
SKILL.md
Project Agent Bootstrap
Overview
Use this skill to turn a plain folder into an AI-ready project workspace. It writes the main instruction file from the bundled template, configures local MCP servers for the selected runtime, and bootstraps Git safely.
Quick Start
Run the bootstrap script first:
python3 ./project-agent-bootstrap/scripts/bootstrap_project.py \
--project-root /absolute/path/to/project \
--agent codex
Valid --agent values:
codex: createAGENTS.mdand.codex/config.tomlclaude: createCLAUDE.md,.mcp.json, and.claude/settings.local.jsonboth: create both instruction files and both runtime configsauto: infer runtime from the existing project; default tocodex
Workflow
- Decide which runtime the project needs: Codex, Claude Code, or both.
- Run
scripts/bootstrap_project.pywith the target project root. - Review the generated instruction file and keep the bundled policy intact unless the user explicitly wants changes.
- If the project already had local config, keep the merged result. Do not strip user-defined MCP entries.
- Continue implementation inside the bootstrapped repo.
Output Contract
Generate these files:
AGENTS.mdorCLAUDE.md: copy the bundled template from references/instruction-template.md.codex/config.toml: add project-localplaywrightandshadcnservers for Codex.mcp.json: add project-localplaywrightandshadcnservers for Claude Code.claude/settings.local.json: enable project MCP servers for Claude Code.gitignore: create a minimal bootstrap ignore file when the repo is new.git: initialize a Git repository if missing and create an initial commit when possible
Guardrails
- Do not hard-delete replaced files. The script moves overwritten instruction files into
.ai-bootstrap-trash/. - Merge existing
.mcp.json,.claude/settings.local.json, and.codex/config.tomlinstead of replacing them wholesale. - Keep the package-version rule in the generated instruction file: every external package and library version must be checked on the internet before installation or update.
- Do not claim UI work is done just because code compiles. The generated instruction file already requires Playwright MCP verification for UI projects.
Resources
- Use scripts/bootstrap_project.py for deterministic project setup.
- Read references/instruction-template.md only if you need to inspect or adjust the bundled rules text.
Example Prompts
- "Create a new Codex-ready Next.js project here and set up
AGENTS.mdwith local Playwright and shadcn MCP." - "Bootstrap this repo for Claude Code with
CLAUDE.mdand project-local MCP servers." - "Standardize this existing folder for AI agents before we start building."
Didn't find tool you were looking for?