Systems Lab

Agent skill

context-hygiene

Audit and repair the context layer.

activeSelf-containedInstructions only225 words

Filed under Content and SEO.

From getcargohq/cargo-manifest · 4 skills · 6 · pushed 2026-09-12

What it does when it runs

Audit and repair the context layer. Use when asked to clean up context, before a quarterly review, or when the knowledge graph feels stale. Finds missing frontmatter, broken references, orphan files, and stale content, then fixes them file by file.

Read from the skill and the 0 files bundled beside it. A skill’s own description is written to be selected by an agent, so it describes the job and not the dependencies.

Keys and connectors you must supply
None found.
Hosts it reaches
No third-party host appears in the skill or its bundled files.
Tool permissions it declares
No allowed-tools in the frontmatter. It only issues instructions, so there is nothing to bound.
Actions present in the files
None. Instructions only.

Ask about context-hygiene

Opens your assistant with this page's verified links already in the prompt.

Is this safe to install?ClaudeChatGPT
Adapt it to my stackClaudeChatGPT
What else do I need for it to workClaudeChatGPT
Rather ask a human? Talk to Cheetah
git clone --depth 1 --filter=blob:none --sparse https://github.com/getcargohq/cargo-manifest.git /tmp/cargo-manifest
git -C /tmp/cargo-manifest sparse-checkout set ".claude/skills/context-hygiene"
mkdir -p ~/.claude/skills/context-hygiene
cp -R "/tmp/cargo-manifest/.claude/skills/context-hygiene/." ~/.claude/skills/context-hygiene/

Picked up without a restart. A project skill of the same name is shadowed by your personal one. For one repository only, swap ~/.claude/skills for .claude/skills. Claude Code docs ↗

The folder is the same in every client that implements the format — 46 of them — so if yours is not above, only the destination changes.

Reproduced in full from getcargohq/cargo-manifest/blob/c8b9850b5f9cf07d5a2290dd42227e2ac128a906/.claude/skills/context-hygiene/SKILL.md, which is licensed MIT (repository). 225 words, 3 headings.

Context hygiene pass

The context layer is only useful if agents can trust it. Run this audit periodically or when onboarding a new team member.

Steps

  1. Mechanical lint. Run npm run lint:context. Fix every error (missing title/description, broken references: entries, broken wikilinks or relative links). Errors block CI; do these first.

  2. Orphans. The linter warns about files nothing references. For each orphan, decide: link it from the file that should own the relationship, or delete it if it no longer earns its place. Do not leave orphans standing.

  3. Staleness. The linter warns about files untouched for more than 90 days. For each, check it against reality: recent won/lost deals in context/client/, current pricing, live positioning. Update the file or add a dated note explaining why it is still accurate.

  4. Contradictions. Read global/ and icp/ together and flag claims that conflict (two different ICPs, outdated competitor claims in alternative/). Surface contradictions to the team in the PR description rather than silently picking a side.

  5. Ship it. One PR titled context: hygiene pass YYYY-MM-DD, with a summary table: files fixed, orphans resolved, stale files refreshed, contradictions flagged.

Rules

  • Never invent facts to fill a template. An honest gap beats a plausible lie; leave the section empty with a TODO(owner): marker.
  • Preserve frontmatter fields you do not understand.

Other skills for the same job

Different authors, same problem. Matched on the words in the skill name, across every library in the catalogue except this one.

Need help setting it up?

This page tells you what context-hygiene does and what it needs. Cheetah builds the agent setup it runs inside: data, CRM, sequencing and the guardrails.

Book a call →

The directory stays free. There is nothing gated behind this.