Hook Development for Claude Code Plugins
anthropics/claude-plugins-official
Explains how to write Claude Code plugin hooks, both prompt-based checks and bash commands, for events such as PreToolUse, Stop and SessionStart.
Full pipeline where an agent team collaborates to develop a CLI tool.
$ npx skills add revfactory/harness-100 --skill cli-tool-builder -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install revfactory/harness-100 cli-tool-builder --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ 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-srcUse ~/.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/
Install the "cli-tool-builder" agent skill from https://github.com/revfactory/harness-100/tree/main/en/40-cli-tool-builder/.claude/skills/cli-tool-builder into .claude/skills/cli-tool-builder/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cli-tool-builder", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/revfactory/harness-100/tree/main/en/40-cli-tool-builder/.claude/skills/cli-tool-builderType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add revfactory/harness-100 --skill cli-tool-builder -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install revfactory/harness-100 cli-tool-builder --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/revfactory/harness-100.git skills-src && mkdir -p .agents/skills && cp -r skills-src/en/40-cli-tool-builder/.claude/skills/cli-tool-builder .agents/skills/cli-tool-builder && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "cli-tool-builder" agent skill from https://github.com/revfactory/harness-100/tree/main/en/40-cli-tool-builder/.claude/skills/cli-tool-builder into .agents/skills/cli-tool-builder/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cli-tool-builder", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add revfactory/harness-100 --skill cli-tool-builder -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install revfactory/harness-100 cli-tool-builder --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/revfactory/harness-100.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/en/40-cli-tool-builder/.claude/skills/cli-tool-builder .cursor/skills/cli-tool-builder && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "cli-tool-builder" agent skill from https://github.com/revfactory/harness-100/tree/main/en/40-cli-tool-builder/.claude/skills/cli-tool-builder into .cursor/skills/cli-tool-builder/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cli-tool-builder", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/revfactory/harness-100.git --path en/40-cli-tool-builder/.claude/skills/cli-tool-builder--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add revfactory/harness-100 --skill cli-tool-builder -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install revfactory/harness-100 cli-tool-builder --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/revfactory/harness-100.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/en/40-cli-tool-builder/.claude/skills/cli-tool-builder .gemini/skills/cli-tool-builder && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "cli-tool-builder" agent skill from https://github.com/revfactory/harness-100/tree/main/en/40-cli-tool-builder/.claude/skills/cli-tool-builder into .gemini/skills/cli-tool-builder/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cli-tool-builder", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install revfactory/harness-100 cli-tool-builderInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add revfactory/harness-100 --skill cli-tool-builder -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/revfactory/harness-100.git skills-src && mkdir -p .github/skills && cp -r skills-src/en/40-cli-tool-builder/.claude/skills/cli-tool-builder .github/skills/cli-tool-builder && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "cli-tool-builder" agent skill from https://github.com/revfactory/harness-100/tree/main/en/40-cli-tool-builder/.claude/skills/cli-tool-builder into .github/skills/cli-tool-builder/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cli-tool-builder", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add revfactory/harness-100 --skill cli-tool-builder -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install revfactory/harness-100 cli-tool-builder --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/revfactory/harness-100.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/en/40-cli-tool-builder/.claude/skills/cli-tool-builder .opencode/skills/cli-tool-builder && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "cli-tool-builder" agent skill from https://github.com/revfactory/harness-100/tree/main/en/40-cli-tool-builder/.claude/skills/cli-tool-builder into .opencode/skills/cli-tool-builder/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cli-tool-builder", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
cli-tool-builderFull 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. 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.
3 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 8e8d35c. It shows what the files ask for, not the result of running them.
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.
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.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
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.
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.
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.
The full file from revfactory/harness-100 at commit 8e8d35c, republished under its Apache-2.0 licence (© revfactory). 656 words, ~1,629 tokens.
.claude/skills/cli-tool-builder/SKILL.md (or your agent's skills folder).An agent team collaborates to develop CLI tools through command design > parser implementation > handlers > testing > documentation > deployment.
Agent Team — Five agents communicate directly via SendMessage and perform cross-validation.
| Agent | File | Role | Type |
|---|---|---|---|
| command-designer | .claude/agents/command-designer.md | Command structure design | general-purpose |
| core-developer | .claude/agents/core-developer.md | Core implementation | general-purpose |
| test-engineer | .claude/agents/test-engineer.md | Test writing | general-purpose |
| docs-writer | .claude/agents/docs-writer.md | Documentation writing | general-purpose |
| release-engineer | .claude/agents/release-engineer.md | Build, deployment | general-purpose |
_workspace/ directory at the project root_workspace/00_input.md_workspace/src/ directory_workspace/ and skip the corresponding phase| Order | Task | Owner | Dependencies | Deliverable |
|---|---|---|---|---|
| 1 | Command structure design | designer | None | _workspace/01_command_design.md |
| 2 | Core implementation | developer | Task 1 | _workspace/02_core_implementation.md + src/ |
| 3a | Test writing | tester | Task 2 | _workspace/03_test_suite.md + src/tests/ |
| 3b | Documentation | docs | Tasks 1, 2 | _workspace/04_documentation.md |
| 4 | Release configuration | release | Tasks 2, 3a | _workspace/05_release_config.md + CI files |
Tasks 3a (testing) and 3b (documentation) run in parallel.
Inter-agent communication flow:
_workspace/src/ is executable| User Request Pattern | Execution Mode | Agents Deployed |
|---|---|---|
| "Build me a CLI tool", "full development" | Full pipeline | All 5 agents |
| "Just design the command structure" | Design mode | designer only |
| "Add a subcommand to this CLI" | Extension mode | designer + developer + tester |
| "Write tests for this CLI" | Test mode | tester only |
| "Just set up deployment" | Deploy mode | release only |
| Strategy | Method | Purpose |
|---|---|---|
| File-based | _workspace/ directory | Design documents and configuration sharing |
| Message-based | SendMessage | Real-time key information transfer, bug reports |
| Code-based | _workspace/src/ | Executable source code |
| Error Type | Strategy |
|---|---|
| Tool purpose unclear | Research similar CLI tools via WebSearch, propose 3 candidates |
| Language not specified | Default to Python (typer), state reasoning and alternatives |
| Test failure | Send bug report to developer, retest after fix (up to 2 rounds) |
| Cross-platform build failure | Switch affected OS build to CI-only, present local build alternatives |
| Agent failure | Retry once > if still failing, proceed without that deliverable |
Prompt: "Build a file conversion CLI tool in Python. Support JSON/YAML/TOML conversion" Expected result:
convert [input] --from json --to yaml --output out.yamlPrompt: "Just add tests and docs to this CLI code" + CLI source code attached Expected result:
_workspace/src/Prompt: "Build me a CLI" (purpose unclear) Expected result:
Extension skills that enhance agent domain expertise:
| Skill | File | Target Agent | Role |
|---|---|---|---|
| arg-parser-generator | .claude/skills/arg-parser-generator/skill.md | command-designer, core-developer | Argument type classification, subcommand patterns, per-language parser boilerplate, help text standard |
| ux-linter | .claude/skills/ux-linter/skill.md | test-engineer, docs-writer | CLI 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
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
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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| CLI Tool Builder this skillrevfactory/harness-100 | 1.3k | — | ~1.6k | Automated safety check: Pass | Apache-2.0 | |
| Hook Development for Claude Code Pluginsanthropics/claude-plugins-official | 37k | 11 repos | ~4.1k | Automated safety check: Notes | Apache-2.0 | |
| Claude Code Agent Developmentanthropics/claude-plugins-official | 37k | 8 repos | ~2.8k | Automated safety check: Pass | Apache-2.0 | |
| Claude Code Skill Developer Guidediet103/claude-code-infrastructure-showcase | 10k | 10 repos | ~3.5k | Automated safety check: Pass | MIT | |
| Plugin Settings Patternanthropics/claude-plugins-official | 37k | 7 repos | ~3k | Automated safety check: Pass | Apache-2.0 | |
| MCP Integration for Pluginsanthropics/claude-plugins-official | 37k | 11 repos | ~3.1k | Automated safety check: Pass | Apache-2.0 |
anthropics/claude-plugins-official
Explains how to write Claude Code plugin hooks, both prompt-based checks and bash commands, for events such as PreToolUse, Stop and SessionStart.
anthropics/claude-plugins-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.
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.
anthropics/claude-plugins-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.
anthropics/claude-plugins-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.
anthropics/claude-plugins-official
Explains how to write Claude Code slash commands: Markdown files with YAML frontmatter, arguments, file references, bash context and interactive prompts.
revfactory/harness-100
A skill for analyzing website anti-bot defense mechanisms and developing legitimate evasion strategies.
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.
revfactory/harness-100
Walks a backend-dev agent through OWASP API Top 10 checks, authentication and authorization patterns, and defense code during API design.
revfactory/harness-100
Methodology for systematically designing and generating CLI tool argument parser structures.
revfactory/harness-100
Audience segmentation skill used by the analyst and curator agents.
revfactory/harness-100
Audio storytelling skill used by the podcast scriptwriter and show note editor.
Categories
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.
CLI Tool Builder fits situations like: requests like build me a CLI tool; command-line tool development; command-line program; shell tool development.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.