What problem does it solve?
CLI documentation drifts out of sync with the actual Cobra command code whenever commands, flags, or aliases change, leaving users with inaccurate reference pages. This Skill regenerates the Semaphore CLI docs directly from the Go source so the docs always match the code.
Core Features & Use Cases
- Code-derived documentation: Extracts command names, aliases, flags, defaults, and required-argument rules from
cli/cmd/ Cobra definitions and their tests.
- Full doc maintenance: Updates command-group pages, the CLI index page, and the
docs/sidebars.js navigation registration, then builds the Docusaurus site to catch broken links.
- Drift and pitfall detection: Identifies dead flags, stale help strings, and removed features, applying version-gated warnings instead of silent deletion.
- Use Case: After adding a new
PersistentFlags() option to the runner register command, ask the Skill to sync the CLI docs and it updates runners.md, verifies the sidebar entry, and runs the docs build.
Quick Start
Update the CLI documentation to match the current Cobra commands under cli/cmd and rebuild the docs site.