[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CTHPZHR2QYHMM91AGG6041":3,"skill-same:01M7CTHPZHR2QYHMM91AGG6041":55},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M7CTHPZHR2QYHMM91AGG6041","command-creation-guide",null,"Guidelines for creating effective OpenCode commands. Covers JSON command templates, Markdown body templates, frontmatter fields, and best practices. Load when creating or updating commands.","xiaden\u002FSkyScow","xiaden","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F3605480?v=4","01M7CTGKNTD1XNQE710J977HVD","Lucian Hardy","01M7CTGKPVQ3XRNXNRJ3A6E31F",1,"MIT","https:\u002F\u002Fgithub.com\u002Fxiaden\u002FSkyScow\u002Fblob\u002Fmain\u002Fconfig\u002Fskills\u002Fcommand-creation-guide\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: command-creation-guide\ndescription: Guidelines for creating effective OpenCode commands. Covers JSON command templates, Markdown body templates, frontmatter fields, and best practices. Load when creating or updating commands.\n---\n\n# Command Creation Guide for OpenCode\n\nCommands are reusable prompts that guide OpenCode to deliver consistent, high-quality outcomes. They appear in the command palette and can be invoked with `\u002Fcommand-name`.\n\n## When to Use This Skill\n\n**Trigger:** creating a new command, editing an existing command, or asked about command conventions.\n\n**Do NOT use this skill when:**\n- Creating an agent definition (use `customize-opencode`)\n- Creating a skill (use `making-editing-skills`)\n\n\n## What Are Commands?\n\nKey characteristics:\n\n- **Reusable**: Define once, use many times across sessions\n- **Consistent**: Ensure the same quality and approach every time\n- **Discoverable**: Appear in command palette with descriptions\n- **Configurable**: Can specify an agent and model\n\n## Command Definition\n\nCommands can be defined in two ways:\n\n### 1. Standalone Markdown Files (Recommended)\n\nCreate `.md` files in a `commands\u002F` directory. The filename becomes the command name.\n\n**Locations:**\n- Global: `~\u002F.config\u002Fopencode\u002Fcommands\u002F`\n- Per-project: `.opencode\u002Fcommands\u002F`\n\n**Format:**\n```markdown\n---\ndescription: What this command does\nagent: build\nmodel: anthropic\u002Fclaude-sonnet-4-20250514\n---\n\nThe actual prompt text. Use $ARGUMENTS to reference the user's input.\n```\n\n**Example — `~\u002F.config\u002Fopencode\u002Fcommands\u002Freview-pr.md`:**\n```markdown\n---\ndescription: Review a pull request for code quality and best practices\nagent: build\n---\n\nReview pull request #$ARGUMENTS:\n\n1. Fetch the PR details\n2. Read all changed files\n3. Check for code quality, security, and test coverage\n4. Provide specific, actionable feedback\n```\n\nInvoke with: `\u002Freview-pr 123`\n\n**Subdirectories** create namespaced commands:\n```\n~\u002F.config\u002Fopencode\u002Fcommands\u002F\n├── git\u002F\n│   ├── commit.md      → \u002Fgit\u002Fcommit\n│   └── pr.md          → \u002Fgit\u002Fpr\n└── testing\u002F\n    └── unit.md        → \u002Ftesting\u002Funit\n```\n\n### 2. Inline in opencode.json\n\nCommands can also be defined inline under the `command` key. Every JSON command\nrequires a `template`; `description` is optional metadata shown in command lists.\n\n```json\n{\n  \"command\": {\n    \"command-name\": {\n      \"description\": \"What this command does\",\n      \"template\": \"The prompt template sent to the agent...\",\n      \"agent\": \"build\",\n      \"model\": \"anthropic\u002Fclaude-sonnet-4-20250514\",\n      \"subtask\": true\n    }\n  }\n}\n```\n\nPrefer standalone files — they're easier to version, share, and maintain.\n\n## Command Fields\n\nMarkdown frontmatter and JSON command entries share metadata fields, except that\nMarkdown gets its required `template` from the trimmed body. Do not put a\n`template` key in Markdown frontmatter.\n\n| Field | Required | Where | Description |\n|-------|----------|-------|-------------|\n| `template` | JSON only | JSON entry or Markdown body | The prompt template sent to the agent |\n| `description` | No | Frontmatter or JSON entry | Optional text shown in command lists and discovery |\n| `agent` | No | Frontmatter or JSON entry | Agent selected when the command runs |\n| `model` | No | Frontmatter or JSON entry | Model override in `provider\u002Fmodel` format |\n| `variant` | No | Frontmatter or JSON entry | Model variant override |\n| `subtask` | No | Frontmatter or JSON entry | Whether to force execution as a subagent |\n\n## Template Structure\n\nThe template is the prompt submitted when the command runs. Markdown uses its\ntrimmed body as the template; JSON uses the required `template` string.\n\n### Using Arguments\n\nCommands accept arguments via `$ARGUMENTS`. Everything after the command name becomes the argument string.\n\nInvocation: `\u002Ffix-issue 123` → `$ARGUMENTS` = `\"123\"`\n\n### Prompt Writing Guidelines\n\n1. **Start with a clear directive**: \"Create\", \"Fix\", \"Review\", \"Generate\"\n2. **Provide context**: What information does the agent need?\n3. **Define the workflow**: Step-by-step instructions\n4. **Specify outputs**: Where should results be saved?\n5. **Include validation**: How to verify success?\n\nFor concrete JSON examples of working commands, see [`references\u002Fpatterns.md`](file:\u002F\u002F\u002Fhome\u002Fopencode\u002F.config\u002Fopencode\u002Fskills\u002Fcommand-creation-guide\u002Freferences\u002Fpatterns.md).\n\n## Best Practices\n\n### Description\n\nWrite clear, actionable descriptions that explain:\n- **What** the command does\n- **When** to use it\n- **Keywords** users might search for\n\n| Quality | Example |\n|---------|---------|\n| **Good** | `\"Create a detailed implementation plan for a feature with requirements, technical approach, and testing strategy\"` |\n| **Poor** | `\"Makes a plan\"` |\n\n### Agent Selection\n\nChoose the appropriate agent:\n\n- **build**: For commands that make changes (edit files, run commands)\n- **plan**: For commands that analyze or plan without making changes\n- **Custom agents**: For specialized tasks (e.g., `security-auditor`, `test-generator`)\n\n### Model Selection\n\nOverride the model only when the task genuinely benefits from a different capability tier. Use faster\u002Fcheaper models for simple summarization tasks, and more capable models for complex analysis.\n\n## Maintenance\n\n- Review when workflows change\n- Update when tools are added\u002Fremoved\n- Commit command definitions to git\n- Document changes in commit messages\n\n## Validation Checklist\n\nBefore committing a command:\n\n- [ ] The Markdown body or JSON `template` provides clear, step-by-step instructions\n- [ ] `description` is included when command-list metadata is useful\n- [ ] `agent` is appropriate for the task\n- [ ] `model` is overridden only when necessary\n- [ ] `subtask` is used only when background execution is intended\n- [ ] Arguments are used correctly (if applicable)\n- [ ] Command has been tested with representative inputs\n- [ ] Output location\u002Fformat is specified\n- [ ] Validation steps are included\n\n## References\n\n- **This skill's references:**\n  - [`references\u002Fpatterns.md`](file:\u002F\u002F\u002Fhome\u002Fopencode\u002F.config\u002Fopencode\u002Fskills\u002Fcommand-creation-guide\u002Freferences\u002Fpatterns.md) — Full JSON examples for common patterns (basic, code generation, debugging, documentation, multi-step workflow, conditional logic)\n  - [`references\u002Ftroubleshooting.md`](file:\u002F\u002F\u002Fhome\u002Fopencode\u002F.config\u002Fopencode\u002Fskills\u002Fcommand-creation-guide\u002Freferences\u002Ftroubleshooting.md) — Command not appearing, command fails, command too slow\n- **Canonical source:** \u003Chttps:\u002F\u002Fgithub.com\u002Fanomalyco\u002Fopencode\u002Fblob\u002Fv1.18.31\u002Fpackages\u002Fweb\u002Fsrc\u002Fcontent\u002Fdocs\u002Fcommands.mdx> — the command format shipped by this repository's pinned OpenCode version\n- **Related skills:** `customize-opencode`, `making-editing-skills`\n","# Command Creation Guide for OpenCode\n\nCommands are reusable prompts that guide OpenCode to deliver consistent, high-quality outcomes. They appear in the command palette and can be invoked with `\u002Fcommand-name`.\n\n## When to Use This Skill\n\n**Trigger:** creating a new command, editing an existing command, or asked about command conventions.\n\n**Do NOT use this skill when:**\n- Creating an agent definition (use `customize-opencode`)\n- Creating a skill (use `making-editing-skills`)\n\n\n## What Are Commands?\n\nKey characteristics:\n\n- **Reusable**: Define once, use many times across sessions\n- **Consistent**: Ensure the same quality and approach every time\n- **Discoverable**: Appear in command palette with descriptions\n- **Configurable**: Can specify an agent and model\n\n## Command Definition\n\nCommands can be defined in two ways:\n\n### 1. Standalone Markdown Files (Recommended)\n\nCreate `.md` files in a `commands\u002F` directory. The filename becomes the command name.\n\n**Locations:**\n- Global: `~\u002F.config\u002Fopencode\u002Fcommands\u002F`\n- Per-project: `.opencode\u002Fcommands\u002F`\n\n**Format:**\n```markdown\n---\ndescription: What this command does\nagent: build\nmodel: anthropic\u002Fclaude-sonnet-4-20250514\n---\n\nThe actual prompt text. Use $ARGUMENTS to reference the user's input.\n```\n\n**Example — `~\u002F.config\u002Fopencode\u002Fcommands\u002Freview-pr.md`:**\n```markdown\n---\ndescription: Review a pull request for code quality and best practices\nagent: build\n---\n\nReview pull request #$ARGUMENTS:\n\n1. Fetch the PR details\n2. Read all changed files\n3. Check for code quality, security, and test coverage\n4. Provide specific, actionable feedback\n```\n\nInvoke with: `\u002Freview-pr 123`\n\n**Subdirectories** create namespaced commands:\n```\n~\u002F.config\u002Fopencode\u002Fcommands\u002F\n├── git\u002F\n│   ├── commit.md      → \u002Fgit\u002Fcommit\n│   └── pr.md          → \u002Fgit\u002Fpr\n└── testing\u002F\n    └── unit.md        → \u002Ftesting\u002Funit\n```\n\n### 2. Inline in opencode.json\n\nCommands can also be defined inline under the `command` key. Every JSON command\nrequires a `template`; `description` is optional metadata shown in command lists.\n\n```json\n{\n  \"command\": {\n    \"command-name\": {\n      \"description\": \"What this command does\",\n      \"template\": \"The prompt template sent to the agent...\",\n      \"agent\": \"build\",\n      \"model\": \"anthropic\u002Fclaude-sonnet-4-20250514\",\n      \"subtask\": true\n    }\n  }\n}\n```\n\nPrefer standalone files — they're easier to version, share, and maintain.\n\n## Command Fields\n\nMarkdown frontmatter and JSON command entries share metadata fields, except that\nMarkdown gets its required `template` from the trimmed body. Do not put a\n`template` key in Markdown frontmatter.\n\n| Field | Required | Where | Description |\n|-------|----------|-------|-------------|\n| `template` | JSON only | JSON entry or Markdown body | The prompt template sent to the agent |\n| `description` | No | Frontmatter or JSON entry | Optional text shown in command lists and discovery |\n| `agent` | No | Frontmatter or JSON entry | Agent selected when the command runs |\n| `model` | No | Frontmatter or JSON entry | Model override in `provider\u002Fmodel` format |\n| `variant` | No | Frontmatter or JSON entry | Model variant override |\n| `subtask` | No | Frontmatter or JSON entry | Whether to force execution as a subagent |\n\n## Template Structure\n\nThe template is the prompt submitted when the command runs. Markdown uses its\ntrimmed body as the template; JSON uses the required `template` string.\n\n### Using Arguments\n\nCommands accept arguments via `$ARGUMENTS`. Everything after the command name becomes the argument string.\n\nInvocation: `\u002Ffix-issue 123` → `$ARGUMENTS` = `\"123\"`\n\n### Prompt Writing Guidelines\n\n1. **Start with a clear directive**: \"Create\", \"Fix\", \"Review\", \"Generate\"\n2. **Provide context**: What information does the agent need?\n3. **Define the workflow**: Step-by-step instructions\n4. **Specify outputs**: Where should results be saved?\n5. **Include validation**: How to verify success?\n\nFor concrete JSON examples of working commands, see [`references\u002Fpatterns.md`](file:\u002F\u002F\u002Fhome\u002Fopencode\u002F.config\u002Fopencode\u002Fskills\u002Fcommand-creation-guide\u002Freferences\u002Fpatterns.md).\n\n## Best Practices\n\n### Description\n\nWrite clear, actionable descriptions that explain:\n- **What** the command does\n- **When** to use it\n- **Keywords** users might search for\n\n| Quality | Example |\n|---------|---------|\n| **Good** | `\"Create a detailed implementation plan for a feature with requirements, technical approach, and testing strategy\"` |\n| **Poor** | `\"Makes a plan\"` |\n\n### Agent Selection\n\nChoose the appropriate agent:\n\n- **build**: For commands that make changes (edit files, run commands)\n- **plan**: For commands that analyze or plan without making changes\n- **Custom agents**: For specialized tasks (e.g., `security-auditor`, `test-generator`)\n\n### Model Selection\n\nOverride the model only when the task genuinely benefits from a different capability tier. Use faster\u002Fcheaper models for simple summarization tasks, and more capable models for complex analysis.\n\n## Maintenance\n\n- Review when workflows change\n- Update when tools are added\u002Fremoved\n- Commit command definitions to git\n- Document changes in commit messages\n\n## Validation Checklist\n\nBefore committing a command:\n\n- [ ] The Markdown body or JSON `template` provides clear, step-by-step instructions\n- [ ] `description` is included when command-list metadata is useful\n- [ ] `agent` is appropriate for the task\n- [ ] `model` is overridden only when necessary\n- [ ] `subtask` is used only when background execution is intended\n- [ ] Arguments are used correctly (if applicable)\n- [ ] Command has been tested with representative inputs\n- [ ] Output location\u002Fformat is specified\n- [ ] Validation steps are included\n\n## References\n\n- **This skill's references:**\n  - [`references\u002Fpatterns.md`](file:\u002F\u002F\u002Fhome\u002Fopencode\u002F.config\u002Fopencode\u002Fskills\u002Fcommand-creation-guide\u002Freferences\u002Fpatterns.md) — Full JSON examples for common patterns (basic, code generation, debugging, documentation, multi-step workflow, conditional logic)\n  - [`references\u002Ftroubleshooting.md`](file:\u002F\u002F\u002Fhome\u002Fopencode\u002F.config\u002Fopencode\u002Fskills\u002Fcommand-creation-guide\u002Freferences\u002Ftroubleshooting.md) — Command not appearing, command fails, command too slow\n- **Canonical source:** \u003Chttps:\u002F\u002Fgithub.com\u002Fanomalyco\u002Fopencode\u002Fblob\u002Fv1.18.31\u002Fpackages\u002Fweb\u002Fsrc\u002Fcontent\u002Fdocs\u002Fcommands.mdx> — the command format shipped by this repository's pinned OpenCode version\n- **Related skills:** `customize-opencode`, `making-editing-skills`\n",{"name":5,"description":7},"main","8f95d6b7cbf4ec39161b4e6c8bc5e1493e58003c","config\u002Fskills\u002Fcommand-creation-guide",0,"https:\u002F\u002Fgithub.com\u002Fxiaden\u002FSkyScow","https:\u002F\u002Fgithub.com\u002Fxiaden","2026-09-30 22:33:49",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add xiaden\u002FSkyScow --skill command-creation-guide",{"tool":37,"command":38},"bunx","bunx skills add xiaden\u002FSkyScow --skill command-creation-guide",{"tool":40,"command":41},"pnpm","pnpm dlx skills add xiaden\u002FSkyScow --skill command-creation-guide","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fxiaden\u002FSkyScow\u002Fblob\u002Fmain\u002Fconfig\u002Fskills\u002Fcommand-creation-guide\u002FSKILL.md",true,[45,51],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"references\u002Fpatterns.md","REFERENCE","参考文档",4993,"https:\u002F\u002Fgithub.com\u002Fxiaden\u002FSkyScow\u002Fblob\u002Fmain\u002Fconfig\u002Fskills\u002Fcommand-creation-guide\u002Freferences\u002Fpatterns.md",{"path":52,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":53,"sourceHtmlUrl":54},"references\u002Ftroubleshooting.md",694,"https:\u002F\u002Fgithub.com\u002Fxiaden\u002FSkyScow\u002Fblob\u002Fmain\u002Fconfig\u002Fskills\u002Fcommand-creation-guide\u002Freferences\u002Ftroubleshooting.md",[56,62,69,75,82,89],{"skillNo":57,"name":58,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M7CTNJ49PJ794TEFBCNYYKQM","unquoted-colon","https:\u002F\u002Fgithub.com\u002Fxiaden\u002FSkyScow\u002Fblob\u002Fmain\u002Fconfig\u002Ftools\u002Ftests\u002Ffixtures\u002Fskills\u002Funquoted-colon\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M7CTNENFBZPEX63HNSRBCW4T","quoted-description","Use when a plain scalar contains a colon: like this one.","https:\u002F\u002Fgithub.com\u002Fxiaden\u002FSkyScow\u002Fblob\u002Fmain\u002Fconfig\u002Ftools\u002Ftests\u002Ffixtures\u002Fskills\u002Fquoted-description\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M7CTNBBPKA6GMCVEM3GPB59F","block-description","https:\u002F\u002Fgithub.com\u002Fxiaden\u002FSkyScow\u002Fblob\u002Fmain\u002Fconfig\u002Ftools\u002Ftests\u002Ffixtures\u002Fskills\u002Fblock-description\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M7CTN4M0SR4Z4TPJMHWC3A3B","work-routing","Canonical authority for who owns the next unit of work — direct work versus delegation, task tiers, bounded localization, the Change DAG size threshold, R&D evaluation routing, progressive research escalation, researcher scope signals, and QA\u002Fsupport owner selection. Use before choosing execution, investigation, design, or QA ownership; do not use to construct dispatch prompts, handoff schemas, or Change DAG\u002FDD tool operation.","https:\u002F\u002Fgithub.com\u002Fxiaden\u002FSkyScow\u002Fblob\u002Fmain\u002Fconfig\u002Fskills\u002Fwork-routing\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M7CTMY5AY3NSNHGQJA0M7VP9","update-docs","Update project documentation to match code changes — generate codemaps, refresh READMEs, detect doc\u002Fcode drift using AST analysis. Use when updating documentation after code changes, generating codemaps, verifying doc accuracy, or detecting stale documentation. Do NOT use for writing API reference docs from scratch (use doc-coauthoring) or for creating new skill files (use making-editing-skills).","https:\u002F\u002Fgithub.com\u002Fxiaden\u002FSkyScow\u002Fblob\u002Fmain\u002Fconfig\u002Fskills\u002Fupdate-docs\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M7CTMSQD82CPD53C6F07J0R9","skill-loading-system","Explain or troubleshoot OpenCode skill discovery, loading, permissions, availability, or prompt injection.","https:\u002F\u002Fgithub.com\u002Fxiaden\u002FSkyScow\u002Fblob\u002Fmain\u002Fconfig\u002Fskills\u002Fskill-loading-system\u002FSKILL.md",[],[]]