Skip to content

docs/ci: complete README file reference and add readme-sync guard#29

Merged
codeslash-net merged 4 commits intomainfrom
claude/complete-variables-tokens-utilities-JiRPS
May 6, 2026
Merged

docs/ci: complete README file reference and add readme-sync guard#29
codeslash-net merged 4 commits intomainfrom
claude/complete-variables-tokens-utilities-JiRPS

Conversation

@codeslash-net
Copy link
Copy Markdown
Owner

@codeslash-net codeslash-net commented May 6, 2026

Summary

  • README.md — added all missing optional files (slashed-utilities-viewport.css, slashed-animations.css, tokens-legacy.css, tokens-user.example.css) and missing docs entries (TOKENS.md, UTILITIES.md, UTILITIES-VISUAL.md) to the File reference section; updated Quick start opt-ins block to list all three add-on files
  • bin/check-readme-sync.sh — new script that fails if any css/*.css or docs/*.md file is not mentioned by name in README.md
  • .github/workflows/bundle-check.yml — new readme-sync CI job runs the script on every push and PR
  • bin/setup-hooks.sh — pre-commit hook now also blocks commits that add a new css/*.css or docs/*.md without staging README.md

Test plan

  • bin/check-readme-sync.sh exits 0 on the current tree
  • CI readme-sync job passes
  • Adding a new .css file without updating README.md and trying to commit is blocked by the pre-commit hook (after running bin/setup-hooks.sh)

https://claude.ai/code/session_01HXBTBxk2YTCvs62tE3Qm28


Generated by Claude Code

Summary by CodeRabbit

  • Documentation
    • Added "Optional add-ons" section documenting additional CSS bundles (viewport utilities, decorative utilities, animations) available for inclusion after the main CSS bundle.

claude added 3 commits May 6, 2026 11:23
It was listed in docs/INSTALLATION.md but missing from the README
optional-files table, leaving it invisible to anyone doing a quick
file-reference scan.

https://claude.ai/code/session_01HXBTBxk2YTCvs62tE3Qm28
Quick start: add slashed-utilities-viewport.css and slashed-animations.css
alongside slashed-utilities-visual.css so all opt-ins are visible.

File reference: add missing optional files (slashed-animations.css,
tokens-legacy.css, tokens-user.example.css) and missing docs entries
(TOKENS.md, UTILITIES.md, UTILITIES-VISUAL.md).

https://claude.ai/code/session_01HXBTBxk2YTCvs62tE3Qm28
bin/check-readme-sync.sh: fails if any css/*.css or docs/*.md file is
not mentioned by name in README.md. Catches the class of drift that
accumulated (slashed-utilities-viewport.css, TOKENS.md, etc.) without
any automated guard to catch it.

.github/workflows/bundle-check.yml: new readme-sync job runs the script
on every push and PR.

bin/setup-hooks.sh: pre-commit hook now also blocks commits that add a
new css/*.css or docs/*.md without staging README.md, prompting the
author to update the File reference section before committing.

https://claude.ai/code/session_01HXBTBxk2YTCvs62tE3Qm28
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 6, 2026

Warning

Rate limit exceeded

@codeslash-net has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 42 minutes and 46 seconds before requesting another review.

To continue reviewing without waiting, purchase usage credits in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 5a92f77f-d18a-49c0-a62a-0d1c446edb0d

📥 Commits

Reviewing files that changed from the base of the PR and between 7930405 and ea4b19d.

📒 Files selected for processing (1)
  • bin/setup-hooks.sh
📝 Walkthrough

Walkthrough

A new verification system ensures that all CSS and documentation files are referenced in the README. It includes a pre-commit hook guard, a verification script invoked by both the hook and CI, and documentation of additional CSS bundles.

Changes

README Sync Verification System

Layer / File(s) Summary
Documentation & Assets
README.md
Adds new CSS optional add-ons section (viewport utilities, animations) and expands the css/ asset catalog to list slashed-components.css, slashed-utilities-viewport.css, slashed-utilities-visual.css, slashed-animations.css, slashed-experimental.css, tokens-legacy.css, and tokens-user.example.css.
Verification Script
bin/check-readme-sync.sh
New script that discovers all CSS and Markdown files in css/ and docs/ directories, checks that each basename appears in README.md, and reports missing references with exit code 1 or success with exit code 0.
Pre-commit Integration
bin/setup-hooks.sh
Adds pre-commit guard that detects newly added CSS and docs files, enforces README.md being staged for commit, and blocks commits with guidance if README is not updated.
CI Integration
.github/workflows/bundle-check.yml
Appends readme-sync job to bundle-check workflow that runs the verification script on ubuntu-latest.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related PRs

  • codeslash-net/SLASHED#14: Also adds verification tooling to bin/setup-hooks.sh and new CI/docs-sync scripts, touching the same hook/verification surface.
  • codeslash-net/SLASHED#8: Modifies the slashed-components.css file and related README references that this PR documents and enforces.
  • codeslash-net/SLASHED#6: Creates the bundle-check workflow that this PR extends with the new readme-sync job.

Poem

🐰 Files scattered far and wide,
Need a sync on the README side,
A script and hook join the dance,
Keeping docs and assets in sync at a glance,
No more forgotten references tonight! ✨


Important

Pre-merge checks failed

Please resolve all errors before merging. Addressing warnings is optional.

❌ Failed checks (1 error, 1 warning)

Check name Status Explanation Resolution
Changelog Coverage ❌ Error CHANGELOG.md exists but version 0.6.6.0 entry omits the readme-sync script, CI job, and pre-commit hook changes added in this PR. Add CHANGELOG.md entries documenting the new check-readme-sync.sh script, readme-sync CI job, and pre-commit hook updates.
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (6 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change: ensuring README completeness and adding automated checks to maintain it.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Version Consistency ✅ Passed All version declarations in the repository are consistent at 0.6.6.0. The PR makes no changes to any files containing version declarations, so there is no version inconsistency to report.
Roadmap Planned Section Hygiene ✅ Passed ROADMAP.md exists but was not modified in this PR. No planned items in the ROADMAP describe the feature implemented by this PR.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/complete-variables-tokens-utilities-JiRPS

Tip

💬 Introducing Slack Agent: The best way for teams to turn conversations into code.

Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.

  • Generate code and open pull requests
  • Plan features and break down work
  • Investigate incidents and troubleshoot customer tickets together
  • Automate recurring tasks and respond to alerts with triggers
  • Summarize progress and report instantly

Built for teams:

  • Shared memory across your entire org—no repeating context
  • Per-thread sandboxes to safely plan and execute work
  • Governance built-in—scoped access, auditability, and budget controls

One agent for your entire SDLC. Right inside Slack.

👉 Get started


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.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

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 current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@bin/setup-hooks.sh`:
- Around line 76-77: The git command that builds new_files uses --diff-filter=A
which omits renamed files; update the filter in the pipeline that sets new_files
(the git diff --cached --name-only --diff-filter=... call) to include renames
(R) as well as added files so renamed CSS/docs are captured (e.g. use AR or a
combined filter like --diff-filter=AR), keeping the rest of the pipeline (the
grep for '^(css/[^/]+\.css|docs/[^/]+\.md)$' and the || true fallback)
unchanged.
🪄 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: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 99bae939-0db7-40d9-97b1-dd13e327f044

📥 Commits

Reviewing files that changed from the base of the PR and between ee025f6 and 7930405.

📒 Files selected for processing (4)
  • .github/workflows/bundle-check.yml
  • README.md
  • bin/check-readme-sync.sh
  • bin/setup-hooks.sh

Comment thread bin/setup-hooks.sh Outdated
--diff-filter=A misses renames (git reports them as R, not A).
Changing to AR ensures the guard triggers when a css/*.css or
docs/*.md file is renamed and README.md isn't staged alongside it.

https://claude.ai/code/session_01HXBTBxk2YTCvs62tE3Qm28
@codeslash-net codeslash-net merged commit c75b173 into main May 6, 2026
7 checks passed
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