subagent-authoring

Author and refactor OpenCode subagent Markdown files with required frontmatter fields.

1|Updated Jun 1, 2025
One-click install
npx skills add https://github.com/rcdailey/dotfiles --skill subagent-authoring-rcdailey
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: subagent-authoring
Source: https://github.com/rcdailey/dotfiles/tree/main/home/dot_config/opencode/exact_skills/subagent-authoring
Command: npx skills add https://github.com/rcdailey/dotfiles --skill subagent-authoring-rcdailey

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Authors need a clear, repeatable approach to creating, editing, or refactoring OpenCode subagents to avoid misconfigurations and drift.

Core Features & Use Cases

  • Enforces conventions for agent definitions stored under .opencode/agents and global directories.
  • Documents required frontmatter fields (name, description, mode, model, variant, prompt, hidden) and their roles.
  • Provides a structured workflow for safe updates and refactoring of subagents.

Quick Start

Provide a new or edited subagent file in the designated path and validate its frontmatter.

Frequently Asked Questions about subagent-authoring

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

FAQPage Schema
How do I create a valid OpenCode subagent definition?

To create a valid OpenCode subagent definition, place a Markdown file in the .opencode/agents directory and populate the required frontmatter fields including name, description, mode, model, variant, prompt, and hidden to enforce the caller protocol.

What frontmatter fields are required for an OpenCode subagent?

Required frontmatter fields for an OpenCode subagent are name, description, mode, model, variant, prompt, and hidden. Defining these fields enforces the required caller protocol and return contract for valid subagent execution.

How do I safely refactor an existing OpenCode subagent?

Safely refactor an existing OpenCode subagent by applying a structured workflow to update Markdown files in the .opencode/agents directory, validating that frontmatter conventions and the return contract remain intact to prevent configuration drift.

Why does my OpenCode subagent configuration keep failing?

OpenCode subagent configuration fails when Markdown files lack clear conventions or required frontmatter fields like name, description, mode, model, variant, prompt, and hidden, leading to misconfigurations and drift during authoring or refactoring.

Can I store OpenCode subagent definitions in a global directory?

Yes, you can store OpenCode subagent definitions in a global agent directory outside the local .opencode/agents path. The required frontmatter fields, caller protocol, and return contract apply equally to both global and local subagent Markdown files.