一键导入
context-check
Audits always-on context load for bloat, redundancy, and quality. Use when context feels heavy or periodically to keep the always-on budget lean.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Audits always-on context load for bloat, redundancy, and quality. Use when context feels heavy or periodically to keep the always-on budget lean.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Exports any flat canon skill as a paste-ready prompt, or refines an existing prompt using efficiency.md standards. Use when running a skill in claude.ai, a system prompt, or another environment that doesn't load SKILL.md natively. Invoke as skill-export <skill-name> or skill-export <skill-name> "<prompt>". Rejects skills with sub-skills.
Manages the sprint workflow for focused changes. Use when asked to add, fix, update, implement, debug, or build — see the Workflow tiers section for what's out of scope.
Internal close-pipeline invoked by sprint complete — quality checks, code review, cleanup. Not for direct use; a normal/high-risk sprint's own "sprint complete" step calls this automatically.
Converts a title or heading into a URL-safe slug (lowercase, hyphen-separated). Use when generating a filename, anchor link, or URL path segment from a title.
Generates Marp slide decks from canon knowledge. Use when asked to create slides, build a presentation, or generate a deck on a canon topic (context management, evaluator pattern, or skill authoring). Renders to HTML and PPTX for browser viewing and SharePoint/PowerPoint distribution.
Validates agent-generated reports and summaries before delivery. Catches generator-evaluator collapse — where the AI summarizes data without checking if the summary is true. Run before delivering any report, status update, or data summary.
| name | context-check |
| description | Audits always-on context load for bloat, redundancy, and quality. Use when context feels heavy or periodically to keep the always-on budget lean. |
| category | agent-ops |
| tags | ["context","tokens","efficiency","audit"] |
Audit what Claude loads every session. Writes context-check-report.md at the project root after explicit confirmation.
Read context-findings.md if 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:
./tools/skills.sh status if that file exists, otherwise skills.sh status if on PATH. This gives the full registered-skill list.find .claude/skills -maxdepth 1 -mindepth 1 -type l 2>/dev/null to identify whole-dir symlinks (canon-managed, classic model).find .claude/skills -maxdepth 1 -mindepth 1 \! -type l -type d 2>/dev/null to identify real subdirectories. For each, run readlink .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:
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:
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 Y if 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 without y. On confirmation, write context-check-report.md at 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.