Development Guide: Extending the Guild
This guide explains how to add new capabilities to the Rust Agentic system.
Anatomy of a Skill
A Skill is a Markdown file in .github/instructions/ that follows this schema:
- Role Definition: Who is this agent? (e.g., "You are the SQL Specialist").
- Triggers: When should the Router call this agent?
- Philosophy/Constraints: Hard rules (e.g., "Always use prepared statements").
- Patterns: Concrete code snippets.
Adding a New Skill
Scenario: You want to add support for Axum web server development.
- Create the File:
.github/instructions/rust/axum.instructions.md. - Define the Role:
- Update the Router:
- Edit
.github/instructions/rust/multi-agent/index.instructions.md. - Add:
Keywords: "http", "api", "rest", "axum" -> Route: Axum Specialist.
- Edit
- Verify:
- Start a session.
- Ask: "Create a Hello World API."
- Verify the agent outputs:
> ROUTING: Axum Specialist.
Debugging Prompts
If the agent is ignoring your instructions:
- Too much noise? Remove "fluff" text. Keep it telegraphic.
- Conflicting constraints? Check if
Rust Coreis overriding your specific rule. Specific (Skill) should always override General (Core).