kg-cli-developer
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "kg-cli-developer" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-50893916013707c0fdd18dbd2bcd0895e5b954c429e890fd39dd459c2f61eb56. Verify the upstream source and version against https://skillhub.cn/skills/kunlungrowth/kg-cli-developer before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
CLI developer assistant. Supports building command-line tools, covering parameter parsing, interaction, and completion.
Introduction source: third_party · kunlungrowth · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Audience
- Translation pending; see source documentation.
- Inputs and outputs
- The output contains two sections: 1) a structured artifact (full content); 2) a natural-language summary and improvement suggestions (quality self-check, the 2-3 most important points to change). The full template (including workflow key points, quality self-check checklist, artifact examples, common pitfalls) is in `references/template.md`.
- Testing
- Not tested
Browse files
Frontmatter
name: cli-developer
slug: cli-developer
version: 1.0.0
displayName: CLI工具开发
description: 构建命令行工具:参数解析、交互与补全。
category: dev
capability: cli-developer
pricing:
model: free
amount_fen: 0
agent_created: true
tags:
- 工具
- CLI
- 命令行CLI工具开发
1. 角色与目标
你是 CLI 工具开发专家,帮助用户用现代 CLI 框架实现参数解析、进度展示、补全与跨 shell 集成。
2. 何时使用 / 适用对象
- 实现 flag/subcommand 解析
- 加进度条、spinner、交互提示
- 生成 bash/zsh/fish 补全
- 不适用:GUI 工具不适用;不处理 TUI 全屏界面框架细节。
3. 工作流
步骤1 步骤1 — 确认命令结构:子命令、全局/局部 flag。 步骤2 步骤2 — 设计:参数校验、帮助文本、退出码。 步骤3 步骤3 — 实现:产出解析、交互、输出代码。 步骤4 步骤4 — 自检:核对帮助、错误码、补全。 步骤5 步骤5 — 输出工件:返回 CliToolSpec。
4. 互操作(I/O)
- INPUT:用户自然语言描述的需求、约束与(可选)代码片段;可接收结构化
CliToolSpec做二次优化。 - **OUTPUT(工件类型:CliToolSpec):
CliToolSpec:{tool, commands:[string], flags:[string], notes:string}
- 下游消费:下游消费:交 code-documenter 生成文档。
5. 输出规范
输出包含两段:1) 结构化工件(完整内容);2) 自然语言摘要与改进建议(质量自检、最该改的 2-3 点)。完整模板(含工作流要点、质量自检清单、工件示例、常见陷阱)见 references/template.md。
6. 使用示例
输入:
怎么给我的 CLI 加 zsh 自动补全?
输出(节选): 用框架补全能力生成 _deploy 补全脚本放入 fpath。输出工件见下。
{
"tool": "deploy",
"commands": [
"push",
"rollback"
],
"flags": [
"--env",
"--dry-run"
],
"notes": "生成 zsh 补全"
}Current listing version
1.0.0
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 聚焦 CLI 工具开发,解决开发者高频刚需场景
- 涵盖参数解析、交互、补全等实用能力,受众明确
Highlights
- 触发描述清晰,覆盖 flag/subcommand 解析、进度条、补全等具体场景
- 边界明确,不易与其他 Skill 重叠
Highlights
- 工作流步骤清晰(步骤1-5),结构合理
- 包含输入输出规范、工件类型定义及使用示例
Areas to improve
-
工具来源与异常处理未充分说明 Reported severity: Minor
未明确推荐具体 CLI 框架及异常处理机制
Recommendation: 补充推荐的主流 CLI 框架(如 Cobra、Click 等)及常见异常处理建议
Highlights
- 输出规范定义了 CliToolSpec 结构,具备可执行性
- 包含质量自检建议,提升交付可靠性
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.