Skip to content

docs(docs): add the Piwi CLI reference page - #475

Merged
PhenX merged 1 commit into
mainfrom
claude/docs-cli-reference
Sep 5, 2026
Merged

docs(docs): add the Piwi CLI reference page#475
PhenX merged 1 commit into
mainfrom
claude/docs-cli-reference

Conversation

@PhenX

@PhenX PhenX commented Sep 5, 2026

Copy link
Copy Markdown
Collaborator

What & why

Phase-2 restructure — another additive new page (rebased onto current main, which now carries phase 1 + the Branches page).

The piwi CLI has six subcommands and no page of its own. Its flags were scattered and partial: init on getting-started + mcp, gate on ci (only some of its flags), select/run on test-selection, ai on ai-steps, skills on mcp. A power user wanting "every flag of gate" had nowhere to go.

Adds apps/docs/cli.md, a reference documenting every subcommand and flag, transcribed from each command's own --help in packages/reporter/src/cli/ (with the default constants resolved from source) so it can't drift from behavior:

  • init, skills, gate, select/run, ai — each with usage, a full flag table, the connection env-var fallbacks (PIWI_DASHBOARD_URL / PIWI_API_KEY / PIWI_PROJECT_NAME), and the exit codes where they matter for CI.
  • Cross-links to the feature pages that tell the story (getting-started, ci, test-selection, ai-steps, mcp#agent-skills).

Adds a "Piwi CLI" entry to the "Apps & integrations" sidebar group. Purely additive — no existing page URL or anchor changes, no stubs, no in-app link updates.

How was it tested?

  • npm run docs:build — green; the dead-link check validates every anchor (it caught one wrong anchor I'd written — ci#the-run-url-in-ci → corrected to ci#getting-the-run-url-back-out-of-ci).
  • npx vitest run tests/unit/docs-drift.test.ts — 124 passing.

Checklist

  • PR title follows Conventional Commits (type(scope): subject)
  • Tests added/updated for behavior changes (n/a — covered by docs-drift + build dead-link check)
  • Docs updated — this is the docs change

🤖 Generated with Claude Code

https://claude.ai/code/session_01GKdmqq1BRUPeH5BxSPV5Jj


Generated by Claude Code

Phase-2 documentation restructure — another additive "new page". The `piwi`
CLI has six subcommands and no page of its own: init lived on getting-started
and mcp, gate on ci (a subset of its flags), select/run on test-selection, ai
on ai-steps, skills on mcp. A power user wanting "every flag of gate" had
nowhere to go.

Add apps/docs/cli.md, a reference documenting every subcommand and flag,
transcribed from each command's own --help in packages/reporter/src/cli/ so
it can't drift from behavior:

- init, skills, gate, select/run, ai — each with usage, a full flag table,
  the connection env-var fallbacks (PIWI_DASHBOARD_URL / PIWI_API_KEY /
  PIWI_PROJECT_NAME) and, where they matter for CI, the exit codes.
- Cross-links to the feature pages that tell the story (getting-started, ci,
  test-selection, ai-steps, mcp#agent-skills).

Adds a "Piwi CLI" entry to the "Apps & integrations" sidebar group. Purely
additive — no existing page URL or anchor changes.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GKdmqq1BRUPeH5BxSPV5Jj
@github-actions

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Coverage Report for Reporter (./packages/reporter)

Status Category Percentage Covered / Total
🔵 Lines 75.71% 2407 / 3179
🔵 Statements 74.03% 2735 / 3694
🔵 Functions 79.11% 428 / 541
🔵 Branches 67.72% 1905 / 2813
File CoverageNo changed files found.
Generated in workflow #1638 for commit cf8cfb3 by the Vitest Coverage Report Action

@github-actions

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Coverage Report for Application (./apps/application)

Status Category Percentage Covered / Total
🔵 Lines 47.41% 7220 / 15227
🔵 Statements 46.34% 8370 / 18059
🔵 Functions 45.9% 1389 / 3026
🔵 Branches 41.71% 6460 / 15486
File CoverageNo changed files found.
Generated in workflow #1638 for commit cf8cfb3 by the Vitest Coverage Report Action

@PhenX
PhenX merged commit 6112481 into main Sep 5, 2026
25 checks passed
@PhenX
PhenX deleted the claude/docs-cli-reference branch September 5, 2026 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants