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

cli-skill-creatorCLI 技能 creator

Agent Skill

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

总安装

1,763

周安装

72

GitHub Stars

81

下载量

570
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/dagster-io/erk --skill cli-skill-creator

简介

cli-skill-creator 指导为 CLI 工具创建综合技能,提供系统化工作流程。

  • 适合 introspect 帮助文本、手册页与 GitHub 仓库以提取命令模式。
  • 需结合 skill-creator 组织发现结果为有效文档。
  • 安装前应确认目标 CLI 有可用帮助输出,否则无法提取信息。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

CLI Skill Creator

Overview

This skill guides the creation of comprehensive skills for command-line interface (CLI) tools. It provides a systematic workflow for introspecting CLI tools through multiple sources (help text, manual pages, GitHub repositories, online research), extracting mental models and command patterns, and organizing findings into effective skill documentation using the skill-creator skill.

When to Use This Skill

Invoke this skill when users:

  • Ask to create a skill for a CLI tool (e.g., "Create a skill for docker", "Document kubectl")
  • Request comprehensive CLI documentation or guidance
  • Want to understand a CLI tool's mental model and structure
  • Need to organize CLI knowledge for consistent use
  • Ask about documenting command-line tools systematically

Core Workflow

Creating a CLI skill follows a systematic seven-step process that gathers comprehensive information before organizing it into skill documentation.

Step 1: CLI Identification & Availability Check

Objectives:

  • Verify CLI tool is installed or accessible
  • Determine tool version and variant
  • Identify documentation sources
  • Assess open-source availability

Actions:

  1. Check installation and version <cli-tool> --version which <cli-tool>
  2. Identify tool characteristics

- Name and official name (if different) - Current version - Primary purpose/domain - Open source or proprietary

  1. Locate documentation sources

- Official website/documentation - GitHub repository (if open source) - Man pages availability - Community resources

Output: Tool profile including version, purpose, and available documentation sources.

Step 2: Comprehensive Help Text Introspection

Objectives:

  • Map command hierarchy and structure
  • Extract all commands, subcommands, and flags
  • Capture examples from help text
  • Identify command patterns (verb-noun, noun-verb, flat)

Reference: Load references/help-text-patterns.md for detailed parsing guidance.

Actions:

  1. Extract top-level help <cli-tool> --help <cli-tool> -h <cli-tool> help <cli-tool> # (no args, if applicable)
  2. Map command hierarchy

- Identify all subcommands - Determine nesting depth - Note command organization pattern

  1. Document each command/subcommand # For each discovered command <cli-tool> <command> --help <cli-tool> <command> <subcommand> --help
  2. Extract key information

- Command purpose and description - Required vs optional arguments - Flags and their descriptions - Usage examples - Default behaviors

  1. Identify patterns

- Flag naming conventions - Argument patterns - Output format options - Common options across commands

Output: Structured command reference with hierarchy, all commands documented, examples extracted, and patterns identified.

Step 3: GitHub Repository Analysis (if open-source)

Objectives:

  • Understand implementation patterns
  • Find real-world usage examples
  • Identify common user pain points
  • Discover undocumented features or gotchas

Reference: Load references/help-text-patterns.md section "GitHub Repository Analysis" for detailed guidance.

Actions:

  1. Clone repository (if accessible and reasonable size) git clone --depth 1 https://github.com/<org>/<repo>
  2. Examine documentation structure

- README.md - Quick start, core concepts - docs/ or doc/ - Detailed documentation - examples/ - Usage examples - CONTRIBUTING.md - Development patterns - man/ - Man page sources

  1. Analyze code structure

- CLI framework used (Cobra, Click, Commander, Clap, etc.) - Command file organization - Main entry point - Subcommand implementations

  1. Review tests for usage patterns

- Integration tests show common workflows - Unit tests reveal edge cases - Test fixtures show example inputs - Assertions reveal expected outputs

  1. Mine issues and discussions

- Search for label:question - Common user questions - Search for label:documentation - Doc gaps - Look for "How do I..." - Workflow questions - Find repeated issues - Common pain points

  1. Check shell completions (reveal command structure)

- completions/ or scripts/ directory - Shell completion files show all commands/flags

Output: Implementation insights, real-world usage examples, common pain points, and undocumented behaviors.

Step 4: Manual Page Parsing (if available)

Objectives:

  • Extract comprehensive command documentation
  • Capture formal syntax descriptions
  • Identify related commands
  • Note historical context or design rationale

Reference: Load references/help-text-patterns.md section "Manual Page Parsing" for detailed guidance.

Actions:

  1. Check man page availability man <cli-tool> man -k <cli-tool> # Search for related pages
  2. Extract key sections

- NAME - Command identity - SYNOPSIS - Formal syntax - DESCRIPTION - Detailed explanation - OPTIONS - Comprehensive flag documentation - EXAMPLES - Usage examples - SEE ALSO - Related commands - BUGS - Known issues

  1. Export for analysis # Export to plain text man <cli-tool> | col -b > man_<cli-tool>.txt # Extract specific sections man <cli-tool> | grep -A 50 "^OPTIONS" man <cli-tool> | grep -A 30 "^EXAMPLES"
  2. Check for subcommand man pages man <cli-tool>-<subcommand>

Output: Formal command documentation, comprehensive option descriptions, and usage examples from man pages.

Step 5: Online Research & Best Practices

Objectives:

  • Discover community best practices
  • Find common workflows and patterns
  • Identify integration points with other tools
  • Learn from tutorials and guides

Actions:

  1. Search for official documentation

- Official website documentation - API documentation (if CLI wraps an API) - Architecture guides - Best practices guides

  1. Find community resources

- Blog posts about advanced usage - Tutorial sites (Medium, Dev.to, etc.) - Video tutorials (YouTube) - Conference talks

  1. Check Q&A sites

- Stack Overflow common questions - Reddit discussions - GitHub Discussions - Tool-specific forums

  1. Identify integration patterns

- How does it work with Git? - CI/CD integration patterns - Editor/IDE integrations - Companion tools

  1. Look for comparisons

- "X vs Y" articles (reveals strengths/differences) - Migration guides (reveals mental model differences) - "Awesome X" lists (reveals ecosystem)

Output: Community best practices, common workflows, integration patterns, and ecosystem understanding.

Step 6: Material Organization & Structure Design

Objectives:

  • Synthesize findings into coherent mental model
  • Identify command structure pattern
  • Organize content by user task/workflow
  • Determine skill structure (workflow-based, command-based, etc.)

Reference: Load references/skill-templates.md for guidance.

Actions:

  1. Extract core mental model

- What are the fundamental concepts? (resources, actions, state) - How does the tool want users to think? - What abstractions does it use? - What's the command hierarchy philosophy?

  1. Identify command structure pattern

- Flat (single-level commands) - Noun-Verb (resource-action) - Verb-Noun (action-resource) - Hybrid (mix of patterns)

  1. Map common workflows

- What are the 5-10 most common tasks? - What's the getting-started workflow? - What are the advanced workflows? - What operations are risky/destructive?

  1. Organize findings by category

- Core concepts and terminology - Command reference (grouped logically) - Workflow patterns (numbered for reference) - Configuration and setup - Integration patterns - Troubleshooting common issues

  1. Choose skill structure (load references/skill-templates.md)

- Workflow-based: For sequential, process-oriented tools - Command-based: For tools with many discrete operations - Hybrid: Combine patterns (most common)

  1. Decide what goes where

- skill.md: Overview, core concepts, common operations, when to load references - references/_reference.md: Complete command reference, all workflows, detailed examples - Additional reference files if needed (e.g., for GraphQL API, specialized features)

Output: Structured content outline organized by user task/workflow, clear mental model summary, and skill structure plan.

Step 7: Invoke skill-creator Skill

Objectives:

  • Generate skill directory structure
  • Create skill.md and reference documentation
  • Package skill for distribution
  • Validate completeness

Actions:

  1. Prepare structured brief for skill-creator Organize all gathered material into a comprehensive brief including:

- CLI Profile - Name, version, purpose - Command structure pattern - Open source status and GitHub URL - Core Mental Model - Fundamental concepts (2-5 key concepts) - How users should think about the tool - Key terminology and definitions - Command Reference Material - Organized by category/domain - All commands with syntax and examples - Common flags and options - Command relationships - Workflow Patterns - 5-10 common workflows - Step-by-step with commands - When to use each pattern - Integration Points - Other tools it works with - CI/CD integration - File formats, protocols - Configuration - Config file locations - Key settings - Environment variables - Troubleshooting - Common issues and solutions - Diagnostic commands - Error patterns

  1. Invoke skill-creator skill Use the Skill tool to invoke skill-creator: Skill: skill-creator Prompt: Create a skill for <cli-tool-name> with the following structure and content: [Provide the complete structured brief from step 1] Structure the skill using [workflow-based/command-based/hybrid] approach. The skill.md should include: - Overview and when to use this skill - Core concepts: [list key concepts] - Common operations organized by [category structure] - Reference to comprehensive command reference in references/ Create references/<tool>_reference.md with: - Complete mental model explanation - Full command reference organized by [organization scheme] - Workflow patterns 1-N - Configuration, integration, and troubleshooting sections Follow the patterns from existing CLI skills like gh, graphite, and erk.
  2. Review generated skill

- Check skill.md structure and clarity - Verify reference documentation completeness - Ensure examples are accurate - Test commands if possible

  1. Iterate if needed

- Refine unclear sections - Add missing examples - Improve organization - Fill gaps in documentation

  1. Package skill (if ready for distribution) python scripts/package_skill.py.claude/skills/<cli-tool-name>

Output: Complete, packaged skill ready for use and distribution.

CLI Introspection Techniques

Help Text Parsing Strategies

Progressive help discovery:

  1. Start with top-level help to understand overall structure
  2. Enumerate all subcommands
  3. Get help for each subcommand
  4. Identify nested subcommands
  5. Document all discovered commands

Information extraction:

  • Command syntax: Usage line shows required vs optional
  • Descriptions: What each command/flag does
  • Examples: Copy verbatim from help text
  • Defaults: Note default values for flags
  • Aliases: Note short forms (e.g., -h for --help)

Pattern recognition:

  • Flag naming: Single-letter vs long-form consistency
  • Argument conventions: <required> vs [optional]
  • Subcommand organization: Grouped by domain/resource
  • Output options: --json, --plain, --format

Load references/help-text-patterns.md for comprehensive parsing guidance including regex patterns, format variations, and special cases.

GitHub Analysis Strategies

Quick reconnaissance:

  • README.md overview
  • Documentation directory structure
  • Examples directory
  • Contributing guide

Deep analysis:

  • Command implementation files (reveals structure)
  • Test files (reveals usage patterns)
  • Issues (reveals pain points)
  • Discussions (reveals community questions)

Framework detection:

Different CLI frameworks reveal structure differently:

  • Cobra (Go): cmd/ directory with file per command
  • Click (Python): Decorators on functions
  • Commander (Node.js): Fluent API chains
  • Clap (Rust): Struct definitions or builder pattern

Load references/help-text-patterns.md section "GitHub Repository Analysis" for detailed code reading strategies.

Mental Model Extraction

Ask these questions while introspecting:

  1. Core abstractions: What are the primary "things" this CLI manipulates?
  2. Action patterns: What verbs/actions does it support?
  3. State management: Does it track state? Where?
  4. Hierarchy: Is there a parent-child relationship between concepts?
  5. Workflows: What are the common sequences of operations?

Look for explicit mental model explanations:

  • README "How it works" sections
  • Documentation "Concepts" pages
  • Architecture diagrams
  • Design rationale documents

Infer from command structure:

  • Noun-verb suggests resource-oriented model
  • Verb-noun suggests action-oriented model
  • Flat structure suggests simple, single-purpose tool
  • Deep nesting suggests complex domain model

Skill Structure Guidance

Choosing the Right Structure

Load references/skill-templates.md for complete templates and examples.

Workflow-based (use when):

  • Clear sequential processes
  • Most tasks follow similar steps
  • Getting-started focus important
  • Example: Deployment tools, CI/CD tools

Command-based (use when):

  • Many discrete, independent operations
  • Users need command reference
  • Operations don't follow fixed sequence
  • Example: File manipulation tools, utilities

Hybrid (use when - most common):

  • Mix of common workflows and discrete operations
  • Need both getting-started and comprehensive reference
  • Example: gh, docker, kubectl, git

Content Distribution: skill.md vs references/

skill.md should contain:

  • Clear description triggering skill use
  • Overview of tool purpose
  • Core concepts (2-5 key concepts)
  • When to load references
  • Common operations (high-level guidance)
  • Workflow decision guidance
  • Integration overview

references/_reference.md should contain:

  • Comprehensive mental model
  • Complete command reference
  • All workflow patterns (numbered)
  • Full configuration documentation
  • Detailed troubleshooting
  • Integration details
  • Advanced usage

Additional reference files (when needed):

  • Separate file for specialized APIs (e.g., GraphQL)
  • Separate file for large schema references
  • Separate file for extensive configuration options

Organizing Command Reference

Best practices:

  1. Group by domain/resource (not alphabetically)

- Groups related commands together - Matches user mental model - Example: "Pull Request Commands", "Issue Commands"

  1. Order by frequency of use

- Most common operations first - Advanced features later - Matches progressive learning

  1. Include for each command:

- Purpose (one sentence) - Syntax with placeholders - Key flags (not exhaustive, link to help) - 2-3 examples (simple to complex) - Related commands

  1. Use consistent formatting:

