Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问clear审计提醒

command-creator命令创建者

Agent Skill

command-creator 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,469

周安装

60

GitHub Stars

110

下载量

470
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:command-creator(命令创建者)
来源仓库:https://github.com/igorwarzocha/opencode-workflows
仓库路径:skills/command-creator
安装命令:
npx skills add https://github.com/igorwarzocha/opencode-workflows --skill command-creator
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/igorwarzocha/opencode-workflows --skill command-creator

简介

command-creator 用于查找、检索和筛选相关信息。

  • 适合根据关键词或任务场景快速定位候选结果。
  • 可在 Codex、Claude、Cursor、Gemini CLI 中用于调研支持场景。
  • 安装前建议确认权限范围、维护状态及是否触发联网或文件操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Command Creator

Create custom slash commands for repetitive tasks in OpenCode.

<core_approach>

Command creation is conversational, not transactional.

  • MUST NOT assume what the user wants—ask
  • SHOULD start simple, add complexity only if needed
  • MUST show drafts and iterate based on feedback

</core_approach>

<question_tool>

Batching: Use the question tool for 2+ related questions. Single questions → plain text.

Syntax: header ≤12 chars, label 1-5 words, add "(Recommended)" to default.

When to ask: Vague request ("make a command"), or multiple implementation approaches exist.

</question_tool>

Command Locations

ScopePath
Project.opencode/command/<name>.md
Global~/.config/opencode/command/<name>.md

Template Placeholders (CRITICAL)

  • Single Insertion: Each placeholder ($ARGUMENTS, $1, @filename, etc.) MUST be inserted ONLY ONCE in the command body.
  • Dedicated Blocks: Use dedicated XML blocks for user inputs and file contents to keep the objective and instructions clean.
  • Preference: Prefer using a single argument ($ARGUMENTS) over complex positional ones unless strictly necessary.

BAD: "Do $ARGUMENTS and then check $ARGUMENTS for errors."

GOOD:

<user_guidelines>
$ARGUMENTS
</user_guidelines>

<context>
@src/schema.ts
</context>

<objective>
Analyze findings based on user guidelines and the provided schema.
</objective>
PlaceholderDescriptionExample
$ARGUMENTSAll arguments passed/cmd foo bar → "foo bar"
$1, $2, $3Positional arguments/cmd foo bar → $1="foo", $2="bar"
!commandShell output injection!ls -F
@filenameInclude file content@src/index.ts

Terminology Standard

  • Direct Address: You MUST use "you" (referring to the agent executing the command) instead of "the agent" or "opencode".

Command File Format

---
description: 3-word command summary
agent: build # Optional: build, plan, or custom agent
model: provider/model-id # Optional: override model
subtask: true # Optional: run as subagent
---

<summary>
Line 1: You MUST [purpose].
Line 2: You SHOULD [inputs].
Line 3: You MUST [outcome].
</summary>

<user_guidelines>
$ARGUMENTS
</user_guidelines>

Template body goes here.

Frontmatter Options

FieldPurposeRequired
descriptionShown in command listRECOMMENDED
agentRoute to specific agentNo
modelOverride modelNo
subtaskForce subagent invocationNo

Conceptual Boundary (CRITICAL)

  • Commands are for USERS: They are high-level shortcuts for humans to trigger an agent with specific context.
  • Agents CANNOT use commands: Agents lack a terminal interface to "type" commands. They execute the *template body* provided by the command.
  • One-Way Street: User -> Command -> Agent.
  • NEVER tell an agent to use a command "proactively"—they literally cannot.
  • If logic needs to be shared, put it in a Skill (script/instruction), not a Command.

Shell Commands in Templates

Use the!command syntax to inject bash output into your prompt. The shell execution is triggered by an exclamation mark followed by the command wrapped in backticks:

Review recent changes:

!`git log --oneline -10`

Suggest improvements.

File References

Use @ to include file content:

Given the schema in @prisma/schema.prisma, generate a migration for $ARGUMENTS.

Phase 1: Understand the Task

  1. "What task do you want to automate?"

- Get the repetitive prompt/workflow - Examples: "run tests", "review this file", "create a component"

  1. "Can you show me how you'd normally ask for this?"

- Get the actual prompt they'd type - This becomes the template body

Phase 2: Inputs & Routing

  1. "Does it need arguments?"

- If they mention "this file", "a name", "the function" → yes - Explain: /command foo bar$ARGUMENTS = "foo bar", $1 = "foo", $2 = "bar"

  1. "Should it make changes or just analyze?"

- Changes → default agent (build) - Analysis only → set agent: plan

  1. "Should it run as a background subtask?"

- Long-running or parallel work → set subtask: true - Interactive or quick → leave unset

  1. "Project-specific or use everywhere?"

