| name | Bootstrap Agent |
| description | 5-phase onboarding wizard for AI agents entering a defense-in-depth project. Self-identify, discover rules, scaffold artifacts, learn to contribute, verify setup.
|
| version | 1.0.0 |
| triggers | ["agent enters a new defense-in-depth project","agent is unsure what standards to follow","agent needs to understand project governance"] |
🚀 Bootstrap Agent — Onboarding Wizard
"A well-onboarded agent is a productive agent. A confused agent is a liability."
This skill guides any AI agent through 5 phases to become a productive contributor
in a defense-in-depth governed project.
Overview Flowchart
flowchart TD
ENTER["Agent enters project"] --> P1["① IDENTIFY\nWho am I?"]
P1 --> P2["② DISCOVER\nWhat are the rules?"]
P2 --> P3["③ SCAFFOLD\nWhat's missing?"]
P3 --> P4["④ CONTRIBUTE\nHow do I add value?"]
P4 --> P5["⑤ VERIFY\nAm I ready?"]
P5 -->|"All checks pass"| READY["✅ Ready to work"]
P5 -->|"Issues found"| P3
Phase 1: IDENTIFY (Who Am I?)
Goal: Establish self-awareness before touching anything.
Steps
-
Read the project gateway
Read: AGENTS.md (project root)
Read: .agents/AGENTS.md (ecosystem map)
-
Identify your platform
| Platform | Config File | Native Space |
|---|
| Gemini CLI | GEMINI.md | .gemini/ |
| Claude Code | CLAUDE.md | .claude/ |
| Cursor | .cursorrules | .cursor/ |
| Other | Create a router file | Platform docs |
-
Read your prebuilt config (if exists)
- These files are cognitive frameworks, not just configs
- They define how you THINK about this project
-
Answer these questions internally:
- What platform am I running on?
- What are my native capabilities (memory, tools, search)?
- What can I do that other agents on other platforms can't?
Do Not Do
- Skip reading AGENTS.md and jump to coding
- Assume you know the project structure without reading it
- Modify prebuilt configs without completing all 5 phases
Phase 2: DISCOVER (What Are the Rules?)
Goal: Understand the governance contract before writing any code.
Steps
-
Read COGNITIVE_TREE.md — the project's philosophical foundation
Read: .agents/philosophy/COGNITIVE_TREE.md
-
Read ALL mandatory rules (11 total)
Read: .agents/rules/rule-consistency.md (project standards)
Read: .agents/rules/rule-guard-lifecycle.md (guard maturity)
Read: .agents/rules/rule-contribution-workflow.md (how to contribute)
Read: .agents/rules/rule-evidence-tagging.md (proof mandate)
Read: .agents/rules/rule-hitl-enforcement.md (supreme law)
Read: .agents/rules/rule-lesson-quality.md (specificity gate)
Read: .agents/rules/rule-zero-theater.md (substance mandate)
Read: .agents/rules/rule-adaptive-language.md (language policy)
Read: .agents/rules/rule-anti-yes-man.md (brainstorm mandate)
Read: .agents/rules/rule-agent-workspace.md (workspace zones)
Read: .agents/rules/rule-security-continuity.md (fortress mandate)
-
Read key contracts
Read: .agents/contracts/guard-interface.md (guard API contract)
-
Read the workflow
Read: .agents/workflows/procedure-task-execution.md
Key Takeaways Checklist
Do Not Do
- Skim rules without understanding — leads to violations
- Assume rules from other projects apply here
- Skip the contracts — they define the API you must respect
Phase 3: SCAFFOLD (What's Missing?)
Goal: Ensure the project has all required artifacts.
Check: defense.config.yml exists
npx defense-in-depth init
Check: Required directories
.agents/
├── rules/ (11 files minimum)
├── workflows/ (≥1 procedure)
├── contracts/ (guard interface)
├── philosophy/ (COGNITIVE_TREE.md)
├── skills/ (this bootstrap skill)
└── config/ (guards.yml)
Check: Git hooks installed
npx defense-in-depth doctor
Check: Prebuilt config matches your platform
Do Not Do
- Skip
defense-in-depth doctor — it catches setup issues
- Create empty placeholder files to "pass" scaffold check
- Modify existing rules during scaffold phase
Phase 4: CONTRIBUTE (How Do I Add Value?)
Goal: Understand the contribution protocol.
The Contribution Zones
| Zone | Location | What Goes Here | Language |
|---|
| Private | .gemini/, .claude/, etc. | Drafts, reasoning, session state | Any |
| Shared | src/, .agents/, docs/ | Guards, rules, docs, lessons | English |
Evidence Protocol
Every claim you make must carry an evidence tag:
[CODE] — verified by reading source code
[RUNTIME] — verified by execution
[INFER] — inferred from structure
[HYPO] — hypothesis, unverified
Lesson Recording
When you learn something, record it with this schema:
{
scenario: "What happened (specific context)",
wrongApproach: "What was tried that failed (concrete steps)",
correctApproach: "What actually fixed it (concrete steps)",
insight: "The generalizable takeaway",
searchTerms: ["term1", "term2"],
evidenceLevel: "RUNTIME"
}
Commit Format
<type>(<scope>): <description>
Types: feat, fix, chore, docs, refactor, test
Do Not Do
- Commit without evidence tags on findings
- Write lessons without
wrongApproach
- Use non-English in code, docs, or commits
- Auto-merge without meeting ALL criteria
- Create hollow artifacts (TODO/TBD = violation)
Phase 5: VERIFY (Am I Ready?)
Goal: Confirm setup and readiness.
Readiness Checklist
npx defense-in-depth doctor
npx defense-in-depth verify
npx tsc --noEmit
npm test
Self-Assessment
Answer these honestly:
| Question | Expected Answer |
|---|
| Can I explain the 3 cognitive branches? | Yes — Evidence, Mechanism, Growth |
| Do I know the supreme rule? | Yes — HITL |
| Can I tag evidence correctly? | Yes — [CODE], [RUNTIME], [INFER], [HYPO] |
| Do I know where my private workspace is? | Yes — platform-specific directory |
| Do I know the lesson schema? | Yes — including wrongApproach |
| Can I write a conventional commit? | Yes — type(scope): description |
| Do I understand what theater is? | Yes — hollow artifacts |
If any answer is "No" → return to Phase 2: DISCOVER.
Do Not Do
- Claim readiness without running the verification commands
- Skip self-assessment — overconfidence leads to violations
- Start coding before completing all 5 phases
Quick Reference Card
After completing bootstrap, keep this card handy:
┌────────────────────────────────────────┐
│ 🛡️ defense-in-depth Quick Reference │
├────────────────────────────────────────┤
│ Supreme Rule: HITL │
│ Evidence: [CODE] [RUNTIME] [INFER] │
│ Language: Chat=Any, Docs=English │
│ Commits: type(scope): description │
│ Theater: TODO/TBD = VIOLATION │
│ Lessons: wrongApproach = MANDATORY │
│ Guards: Observe + Report, NO mutate │
│ Verify: npx defense-in-depth verify │
│ Health: npx defense-in-depth doctor │
└────────────────────────────────────────┘