agentleFS
stevesimpson418stevesimpson418/ai-agent-template/.claude/skills/bootstrap-agent/SKILL.md

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

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
  1. Very specific:

    If the name cannot be inferred (e.g.

    line 29
  2. Distinctive:

    If yes: "What format? (JSON, markdown, other) What directory should they live in?"

    line 62
  3. Very specific:

    Create any needed directories and update .gitignore accordingly.

    line 65
  4. Distinctive:

    If yes, for each task gather:

    line 72
  5. Very specific:

    Create placeholder files in scheduled-tasks/ with metadata tables.

    line 78
  6. Very specific:

    Ask: "Does this agent need any additional commit scopes?" (e.g.

    line 84
  7. Very specific:

    If the user wants to do it now, help build out the configuration section.

    line 93
  8. Very specific:

    After replacing placeholders, delete the .claude/skills/bootstrap-agent/ directory — this is a one-time skill and is not needed after …

    line 107
  9. Distinctive:

    STOP. The user has cloned the template repository directly.

    line 121
  10. Distinctive:

    Do NOT proceed with any push until this is resolved.

    line 127
  11. Distinctive:

    Ask the user if they'd like to create a GitHub repository:

    line 144
  12. Distinctive:

    Always confirm before running destructive or external commands (git push, gh repo create).

    line 168
  13. Very specific:

    If gh CLI is not authenticated, tell the user to run gh auth login first.

    line 169
  14. Very specific:

    All generated files should pass lefthook run pre-commit before the initial commit.

    line 170

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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:

  1. Purpose — One sentence describing what this agent does (e.g. "An AI assistant that manages daily task reviews and email triage").
  2. 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:

CategoryExample Use Cases
CalendarEvent management, scheduling, availability checks
Task ManagementTodo lists, project tracking, inbox processing
Browser AutomationWeb interaction, form filling, page scraping
Database / StoragePersistent data, logging, document management
CommunicationEmail, 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-5 for weekdays at 10:00)
    • Model (default: Claude Opus 4.6)
    • Brief description of what it does

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 5
  • README.md — Replace {{AGENT_NAME}}, {{AGENT_PURPOSE}}, {{SKILL_ROWS}}, {{TASK_ROWS}}, {{MCP_ROWS}}
  • CONTRIBUTING.md — Replace {{AGENT_NAME}}, {{SCOPES_LIST}}
  • skills-manifest.json — Regenerate with scripts/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 origin

If 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:

  1. Fork the repo on GitHub — creates a personal copy with upstream connection for future template updates
  2. Use the template — run gh repo create <name> --template <template-url> to create an independent copy
  3. 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 push

Where {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=. --push

Confirm 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 gh CLI is not authenticated, tell the user to run gh auth login first.
  • All generated files should pass lefthook run pre-commit before the initial commit.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.