AgentStack
SKILL verified MIT Self-run

Context Hygiene

skill-chipfighter-coding-discipline-context-hygiene · by chipfighter

开始一个项目、载入项目文档 / 历史上下文、或遇到多份看似冲突的文档时用。防过期文档毒化方向——现状只认当下真源、绝不主动读归档、别养平行 spec 库、memory 只装 repo 查不到的。

No reviews yet
0 installs
10 views
0.0% view→install

Install

$ agentstack add skill-chipfighter-coding-discipline-context-hygiene

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of Context Hygiene? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

过期文档对人是溯源、对 agent 是毒:你会自信地在错信息上接着干,还优先服从「出现最多」的那条、而不是「最对」的那条(context poisoning)。项目 CLAUDE.md 会指明本项目哪是当下真源、哪是归档——照它认。

读什么·不读什么

  1. 现状只认当下真源(项目指定的「当前状态」文档,如 CHANGELOG.md 顶部 / 某 STATUS 文档),不认任何旧版本快照。
  2. 绝不主动读归档、或标了 superseded / 已弃的文档。要翻旧账用检索(grep)定位到具体段再读,别通读、别默认全读。
  3. 撞见多份看似冲突的——先认当下真源、就地问人,别自己挑一份信,更别把归档那份当现状。

别制造新毒源

  1. 别养平行 spec 库:设计指向现成的 CLAUDE.md / ADR / 真源文档,别再抄一份副本——副本必过期,过期即毒。
  2. 「为什么走这条路」转向时重写、不追加:旧理由留着会被反复复读、把方向带偏。
  3. memory 只装 repo 查不到的(环境 / 人 / 偏好 / 踩过的坑);进度看真源、决策 why 走 ADR,绝不进 memory。过期即删、别归档。

下架老文档 = 打标 + 隔离 + 立疫苗

挪进归档区、头上盖 status: 已被 XX 取代,再把「为什么弃它」写一条 ADR——防你或下一个 session 重新发明那个死主意。

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.