Skip to content

docs(skills): add Caveats column to subcommand table, expand internal/ layout (SO-40)#113

Open
castrojo wants to merge 2 commits into
mainfrom
feature/so-40-skill-md-caveats-column
Open

docs(skills): add Caveats column to subcommand table, expand internal/ layout (SO-40)#113
castrojo wants to merge 2 commits into
mainfrom
feature/so-40-skill-md-caveats-column

Conversation

@castrojo

@castrojo castrojo commented Apr 9, 2026

Copy link
Copy Markdown
Owner

Summary

Closes SO-40: Update skills/SKILL.md subcommand table with full coverage.

What changed

The subcommand table in the ## stats-go Subcommands section of skills/SKILL.md already had all 19 subcommands documented (the prior gap was fixed in commit 3030097). This PR adds the final AC3 requirement: a Caveats column with auth requirements and operational notes per subcommand.

Changes

Subcommand table:

  • Added 4th column Caveats to all 19 subcommand rows
  • Documents GITHUB_TOKEN requirements explicitly (or "No GITHUB_TOKEN needed" for public APIs)
  • Notes anonymous OCI pull for fetch-supply-chain (uses authn.Anonymous)
  • Notes packages: read scope requirement for fetch-testhub
  • Documents fallback behaviour for cold-start CI runs
  • Per-image repo lists for fetch-builds-* variants
  • Weekly cadence + cache-skip note for fetch-countme

Repository layout (internal/ directory tree):

  • Added missing packages: brewfile, builds, contributors, ghcli, quay, scorecard, supplychain
  • Corrected github/ghcli/ (actual package name)

CI walkthrough:

  • Added missing fetch-contributors step (was omitted from the numbered list)
  • Renumbered subsequent steps

Acceptance criteria

  • ✅ AC1: All 19 implemented subcommands appear in the SKILL.md table (verified against switch cases in cmd/stats/main.go)
  • ✅ AC2: Table format consistent with existing entries (4-column format)
  • ✅ AC3: Caveats column added — auth requirements, anonymous OCI access, fallback behaviour
  • ✅ AC4: PR filed against castrojo/bootc-ecosystem

…/ layout

SO-40: The SKILL.md subcommand table was missing a Caveats column per AC3.

Changes:
- Add 4th column 'Caveats' to all 19 subcommand table rows with:
  - GITHUB_TOKEN requirements (or explicit 'No GITHUB_TOKEN needed')
  - Anonymous OCI pull note for fetch-supply-chain (authn.Anonymous)
  - packages:read scope requirement for fetch-testhub
  - Fallback behaviour for cold-start CI
  - Per-image repo lists for fetch-builds-* variants
  - Weekly-update cadence and cache-skip behaviour for fetch-countme
- Expand internal/ directory tree to list all actual packages:
  brewfile, builds, contributors, ghcli, quay, scorecard, supplychain
  (previously only listed countme/github/history/metrics/osanalytics/tap/tapanalytics/testhub)
- Add fetch-contributors step to CI walkthrough (was previously missing)
- Correct step numbers in CI walkthrough (was off by one after contributors step)
@coderabbitai

coderabbitai Bot commented Apr 9, 2026

Copy link
Copy Markdown
📝 Walkthrough

Walkthrough

Updated skills/SKILL.md documentation to reflect a restructured stats-go module with new internal packages, expanded github client responsibilities, reworked stats subcommand documentation with updated output files and source descriptions, adjusted CI workflow ordering, and clarified where fetch-contributors executes.

Changes

Cohort / File(s) Summary
Documentation Updates
skills/SKILL.md
Revised module layout with new internal packages (brewfile, builds, contributors, ghcli, quay, scorecard, supplychain). Expanded github client's described responsibilities. Replaced two-column subcommand table with four-column version adding "Caveats" column. Updated output file listings and source requirements for multiple subcommands. Adjusted CI workflow ordering and clarified fetch-contributors execution location.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

Poem

🐰 The module mapeth out so clean,
With packages bright betwixt the seams,
New workflows dance, old paths arrange,
Caveats noted, docs rearrange!
~Hopfully Yours 🌙✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main changes: adding a Caveats column to the subcommand table and expanding the internal/ layout documentation in skills/SKILL.md.
Description check ✅ Passed The description is comprehensive and directly related to the changeset, detailing the Caveats column additions, repository layout updates, and CI workflow changes documented in skills/SKILL.md.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@gemini-code-assist

Copy link
Copy Markdown

Warning

Gemini is experiencing higher than usual traffic and was unable to create the review. Please try again in a few hours by commenting /gemini review.

…n daily-build.yml

Two factual errors found by QA review (SO-76):

1. github/ package was removed from internal/ tree when ghcli/ was added.
   Both packages exist and are in active use:
   - internal/ghcli/ wraps the gh CLI binary (exec.go)
   - internal/github/ is a REST API client (client.go, graphql.go)
   Restore github/ alongside ghcli/ in the layout tree.

2. fetch-contributors was incorrectly placed as step 7 in daily-build.yml
   walkthrough. It does NOT run in daily-build.yml — it runs in the
   separate .github/workflows/contributor-sync.yml workflow.
   Remove from daily-build.yml list; add clarifying note.
   Also correct fetch-releases position (step 6 → step 10, matching
   actual workflow order after fetch-supply-chain).

Co-authored-by: docs-writer

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@skills/SKILL.md`:
- Line 51: Update the description for the `internal/github` entry to narrow its
scope to only GitHub traffic/clone-related functionality (e.g., "github/  #
GitHub traffic/clone data") and remove references to packages and Actions
collection; add or clarify that package and Actions data are handled by
`internal/testhub` and `internal/builds` respectively so the README accurately
reflects implementation boundaries.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: d896ab9a-0bd5-4cfe-a296-3461cc48271e

📥 Commits

Reviewing files that changed from the base of the PR and between 30e3d12 and 8b42e59.

📒 Files selected for processing (1)
  • skills/SKILL.md

Comment thread skills/SKILL.md
│ ├── countme/ # Universal Blue countme badge + CSV fetcher
│ ├── github/ # GitHub REST API client (traffic data)
│ ├── ghcli/ # gh CLI wrapper (reads GITHUB_TOKEN automatically)
│ ├── github/ # GitHub REST API client (traffic, packages, Actions data)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Correct internal/github scope to avoid misleading package boundaries.

Line 51 says internal/github handles traffic, packages, and Actions data, but current implementation evidence shows traffic-clone functionality there; packages/actions collection is handled by other packages (internal/testhub, internal/builds). Please narrow this description.

Suggested doc fix
-│       ├── github/        # GitHub REST API client (traffic, packages, Actions data)
+│       ├── github/        # GitHub REST API client (traffic endpoints)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
│ ├── github/ # GitHub REST API client (traffic, packages, Actions data)
│ ├── github/ # GitHub REST API client (traffic endpoints)
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@skills/SKILL.md` at line 51, Update the description for the `internal/github`
entry to narrow its scope to only GitHub traffic/clone-related functionality
(e.g., "github/  # GitHub traffic/clone data") and remove references to packages
and Actions collection; add or clarify that package and Actions data are handled
by `internal/testhub` and `internal/builds` respectively so the README
accurately reflects implementation boundaries.

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.

1 participant