スキル一覧に戻る
patrickhaahr

command-creator

by patrickhaahr

i use arch and neovim btw

0🍴 0📅 2026年1月19日
GitHubで見るManusで実行

SKILL.md


name: command-creator description: Create and configure custom commands for Opencode to automate repetitive tasks with custom prompts.

Overview

The command-creator skill helps you define custom commands in Opencode. Custom commands let you specify prompts that run when you execute the command in the TUI with /command-name.

Creating Commands

Commands are defined using markdown files in the command/ directory:

  • Global: ~/.config/opencode/command/<name>.md
  • Per-project: .opencode/command/<name>.md

The filename becomes the command name. Example: test.md creates /test.

Example: .opencode/command/test.md

---
description: Run tests with coverage
agent: build
model: anthropic/claude-3-5-sonnet-20241022
---
Run the full test suite with coverage report and show any failures.
Focus on the failing tests and suggest fixes.

Frontmatter Options

OptionRequiredDescription
descriptionNoBrief description shown in TUI
agentNoAgent to execute (defaults to current)
subtaskNoForce subagent invocation (true/false)
modelNoOverride default model

The prompt template follows the frontmatter section.

Prompt Placeholders

Arguments

  • $ARGUMENTS - All arguments passed to the command
  • $1, $2, $3... - Individual positional arguments

Example:

---
description: Create a new component
---
Create a React component named $ARGUMENTS with TypeScript support.

Usage: /component Button$ARGUMENTS = Button

Shell Output

Use !`command` to inject bash output into prompts:

---
description: Analyze test coverage
---
Here are the current test results:
!`npm test`

Based on these results, suggest improvements to increase coverage.

File References

Use @filename to include file content in prompts:

---
description: Review component
---
Review @src/components/Button.tsx for performance issues.

Built-in Commands

Opencode includes built-in commands: /init, /undo, /redo, /share, /help. Custom commands can override these if they share the same name.

Usage

When the skill is triggered:

  1. Ask the user what command they want to create
  2. Determine if it should be global or project-specific
  3. Write the markdown file with frontmatter options and prompt
  4. Explain how to use the command

スコア

総合スコア

60/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です