Extending Your Agent
Цей контент ще не доступний вашою мовою.
Soleri agents have two layers:
- Agent folder (
agent.yaml,instructions/,workflows/,knowledge/,skills/). Plain files you edit directly. - Knowledge Engine (
@soleri/core). Vault, brain, planner, curator, loops, governance. Updated via engine upgrades.
Extensions are additive. You edit your agent folder, the engine handles persistence and learning.
Adding instructions
Section titled “Adding instructions”Drop a new .md file in instructions/. It gets picked up in CLAUDE.md on the next regeneration.
instructions/ _engine.md # Auto-generated engine rules (don't edit) domain.md # Your domain-specific rules api-conventions.md # ← Add thisExample instructions/api-conventions.md:
# API Conventions
- All endpoints return JSON with `{ data, error, meta }` envelope- Use plural nouns for resource URLs: `/users`, not `/user`- Version via URL prefix: `/v1/users`- Rate limit headers on every responseRun soleri dev and CLAUDE.md regenerates automatically when you save.
Adding workflows
Section titled “Adding workflows”Create a folder in workflows/ with up to 3 files:
workflows/ feature-dev/ # Existing migration/ # ← New workflow prompt.md # Step-by-step instructions gates.yaml # Checkpoints and acceptance criteria tools.yaml # MCP tools this workflow usesExample workflows/migration/prompt.md:
# Database Migration
## When to Use
When creating or modifying database schemas.
## Steps
### 1. Plan
- Search vault for migration patterns: `op:search_intelligent`- Create migration plan: `op:orchestrate_plan`
### 2. Write Migration
- Create reversible migration (up + down)- Test on a copy of production data
### 3. Verify
- Run migration against test database- Verify data integrity
### 4. Capture
- Capture any patterns learned: `op:capture_knowledge`Adding knowledge
Section titled “Adding knowledge”Drop JSON bundles in knowledge/. The engine seeds them into the vault on startup.
{ "domain": "api-design", "version": "1.0.0", "entries": [ { "type": "pattern", "title": "Pagination with cursor-based tokens", "description": "Use opaque cursor tokens instead of offset/limit for stable pagination across inserts.", "category": "api-design", "severity": "warning", "tags": ["pagination", "api", "performance"] } ]}Adding domain packs
Section titled “Adding domain packs”Domain packs are community packages that add specialized ops and knowledge. Install via CLI or npm:
soleri pack add domain-design# or: npm install @soleri/domain-designThen add to agent.yaml:
packs: - name: design package: '@soleri/domain-design' - name: security package: '@my-org/domain-security'The engine loads these at startup and registers their tools. Browse what’s available with soleri pack registry, or create your own with npm create soleri-pack <name>.
Adding skills
Section titled “Adding skills”Create a folder in skills/ with a SKILL.md file:
skills/ my-workflow/ SKILL.mdSkills use the standard SKILL.md format with YAML frontmatter.
What NOT to edit
Section titled “What NOT to edit”| File | Why |
|---|---|
CLAUDE.md | Auto-generated from folder contents |
instructions/_engine.md | Auto-generated engine rules |
AGENTS.md | Auto-generated for OpenCode/Codex |
All your customization goes in agent.yaml, instructions/, workflows/, knowledge/, and skills/.
Upgrading the engine
Section titled “Upgrading the engine”The engine is a separate MCP server, so you upgrade it independently:
npm update @soleri/core -g # Update engine globallysoleri dev # Restart with new engineEngine upgrades don’t touch your agent folder.
Extension commands
Section titled “Extension commands”| Command | What it does |
|---|---|
soleri install | Register agent’s engine as MCP server |
soleri dev | Start engine + watch files for changes |
soleri doctor | Check system health and connectivity |
soleri pack install <pack> | Install a domain or knowledge pack |
soleri add-domain <name> | Add a knowledge domain |
Full command docs at CLI Reference. Configuration details at Customizing Your Agent.
Related
Section titled “Related”- Creating Packs for building and publishing your own packs
- Skills Catalog for browsing available skills
- Domain Packs for specialized intelligence modules