Loading...
Loading...
Create subagent definitions for Claude Code and OpenCode that delegate to skills. Use when creating new subagents or refactoring existing ones to follow the delegation pattern.
npx skill4agent add aspiers/ai-config subagent-authoring.claude/agents/<name>.md---
name: agent-name
description: Brief description of what the agent does
tools: Read, Grep, Glob, Skill(skill-name), ...
---
Use the `<skill-name>` skill to accomplish this task..config/opencode/agents/<name>.md---
description: Brief description of what the agent does
mode: subagent
tools:
read: true
grep: true
glob: true
skill: true
permission:
bash:
...
---
Use the `<skill-name>` skill to accomplish this task.| Field | Required | Description |
|---|---|---|
| Yes | Agent identifier (lowercase, no spaces) |
| Yes | 1-2 sentence description of what the agent does |
| Yes | List of tools and skills the agent can use |
| No | Specific model to use (e.g., |
ReadWriteEditGrepGlobBashSkill(skill-name)Bash(command:*)# Allow git commit with any arguments
Bash(git commit:*)
# Allow all git commands
Bash(git:*)
# Allow specific script
Bash(~/.agents/skills/my-skill/scripts/helper.py:*)tools: Read, Grep, Glob, Bash(git status:*), Bash(git commit:*), Skill(code-linting)git-committergit-stagercode-lintertest-runnertask-implementergit-commitcommit-helpercommitting-agent-er| Field | Required | Description |
|---|---|---|
| Yes | 1-2 sentence description |
| Yes | Agent mode ( |
| Yes | Map of tool names to boolean enablement |
| Yes | Map of tool categories to permission rules |
tools:
read: true
grep: true
glob: true
bash: true
edit: false
write: false
skill: true| Claude Tool | OpenCode Equivalent |
|---|---|
| |
| |
| |
| |
| |
| |
| |
Use the `<skill-name>` skill to accomplish this task.---
name: code-linter
description: Code linting specialist
tools: Read, Grep, Glob, Bash, Skill(code-linting)
---
Use the `code-linting` skill to run linters.---
description: Code linting specialist
mode: subagent
tools:
read: true
grep: true
glob: true
bash: true
skill: true
---
Use the `code-linting` skill to run linters.---
description: Run tests
mode: subagent
tools:
bash: true
read: true
grep: true
glob: true
skill: true
permission:
bash:
"*": "ask"
"pytest *": "allow"
"npm test": "allow"
"git status": "allow"
"git commit *": "allow"
---
Use the `test-running` skill to run tests.---
description: Orchestrates development workflow
mode: primary
tools:
read: true
write: true
edit: true
bash: true
grep: true
glob: true
todowrite: true
todoread: true
---
Use the `task-orchestration` skill to orchestrate the development workflow.| Mode | Use When |
|---|---|
| Agent is invoked by another agent or command |
| Agent is the main agent handling the conversation |
---
name: code-linter
description: Code linting specialist
tools: Read, Grep, Glob, Bash
---
You are a senior code reviewer responsible for ensuring that code changes pass
all linters...
## When to Use This Agent PROACTIVELY
Always use immediately after:
- Creating new source code files
- Modifying existing code...
## What This Agent Does
1. **Discovers** all appropriate linters...
2. **Runs** formatting checks...
3. **Auto-fixes** issues...
4. **Reports** remaining issues...
## Linting Process
Run linters according to repository guidelines. First look for linting
commands in the following order:
...---
name: code-linter
description: Code linting specialist
tools: Read, Grep, Glob, Bash, Skill(code-linting)
---
Use the `code-linting` skill to run linters.agent-command-authoringskill-authoring