You are authoring a new OpenCode command that implements a specific functionality as requested by the user. You will ensure that the command follows project best practices and conventions, and that it is well-documented and tested.
When To Use
User requests the creation of a new command (e.g., "Create a new command to ", "Author a command that ", "I need a command that ").
Review the command markdown with the user for feedback and make necessary revisions. Do not proceed until the user approves the draft.
Once approved, finalize the command markdown and place in the .opencode/commands directory
Document the command in the README.md file and any other relevant documentation.
Special placeholders supported by OpenCode:
$ARGUMENTS — the full argument string passed to the command.
$1, $2, ... — individual positional arguments.
!command`` — runs a shell command and injects its stdout into the prompt. Use sparingly and document side effects.
@path/to/file — includes the contents of a repository file in the prompt.
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: sorratheorc-sorraagents-command-authoring3description: Author Command4---56# Author Command78## Overview910You are authoring a new OpenCode command that implements a specific functionality as requested by the user. You will ensure that the command follows project best practices and conventions, and that it is well-documented and tested.1112## When To Use1314- User requests the creation of a new command (e.g., "Create a new command to <do something>", "Author a command that <does something>", "I need a command that <does something>").1516## Behavior17181. Review command authoring documentation at https://opencode.ai/docs/commands192. Review example commands at https://claude.ai/public/artifacts/e2725e41-cca5-48e5-9c15-6eab92012e75203. Gather requirements from the user about the desired command functionality, inputs, outputs, and any specific constraints or considerations.214. Draft the command code in markdown format, ensuring it adheres to project coding standards and conventions. Use the format in the examples at in https://claude.ai/public/artifacts/e2725e41-cca5-48e5-9c15-6eab92012e75 225. Review the command markdown with the user for feedback and make necessary revisions. Do not proceed until the user approves the draft.236. Once approved, finalize the command markdown and place in the `.opencode/commands` directory247. Document the command in the README.md file and any other relevant documentation.252627## Special placeholders supported by OpenCode:2829- `$ARGUMENTS` — the full argument string passed to the command.30- `$1`, `$2`, ... — individual positional arguments.31- `!`command`` — runs a shell command and injects its stdout into the prompt. Use sparingly and document side effects.32- `@path/to/file` — includes the contents of a repository file in the prompt.3334---35> Converted and distributed by [TomeVault](https://tomevault.io/claim/sorratheorc) — claim your Tome and manage your conversions.36<!-- tomevault:4.0:skill_md:2026-04-14 -->
Run npx skillmds@latest add tomevault-io/sorratheorc-sorraagents-command-authoring in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Author Command It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.