- Project → .opencode/command/ - Global → ~/.config/opencode/command/

Phase 3: Review & Refine

  1. Show the draft command, ask for feedback

- "Here's what I've created. Want to adjust anything?" - Iterate until user is satisfied

Be flexible: If user provides lots of info upfront, adapt—MUST NOT rigidly ask every question.

/test - Run and Fix Tests

---
description: Run tests and fix failures
---

<summary>
You MUST run the full test suite.
You SHOULD identify and fix failures.
You MUST re-verify fixes.
</summary>

<objective>
You MUST run the full test suite, find the root cause of any failures, and fix the issue.
</objective>

1. Show the failing test
2. Identify the root cause
3. Fix the issue
4. Re-run to verify

/review - Code Review (Read-Only)

---
description: Review code for issues
agent: plan
---

<summary>
You MUST review $ARGUMENTS for issues.
You SHOULD check for bugs, security, and performance.
You MUST provide actionable feedback.
</summary>

<objective>
You MUST review $ARGUMENTS for bugs, security, and performance issues and provide actionable feedback without making changes.
</objective>

- Bugs and edge cases
- Security issues
- Performance problems

/commit - Smart Commit with Prefixes

---
description: Stage and commit with conventional prefix
---

<summary>
You MUST analyze changes and stage files.
You SHOULD choose a conventional commit prefix.
You MUST commit with a concise message.
</summary>

<context>
!`git status`
!`git diff`
</context>

<objective>
You MUST analyze changes, stage relevant files, and commit with a concise message.
</objective>

1. Analyze all changes
2. Choose appropriate prefix: docs:, feat:, fix:, refactor:, test:, ci:
3. Write concise commit message (imperative mood)
4. Stage relevant files and commit

/spellcheck - Check Spelling

---
description: Check spelling in markdown files
subtask: true
---

<summary>
You MUST find unstaged markdown files.
You SHOULD check them for spelling errors.
You MUST report any found errors.
</summary>

Check spelling in all unstaged markdown files:

<context>
!`git diff --name-only | grep -E '\.md$'`
</context>

<objective>
You MUST check for and report any spelling errors found in unstaged markdown files.
</objective>

/issues - Search GitHub Issues

---
description: Search GitHub issues
model: anthropic/claude-3-5-haiku-20241022
subtask: true
---

<summary>
You MUST search GitHub issues for $ARGUMENTS.
You SHOULD limit results to the top 10.
You MUST summarize the relevant issues.
</summary>

Search GitHub issues matching: $ARGUMENTS

<context>
!`gh issue list --search "$ARGUMENTS" --limit 10`
</context>

<objective>
You MUST summarize the top 10 relevant GitHub issues found for $ARGUMENTS.
</objective>

/component - Create Component

---
description: Create a new React component
---

<summary>
You MUST create a React component named $1.
You SHOULD include TypeScript props and basic styling.
You MUST provide a unit test file.
</summary>

Create a React component named $1 in $2 with:

<objective>
You MUST create a React component with TypeScript props and basic styling, and provide a corresponding unit test file.
</objective>

- TypeScript props interface
- Basic styling
- Unit test file

Usage: /component UserProfile src/components

/migrate - Database Migration

---
description: Generate database migration
---

<summary>
You MUST read the Prisma schema.
You SHOULD generate a migration for $ARGUMENTS.
You MUST ensure the migration matches the schema.
</summary>

Given the schema in @prisma/schema.prisma:

<context>
@prisma/schema.prisma
</context>

<objective>
You MUST generate a Prisma migration for $ARGUMENTS that matches the provided schema.
</objective>

<quality_checklist>

Before delivering:

  • Asked what task to automate
  • Got example of how they'd normally prompt it
  • Determined if arguments needed ($ARGUMENTS vs $1, $2)
  • Set appropriate agent (plan for read-only)
  • Considered subtask for long-running work
  • Chose project vs global scope
  • Showed draft and got feedback

</quality_checklist>

<best_practices>

DoDon't
Keep templates focusedCram multiple tasks in one
Use $1, $2 for structured argsRely only on $ARGUMENTS for multi-arg
Use!cmd to gather contextHardcode dynamic values
Use @file for config/schema refsCopy-paste file contents
Set agent: plan for read-onlyForget agent for reviews
Set subtask: true for parallel workBlock main session unnecessarily

</best_practices>

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

26.82%
按下载量换算126

OpenCode

22.74%
按下载量换算107

Codex

17.54%
按下载量换算82

Gemini CLI

12.08%
按下载量换算57

Antigravity

7.42%
按下载量换算35

windsurf

3.53%
按下载量换算17

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/igorwarzocha/opencode-workflows --skill command-creator;npx skills add igorwarzocha/opencode-workflows --skill "command-creator" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills