agent-library/ ← The brain (tool-agnostic intelligence) agent-setup/ ← The bridge (tool-specific deployment) resource-catalog/ ← The map (inventory of everything) CODE_BLOCK: agent-library/ ← The brain (tool-agnostic intelligence) agent-setup/ ← The bridge (tool-specific deployment) resource-catalog/ ← The map (inventory of everything) CODE_BLOCK: agent-library/ ← The brain (tool-agnostic intelligence) agent-setup/ ← The bridge (tool-specific deployment) resource-catalog/ ← The map (inventory of everything) CODE_BLOCK: agent-library/ ├── library.yaml ← Central manifest ├── SKILLS-INDEX.md ← Human-readable index of all skills ├── layers/ ← Context-specific instructions │ ├── global.md ← Identity, principles, environment map │ ├── repos.md ← Shared git conventions │ ├── work/ ← Work domain │ │ ├── domain.md ← Conservative rules, safety constraints │ │ ├── terraform.md ← Terraform-specific workflow │ │ ├── gitops.md ← GitOps/FluxCD rules │ │ └── code.md ← Code conventions │ └── personal/ ← Personal domain │ ├── domain.md ← Experimental mode, fast iteration │ ├── fintech-app.md │ └── infra-gcp.md ├── skills/ ← Reusable procedures │ ├── global/ ← Available everywhere │ └── work/ ← Domain-specific ├── rules/ ← Always-on constraints └── prompts/ ← Reusable prompt templates CODE_BLOCK: agent-library/ ├── library.yaml ← Central manifest ├── SKILLS-INDEX.md ← Human-readable index of all skills ├── layers/ ← Context-specific instructions │ ├── global.md ← Identity, principles, environment map │ ├── repos.md ← Shared git conventions │ ├── work/ ← Work domain │ │ ├── domain.md ← Conservative rules, safety constraints │ │ ├── terraform.md ← Terraform-specific workflow │ │ ├── gitops.md ← GitOps/FluxCD rules │ │ └── code.md ← Code conventions │ └── personal/ ← Personal domain │ ├── domain.md ← Experimental mode, fast iteration │ ├── fintech-app.md │ └── infra-gcp.md ├── skills/ ← Reusable procedures │ ├── global/ ← Available everywhere │ └── work/ ← Domain-specific ├── rules/ ← Always-on constraints └── prompts/ ← Reusable prompt templates CODE_BLOCK: agent-library/ ├── library.yaml ← Central manifest ├── SKILLS-INDEX.md ← Human-readable index of all skills ├── layers/ ← Context-specific instructions │ ├── global.md ← Identity, principles, environment map │ ├── repos.md ← Shared git conventions │ ├── work/ ← Work domain │ │ ├── domain.md ← Conservative rules, safety constraints │ │ ├── terraform.md ← Terraform-specific workflow │ │ ├── gitops.md ← GitOps/FluxCD rules │ │ └── code.md ← Code conventions │ └── personal/ ← Personal domain │ ├── domain.md ← Experimental mode, fast iteration │ ├── fintech-app.md │ └── infra-gcp.md ├── skills/ ← Reusable procedures │ ├── global/ ← Available everywhere │ └── work/ ← Domain-specific ├── rules/ ← Always-on constraints └── prompts/ ← Reusable prompt templates CODE_BLOCK: ~/.agent/AGENTS.md → global.md (who I am, core principles) ~/repos/AGENTS.md → repos.md (git conventions) ~/repos/work/AGENTS.md → work/domain.md (conservative, safety-first) ~/repos/work/terraform/AGENTS.md → work/terraform.md (terraform workflow) CODE_BLOCK: ~/.agent/AGENTS.md → global.md (who I am, core principles) ~/repos/AGENTS.md → repos.md (git conventions) ~/repos/work/AGENTS.md → work/domain.md (conservative, safety-first) ~/repos/work/terraform/AGENTS.md → work/terraform.md (terraform workflow) CODE_BLOCK: ~/.agent/AGENTS.md → global.md (who I am, core principles) ~/repos/AGENTS.md → repos.md (git conventions) ~/repos/work/AGENTS.md → work/domain.md (conservative, safety-first) ~/repos/work/terraform/AGENTS.md → work/terraform.md (terraform workflow) CODE_BLOCK: layers: - name: work-terraform description: "Terraform-specific rules for work domain" layers/work/terraform.md target: ~/repos/work/terraform/AGENTS.md scope: "~/repos/work/terraform/*" skills: - name: terraform-plan description: "Terraform plan/apply workflow" skills/work/terraform-plan.md scope: "~/repos/work/terraform/*" CODE_BLOCK: layers: - name: work-terraform description: "Terraform-specific rules for work domain" layers/work/terraform.md target: ~/repos/work/terraform/AGENTS.md scope: "~/repos/work/terraform/*" skills: - name: terraform-plan description: "Terraform plan/apply workflow" skills/work/terraform-plan.md scope: "~/repos/work/terraform/*" CODE_BLOCK: layers: - name: work-terraform description: "Terraform-specific rules for work domain" layers/work/terraform.md target: ~/repos/work/terraform/AGENTS.md scope: "~/repos/work/terraform/*" skills: - name: terraform-plan description: "Terraform plan/apply workflow" skills/work/terraform-plan.md scope: "~/repos/work/terraform/*" COMMAND_BLOCK: # Creates: ~/repos/work/terraform/AGENTS.md → agent-library/layers/work/terraform.md # Creates: ~/.agent/skills/terraform-plan → agent-library/skills/work/terraform-plan.md # ... and so on for every layer, skill, rule, and prompt COMMAND_BLOCK: # Creates: ~/repos/work/terraform/AGENTS.md → agent-library/layers/work/terraform.md # Creates: ~/.agent/skills/terraform-plan → agent-library/skills/work/terraform-plan.md # ... and so on for every layer, skill, rule, and prompt COMMAND_BLOCK: # Creates: ~/repos/work/terraform/AGENTS.md → agent-library/layers/work/terraform.md # Creates: ~/.agent/skills/terraform-plan → agent-library/skills/work/terraform-plan.md # ... and so on for every layer, skill, rule, and prompt COMMAND_BLOCK: # components/agent-library.yaml apiVersion: backstage.io/v1alpha1 kind: Component metadata: name: agent-library description: "Tool-agnostic agent configuration library" annotations: github.com/project-slug: your-username/agent-library spec: type: ai-agent-config lifecycle: production owner: your-name system: personal-ai-agent-platform COMMAND_BLOCK: # components/agent-library.yaml apiVersion: backstage.io/v1alpha1 kind: Component metadata: name: agent-library description: "Tool-agnostic agent configuration library" annotations: github.com/project-slug: your-username/agent-library spec: type: ai-agent-config lifecycle: production owner: your-name system: personal-ai-agent-platform COMMAND_BLOCK: # components/agent-library.yaml apiVersion: backstage.io/v1alpha1 kind: Component metadata: name: agent-library description: "Tool-agnostic agent configuration library" annotations: github.com/project-slug: your-username/agent-library spec: type: ai-agent-config lifecycle: production owner: your-name system: personal-ai-agent-platform COMMAND_BLOCK: # Skill: Terraform Plan Use this skill when working with Terraform in the work domain.
Steps 1. Check context — confirm directory and workspace 2. terraform fmt -recursive 3. terraform validate 4. terraform plan -out=tfplan 5. Review plan — summarize what will change 6. Highlight risks — flag any destroys or critical changes 7. Wait for confirmation — never apply without explicit approval ...
Red Flags (Stop and Ask)
- Any resource marked for destruction
- Changes to IAM policies
- Changes to production databases COMMAND_BLOCK: # Skill: Terraform Plan Use this skill when working with Terraform in the work domain.
Steps 1. Check context — confirm directory and workspace 2. terraform fmt -recursive 3. terraform validate 4. terraform plan -out=tfplan 5. Review plan — summarize what will change 6. Highlight risks — flag any destroys or critical changes 7. Wait for confirmation — never apply without explicit approval ...
Red Flags (Stop and Ask)
- Any resource marked for destruction
- Changes to IAM policies
- Changes to production databases COMMAND_BLOCK: # Skill: Terraform Plan Use this skill when working with Terraform in the work domain.
Steps 1. Check context — confirm directory and workspace 2. terraform fmt -recursive 3. terraform validate 4. terraform plan -out=tfplan 5. Review plan — summarize what will change 6. Highlight risks — flag any destroys or critical changes 7. Wait for confirmation — never apply without explicit approval ...
Red Flags (Stop and Ask)
- Any resource marked for destruction
- Changes to IAM policies
- Changes to production databases COMMAND_BLOCK: # Step 1: Clone the three repos mkdir -p ~/repos && cd ~/repos git clone [email protected]:your-username/agent-library.git git clone [email protected]:your-username/agent-setup.git git clone [email protected]:your-username/resource-catalog.git # Step 2: Deploy cd agent-setup && bash setup.sh # Step 3: Verify cd ~/repos/work/terraform && your-agent "What context am I in?" # → Agent responds with terraform-specific context ✓ COMMAND_BLOCK: # Step 1: Clone the three repos mkdir -p ~/repos && cd ~/repos git clone [email protected]:your-username/agent-library.git git clone [email protected]:your-username/agent-setup.git git clone [email protected]:your-username/resource-catalog.git # Step 2: Deploy cd agent-setup && bash setup.sh # Step 3: Verify cd ~/repos/work/terraform && your-agent "What context am I in?" # → Agent responds with terraform-specific context ✓ COMMAND_BLOCK: # Step 1: Clone the three repos mkdir -p ~/repos && cd ~/repos git clone [email protected]:your-username/agent-library.git git clone [email protected]:your-username/agent-setup.git git clone [email protected]:your-username/resource-catalog.git # Step 2: Deploy cd agent-setup && bash setup.sh # Step 3: Verify cd ~/repos/work/terraform && your-agent "What context am I in?" # → Agent responds with terraform-specific context ✓
- Ad-hoc: No configuration, just prompting. Works for one-off tasks, but the agent has no memory of your stack, your conventions, or your constraints.
- Single-file config: One big AGENTS.md or CLAUDE.md at the root of a repo. Better, but it doesn't scale — the same instructions get injected everywhere, regardless of whether they're relevant, and they live in one repo while you work across twenty. - 6 global skills - 1 domain skill (infrastructure-review) - 1 directory skill (terraform-plan)
- Everything is in git. No local-only configuration that can be lost.
- The brain is separate from the tool. Reinstalling the tool doesn't lose the intelligence.
- The manifest declares everything. library.yaml is the complete description of the system — setup.sh just executes it.
- Extensions (next): Custom tools for things like catalog lookup, repo navigation, and library sync directly from the terminal
- MCP integration: Model Context Protocol servers for deeper, structured tool integrations — giving agents access to live data sources, not just static instructions
- Multi-agent orchestration: The ability to spawn specialized agents in parallel for complex tasks — one reads the codebase, another implements, another validates. This is the direction Stripe's Minions move in, and this architecture is specifically designed so the layer system can feed each specialized agent exactly the context it needs, nothing more
- Centralized distribution: Moving from local symlinks to a pull-based model where any machine or CI environment can fetch the latest agent configuration from agent-library automatically