From aida-core
Manages Claude Code agent (subagent) definitions including create, validate, version, and list operations using a two-phase API.
npx claudepluginhub joshuarweaver/cascade-ai-ml-agents-misc-2 --plugin oakensoul-aida-core-pluginThis skill uses the workspace's default tool permissions.
Focused management interface for Claude Code agent (subagent)
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Guides building MCP servers enabling LLMs to interact with external services via tools. Covers best practices, TypeScript/Node (MCP SDK), Python (FastMCP).
Generates original PNG/PDF visual art via design philosophy manifestos for posters, graphics, and static designs on user request.
Focused management interface for Claude Code agent (subagent)
definitions. Handles the full lifecycle of agent .md files
and their knowledge/ directories.
This skill activates when:
/aida agent [create|validate|version|list]Parse the command to determine:
create, validate, version, listThe component type is always agent -- no type selection
is needed.
For create operations, use the three-phase orchestration
pattern:
Run the script to infer metadata and get questions:
python {base_directory}/scripts/manage.py \
--get-questions \
--context='{"operation": "create", "description": "user description", "location": "user"}'
Returns:
{
"inferred": {
"name": "inferred-name",
"version": "0.1.0",
"tags": ["custom"],
"base_path": "~/.claude/agents/inferred-name"
},
"questions": [],
"project_context": {
"languages": ["python"],
"frameworks": ["fastapi"]
}
}
Spawn the claude-code-expert agent with complete context
and output contract:
Operation: CREATE
Type: agent
Requirements:
- Name: {inferred.name}
- Description: {user_description}
- Location: {inferred.base_path}
- Project Context: {project_context}
- User Answers: {answers to questions}
Output Format:
Return a JSON object with this exact structure:
{
"validation": {
"passed": true|false,
"issues": [
{
"severity": "error|warning",
"message": "description",
"suggestion": "how to fix"
}
]
},
"files": [
{
"path": "agents/{name}/{name}.md",
"content": "..."
},
{
"path": "agents/{name}/knowledge/index.md",
"content": "..."
}
],
"summary": {
"created": ["list of relative paths"],
"next_steps": ["actionable items for user"]
}
}
Handle agent response:
validation.passed is false with errors:
Pass agent output to Python for file creation:
python {base_directory}/scripts/manage.py \
--execute \
--context='{"operation": "create", "agent_output": <agent_json>}'
The script:
knowledge/)For validate operations:
Script invocation:
# Validate specific agent
python {base_directory}/scripts/manage.py --execute \
--context='{"operation": "validate", "name": "my-agent"}'
# Validate all agents
python {base_directory}/scripts/manage.py --execute \
--context='{"operation": "validate", "all": true, "location": "all"}'
For version operations:
Script invocation:
python {base_directory}/scripts/manage.py --execute \
--context='{"operation": "version", "name": "my-agent", "bump": "patch"}'
For list operations:
Script invocation:
python {base_directory}/scripts/manage.py --execute \
--context='{"operation": "list", "location": "all", "format": "table"}'
Base Directory: Provided when skill loads via
<command-message> tags.
Script Execution:
{base_directory}/scripts/manage.py
Reference Files:
{base_directory}/references/create-workflow.md
{base_directory}/references/validate-workflow.md
{base_directory}/references/schemas.md
| Location | Path | Use Case |
|---|---|---|
user | ~/.claude/ | Personal agents |
project | ./.claude/ | Project-specific agents |
plugin | Custom path | Plugin development |
User: /aida agent create "handles database migrations"
1. Parse: operation=create, description="handles database migrations"
2. Phase 1 (Python):
python manage.py --get-questions --context='{...}'
Returns:
- inferred: name="database-migration", version="0.1.0"
- questions: [location question]
- project_context: {languages: ["python"]}
3. Ask user questions (if any):
"Where should we create this agent?"
4. Phase 2 (Agent):
Spawn claude-code-expert with context + output contract
Agent returns JSON with files array
5. Phase 3 (Python):
python manage.py --execute --context='{"operation": "create", "agent_output": {...}}'
- Validates structure
- Creates directories + knowledge/
- Writes files
6. Report to user:
"Created agent 'database-migration' with 3 files"