author-command
Auhors a brand new OpenCode command following project best practices and conventions. Trigger on user queries such as: 'Create a new command to <do something>', 'Author a command that <does something>', 'I need a command that <does something>'.
Installation
Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.
View source ↗GuidesSkill instructions
Author Command
Overview
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 ").
Behavior
- Review command authoring documentation at https://opencode.ai/docs/commands
- Review example commands at https://claude.ai/public/artifacts/e2725e41-cca5-48e5-9c15-6eab92012e75
- Gather requirements from the user about the desired command functionality, inputs, outputs, and any specific constraints or considerations.
- 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
- 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/commandsdirectory - Document the command in the README.md file and any other relevant documentation.
Examples
Read the usage examples in the source repository.
View source ↗Source history
- Indexed on
- 2026-01-20
- Index updated
- 2026-01-26
- Branch
- main
Index and sync dates describe this directory. View the source repository for code history.
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!