- Code blocks for commands - Tables for flag reference - Numbered workflows - Clear section headers

Writing Effective Workflow Patterns

Pattern structure:

### Pattern N: <Descriptive-Name>

**Use case:** When to use this workflow

**Steps:**

1. <Step name>
   <Explanation>

<command>


1.
**Complete example:**

<Scenario>

<full-workflow>


**Variations:** Alternative approaches

Pattern best practices:

  • Start with most common workflows
  • Show realistic examples (not foo/bar)
  • Include expected output
  • Note side effects or state changes
  • Link to related patterns
  • Mention prerequisites

Load references/skill-templates.md for complete workflow pattern template and examples.

Integration with skill-creator

This skill gathers and organizes CLI material, then delegates to skill-creator for actual skill generation.

Workflow:

  1. cli-skill-creator: Introspects CLI, extracts patterns, organizes material
  2. Handoff: Provides structured brief to skill-creator
  3. skill-creator: Generates skill files, validates, packages

Structured brief format:

Provide skill-creator with:

  • CLI profile (name, version, purpose, structure pattern)
  • Core mental model (concepts, terminology)
  • Organized command reference material
  • Workflow patterns
  • Integration points
  • Configuration and troubleshooting

Invocation:

Use the Skill tool:


Skill: skill-creator

Create a skill for using the following material: [Complete structured brief]

Use [workflow-based/command-based/hybrid] structure. Follow patterns from gh/graphite/erk skills.

Advantages of this approach:

  • Separates introspection from generation
  • Leverages skill-creator's validation and packaging
  • Maintains consistency with other skills
  • Allows iterative refinement

Tips for Different CLI Types

Modern Subcommand CLIs (gh, docker, kubectl)

Focus on:

  • Clear command hierarchy
  • Workflow patterns (most important)
  • Integration with ecosystems
  • Progressive examples

Structure: Hybrid (workflows + command reference)

Simple Utility CLIs (jq, curl, grep)

Focus on:

  • Core functionality explanation
  • Common use cases
  • Piping and composition
  • Flag combinations

Structure: Command-based or simple workflow

API-Wrapper CLIs (aws, gcloud, heroku)

Focus on:

  • API mapping
  • Authentication patterns
  • JSON output handling
  • Rate limiting

Structure: Command-based with workflow patterns

Legacy CLIs (tar, find, sed)

Focus on:

  • Modern usage patterns (not all historical options)
  • Common gotchas
  • Modern alternatives context
  • Safety warnings

Structure: Workflow-based (guide away from dangerous patterns)

Quality Checklist

Before finalizing CLI skill:

  • [ ] Captured all major commands and subcommands
  • [ ] Documented 5-10 common workflow patterns
  • [ ] Extracted core mental model clearly
  • [ ] Organized by user task (not alphabetically)
  • [ ] Included realistic examples with output
  • [ ] Noted integration points
  • [ ] Documented common gotchas
  • [ ] Verified commands actually work
  • [ ] Noted CLI version documented
  • [ ] Linked to authoritative documentation
  • [ ] Followed structure of gh/graphite/erk skills
  • [ ] skill.md is concise (<300 lines)
  • [ ] references/ contains comprehensive details

Common Pitfalls

Avoid:

  1. Alphabetical organization - Organize by task/domain instead
  2. Exhaustive flag documentation - Link to help, show common flags only
  3. Missing mental model - Always explain how to think about the tool
  4. No workflow patterns - Users need task-oriented guidance
  5. Untested examples - Verify all commands actually work
  6. Version agnostic - Note which version was documented
  7. Missing integration points - Document how it works with other tools
  8. Poor skill.md description - Be specific about when to use skill

Resources

references/

This skill includes two comprehensive reference documents:

  • help-text-patterns.md - Practical guidance for parsing help text, man pages, and GitHub repositories. Load when introspecting CLI tools for comprehensive information extraction.
  • skill-templates.md - Reusable templates for skill structure, command reference, workflows, and sections. Load when organizing material and structuring skill documentation.

Loading strategy:

  • Load help-text-patterns.md during introspection steps (Steps 2-4)
  • Load skill-templates.md during organization and structure design (Step 6)

These references ensure consistent, comprehensive CLI skill creation following modern best practices.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

36.26%
按下载量换算207

Claude

33.04%
按下载量换算188

Cursor

17.56%
按下载量换算100

Gemini CLI

9.44%
按下载量换算54

安全审计

Gen Agent Trust Hub

通过

Socket

可疑

Snyk

可疑

权限和风险

执行命令

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills