# Context Hygiene

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

- **Type:** Skill
- **Install:** `agentstack add skill-chipfighter-coding-discipline-context-hygiene`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [chipfighter](https://agentstack.voostack.com/s/chipfighter)
- **Installs:** 0
- **Category:** [AI & ML](https://agentstack.voostack.com/c/ai-and-ml)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [chipfighter](https://github.com/chipfighter)
- **Source:** https://github.com/chipfighter/coding-discipline/tree/main/plugins/coding-discipline/skills/context-hygiene

## Install

```sh
agentstack add skill-chipfighter-coding-discipline-context-hygiene
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

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

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

## 别制造新毒源
4. **别养平行 spec 库**:设计指向现成的 `CLAUDE.md` / ADR / 真源文档,别再抄一份副本——副本必过期,过期即毒。
5. **「为什么走这条路」转向时重写、不追加**:旧理由留着会被反复复读、把方向带偏。
6. **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.

- **Author:** [chipfighter](https://github.com/chipfighter)
- **Source:** [chipfighter/coding-discipline](https://github.com/chipfighter/coding-discipline)
- **License:** MIT

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

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-chipfighter-coding-discipline-context-hygiene
- Seller: https://agentstack.voostack.com/s/chipfighter
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
