Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/yangfan-code-star/context-dev/maintainnpx skills add YangFan-Code-Star/context-dev --skill maintaingit clone --depth 1 https://github.com/YangFan-Code-Star/context-devWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00100 | $0.00797 |
| Opus 5 | $0.00050 | $0.00398 |
| Sonnet 5 | $0.00020 | $0.00159 |
| Haiku 4.5 | $0.00010 | $0.00080 |
Grade A, and why
maintain scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
维护上下文(轻量)
轻量项目没有 audit-context.mjs,但同样可以长期迭代:上下文量小,直接读文件核对就够了。四步,十分钟以内。
流程
- [ ] 1. 核对事实
- [ ] 2. 合并任务日志
- [ ] 3. 删过期内容
- [ ] 4. 更新当前状态
1. 核对事实
把 AGENTS.md 逐行对照真实仓库:
- 快速上手与验证命令:真的跑一遍,不是看一遍。
- 目录地图:对照实际顶层目录。
- 铁律:还成立吗?换掉的技术要删掉对应规则。
docs/plan.md:一句话、成功标准、口径还符合用户现在的意图吗?
发现不一致就改文件,不要迁就文件。
2. 合并任务日志
逐条处理 docs/log.md「待合并」下的条目。先问一句:模型本来就猜得到吗? 猜得到就直接删。
- 稳定的事实、口径、决定 → 合并进
docs/plan.md或AGENTS.md,删掉日志条目。 - 只出现一次的纠正 / 流程 → 留在日志里,等第二次出现再晋升。
- 违反后果不可逆或不可发现的高风险规则 → 立即升级为
AGENTS.md铁律,删掉条目。 - 已确认但只属于一次性环境的坑 → 在日志里保留现象,不要升级成铁律。
3. 删过期内容
过期的规则比没有规则更糟。 优先删:换掉的技术对应的规则、已经写进代码结构不必再说的约定、当时怕出错但从没出过错的叮嘱、模型本来就知道的通用建议。
4. 更新当前状态
把 docs/plan.md「当前任务与下一步」更新到本次维护后的最新状态;AGENTS.md「当前状态」只写一行指针,细节留在 plan.md。
汇报
## 维护结果
- 已核对的命令 / 目录:<哪些,结果如何>
- 已合并:<日志条目> → <目标位置>
- 已删:<过期内容及原因>
- 需要你确认:<有分歧的条目>
新增内容放哪
| 内容性质 | 位置 |
|---|---|
| 每次对话都要遵守 | AGENTS.md 铁律 |
| 背景、口径、计划 | docs/plan.md |
| 决定、坑、待观察纠正 | docs/log.md |
| 重复性多步流程 | 新建 .agents/skills/<name>/SKILL.md,并登记进 AGENTS.md「可用技能」 |
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- yesterday First seen · 65 lines · 100 tokens per session scan A 0b0a3940d29c
maintain is a skill published in the GitHub repository YangFan-Code-Star/context-dev (2 stars, last pushed 14d ago), licensed MIT. It adds 100 tokens to every session and 797 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
dsh-plugin-dev
开发 DeepSeek Harness (DSH) 插件的标准与权威参考:编写/修改/审查/调试 DSH/Cordis 插件、服务、事件、插件配置、模型工具、LLM 适配器、三种角色拆分、打包安装、workspace 包、cordis.yml 组合时使用;提到 DSH 插件、Cordis、plugin、服务、事件、工具、适配器即触发。 The authoritative standard for developing DeepSeek Harness (DSH) plugins — create, modify, review or debug DSH/Cordis plugins, services, events…
agent-handoff
Cross-platform skill for Codex, Claude Code, and DeepSeek Harness (DSH) that creates, updates, compacts, rotates, repairs, and reviews durable repository handoffs. Use when bootstrapping cross-session memory; creating or maintaining AGENTHANDOFF.md and .agent-handoff files; adding AGENTS.md or .claude/CLAUDE.md rules…
acontext-installer
Install Acontext, Login & Init Acontext Project, Add Skill Memory to Agent.
storage-analyzer
对 macOS 做一次只读存储分析,产出交互式 HTML 报告。流程:扫描 → 分析分级 → 生成网页 → 打开。.
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.
writing-plans
Use when you have a spec or requirements for a multi-step task, before touching code.