agent-command-authoring

Create Claude Code and OpenCode commands that delegate to subagents.

15|2|Updated Aug 16, 2025
One-click install
npx skills add https://github.com/aspiers/ai-config --skill agent-command-authoring
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agent-command-authoring
Source: https://github.com/aspiers/ai-config/tree/main/.claude/skills/agent-command-authoring
Command: npx skills add https://github.com/aspiers/ai-config --skill agent-command-authoring

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Streamlines the creation and maintenance of commands by enforcing a delegation-based pattern where Claude Code and OpenCode commands delegate to subagents, enabling consistent, scalable automation.

Core Features & Use Cases

  • Thin wrapper commands that delegate to specialized subagents, reducing duplication.
  • Cross-platform consistency by aligning Claude Code and OpenCode implementations under a single delegation pattern.
  • Use Case: rapidly design a new command that routes tasks through a subagent to execute the work, while keeping the command surface lightweight.

Quick Start

Create a new Claude Code command and a matching OpenCode command that delegate to a subagent.

Frequently Asked Questions about agent-command-authoring

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create Claude Code slash commands that delegate to subagents?

To create Claude Code slash commands that delegate to subagents, you define a thin wrapper command with appropriate frontmatter that routes the execution workflow to a specialized subagent. This pattern reduces command surface duplication and keeps task routing lightweight.

What is the delegation pattern for OpenCode commands?

The delegation pattern for OpenCode commands is an architecture where lightweight commands act as thin wrappers, routing execution to specialized subagents. This enforces consistent, scalable automation by separating the command interface from the subagent logic and skills.

Can I maintain cross-platform consistency between Claude Code and OpenCode commands?

Yes, you can maintain cross-platform consistency between Claude Code and OpenCode by aligning both implementations under a single delegation pattern. This ensures commands route tasks through subagents uniformly, reducing duplication and streamlining maintenance.

How do I refactor existing Claude Code commands to use a subagent workflow?

To refactor existing Claude Code commands to use a subagent workflow, you restructure the command into a thin wrapper that delegates execution to a subagent. This requires updating the frontmatter and documenting the new workflow from command to subagent to skill.

What's the best way to reduce command duplication when building Claude Code subagents?

The best way to reduce command duplication when building Claude Code subagents is to enforce a delegation-based pattern. By making commands thin wrappers that delegate to specialized subagents, you centralize logic and scale automation consistently across platforms.