/dedene-skills:go-cli-builderfrom dedene-skills
Builds or extends Go CLIs with explicit command, auth, configuration, and output contracts, following a house style with Kong and vertical slices.
Ships in dedene-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Build production-grade Go CLIs in Peter's house style: useful vertical slices first, agent-friendly command contracts, strong auth/config/output boundaries, and shippable Homebrew distribution.
For an existing command extension or bug fix, inspect only the affected command, client, auth/output boundaries, docs, and tests. Record docs provenance for the changed operation and run relevant required gates. Do not restart ecosystem research, scaffolding, or distribution work unless the change affects them.
For a new CLI or substantial new integration, use the full research and distribution path below. Distribution preparation does not authorize a release, push, or publication.
go.mod, Makefile, .goreleaser.yaml, README.md, cmd/, internal/, tests, docs, current command grammar.~/Development/Personal/go-cli-development-guide.md, then sample the closest existing CLIs: nimbu-go-cli, frontapp-cli, harvest-cli, raindrop-cli.references/cli-quality-loop.md when shaping scope, phases, artifacts, or verification gates.references/local-go-cli-patterns.md before scaffolding, changing command grammar, auth/config/output, release setup, or tests.Prefer a hand-shaped Go CLI over generated breadth. Start with one valuable vertical slice that proves auth, transport, output, errors, tests, and release shape.
Use this package layout unless the repo already has stronger conventions:
cmd/<binary>/main.go
internal/api/ # clients, transport, typed API errors, resource methods
internal/auth/ # login/token/session/keyring/env handling
internal/config/ # config files, profiles/accounts, paths
internal/cmd/ # Kong commands and command wiring
internal/output/ # table/json/plain, colors, terminal helpers
internal/errfmt/ # actionable user-facing errors
internal/ui/ # optional TUI/wizards/spinners only when useful
Use Kong for new CLIs, matching nimbu, frontcli, harvest, and raindrop. Use Cobra only when the existing repo already uses Cobra or interoperability demands it.
| Phase | Purpose | Output |
|---|---|---|
| 0 Resolve + Reuse | Existing repo, docs/spec/HAR/Postman/WSDL, tokens, prior CLIs | source map + constraints |
| 1 Research Brief | API identity, user jobs, auth, rate limits, product thesis | short brief |
| 2 Ecosystem Scan | Existing CLIs/MCPs/SDKs, Nimbu/frontcli/harvest patterns | ecosystem notes |
| 3 Discovery Gate | API quirks, sampled responses, SOAP/XML/HAR provenance | discovery notes |
| 4 Docs Parity Gate | planned commands checked against primary docs/spec/WSDL/Postman/HAR evidence | command-to-doc matrix |
| 5 Scaffold Slice | Small working CLI slice | buildable repo |
| 6 Build Useful CLI | workflow commands, safe mutations, output contracts | real commands |
| 7 Shipcheck | fmt/lint/test, help/version, doctor, read-only smoke | proof block |
| 8 Distribution | GoReleaser, Homebrew tap, install docs | releasable binary |
Build one excellent CLI; add catalog or marketplace machinery only if the user explicitly asks for a family of CLIs.
tool invoices get --invoice 123 --json, not hidden positional ID chains.--file or clear inline assignments; make them mutually exclusive.--json. Add --plain/TSV when shell pipelines matter.--no-input, --readonly or env equivalent, --dry-run for mutating previews, and --force for destructive actions.Before handoff, run the relevant required repo gate. For a new CLI or changes affecting startup/release wiring, also smoke the supported commands (inspect help; do not hide failures):
make build
./bin/<binary> --help
./bin/<binary> version
./bin/<binary> auth doctor
Use the actual version and doctor syntax exposed by the CLI; skip unsupported commands explicitly. Once relevant checks pass, repeat or broaden only after new changes, failures, or unresolved concerns.
For bug fixes or durable behavior, add regression tests. For API integrations, prefer read-only live smoke when credentials are available; otherwise use fixture servers, golden SOAP/XML payloads, or recorded responses.
Docs parity is a release gate, not a research note:
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub dedene/skills --plugin dedene-skills14 skills in this plugin
/architect-loopRun an explicitly requested architect/builder loop using a project handoff and user-defined acceptance gates./autopilot-interviewInterview or stress-test a plan when the user requests it. Resolve routine choices and surface consequential unresolved decisions./idea-to-visualThis skill should be used when turning an idea, quote, insight, book chapter, post, or talk section into a simple explanatory visual (concept sketch, visual metaphor, comparison, diagram-style illustration) and when prompting image generators for it — Higgsfield (via mcporter), Gemini / Nano Banana, ChatGPT image, or any other image tool, with or without reference images. Covers visual/element brainstorming, concept critique and captions, generator-ready prompts, style transfer of rough sketches, tracing-friendly metaphor objects, and a consistent house style. Triggers on "visualize this idea", "make a visual for", "illustrate this concept", "run VB / EB / CB" (visual, element, caption brainstorm), "style transfer my sketch", "caption for this visual"./last30days-localResearch recent community discussion across supported social sources when the user requests a recent-reaction or last-30-days sweep./smooth-shadowsGenerate layered box-shadow CSS or Tailwind values when the requested design needs smooth elevation./tiktok-transcriptFetch, search, or summarize captions for TikTok videos or a specified channel, with local transcription when captions are absent.Other plugins' skills for the same job