Branch skill for building and improving categories. Use when creating new categories, validating category structure, improving existing categories, or migrating categories to new standard...
Build and improve categories following the category-management policy.
Primary policy: JARVIS-01 ā .claude/skills/category-management/SKILL.md
This branch executes the policy defined by JARVIS-01. Always sync with Primary before major operations.
Task Received
ā
āāā Create new category? āāāāāāāāāāāā> Workflow 1: Build
ā
āāā Fix existing category? āāāāāāāāāā> Workflow 2: Improve
ā
āāā Validate category? āāāāāāāāāāāāāā> Validation Checklist
ā
āāā Migrate to new standard? āāāāāāāā> Workflow 3: Migrate
ā
āāā Self-improvement cycle? āāāāāāāāā> Self-Improvement Process
Each JARVIS category maintains effective configuration through:
CLAUDE.md - Main Agent instructions at category root.claude/settings.json - Tool permissions and MCP configurations.claude/mcp.json - MCP server definitions (Execution layer).claude/skills/ - Primary Skill defining category policyplugins/ - 4-Plugin Architecture| Range | Layer | Purpose | Example |
|---|---|---|---|
| 00-10 | Management | Build ecosystem infrastructure | JARVIS-07 MCP-Manager |
| 11+ | Execution | Control external system | JARVIS-11 Cloudflare |
Decision criteria:
# Check existing categories
ls -d JARVIS-* | sort -t'-' -k2 -n
# Create all directories at once
mkdir -p JARVIS-XX-Name/{.claude/skills/[name]-management/references,plugins/{orchestrator,dev,bigquery-[name],category-[name]},TASKS}
Expected structure:
JARVIS-XX-Category-Name/
āāā CLAUDE.md <- Category identity (REQUIRED)
āāā .claude/
ā āāā settings.json <- Tool permissions
ā āāā mcp.json <- MCP config (Execution layer)
ā āāā skills/
ā āāā [name]-management/ <- Primary Skill
ā āāā SKILL.md <- REQUIRED
ā āāā references/ <- Optional details
āāā plugins/ <- 4 Plugins (REQUIRED)
ā āāā orchestrator/ <- Shared - task routing
ā āāā dev/ <- Shared - self-improvement
ā āāā bigquery-[name]/ <- Template - data access
ā āāā category-[name]/ <- Unique - domain logic
āāā TASKS/ <- Task tracking
āāā TASK-XX-[name]/
āāā README.md
Minimal Template (for new categories):
# JARVIS-XX-CategoryName
## Role
[One sentence describing primary function]
## Responsibilities
- [Key responsibility 1]
- [Key responsibility 2]
- [Key responsibility 3]
## MCP Servers
| Server | Location | Purpose |
|--------|----------|---------|
| vault | VPS | Secrets management |
| supabase-common | CloudRun | Database access |
## Quick Reference
[Most common commands or patterns]
Full Template (for mature categories):
# JARVIS-XX-CategoryName
## Role
[Category's primary function and domain expertise]
## Responsibilities
- [Responsibility 1]
- [Responsibility 2]
- [Responsibility 3]
## MCP Servers
| Server | Location | Purpose |
|--------|----------|---------|
| server1 | VPS/CloudRun/Local | Description |
## Schemas (if database access)
| Schema | Purpose |
|--------|---------|
| schema1 | Description |
## Common Tasks
### Task Type 1
[Step-by-step instructions]
### Task Type 2
[Step-by-step instructions]
## Best Practices
- [Practice 1]
- [Practice 2]
## Integration Points
- **Category XX**: [How they interact]
- **Category YY**: [How they interact]
## Learnings
- [Learning 1 from previous conversations]
- [Learning 2]
## Changelog
- YYYY-MM-DD: [Change description]
Management Layer Template:
# JARVIS-XX-CategoryName
## Role
[Category function] for the JARVIS AI Ecosystem.
## Responsibilities
- Define [domain] policy for all categories
- Maintain [domain] standards
- Support categories in [domain] tasks
## Integration
- **Plugin-dev branch**: [branch-name]
- **Primary Skill**: [skill-name]-management
## Quick Reference
[Most common operations for this category]
Execution Layer Template:
# JARVIS-XX-CategoryName
## Role
Control [External System] via MCP with full coverage.
## Responsibilities
- Manage [System] resources
- Automate [System] operations
- Monitor [System] status
## MCP Servers
| Server | Location | Coverage | Purpose |
|--------|----------|----------|---------|
| [name] | CloudRun | 90%+ | [Description] |
## Schemas (BigQuery)
| Schema | Purpose |
|--------|---------|
| jarvis_XX_[name] | [Data stored] |
## Quick Reference
[Most common MCP operations]
.claude/settings.json in category root
{
"permissions": {
"allow": [],
"deny": []
}
}
{
"permissions": {
"allow": [
"Bash(npm:*)",
"Bash(git:*)",
"mcp__vault__*"
],
"deny": [
"Bash(rm -rf:*)"
]
},
"mcpServers": {
"vault": {
"command": "npx",
"args": ["-y", "@anthropic/mcp-vault"],
"env": {
"VAULT_ADDR": "${VAULT_ADDR}"
}
}
}
}
| Pattern | Meaning |
|---|---|
Bash(npm:*) |
Allow npm commands |
Bash(git:*) |
Allow git commands |
mcp__server__* |
Allow all tools from MCP server |
mcp__server__tool |
Allow specific MCP tool |
Read(path/**) |
Allow reading from path |
Write(path/**) |
Allow writing to path |
Follow skills-manager for full details. Minimum:
---
name: [category]-management
description: "This skill [function]. Use when [conditions]. Triggers: '[trigger1]', '[trigger2]'."
---
# [Category] Management - JARVIS-XX
[Core concept in 2-3 sentences]
## When to Use This Skill
- [Condition 1]
- [Condition 2]
## Core Workflows
### Workflow 1: [Name]
1. [Step]
2. [Step]
## Validation Checklist
- [ ] [Check 1]
- [ ] [Check 2]
## Reference Files
- [references/detail.md](references/detail.md) - [Description]
| Plugin | Action |
|---|---|
| orchestrator | Copy from shared source (identical) |
| dev | Copy from shared source (identical) |
| bigquery-[name] | Create from template, update table list |
| category-[name] | Create custom with domain agents/skills |
Use plugins-manager for detailed plugin creation.
Work with JARVIS-07 to:
Run full validation checklist (see below).
Categories should run self-improvement periodically to maintain effectiveness.
1. Analyze Current State
āāā Read CLAUDE.md
āāā Read settings.json
āāā Review recent patterns
2. Identify Improvements
āāā Missing instructions
āāā Outdated information
āāā Permission gaps
āāā New learnings
3. Apply Changes
āāā Update CLAUDE.md
āāā Update settings.json
āāā Document changes
4. Validate
āāā Test configurations
āāā Verify no breakage
CLAUDE.md:
Settings.json:
# Run category audit
ls -la JARVIS-XX-Name/
cat JARVIS-XX-Name/CLAUDE.md
cat JARVIS-XX-Name/.claude/skills/*/SKILL.md
ls JARVIS-XX-Name/plugins/
| Component | Check | Common Issues |
|---|---|---|
| CLAUDE.md | Exists? Up to date? | Missing MCP docs, outdated responsibilities |
| Primary Skill | Complete? References? | Missing triggers, no validation checklist |
| settings.json | Permissions correct? | Missing MCP tool permissions |
| 4 Plugins | All present? | Missing plugin directories |
| mcp.json | Configured? (Execution) | Wrong server URLs |
Priority order:
Create task record:
# TASK-XX-Category-Improvement
## Date: YYYY-MM-DD
## Changes Made
- [ ] Updated CLAUDE.md with [changes]
- [ ] Added missing [component]
- [ ] Fixed [issue]
## Validation
- [ ] All checks pass
- [ ] Tested functionality
When category structure policy changes:
JARVIS-XX-Name (XX = 2-digit number).claude/settings.json exists and valid JSON.claude/mcp.json exists (if Execution layer).claude/skills/[name]-management/SKILL.mdplugins/orchestrator/ existsplugins/dev/ existsplugins/bigquery-[name]/ existsplugins/category-[name]/ exists.claude-plugin/plugin.json| Issue | Diagnosis | Fix |
|---|---|---|
| Missing CLAUDE.md | ls JARVIS-XX/CLAUDE.md returns nothing |
Create from template above |
| Wrong layer number | Category 15 doing management work | Renumber or reassign responsibilities |
| No Primary Skill | .claude/skills/ empty |
Create following skills-manager |
| Missing plugins | ls plugins/ shows < 4 dirs |
Create missing plugin directories |
| Outdated content | CLAUDE.md references old tools | Update with current MCP tools |
| No mcp.json | Execution category without MCP | Work with JARVIS-07 to create |
Categories can track metrics in BigQuery for analytics and improvement:
bigquery.jarvis_analytics.
āāā jarvis_XX_conversations # Conversation logs
āāā jarvis_XX_improvements # Improvement history
āāā jarvis_XX_metrics # Performance metrics
Use bigquery-[name] plugin for data access.
Before executing any workflow: