Token导航 LogoToken导航

Agent Skill · 开发

command-generator(command 生成器)

command-generator 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

command-generator 是开发类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为执行命令;许可证信息还不明确,第三方扫描已通过,按安装量在开发类的 21,746 个 Skill 里排第 15,051。

总安装 635周安装 27GitHub Stars 1,913下载 222核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/catlog22/claude-code-workflow --skill command-generator

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

command-generator 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。适用于围绕仓库状态、代码变更或协作事项进行整理和分析的场景。通过 npx skills add 命令从指定 GitHub 仓库安装并使用该技能。

安装前需确认权限范围、维护状态,以及是否会触发联网或文件读写操作。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/command-generator

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/catlog22/claude-code-workflow --skill command-…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要执行命令,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

command-generator 怎么安装?

在终端执行 npx skills add https://github.com/catlog22/claude-code-workflow --skill command-generator。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

command-generator 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

command-generator 需要什么权限?

权限级别是执行命令。安装流程涉及命令执行,可能通过 npx skills add https://github.com/catlog22/claude-code-workflow --skill command-generator 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

command-generator 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

command-generator 用的人多吗?

公开数据是累计安装 635 次,近一周安装 27 次,下载 222 次,GitHub 1,913 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

command-generator 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。
  • 来源仓库有 1,913 星,维护活跃度相对可查。

先想清楚的地方

  • 需要执行命令,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。

不太适合

  • 不能接受 Skill 在你机器上执行命令的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
command-generator

command 生成器 · 本页

6351,913执行命令未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Invoked when user requests "create command", "new command", or "command generator".

<required_reading>

  • @.claude/skills/command-generator/specs/command-design-spec.md
  • @.claude/skills/command-generator/templates/command-md.md </required_reading>

Extract from $ARGUMENTS or skill args:

ParameterRequiredValidationExample
$SKILL_NAMEYes/^[a-z][a-z0-9-]*$/, min 1 chardeploy, create
$DESCRIPTIONYesmin 10 chars"Deploy application to production"
$LOCATIONYes"project" or "user"project
$GROUPNo/^[a-z][a-z0-9-]*$/ or nullissue, workflow
$ARGUMENT_HINTNoany string or empty"<url> [--priority 1-5]"

Validation rules:

  • Missing required param → Error with specific message (e.g., "skillName is required")
  • Invalid $SKILL_NAME pattern → Error: "skillName must be lowercase alphanumeric with hyphens, starting with a letter"
  • Invalid $LOCATION → Error: "location must be 'project' or 'user'"
  • Invalid $GROUP pattern → Warning, continue

Normalize: trim + lowercase for $SKILL_NAME, $LOCATION, $GROUP.

Path mapping:

LocationBase Directory
project.claude/commands
user~/.claude/commands (expand ~ to $HOME)

Path construction:

If $GROUP:
  $TARGET_DIR = {base}/{$GROUP}
  $TARGET_PATH = {base}/{$GROUP}/{$SKILL_NAME}.md
Else:
  $TARGET_DIR = {base}
  $TARGET_PATH = {base}/{$SKILL_NAME}.md

Check if $TARGET_PATH already exists → store as $FILE_EXISTS (true/false).

Infer the command's domain from $SKILL_NAME, $DESCRIPTION, and $ARGUMENT_HINT:

SignalExtract
$SKILL_NAMEAction verb (deploy, create, analyze, sync) → step naming
$DESCRIPTIONDomain keywords → execution logic, error scenarios
$ARGUMENT_HINTFlags/args → parse_input step details, validation rules
$GROUPCommand family → related commands, shared patterns

Determine command complexity:

ComplexityCriteriaSteps to Generate
SimpleSingle action, no flags2-3 steps
Standard1-2 flags, clear workflow3-4 steps
ComplexMultiple flags, multi-phase4-6 steps

If complexity is unclear, ask user:

AskUserQuestion(
  header: "Command Scope",
  question: "What are the main execution steps for this command?",
  options: [
    { label: "Simple", description: "Single action: validate → execute → report" },
    { label: "Standard", description: "Multi-step: parse → process → verify → report" },
    { label: "Complex", description: "Full workflow: parse → explore → execute → verify → report" },
    { label: "I'll describe", description: "Let me specify the steps" }
  ]
)

Store as $COMMAND_STEPS, $ERROR_SCENARIOS, $SUCCESS_CONDITIONS.

This is the core generation step. Draft the COMPLETE command file — not a template with placeholders — using the gathered requirements.

YAML Frontmatter:

---
name: $SKILL_NAME
description: $DESCRIPTION
argument-hint: $ARGUMENT_HINT  # only if provided
---

<purpose> section: Write 2-3 sentences describing:

  • What the command does (action + target)
  • When it's invoked (trigger conditions)
  • What it produces (output artifacts or effects)

<required_reading> section: Infer from domain:

  • If command reads config → @.claude/CLAUDE.md or relevant config files
  • If command modifies code → relevant source directories
  • If command is part of a group → other commands in the same group

<process> section with <step> blocks:

For each step in $COMMAND_STEPS, generate a <step name="snake_case"> block containing:

  1. parse_input (always first, priority="first"):

- Parse $ARGUMENTS for flags and positional args derived from $ARGUMENT_HINT - Include specific flag detection logic (e.g., if arguments contain "--env") - Include validation with specific error messages - Include decision routing table if multiple modes exist

  1. Domain-specific execution steps (2-4 steps):

- Each step has a bold action description - Include concrete shell commands, file operations, or tool calls - Use $UPPER_CASE variables for user input, ${computed} for derived values - Include conditional logic with specific conditions (not generic) - Reference actual file paths and tool names

  1. report (always last):

- Format output with banner and status - Include file paths, timestamps, next step suggestions

Shell Correctness Checklist (MANDATORY for every shell block):

RuleWrongCorrect
Multi-line outputecho "{...}" (unquoted multi-line)cat <<'EOF' > file...EOF (heredoc)
Variable initUse $VAR after conditionalVAR="default" BEFORE any conditional that sets it
Error exitecho "Error:..." (no exit)echo "Error:..." # (see code: E00X) + exit 1
Quoting$VAR in commands"$VAR" (double-quoted in all expansions)
Exit on failCommand chain without checksset -e or explicit `
Command from var$CMD --flag (word-split fragile)eval "$CMD" --flag or use array: cmd=(...); "${cmd[@]}"
PrerequisitesImplicit git/curl usageDeclare in <prerequisites> section

Golden Example — a correctly-written execution step:

<step name="run_deployment">
**Execute deployment to target environment.**

$DEPLOY_STATUS="pending"  # Initialize before conditional

Save current state for rollback

cp .deploy/latest.json .deploy/previous.json 2>/dev/null || true

Write deployment manifest via heredoc

cat <<EOF > .deploy/latest.json { "env": "$ENV", "tag": "$DEPLOY_TAG", "timestamp": "$(date -u +%Y-%m-%dT%H:%M:%SZ)", "commit": "$(git rev-parse --short HEAD)", "status": "deploying" } EOF

Execute deployment

if ! deploy_cmd --env "$ENV" --tag "$DEPLOY_TAG" 2>&1 | tee .deploy/latest.log; then echo "Error: Deployment to $ENV failed" # (see code: E004) exit 1 fi

$DEPLOY_STATUS="success"


| Condition | Action |
| --- | --- |
| Deploy succeeds | Update status → `"deployed"`, continue to verify |
| Deploy fails | Log error `# (see code: E004)`, exit 1 |
| `$ROLLBACK_MODE` | Load `.deploy/previous.json`, redeploy prior version |

**Optional `<prerequisites>` section** (include when command uses external tools):

<prerequisites>

  • git (2.20+) — version control operations
  • curl — health check endpoints
  • jq — JSON processing (optional)

</prerequisites>


**`<error_codes>` table:** Generate 3-6 specific error codes:

- Derive from `$ARGUMENT_HINT` validation failures (E001-E003)
- Derive from domain-specific failure modes (E004+)
- Include 1-2 warnings (W001+)
- Each code has: Code, Severity, Description, **Stage** (which step triggers it)
- **Cross-reference rule**: Every `# (see code: E00X)` comment in `<process>` MUST have a matching row in `<error_codes>`, and every error code row MUST be referenced by at least one inline comment

**`<success_criteria>` checkboxes:** Generate 4-8 verifiable conditions:

- Input validation passed
- Each execution step completed its action
- Output artifacts exist / effects applied
- Report displayed

**Quality rules for generated content:**

- NO bracket placeholders (`[Describe...]`, `[List...]`) — all content must be concrete
- Steps must contain actionable logic, not descriptions of what to do
- Error codes must reference specific failure conditions from this command's domain
- Success criteria must be verifiable (not "command works correctly")
- Every shell block must pass the Shell Correctness Checklist above
- Follow patterns from @.claude/skills/command-generator/templates/command-md.md for structural reference only

**If `$FILE_EXISTS`:** Warn: `"Command file already exists at {path}. Will overwrite."`

mkdir -p "$TARGET_DIR"


Write the drafted content to `$TARGET_PATH` using Write tool.

**Verify:** Read back the file and confirm:

- File exists and is non-empty
- Contains `<purpose>` tag with concrete content (no placeholders)
- Contains at least 2 `<step name=` blocks with shell code or tool calls
- Contains `<error_codes>` with at least 3 rows including Stage column
- Contains `<success_criteria>` with at least 4 checkboxes
- No unresolved `{{...}}` or `[...]` placeholders remain
- Every `# (see code: E0XX)` has a matching `<error_codes>` row (cross-ref check)
- Every shell block uses heredoc for multi-line output (no bare multi-line echo)
- All state variables initialized before conditional use
- All error paths include `exit 1` after error message

**If verification fails:** Fix the content in-place using Edit tool.

**Report completion:**

Command generated successfully!

File: {$TARGET_PATH} Name: {$SKILL_NAME} Description: {$DESCRIPTION} Location: {$LOCATION} Group: {$GROUP or "(none)"} Steps: {number of <step> blocks generated} Error codes: {number of error codes}

Next Steps:

  1. Review and customize {$TARGET_PATH}
  2. Test: /{$GROUP}:{$SKILL_NAME} or /{$SKILL_NAME}

<error_codes>

| Code | Severity | Description | Stage |
| --- | --- | --- | --- |
| E001 | error | skillName is required | validate_params |
| E002 | error | description is required (min 10 chars) | validate_params |
| E003 | error | location is required ("project" or "user") | validate_params |
| E004 | error | skillName must be lowercase alphanumeric with hyphens | validate_params |
| E005 | error | Failed to infer command domain from description | gather_requirements |
| E006 | error | Failed to write command file | write_file |
| E007 | error | Generated content contains unresolved placeholders | write_file |
| W001 | warning | group must be lowercase alphanumeric with hyphens | validate_params |
| W002 | warning | Command file already exists, will overwrite | write_file |
| W003 | warning | Could not infer required_reading, using defaults | draft_content |

</error_codes>

<success_criteria>

- All required parameters validated ($SKILL_NAME, $DESCRIPTION, $LOCATION)
- Target path resolved with correct scope (project vs user) and group
- Command domain inferred from description and argument hint
- Concrete `<purpose>` drafted (no placeholders)
- 2-6 `<step>` blocks generated with domain-specific logic
- `<error_codes>` table generated with 3+ specific codes
- `<success_criteria>` generated with 4+ verifiable checkboxes
- File written to $TARGET_PATH and verified
- Zero bracket placeholders in final output
- Completion report displayed </success_criteria>

平台分布

Codex

36.65%
按下载量换算81

Claude

31.77%
按下载量换算71

Cursor

19.11%
按下载量换算42

Gemini CLI

8.49%
按下载量换算19

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills