Agent skill

CLI Tool Builder

by revfactory in revfactory/harness-100

Full pipeline where an agent team collaborates to develop a CLI tool.

Apache-2.0Auto-check passedAgent Workflows

Install CLI Tool Builder

skills CLI
$ npx skills add revfactory/harness-100 --skill cli-tool-builder -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install revfactory/harness-100 cli-tool-builder --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/revfactory/harness-100.git skills-src && mkdir -p .claude/skills && cp -r skills-src/en/40-cli-tool-builder/.claude/skills/cli-tool-builder .claude/skills/cli-tool-builder && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
cli-tool-builder
GitHub stars
1.3k
Token cost
~1.6k tokens
SKILL.md length
656 words
Files
1
Skills in repo
464
Repo updated
First seen
Licence
Apache-2.0

At a glance

Full pipeline where an agent team collaborates to develop a CLI tool.

  • Works in 3 steps: Preparation (performed directly by the… → Team Assembly and Execution → Integration and Final Deliverables
  • Requests like build me a CLI tool
  • SKILL.md covers Execution Mode, Agent Composition, Workflow and Execution Modes by Request Scope, plus 4 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

CLI Tool Builder is an agent skill from revfactory/harness-100. Full pipeline where an agent team collaborates to develop a CLI tool. Use this skill for requests like 'build me a CLI tool', 'command-line tool development', 'CLI utility', 'terminal tool', 'command-line program', 'CLI app build', 'shell tool development', and other CLI tool development tasks. Also supports design-only mode when only command design is needed. Note: GUI app development, web dashboard construction, and IDE plugin development are outside the scope of this skill.

Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Agent Workflows, covering Hooks and plugins. The licence is Apache-2.0.

When your agent uses it

  • Requests like build me a CLI tool
  • Command-line tool development
  • Command-line program
  • Shell tool development

Example prompts

  • “build me a CLI tool”
  • “command-line tool development”
  • “CLI utility”
  • “/cli-tool-builder”

Requirements

  • Python 3
  • Node.js

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. Preparation (performed directly by the orchestrator)
  2. Team Assembly and Execution
  3. Integration and Final Deliverables

What it can do on your machine

Read from SKILL.md and the folder at commit 8e8d35c. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

CLI Tool Builder loads about 1.6k tokens when it runs. Until then it costs about 125 tokens; SKILL.md has 656 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~125
When it runs · the whole SKILL.md, loaded when a task matches
~1.6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from revfactory/harness-100 at commit 8e8d35c, republished under its Apache-2.0 licence (© revfactory). 656 words, ~1,629 tokens.

Download SKILL.mdSave it as .claude/skills/cli-tool-builder/SKILL.md (or your agent's skills folder).
name
cli-tool-builder
description
Full pipeline where an agent team collaborates to develop a CLI tool. Use this skill for requests like 'build me a CLI tool', 'command-line tool development', 'CLI utility', 'terminal tool', 'command-line program', 'CLI app build', 'shell tool development', and other CLI tool development tasks. Also supports design-only mode when only command design is needed. Note: GUI app development, web dashboard construction, and IDE plugin development are outside the scope of this skill.

CLI Tool Builder — CLI Tool Development Pipeline

An agent team collaborates to develop CLI tools through command design > parser implementation > handlers > testing > documentation > deployment.

Execution Mode

Agent Team — Five agents communicate directly via SendMessage and perform cross-validation.

Agent Composition

AgentFileRoleType
command-designer.claude/agents/command-designer.mdCommand structure designgeneral-purpose
core-developer.claude/agents/core-developer.mdCore implementationgeneral-purpose
test-engineer.claude/agents/test-engineer.mdTest writinggeneral-purpose
docs-writer.claude/agents/docs-writer.mdDocumentation writinggeneral-purpose
release-engineer.claude/agents/release-engineer.mdBuild, deploymentgeneral-purpose

Workflow

Phase 1: Preparation (performed directly by the orchestrator)
  1. Extract the following from user input:
    • Tool purpose: What the CLI does
    • Language/Runtime: Python/Node.js/Go/Rust (default: Python)
    • Key features: List of core subcommands
    • Distribution channel: PyPI/npm/Homebrew/binary
    • Constraints (optional): Dependency limitations, compatible OS, performance requirements
  2. Create the _workspace/ directory at the project root
  3. Organize the input and save it to _workspace/00_input.md
  4. Create the _workspace/src/ directory
  5. If pre-existing files are available, copy them to _workspace/ and skip the corresponding phase
  6. Determine the execution mode based on the scope of the request
Phase 2: Team Assembly and Execution
OrderTaskOwnerDependenciesDeliverable
1Command structure designdesignerNone_workspace/01_command_design.md
2Core implementationdeveloperTask 1_workspace/02_core_implementation.md + src/
3aTest writingtesterTask 2_workspace/03_test_suite.md + src/tests/
3bDocumentationdocsTasks 1, 2_workspace/04_documentation.md
4Release configurationreleaseTasks 2, 3a_workspace/05_release_config.md + CI files

Tasks 3a (testing) and 3b (documentation) run in parallel.

Inter-agent communication flow:

  • designer completes > passes command schema to developer, passes --help drafts to docs
  • developer completes > passes mock points to tester, passes API to docs, passes build info to release
  • tester completes > passes bug reports to developer (if any), passes CI test config to release
  • docs completes > passes README path to release
  • release integrates all deliverables to complete the deployment pipeline
Phase 3: Integration and Final Deliverables
  1. Verify that the code in _workspace/src/ is executable
  2. Verify that tests pass
  3. Validate consistency between documentation and code
  4. Report the final summary to the user

Execution Modes by Request Scope

User Request PatternExecution ModeAgents Deployed
"Build me a CLI tool", "full development"Full pipelineAll 5 agents
"Just design the command structure"Design modedesigner only
"Add a subcommand to this CLI"Extension modedesigner + developer + tester
"Write tests for this CLI"Test modetester only
"Just set up deployment"Deploy moderelease only

Data Transfer Protocol

StrategyMethodPurpose
File-based_workspace/ directoryDesign documents and configuration sharing
Message-basedSendMessageReal-time key information transfer, bug reports
Code-based_workspace/src/Executable source code
Show full SKILL.md (249 more words)Show less

Error Handling

Error TypeStrategy
Tool purpose unclearResearch similar CLI tools via WebSearch, propose 3 candidates
Language not specifiedDefault to Python (typer), state reasoning and alternatives
Test failureSend bug report to developer, retest after fix (up to 2 rounds)
Cross-platform build failureSwitch affected OS build to CI-only, present local build alternatives
Agent failureRetry once > if still failing, proceed without that deliverable

Test Scenarios

Normal Flow

Prompt: "Build a file conversion CLI tool in Python. Support JSON/YAML/TOML conversion" Expected result:

  • Command design: convert [input] --from json --to yaml --output out.yaml
  • Core: typer-based, parser + conversion logic + output formatter
  • Testing: Each conversion combination, invalid format input, pipe input
  • Documentation: README + installation + quick start + full command reference
  • Release: pyproject.toml + GitHub Actions CI + PyPI deployment
Existing File Reuse Flow

Prompt: "Just add tests and docs to this CLI code" + CLI source code attached Expected result:

  • Copy existing source code to _workspace/src/
  • Skip designer and developer; deploy tester + docs + release
  • Analyze existing code's command structure to generate tests and documentation
Error Flow

Prompt: "Build me a CLI" (purpose unclear) Expected result:

  • designer requests tool purpose clarification from user
  • Present 3 examples of similar popular CLI tools
  • Proceed with remaining pipeline after purpose is confirmed

Agent Extension Skills

Extension skills that enhance agent domain expertise:

SkillFileTarget AgentRole
arg-parser-generator.claude/skills/arg-parser-generator/skill.mdcommand-designer, core-developerArgument type classification, subcommand patterns, per-language parser boilerplate, help text standard
ux-linter.claude/skills/ux-linter/skill.mdtest-engineer, docs-writerCLI UX 12 principles, error message standards, output format guide, color/interaction patterns

© revfactory, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in en/40-cli-tool-builder/.claude/skills/cli-tool-builder of revfactory/harness-100.

Open the folder on GitHubat commit 8e8d35c

Compare with similar skills

CLI Tool Builder next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

CLI Tool Builder compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
CLI Tool Builder this skillrevfactory/harness-1001.3k—~1.6kAutomated safety check: PassApache-2.0
Hook Development for Claude Code Pluginsanthropics/claude-plugins-official37k11 repos~4.1kAutomated safety check: NotesApache-2.0
Claude Code Agent Developmentanthropics/claude-plugins-official37k8 repos~2.8kAutomated safety check: PassApache-2.0
Claude Code Skill Developer Guidediet103/claude-code-infrastructure-showcase10k10 repos~3.5kAutomated safety check: PassMIT
Plugin Settings Patternanthropics/claude-plugins-official37k7 repos~3kAutomated safety check: PassApache-2.0
MCP Integration for Pluginsanthropics/claude-plugins-official37k11 repos~3.1kAutomated safety check: PassApache-2.0

Similar skills

  • Hook Development for Claude Code Plugins

    anthropics/claude-plugins-official

    Official

    Explains how to write Claude Code plugin hooks, both prompt-based checks and bash commands, for events such as PreToolUse, Stop and SessionStart.

    37k GitHub starsUsed in 11 repos~4.1k tokens
    Agent WorkflowsAuto-check: notes
  • Claude Code Agent Development

    anthropics/claude-plugins-official

    Official

    Explains how to write agents for Claude Code plugins: the markdown file with YAML frontmatter, trigger descriptions, model and color settings, and system prompt design.

    37k GitHub starsUsed in 8 repos~2.8k tokens
    Agent WorkflowsAuto-check passed
  • Claude Code Skill Developer Guide

    diet103/claude-code-infrastructure-showcase

    A guide to creating and managing Claude Code skills with auto-activation: skill-rules.json triggers, hooks, enforcement levels, YAML frontmatter and progressive disclosure.

    10k GitHub starsUsed in 10 repos~3.5k tokens
    Agent WorkflowsAuto-check passed
  • Plugin Settings Pattern

    anthropics/claude-plugins-official

    Official

    Shows how Claude Code plugins keep per-project settings and state in .claude/plugin-name.local.md files with YAML frontmatter and a markdown body.

    37k GitHub starsUsed in 7 repos~3k tokens
    Agent WorkflowsAuto-check passed
  • MCP Integration for Plugins

    anthropics/claude-plugins-official

    Official

    Explains how to bundle Model Context Protocol servers in a Claude Code plugin, covering config files, stdio, SSE, HTTP and WebSocket server types, and authentication.

    37k GitHub starsUsed in 11 repos~3.1k tokens
    Agent WorkflowsAuto-check passed
  • Claude Code Command Development

    anthropics/claude-plugins-official

    Official

    Explains how to write Claude Code slash commands: Markdown files with YAML frontmatter, arguments, file references, bash context and interactive prompts.

    37k GitHub starsUsed in 10 repos~4.8k tokens
    Agent WorkflowsAuto-check passed

More from revfactory/harness-100

All 464 skills in this repo
  • Anti Bot Analyzer

    revfactory/harness-100

    A skill for analyzing website anti-bot defense mechanisms and developing legitimate evasion strategies.

    1.3k GitHub stars~1.1k tokensUpdated 6 mo ago
    Auto-check passed
  • API Error Design Patterns

    revfactory/harness-100

    Reference for designing how an API reports failures: structured error codes, response shapes, client-friendly messages, an error catalog and retry or fallback advice.

    1.3k GitHub stars~1.6k tokensUpdated 6 mo ago
    Auto-check passed
  • API Security Checklist

    revfactory/harness-100

    Walks a backend-dev agent through OWASP API Top 10 checks, authentication and authorization patterns, and defense code during API design.

    1.3k GitHub stars~1.7k tokensUpdated 6 mo ago
    Auto-check passed
  • Arg Parser Generator

    revfactory/harness-100

    Methodology for systematically designing and generating CLI tool argument parser structures.

    1.3k GitHub stars~1.2k tokensUpdated 6 mo ago
    Auto-check passed
  • Audience Segmentation

    revfactory/harness-100

    Audience segmentation skill used by the analyst and curator agents.

    1.3k GitHub stars~1.3k tokensUpdated 6 mo ago
    Auto-check passed
  • Audio Storytelling

    revfactory/harness-100

    Audio storytelling skill used by the podcast scriptwriter and show note editor.

    1.3k GitHub stars~1.6k tokensUpdated 6 mo ago
    Auto-check passed

Categories

Questions about CLI Tool Builder

What does CLI Tool Builder do?

Full pipeline where an agent team collaborates to develop a CLI tool. CLI Tool Builder is an agent skill from revfactory/harness-100. Full pipeline where an agent team collaborates to develop a CLI tool.

When should I use CLI Tool Builder?

CLI Tool Builder fits situations like: requests like build me a CLI tool; command-line tool development; command-line program; shell tool development.

How do I install CLI Tool Builder in Claude Code?

Run `npx skills add revfactory/harness-100 --skill cli-tool-builder -a claude-code`. Or copy the skill folder (en/40-cli-tool-builder/.claude/skills/cli-tool-builder in revfactory/harness-100) into .claude/skills/cli-tool-builder in your project. Claude Code loads it when a task matches its description.

How do I install CLI Tool Builder in Codex?

Run `npx skills add revfactory/harness-100 --skill cli-tool-builder -a codex`. Or copy the skill folder (en/40-cli-tool-builder/.claude/skills/cli-tool-builder in revfactory/harness-100) into .agents/skills/cli-tool-builder in your project. Codex loads it when a task matches its description.

Can I use CLI Tool Builder in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add revfactory/harness-100 --skill cli-tool-builder -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/cli-tool-builder, .gemini/skills/cli-tool-builder, .github/skills/cli-tool-builder and .opencode/skills/cli-tool-builder in your project.

What does CLI Tool Builder need to run?

SKILL.md names no scripts, command-line tools or credentials: CLI Tool Builder is instructions for the agent only. Our summary lists: Python 3; Node.js.

Does CLI Tool Builder access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is CLI Tool Builder safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does CLI Tool Builder use?

CLI Tool Builder is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does CLI Tool Builder use?

About 1.6k tokens (SKILL.md is roughly 6.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to CLI Tool Builder?

Skills that share tags, products or a category with CLI Tool Builder: Hook Development for Claude Code Plugins (anthropics/claude-plugins-official, 37k stars), Claude Code Agent Development (anthropics/claude-plugins-official, 37k stars), Claude Code Skill Developer Guide (diet103/claude-code-infrastructure-showcase, 10k stars) and Plugin Settings Pattern (anthropics/claude-plugins-official, 37k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains CLI Tool Builder?

revfactory (a GitHub user) maintains it in revfactory/harness-100, which has 1,290 GitHub stars. The repository holds 464 skills in this directory. The repository was last updated on March 22, 2026.

Source: revfactory/harness-100 on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.