feat(PROJ-000): add context + link checks to CI - #5
Merged
Conversation
added 3 commits
July 16, 2026 16:18
check-context-budget fails CI when always-loaded context (CLAUDE.md, AGENTS.md, skill descriptions) outgrows its budget; check-links fails on broken relative markdown links. Makes the small-context claim falsifiable instead of stated.
Prettier-format the two check scripts that failed CI, teach lint-staged about js/mjs/cjs so pre-commit catches this class of miss, and log the lesson in the commit skill.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Makes the repo's "small always-loaded context, maintained like code" claim falsifiable: CI now fails when the always-on context outgrows its budget or a context file points at a moved/deleted file.
Changes
scripts/check-context-budget.mjs— word budgets for CLAUDE.md (120) and AGENTS.md (400), char budget (400) per skilldescription; failure messages point to the fix (move content on-demand)scripts/check-links.mjs— validates every relative link in tracked markdownpnpm check:context/pnpm check:links+ two CI stepsscripts/scoped out of app ESLint (per the existing harness-scripts lesson)Testing
Related
PROJ-000
Checklist
pnpm lint:fix && pnpm typecheck && pnpm testpass locally{username}/{TICKET}-{description}