bootstrap-agent
Skill0 starsChanged 8 months agoMITView on GitHub
One-time interactive bootstrap wizard for setting up a new AI agent from the template. Trigger when: "bootstrap", "set up this agent", "initialise this agent", "/bootstrap-agent". This skill should only run once — it configures the repo for a specific agent. Do NOT trigger for: general questions about the template or how agents work.
- Commits and pushes
In this repositoryOne other file it gives its agents.
- .claude/CLAUDE.mdCLAUDE.md
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. About 0 are common, 6 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 29
If the name cannot be inferred (e.g.
- Distinctive: line 62
If yes: "What format? (JSON, markdown, other) What directory should they live in?"
- Very specific: line 65
Create any needed directories and update .gitignore accordingly.
- Distinctive: line 72
If yes, for each task gather:
- Very specific: line 78
Create placeholder files in scheduled-tasks/ with metadata tables.
- Very specific: line 84
Ask: "Does this agent need any additional commit scopes?" (e.g.
- Very specific: line 93
If the user wants to do it now, help build out the configuration section.
- Very specific: line 107
After replacing placeholders, delete the .claude/skills/bootstrap-agent/ directory — this is a one-time skill and is not needed after …
- Distinctive: line 121
STOP. The user has cloned the template repository directly.
- Distinctive: line 127
Do NOT proceed with any push until this is resolved.
- Distinctive: line 144
Ask the user if they'd like to create a GitHub repository:
- Distinctive: line 168
Always confirm before running destructive or external commands (git push, gh repo create).
- Very specific: line 169
If gh CLI is not authenticated, tell the user to run gh auth login first.
- Very specific: line 170
All generated files should pass lefthook run pre-commit before the initial commit.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill 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
Bootstrap Agent
One-time interactive wizard that configures this template repo into a working AI agent. After running, the repo will have a complete CLAUDE.md, GitHub repo, CI/CD, and skill-manager configured.
Workflow
Before Starting
Confirm with the user: "This will configure the template into a new AI agent repo. It's a one-time process — ready to go?"
Step 1: Identity
Infer the agent name from the current repository directory name. If the directory ends with -ai, strip the suffix (e.g. mybot-ai → mybot). Present the inferred name and ask the user to confirm or provide a different name.
If the name cannot be inferred (e.g. the directory is still called ai-agent-template), ask the user to provide one.
Validation: The name must be a single word, lowercase, alphanumeric + hyphens only (^[a-z][a-z0-9-]*$).
Then ask these questions one at a time:
- Purpose — One sentence describing what this agent does (e.g. "An AI assistant that manages daily task reviews and email triage").
- Persona — How should the agent communicate? What's the tone? (e.g. "Professional but approachable. Uses clear, direct language.")
Step 2: MCP Dependencies
Present common MCP server categories and ask which ones this agent needs:
| Category | Example Use Cases |
| Calendar | Event management, scheduling, availability checks |
| Task Management | Todo lists, project tracking, inbox processing |
| Browser Automation | Web interaction, form filling, page scraping |
| Database / Storage | Persistent data, logging, document management |
| Communication | Email, messaging, notifications |
Ask:
- "Which of these categories does your agent need?"
- "Do you have specific MCP servers in mind, or should we leave placeholders?"
Build the MCP table for CLAUDE.md from the answers.
Step 3: Data Storage
Ask the user:
- "Does this agent need to store data files?" (e.g. JSON records, markdown logs, session data)
- If yes: "What format? (JSON, markdown, other) What directory should they live in?"
- "Does this agent need an inputs directory?" (for files the user drops in for processing)
Create any needed directories and update .gitignore accordingly.
Step 4: Scheduled Tasks
Ask the user:
- "Will this agent have any scheduled tasks?"
- If yes, for each task gather:
- Name (kebab-case, e.g.
daily-morning-scan) - Cron expression (e.g.
0 10 * * 1-5for weekdays at 10:00) - Model (default: Claude Opus 4.6)
- Brief description of what it does
- Name (kebab-case, e.g.
Create placeholder files in scheduled-tasks/ with metadata tables.
Step 5: Commit Scopes
Present the default scopes: skills, config, ci, docs, evals, scripts
Ask: "Does this agent need any additional commit scopes?" (e.g. data, profiles, workflows)
Step 6: Agent Configuration
Ask the user:
- "What business rules, categories, or domain-specific configuration should go in the CLAUDE.md?"
- "This is the heart of the agent — it's where all the rules and logic live. We can flesh this out now or leave placeholders and iterate later."
If the user wants to do it now, help build out the configuration section. If not, leave clear <!-- TODO: --> markers.
Step 7: Generate Files
Replace all {{placeholders}} across the repo:
Files to update:
.claude/CLAUDE.md— Replace{{AGENT_NAME}},{{AGENT_PURPOSE}},{{AGENT_PERSONA}},{{MCP_TABLE}},{{SCOPES_LIST}},{{AGENT_SPECIFIC_CONFIG}}.commitlintrc.json— Add any extra scopes from Step 5README.md— Replace{{AGENT_NAME}},{{AGENT_PURPOSE}},{{SKILL_ROWS}},{{TASK_ROWS}},{{MCP_ROWS}}CONTRIBUTING.md— Replace{{AGENT_NAME}},{{SCOPES_LIST}}skills-manifest.json— Regenerate withscripts/generate-manifest.sh
After replacing placeholders, delete the .claude/skills/bootstrap-agent/ directory — this is a one-time skill and is not needed after bootstrap completes.
Regenerate the manifest: scripts/generate-manifest.sh
Step 8: Git — Safety Check, Commit & Push
First, check the git remote:
git remote get-url originIf the remote URL matches the template repository (e.g. ends with /ai-agent-template or /ai-agent-template.git):
STOP. The user has cloned the template repository directly. Pushing would target the upstream template. Warn the user and suggest:
- Fork the repo on GitHub — creates a personal copy with upstream connection for future template updates
- Use the template — run
gh repo create <name> --template <template-url>to create an independent copy - Remove the remote manually —
git remote remove origin, then set up a new remote
Do NOT proceed with any push until this is resolved.
If the remote points to the user's own repo:
Safe to proceed:
lefthook install
git add .
git commit -m "feat: bootstrap {name}-ai agent"
git pushWhere {name} is the agent name from Step 1 (e.g. feat: bootstrap mybot-ai agent).
If there is no remote configured:
Ask the user if they'd like to create a GitHub repository:
gh repo create <owner>/<name> --private --source=. --pushConfirm the owner/org and visibility before executing.
Completion
Summarise what was created:
- Agent name and purpose
- Skills installed (any created during setup)
- Scheduled tasks configured
- MCP dependencies
- Repository URL (if pushed)
- Next steps: "Add your first skill, flesh out the CLAUDE.md config, or set up scheduled tasks"
Important Notes
- This skill runs once. After bootstrap, the
bootstrap-agent/directory is deleted. - Always confirm before running destructive or external commands (git push, gh repo create).
- If
ghCLI is not authenticated, tell the user to rungh auth loginfirst. - All generated files should pass
lefthook run pre-commitbefore the initial commit.
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.

