bootstrap-agent-config
/bootstrap-agent-config
Generate a high-quality project CLAUDE.md and AGENTS.md by inspecting the current repository. Use when a repo has no agent config, when onboarding a new project, or when the user asks to "set up Claude/Codex for this repo" or "write a CLAUDE.md". Detects languages, build/test commands, and structure, then drafts config grounded in what's actually there.
Assessment and security
- Files in this package
- 2
- Scripts
- 1
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 03.08.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
- 1 scripts in this package. Review them before installing, as Claude may execute them.
Scripts: detect-stack.sh
What it does and when to use it
Generate a high-quality project CLAUDE.md and AGENTS.md by inspecting the current repository. Use when a repo has no agent config, when onboarding a new project, or when the user asks to "set up Claude/Codex for this repo" or "write a CLAUDE.md". Detects languages, build/test commands, and structure, then drafts config grounded in what's actually there.
Triggers from the description
Arguments
/bootstrap-agent-config [optional path, default: current repo]
Original author description
Generate a high-quality project CLAUDE.md and AGENTS.md by inspecting the current repository. Use when a repo has no agent config, when onboarding a new project, or when the user asks to "set up Claude/Codex for this repo" or "write a CLAUDE.md". Detects languages, build/test commands, and structure, then drafts config grounded in what's actually there.
How it works
- Steps
- Quality bar
SKILL.md preview
---
name: bootstrap-agent-config
description: Generate a high-quality project CLAUDE.md and AGENTS.md by inspecting the current repository. Use when a repo has no agent config, when onboarding a new project, or when the user asks to "set up Claude/Codex for this repo" or "write a CLAUDE.md". Detects languages, build/test commands, and structure, then drafts config grounded in what's actually there.
argument-hint: "[optional path, default: current repo]"
allowed-tools: Read, Write, Edit, Grep, Glob, Bash
---
# Bootstrap agent config for a repository
Produce a `CLAUDE.md` and a symlinked/parallel `AGENTS.md` that are *grounded in
the real repo*, not generic boilerplate. A good config is the single highest-ROI
thing for agent productivity in a codebase — it pays for itself on the first task.
## Steps
1. **Detect the stack.** Run the helper to get a fast inventory:
```
bash "${CLAUDE_SKILL_DIR}/detect-stack.sh" .
```
It reports languages, package managers, build/test/lint commands, monorepo
layout, and whether ADRs/CI exist.
2. **Verify, don't trust.** Confirm the detected build/test commands actually exist
(read the Makefile / package.json / justfile). Read 2–3 representative source
files to learn the real conventions (error handling, test style, naming).
3. **Find the invariants.** The most valuable part of a `CLAUDE.md` is the
*load-bearing rules* — the things that cause incidents if violated. Look for
them in: existing ADRs, `ARCHITECTURE.md`, `SECURITY.md`, README "gotchas", and
patterns the code enforces (e.g. tenant scoping, a trust boundary, a generated
file you must not hand-edit). Ask the user if the architecture isn't legible.
4. **Draft `CLAUDE.md`** using the structure in
`${CLAUDE_SKILL_DIR}/../../../templates/CLAUDE.md.tmpl` as a skeleton. Fill every
placeholder with real, verified content. Sections that matter most:
- One-sentence "what this is"
- Languages and *exact* build/test/lint commands (copy-pasteable)
- Repo layout (only the parts an agent needs)
- **Load-bearing invariants** — the "what NOT to do" list
- How to run/verify locally
Cut anything you can't ground in the actual repo. Short and true beats long and
aspirational.
5. **Make `AGENTS.md` track it.** Most non-Claude tools (Codex, etc.) read
`AGENTS.md`. Either symlink it (`ln -s CLAUDE.md AGENTS.md`) so there's one
source of truth, or write a thin `AGENTS.md` that says "see CLAUDE.md". Prefer
the symlink unless the repo already has a divergent `AGENTS.md`.
6. **Report** the files written and the top 3 invariants you encoded, so the user
can correct anything you inferred.
## Quality bar
- Every command in the file runs. Every path exists. Every invariant is real.
- No "best practices" filler that isn't specific to this repo.
- If you had to guess at an invariant, mark it `(verify)` so the user checks it.
Files in this package (2)
- SKILL.md 3 KB
- detect-stack.sh 2 KB
Versions
The database has no other skills named bootstrap-agent-config.
Identical content appears in 1 other GitHub folders. We show one copy with the highest score.
Database snapshot: 13.11.2026 · package version 8e025492ee3b (SHA-256 digest of the entire package)
Downloads in the last 30 days: 2 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100agents-md-author
Bootstrap or update project AI-agent instruction files (AGENTS.md for Codex, CLAUDE.md for Claude Code, or both) from the current project's structure. Triggers on: write AGENTS.md, write CLAUDE.md, generate AGENTS.md, agent instructions, project conventions for AI, bootstrap… - 100write-rules
Write this repo's agent rules file (AGENTS.md, read by Claude Code, Codex, Cursor and others) from what the repo actually does (CI workflows, scripts, configs, folder layout, git history), with a source for every line and nothing a linter already enforces. Use when the user asks… - 90agent-context-bootstrap
Bootstrap repo-local agent context for Codex and other coding agents. Use when setting up AGENTS.md, docs/agents, issue tracker rules, triage labels, domain docs, ADR locations, validation commands, or skill usage instructions for a repository. - 90agents-config
Explains the layout of the agents-config repository and how .claude/, .opencode/, and .agents/ relate. Use when asked about cross-client agent configuration, skill locations, or adding new agents, skills, commands, or rules. - 100agents-md-starter
Creates or upgrades a repository's AGENTS.md (read by Codex, Cursor, and other agents) and a CLAUDE.md that imports it, so Claude Code, Codex, Cursor and Gemini CLI share one set of project rules. Scans the repo to detect languages, package manager, real build/test/lint… - 100init
Scan project and generate a customized CLAUDE.md. Detects stack, test commands, and conventions. Use when onboarding to a new project or user says 'init', 'setup claude', 'generate CLAUDE.md'.