重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
CreateCLI by danielmiessler/personal_ai_infrastructure
npx skills add https://github.com/danielmiessler/personal_ai_infrastructure --skill CreateCLI执行前,请检查以下路径的用户自定义设置: ~/.claude/PAI/USER/SKILLCUSTOMIZATIONS/CreateCLI/
如果该目录存在,则加载并应用其中找到的任何 PREFERENCES.md、配置或资源。这些设置将覆盖默认行为。如果目录不存在,则使用技能默认设置。
当此技能被调用时,你必须先发送此通知,然后再执行任何其他操作。
发送语音通知:
curl -s -X POST http://localhost:8888/notify
-H "Content-Type: application/json"
-d '{"message": "Running the WORKFLOWNAME workflow in the CreateCLI skill to ACTION"}' \
/dev/null 2>&1 &
输出文本通知:
Running the WorkflowName workflow in the CreateCLI skill to ACTION...
此步骤非可选。技能调用后立即执行此 curl 命令。
自动化 CLI 生成系统
生成生产就绪的 TypeScript CLI,包含全面的文档、类型安全、错误处理和 CLI 优先架构原则。
根据请求路由到相应的工作流。
执行工作流时,直接输出此通知:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
Running the **WorkflowName** workflow in the **CreateCLI** skill to ACTION...
Workflows/CreateCli.mdWorkflows/AddCommand.mdWorkflows/UpgradeTier.md当看到以下模式时激活:
层级 1:llcli 风格(默认 - 80% 的用例)
何时使用层级 1:
层级 2:Commander.js(升级 - 15% 的用例)
何时使用层级 2:
层级 3:oclif(仅作参考 - 5% 的用例)
1. 完整实现
2. 全面文档
3. 开发设置
4. 质量标准
生成的 CLI 遵循 PAI 标准:
生成的 CLI 放置于:
~/.claude/Bin/[cli-name]/ - 个人 CLI (如 llcli)~/Projects/[project-name]/ - 项目特定 CLI${PROJECTS_DIR}/PAI/Examples/clis/ - 示例 CLI (公开仓库)安全提示: 执行 git 操作前始终验证仓库位置
每个生成的 CLI 都遵循:
详细信息,请阅读以下文件:
Workflows/CreateCli.md - 主要 CLI 生成工作流 (决策树,10 步流程)Workflows/AddCommand.md - 向现有 CLI 添加命令Workflows/UpgradeTier.md - 从简单迁移到复杂FrameworkComparison.md - 手动 vs Commander vs oclif (含研究)Patterns.md - 常见 CLI 模式 (来自 llcli 分析)TypescriptPatterns.md - 类型安全模式 (来自 tsx、vite、bun 研究)用户请求: "为 GitHub API 创建一个 CLI,能够列出仓库、创建问题和搜索代码"
生成结构:
~/.claude/Bin/ghcli/
├── ghcli.ts # 350 行,完整实现
├── package.json # Bun + TypeScript
├── tsconfig.json # 严格模式
├── .env.example # GITHUB_TOKEN=your_token
├── README.md # 完整文档
└── QUICKSTART.md # 常见用例
用法:
ghcli repos --user exampleuser
ghcli issues create --repo pai --title "Bug fix"
ghcli search "typescript CLI"
ghcli --help
用户请求: "构建一个 CLI,将 Markdown 文件转换为 HTML 并提取 frontmatter"
生成结构:
~/.claude/Bin/md2html/
├── md2html.ts
├── package.json
├── README.md
└── QUICKSTART.md
用法:
md2html convert input.md output.html
md2html batch *.md output/
md2html extract-frontmatter post.md
用户请求: "创建一个用于数据转换的 CLI,具有多种格式、验证和分析命令"
生成结构:
~/.claude/Bin/data-cli/
├── data-cli.ts # 带子命令的 Commander.js
├── package.json
├── README.md
└── QUICKSTART.md
用法:
data-cli convert json csv input.json
data-cli validate schema data.json
data-cli analyze stats data.csv
data-cli transform filter --column=status --value=active
每个生成的 CLI 必须通过以下检查点:
any 类型开发人员反复为 API 和工具创建 CLI。每次都是:
此技能自动化了步骤 1-7。
llcli CLI (Limitless.ai API) 证明了此模式有效:
此技能复制了这种成功。
此技能将"我需要一个用于 X 的 CLI"在几分钟内转化为生产就绪的工具,遵循来自 llcli 和 CLI 优先架构的成熟模式。
每周安装
69
仓库
GitHub 星标
11.2K
首次出现
Jan 24, 2026
安全审计
安装于
gemini-cli63
codex62
opencode60
github-copilot59
cursor57
claude-code55
Before executing, check for user customizations at: ~/.claude/PAI/USER/SKILLCUSTOMIZATIONS/CreateCLI/
If this directory exists, load and apply any PREFERENCES.md, configurations, or resources found there. These override default behavior. If the directory does not exist, proceed with skill defaults.
You MUST send this notification BEFORE doing anything else when this skill is invoked.
Send voice notification :
curl -s -X POST http://localhost:8888/notify
-H "Content-Type: application/json"
-d '{"message": "Running the WORKFLOWNAME workflow in the CreateCLI skill to ACTION"}' \
/dev/null 2>&1 &
Output text notification :
Running the WorkflowName workflow in the CreateCLI skill to ACTION...
This is not optional. Execute this curl command immediately upon skill invocation.
Automated CLI Generation System
Generate production-ready TypeScript CLIs with comprehensive documentation, type safety, error handling, and CLI-First Architecture principles.
Route to the appropriate workflow based on the request.
When executing a workflow, output this notification directly:
Running the **WorkflowName** workflow in the **CreateCLI** skill to ACTION...
Workflows/CreateCli.mdWorkflows/AddCommand.mdWorkflows/UpgradeTier.mdActivate when you see these patterns:
Tier 1: llcli-Style (DEFAULT - 80% of use cases)
When to use Tier 1:
Tier 2: Commander.js (ESCALATION - 15% of use cases)
When to use Tier 2:
Tier 3: oclif (REFERENCE ONLY - 5% of use cases)
1. Complete Implementation
2. Comprehensive Documentation
3. Development Setup
4. Quality Standards
Generated CLIs follow PAI standards:
Generated CLIs go to:
~/.claude/Bin/[cli-name]/ - Personal CLIs (like llcli)~/Projects/[project-name]/ - Project-specific CLIs${PROJECTS_DIR}/PAI/Examples/clis/ - Example CLIs (PUBLIC repo)SAFETY: Always verify repository location before git operations
Every generated CLI follows:
For detailed information, read these files:
Workflows/CreateCli.md - Main CLI generation workflow (decision tree, 10-step process)Workflows/AddCommand.md - Add commands to existing CLIsWorkflows/UpgradeTier.md - Migrate simple → complexFrameworkComparison.md - Manual vs Commander vs oclif (with research)Patterns.md - Common CLI patterns (from llcli analysis)TypescriptPatterns.md - Type safety patterns (from tsx, vite, bun research)User Request: "Create a CLI for the GitHub API that can list repos, create issues, and search code"
Generated Structure:
~/.claude/Bin/ghcli/
├── ghcli.ts # 350 lines, complete implementation
├── package.json # Bun + TypeScript
├── tsconfig.json # Strict mode
├── .env.example # GITHUB_TOKEN=your_token
├── README.md # Full documentation
└── QUICKSTART.md # Common use cases
Usage:
ghcli repos --user exampleuser
ghcli issues create --repo pai --title "Bug fix"
ghcli search "typescript CLI"
ghcli --help
User Request: "Build a CLI to convert markdown files to HTML with frontmatter extraction"
Generated Structure:
~/.claude/Bin/md2html/
├── md2html.ts
├── package.json
├── README.md
└── QUICKSTART.md
Usage:
md2html convert input.md output.html
md2html batch *.md output/
md2html extract-frontmatter post.md
User Request: "Create a CLI for data transformation with multiple formats, validation, and analysis commands"
Generated Structure:
~/.claude/Bin/data-cli/
├── data-cli.ts # Commander.js with subcommands
├── package.json
├── README.md
└── QUICKSTART.md
Usage:
data-cli convert json csv input.json
data-cli validate schema data.json
data-cli analyze stats data.csv
data-cli transform filter --column=status --value=active
Every generated CLI must pass these gates:
any types except justifiedDevelopers repeatedly create CLIs for APIs and tools. Each time:
This skill automates steps 1-7.
The llcli CLI (Limitless.ai API) proves this pattern works:
This skill replicates that success.
This skill turns "I need a CLI for X" into production-ready tools in minutes, following proven patterns from llcli and CLI-First Architecture.
Weekly Installs
69
Repository
GitHub Stars
11.2K
First Seen
Jan 24, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
gemini-cli63
codex62
opencode60
github-copilot59
cursor57
claude-code55
GitHub Actions 官方文档查询助手 - 精准解答 CI/CD 工作流问题
47,200 周安装
design-optimize 代码配置优化工具 - 提升开发效率与代码质量
1 周安装
design-normalize:代码规范与设计系统配置工具,提升开发一致性
1 周安装
design-delight - 提升代码编辑器设计体验的配置工具,优化开发工作流
1 周安装
design-colorize 代码着色工具 - 提升代码可读性的设计插件 | derklinke/codex-config
1 周安装
design-clarify - 代码配置与设计澄清工具,提升开发效率与代码质量
1 周安装
API网关配置指南:Kong、Nginx、AWS实战与微服务架构最佳实践
63 周安装