agent-manager
Manages Claude Code agent (subagent) definitions including create, validate, version, and list operations using a two-phase API.
What this skill does
<!-- SPDX-FileCopyrightText: 2026 The AIDA Core Authors -->
<!-- SPDX-License-Identifier: MPL-2.0 -->
# Agent Manager
Focused management interface for Claude Code agent (subagent)
definitions. Handles the full lifecycle of agent `.md` files
and their `knowledge/` directories.
## Activation
This skill activates when:
- User invokes `/aida agent [create|validate|version|list]`
- Agent management is needed
## Operations
### Command Routing
Parse the command to determine:
1. **Operation**: `create`, `validate`, `version`, `list`
2. **Arguments**: name, description, options
The component type is always `agent` -- no type selection
is needed.
### Create Operations
For `create` operations, use the **three-phase orchestration
pattern**:
#### Phase 1: Gather Context (Python)
Run the script to infer metadata and get questions:
```bash
python {base_directory}/scripts/manage.py \
--get-questions \
--context='{"operation": "create", "description": "user description", "location": "user"}'
```
Returns:
```json
{
"inferred": {
"name": "inferred-name",
"version": "0.1.0",
"tags": ["custom"],
"base_path": "~/.claude/agents/inferred-name"
},
"questions": [],
"project_context": {
"languages": ["python"],
"frameworks": ["fastapi"]
}
}
```
#### Phase 2: Generate Content (Agent)
Spawn the `claude-code-expert` agent with complete context
and output contract:
```text
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:**
1. Parse the JSON response
2. If `validation.passed` is false with errors:
- Report issues to user
- Ask if they want to proceed or provide more info
3. If validation passed (or user chose to proceed):
- Continue to Phase 3
#### Phase 3: Write Files (Python)
Pass agent output to Python for file creation:
```bash
python {base_directory}/scripts/manage.py \
--execute \
--context='{"operation": "create", "agent_output": <agent_json>}'
```
The script:
1. Validates file structure (required fields, frontmatter)
2. Creates directories (including `knowledge/`)
3. Writes files
4. Returns success/failure
### Validate Operations
For `validate` operations:
1. Run validation script
2. Report results with any errors
**Script invocation:**
```bash
# 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"}'
```
### Version Operations
For `version` operations:
1. Find the agent
2. Bump version (major, minor, or patch)
3. Update the file
4. Report the version change
**Script invocation:**
```bash
python {base_directory}/scripts/manage.py --execute \
--context='{"operation": "version", "name": "my-agent", "bump": "patch"}'
```
### List Operations
For `list` operations:
1. Search specified locations
2. Parse agent metadata from frontmatter
3. Return formatted list
**Script invocation:**
```bash
python {base_directory}/scripts/manage.py --execute \
--context='{"operation": "list", "location": "all", "format": "table"}'
```
## Path Resolution
**Base Directory:** Provided when skill loads via
`<command-message>` tags.
**Script Execution:**
```text
{base_directory}/scripts/manage.py
```
**Reference Files:**
```text
{base_directory}/references/create-workflow.md
{base_directory}/references/validate-workflow.md
{base_directory}/references/schemas.md
```
## Location Options
| Location | Path | Use Case |
| --------- | ------------ | ----------------------- |
| `user` | `~/.claude/` | Personal agents |
| `project` | `./.claude/` | Project-specific agents |
| `plugin` | Custom path | Plugin development |
## Example Workflow
### Creating an Agent (Full Flow)
```text
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"
```
## Resources
### scripts/
- **manage.py** - Entry point for two-phase API
- **operations/** - Operation modules
- **utils.py** - Shared utilities (re-export shim)
- **extensions.py** - Agent operations
### references/
- **create-workflow.md** - Agent creation workflow
- **validate-workflow.md** - Agent validation rules
- **schemas.md** - Agent frontmatter schema
Related in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.