context-check
Skill9 starsChanged 22 days agoMITView on GitHub
Audits always-on context load for bloat, redundancy, and quality. Use when context feels heavy or periodically to keep the always-on budget lean.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- tmusser/ai-engineering-skillstheir own version, first seen Aug 19, 2026
- philpalmieri/engineering-manager-skillstheir own version, first seen May 19, 2026
- Idle-Sync/skillstheir own version, first seen Apr 26, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- tmusser/ai-engineering-skills★ 6same name
- Idle-Sync/skills★ 1same name
- philpalmieri/engineering-manager-skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository22 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- ai-auditSkill
- bulk-readSkill
- canon-slidesSkill
- captureSkill
- context-doctorSkill
- dead-code-cleanupSkill
- doc-auditSkill
- learnings-sweepSkill
- mikadoSkill
- mutation-testSkill
- output-validatorSkill
- promote-learningsSkill
- pr-reviewSkill
- repo-auditSkill
- repo-workflow-auditSkill
- sdlc-auditSkill
- skill-evalSkill
- skill-exportSkill
- sprintSkill
- wrapupSkill
The file
We split this skill into the rules it gives an agent
12 rules. 0 are common, 0 are distinctive, and 12 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
12
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 14
Read context-findings.md if it exists.
- Very specific: line 20
Check .claude/skills/ in the current working directory.
- Very specific: line 22
If the directory doesn't exist, note "No .claude/skills/ directory found" and continue.
- Very specific: line 25
Run ./tools/skills.sh status if that file exists, otherwise skills.sh status if on PATH.
- Very specific: line 26
Run find .claude/skills -maxdepth 1 -mindepth 1 -type l 2>/dev/null to identify whole-dir symlinks (canon-managed, classic model).
- Very specific: line 27
Run find .claude/skills -maxdepth 1 -mindepth 1 \!
- Very specific: line 33
Check ~/.claude/settings.json.
- Very specific: line 46
If none exist, state "No project-level .claude/ artifacts found."
- Very specific: line 67
Ask: Write context-check-report.md report?
- Very specific: line 70
Read .reports/context-check-history.json at the project root (create the .reports/ directory if absent).
- Very specific: line 71
If that array is non-empty, take its last entry's finding_count as <prev> and its timestamp as <date>.
- Very specific: line 73
Write context-check-report.md at the project root as a markdown table:
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Context Check
Audit what Claude loads every session. Writes context-check-report.md at the project root after explicit confirmation.
Steps
- Read
context-findings.mdif it exists; skip logged issues. - Global artifacts — check
~/.claude/CLAUDE.md. If it is absent, say so and continue. If present, read it. For each@import, count lines and produce a size table:File Lines Issues Check
.claude/skills/in the current working directory.If the directory doesn't exist, note "No
.claude/skills/directory found" and continue.If it exists:
- Run
./tools/skills.sh statusif that file exists, otherwiseskills.sh statusif on PATH. This gives the full registered-skill list. - Run
find .claude/skills -maxdepth 1 -mindepth 1 -type l 2>/dev/nullto identify whole-dir symlinks (canon-managed, classic model). - Run
find .claude/skills -maxdepth 1 -mindepth 1 \! -type l -type d 2>/dev/nullto identify real subdirectories. For each, runreadlink .claude/skills/<name>/SKILL.md 2>/dev/null— if the target contains/canon/skills/or/.canon/skills/, it is canon-managed (per-skill model); otherwise it is project-local.
Report two sub-lists:
- Canon-managed (whole-dir symlinks, or real dirs whose SKILL.md symlinks to a canon path): name and symlink target only. Do not audit content — these are installed from an external source and not part of the project's own context footprint.
- Project-local (real dirs with no canon SKILL.md symlink): name and file size. Include in the content audit at step 8.
- Run
- Check
~/.claude/settings.json. If it is absent, say so and continue. If present, read it and list hooks, matchers, and scripts. - Find the current repo's Claude project memory first, if present, then summarize other
~/.claude/projects/*/memory/directories. If no memory paths exist, say so and continue. Report file count and total size; use line counts or bytes as a proxy, not exact tokens. Project artifacts — check the following in the current working directory. For each: report lines if present, or "not present" if absent.
.claude/settings.json.claude/settings.local.jsonCLAUDE.md(project root)
Produce a project-level size table (omit rows for absent files):
File Lines Issues If none exist, state "No project-level .claude/ artifacts found."
- Flag size issues where line count > 30 and less than half is usually relevant, or a section is one-time/rarely needed. Include the evidence: file, line count, and a short reason the content is usually irrelevant or rarely needed.
Read each imported file plus repo
AGENTS.md, and each present project artifact from Step 6. Skip canon-managed skills identified in Step 3 (symlinked skill dirs or @-imports that resolve to a canon install path such as~/.canon/,~/.claude/skills/, or any path containing/canon/skills/). Flag only high-confidence issues in project-owned files:- Cross-file redundancy — the same rule or constraint appears in two or more files, verbatim or near-verbatim. Quote both occurrences.
- Obvious statements — rules a capable model already follows. Quote the statement and explain why it adds little control.
- Vague non-actionable rules — instructions with no specific compliance path. Quote the rule and explain what is not enforceable.
- Dead references — paths, tools, or commands that no longer exist. Verify before flagging and name the failed check.
Report in two labeled sections:
### Global — size table from Steps 2–5, content findings for global files.
### Project — size table from Step 6, content findings for project-level files.
Note below each size table: "Line counts are a proxy for context weight, not exact token counts."
In each size table, set the Issues column to
Yif any finding was flagged for that file,—if none. For each file assessed in Steps 7–8, explicitly state either the issue found or "no relevance concern" — do not silently skip files that passed. If one section has no findings, say so and continue to the next section. If no findings exist anywhere, stop before the write prompt.- Ask:
Write context-check-report.md report? (y to confirm). Do not write withouty. On confirmation:
- Compute
finding_count= the number of rows, across both the Global and Project sections (from Step 9), whose Status will beissues foundin the report table below, andfile_count= the total number of rows across both sections. - Read
.reports/context-check-history.jsonat the project root (create the.reports/directory if absent). Treat a missing or unparseable file as{}. Look up the entry keyed by this project's absolute root path (an array of{timestamp, finding_count, file_count}objects, oldest first). - If that array is non-empty, take its last entry's
finding_countas<prev>and itstimestampas<date>. - Append
{timestamp: <ISO 8601 now>, finding_count, file_count}to the array; if the array now has more than 20 entries, drop from the front until it has exactly 20. Write the file back (pretty-printed JSON, one key per absolute project path — do not touch other projects' entries). - Write
context-check-report.mdat the project root as a markdown table:
| File | Status | Details |
|------|--------|---------|One row per audited file. Status must be exactly one of: clean, issues found, not present, skipped. Use skipped for canon-managed files that are not audited. Details is a one-line summary of the finding or reason, or — if none. Overwrite if the file already exists — this is a point-in-time snapshot, not a log. If a prior history entry existed (the <prev>/<date> computed above), insert one line at the very top of the file, before the first table: **Trend:** findings <prev> → <finding_count> (last run <date>). Omit this line entirely on a project's first-ever run (no prior entry).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

