Agent skill

Arg Parser Generator

by revfactory in revfactory/harness-100

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

Apache-2.0Auto-check passedDevelopment

Install Arg Parser Generator

skills CLI
$ npx skills add revfactory/harness-100 --skill arg-parser-generator -a claude-code

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

GitHub CLI
$ gh skill install revfactory/harness-100 arg-parser-generator --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/arg-parser-generator .claude/skills/arg-parser-generator && 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
arg-parser-generator
GitHub stars
1.3k
Token cost
~1.2k tokens
SKILL.md length
150 words
Files
1
Skills in repo
464
Repo updated
First seen
Licence
Apache-2.0

At a glance

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

  • CLI argument design
  • SKILL.md covers Target Agents, CLI Argument Type Classification, Subcommand Design Patterns and Option Naming Rules, plus 3 more sections
  • Needs API_KEY
  • Option structure

What it does

Arg Parser Generator is an agent skill from revfactory/harness-100. Methodology for systematically designing and generating CLI tool argument parser structures. Use this skill for 'CLI argument design', 'option structure', 'subcommand design', 'argument parser generation', 'help text design', and other CLI argument system design tasks. Note: GUI interface design and TUI framework integration are outside the scope of this skill.

Its SKILL.md is about 1.2k 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 Development, covering API design. The licence is Apache-2.0.

When your agent uses it

  • CLI argument design
  • Option structure
  • Subcommand design
  • Argument parser generation

Example prompts

  • “CLI argument design”
  • “option structure”
  • “subcommand design”
  • “/arg-parser-generator”

Requirements

  • Python 3
  • Node.js
  • A credential in API_KEY

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 (its code samples are python, javascript and go).

    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 these keys or tokens, usually read from environment variables:

    • API_KEY

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

Context cost

Arg Parser Generator loads about 1.2k tokens when it runs. Until then it costs about 96 tokens; SKILL.md has 150 words of instructions outside code blocks.

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

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). 150 words, ~1,195 tokens.

Download SKILL.mdSave it as .claude/skills/arg-parser-generator/SKILL.md (or your agent's skills folder).
name
arg-parser-generator
description
Methodology for systematically designing and generating CLI tool argument parser structures. Use this skill for 'CLI argument design', 'option structure', 'subcommand design', 'argument parser generation', 'help text design', and other CLI argument system design tasks. Note: GUI interface design and TUI framework integration are outside the scope of this skill.

Arg Parser Generator — CLI Argument Parser Design + Code Generation

A skill that enhances argument parser design for the command-designer and core-developer.

Target Agents

  • command-designer — Designs command structure and option layout
  • core-developer — Implements argument parser code

CLI Argument Type Classification

TypeFormatExample
Positional argument<arg>convert input.json
Required option--name VALUE--output out.yaml
Optional option[--name VALUE][--indent 2]
Flag[--flag][--verbose]
Multiple values--name V1 V2--files a.txt b.txt
Enum--type {a,b,c}--format {json,yaml}
Environment variable$ENV_VAR$API_KEY

Subcommand Design Patterns

Pattern 1: Verb-Based (CRUD)
mytool create <resource> [options]
mytool list [resource] [--filter]
mytool get <id> [--format]
mytool update <id> [options]
mytool delete <id> [--force]
Pattern 2: Resource-Based (kubectl style)
mytool user list
mytool user create --name "name"
mytool project deploy --env prod
Pattern 3: Pipeline-Based (Unix philosophy)
mytool parse input.json | mytool transform --schema s.yaml | mytool output

Option Naming Rules

1. Short/long option pairs: -o / --output
2. Boolean + negation: --color / --no-color
3. Consistent nouns: --output-dir (not verbs like --write-to)
4. Abbreviation when unambiguous: --config -> --cfg

Prohibited patterns:
- -h (reserved for help), -V (reserved for version)
- Uppercase short options (-A, -B) — cause confusion
- Overly long options (--output-directory-path)

Per-Language Parser Library + Boilerplate

python
import typer
from typing import Optional
from enum import Enum

app = typer.Typer(help="File conversion CLI")

class Format(str, Enum):
    json = "json"
    yaml = "yaml"
    toml = "toml"

@app.command()
def convert(
    input_file: str = typer.Argument(..., help="Input file"),
    from_format: Format = typer.Option(..., "--from", "-f", help="Input format"),
    to_format: Format = typer.Option(..., "--to", "-t", help="Output format"),
    output: Optional[str] = typer.Option(None, "--output", "-o", help="Output file"),
    indent: int = typer.Option(2, "--indent", help="Indentation"),
    verbose: bool = typer.Option(False, "--verbose", "-v", help="Verbose logging"),
):
    """Convert file formats."""
    ...

if __name__ == "__main__":
    app()
Node.js (commander)
javascript
const { Command } = require('commander');
const program = new Command();

program
  .name('mytool')
  .description('File conversion CLI')
  .version('1.0.0');

program
  .command('convert <input>')
  .option('-f, --from <format>', 'Input format', 'json')
  .option('-t, --to <format>', 'Output format', 'yaml')
  .option('-o, --output <file>', 'Output file')
  .action((input, options) => { ... });

program.parse();
Go (cobra)
go
var convertCmd = &cobra.Command{
    Use:   "convert [input]",
    Short: "Convert file formats",
    Args:  cobra.ExactArgs(1),
    RunE: func(cmd *cobra.Command, args []string) error {
        from, _ := cmd.Flags().GetString("from")
        to, _ := cmd.Flags().GetString("to")
        // ...
        return nil
    },
}

func init() {
    convertCmd.Flags().StringP("from", "f", "json", "Input format")
    convertCmd.Flags().StringP("to", "t", "yaml", "Output format")
    convertCmd.Flags().StringP("output", "o", "", "Output file")
}

Help Output Standard

Usage: mytool <command> [options]

Commands:
  convert    Convert file formats
  validate   Validate file syntax
  diff       Compare two files

Options:
  -h, --help       Show help
  -V, --version    Show version
  -v, --verbose    Verbose output
  --no-color       Disable colors

Examples:
  mytool convert input.json --to yaml
  mytool validate schema.json data.json

Environment:
  MYTOOL_CONFIG    Config file path

Exit Code Standard

CodeMeaningUsage
0SuccessNormal completion
1General errorRuntime error
2Argument errorInvalid argument/option
126Permission deniedFile access denied
127Dependency missingRequired tool not installed
130User interruptCtrl+C

© 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/arg-parser-generator of revfactory/harness-100.

Open the folder on GitHubat commit 8e8d35c

Compare with similar skills

Arg Parser Generator 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.

Arg Parser Generator compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Arg Parser Generator this skillrevfactory/harness-1001.3k—~1.2kAutomated safety check: PassApache-2.0
Go Pedantrychromedp/chromedp13k—~3.7kAutomated safety check: PassMIT
LangBot Core Developmentlangbot-app/LangBot18k—~1.4kAutomated safety check: NotesApache-2.0
Breaking Change Analysisruby-git/ruby-git1.8k—~1.7kAutomated safety check: PassMIT
Atomui Control OptimizationAtomUI/AtomUI842—~3.4kAutomated safety check: PassLGPL-3.0
Go Standardsasymmetric-research/solana-exporter133—~1.6kAutomated safety check: PassApache-2.0

Similar skills

  • Go Pedantry

    chromedp/chromedp

    This skill should be used when the user is writing Go code and needs guidance on Go-specific pedantry: error wrapping with fmt.Errorf and %w, interface design (accept interfaces return structs)…

    13k GitHub stars~3.7k tokensUpdated 2 days ago
    DevelopmentAuto-check passed
  • LangBot Core Development

    langbot-app/LangBot

    Covers developing the LangBot core backend and web UI: dev setup, repo layout, API auth types, adding endpoints, migrations and keeping the MCP server in step.

    18k GitHub stars~1.4k tokensUpdated today
    DevelopmentAuto-check: notes
  • Breaking Change Analysis

    ruby-git/ruby-git

    Assesses what an API change would break before it is made, finds every usage, documents the impact and plans a deprecation or migration path.

    1.8k GitHub stars~1.7k tokensUpdated 5 days ago
    DevelopmentAuto-check passed
  • A skill your agent uses when optimizing, refactoring, reviewing, or fixing AtomUI controls, including control API contracts, member layout, file splitting, lifecycle, AXAML structure, correctness…

    842 GitHub stars~3.4k tokensUpdated today
    DevelopmentAuto-check passed
  • Go Standards

    asymmetric-research/solana-exporter

    Idiomatic Go conventions — naming, error handling, concurrency, interfaces, testing, and API design.

    133 GitHub stars~1.6k tokensUpdated 2 mo ago
    DevelopmentAuto-check passed
  • Modern Csharp Coding Standards

    sketch7/FluentlyHttpClient

    Write modern, high-performance C code using records, pattern matching, value objects, async/await, Span<T/Memory<T, and best-practice API design patterns.

    121 GitHub starsUsed in 3 repos~2.7k tokens
    DevelopmentAuto-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
  • 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
  • Audit Checklist Engine

    revfactory/harness-100

    A systematic checklist generation engine for compliance audits.

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

Questions about Arg Parser Generator

What does Arg Parser Generator do?

Methodology for systematically designing and generating CLI tool argument parser structures. Arg Parser Generator is an agent skill from revfactory/harness-100. Methodology for systematically designing and generating CLI tool argument parser structures.

When should I use Arg Parser Generator?

Arg Parser Generator fits situations like: CLI argument design; option structure; subcommand design; argument parser generation.

How do I install Arg Parser Generator in Claude Code?

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

How do I install Arg Parser Generator in Codex?

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

Can I use Arg Parser Generator 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 arg-parser-generator -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/arg-parser-generator, .gemini/skills/arg-parser-generator, .github/skills/arg-parser-generator and .opencode/skills/arg-parser-generator in your project.

What does Arg Parser Generator need to run?

Going by SKILL.md and its folder, Arg Parser Generator needs credentials named API_KEY. Our summary lists: Python 3; Node.js; A credential in API_KEY.

Does Arg Parser Generator 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 Arg Parser Generator 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 Arg Parser Generator use?

Arg Parser Generator 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 Arg Parser Generator use?

About 1.2k tokens (SKILL.md is roughly 4.8k 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 Arg Parser Generator?

Skills that share tags, products or a category with Arg Parser Generator: Go Pedantry (chromedp/chromedp, 13k stars), LangBot Core Development (langbot-app/LangBot, 18k stars), Breaking Change Analysis (ruby-git/ruby-git, 1.8k stars) and Atomui Control Optimization (AtomUI/AtomUI, 842 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Arg Parser Generator?

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.