Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/magic3007/dotfilesnpx agentmods add skills/magic3007/dotfiles/metaceptionWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/magic3007/dotfiles/metaception)<a href="https://agentmods.dev/skills/magic3007/dotfiles/metaception"><img src="https://agentmods.dev/badge/skills/magic3007/dotfiles/metaception/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/magic3007/dotfiles/metaception"><img src="https://agentmods.dev/badge/skills/magic3007/dotfiles/metaception.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What 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.1 | $0.00332 | $0.06711 |
| Opus 5.5 | $0.00133 | $0.02684 |
| Sonnet 5.5 | $0.00066 | $0.01342 |
| Haiku 4.5 | $0.00033 | $0.00671 |
Grade A, and why
metaception 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 4d ago.
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.
How it starts
The opening of the file, as written. The whole thing — 392 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Metaception:先把纠正变成检查,剩下的才写成知识
你是 Metaception。输入是一次工作会话,输出是对未来真正起作用的约束。
顺序不可颠倒:
- 先问「这次纠正能不能变成一条确定性检查?」——能,就产出检查。
- 不能,再问「能不能变成受校验的结构化知识?」——能,就按四类知识落位。
- 两者都不能,如实报告「本次不抽取」,并写明理由。
0. 第一原则:纠正优先变成检查,而不是多写一行规则
往规则文件里加一行散文,是成本最低、效果最差的纠正方式。它依赖未来的 agent 恰好读到、恰好记住、 恰好在正确的时刻联想起来。三个"恰好"相乘,命中率很低;而且规则文件越长,每一行被注意到的概率越低—— 加规则这个动作本身会稀释已有规则。
确定性检查没有这个问题:它在固定时刻无条件执行,输出 0 或 1,不依赖注意力。
所以每条纠正都先走这张形态阶梯,从 L1 往下找,取第一个可行级别:
| 级别 | 形态 | 机器词 | 做法 | 例子 |
|---|---|---|---|---|
| L1 | 消除可能性 | eliminate |
让错误无法被表达:删掉错误入口、合并重复写入路径、把非法状态变成不可构造 | 两条写配置的路径合成一条;可选参数改必填 |
| L2 | 类型/构建期 | type |
编译或 schema 校验阶段失败 | zod/pydantic schema、tsc --noEmit、mypy、JSON Schema |
| L3 | 测试 | test |
把这次的错误固化成失败用例,修好后变回归测试 | 针对该 bug 的最小单测 |
| L4 | 静态规则 | lint |
一条扫全仓的规则,命中即失败 | eslint 自定义规则、ast-grep 模式、ruff 规则、rg 守卫脚本 |
| L5 | 门禁 | hook / ci |
在提交/流水线上无条件执行 | pre-commit hook、CI job |
| L6 | 运行期断言 | runtime-assert |
早失败,并在报错文案里直接写修法 | assert path.is_absolute(), "传相对路径会在 worker 里解析错,改传 abspath" |
| L7 | 复核命令 | command |
一条可粘贴执行、判据确定的命令(人工触发) | python3 scripts/validate_skill.py <dir> |
| L8 | 散文规则 | prose |
最后手段,必须写明为何 L1–L7 都不可行 | "命名要符合领域习惯"(审美无法判定) |
选了 L6 及以下,必须在 ## Checks 的"无法自动化"表里写明为什么上面几级不可行。
写不出理由,说明还没想清楚,回去重想。
0.1 纠正性质 → 形态的常见映射
| 纠正的说法 | 通常落在 |
|---|---|
| "不要用 X,用 Y" | L4:一条禁止 X 的静态规则 |
| "这个字段不能为空 / 这个值只能是这几种" | L2:schema 或枚举类型 |
| "这个 bug 别再回来了" | L3:回归测试 |
| "提交前必须先跑 Z" | L5:pre-commit / CI |
| "参数传错单位 / 传错路径形态" | L6:带修法文案的运行期断言 |
| "每次都要记得检查 W" | L4 或 L5——出现"每次都要记得"这种措辞,几乎总能自动化 |
| "这里要理解业务背景才知道怎么权衡" | L8:散文,且只写判断依据,不写流水步骤 |
0.2 负控:没有负控的检查等于没有检查
写完一条检查,必须把错误故意写回去,确认检查真的失败,并记录那次失败的输出。
理由来自实测失败模式:检查写错路径、错 glob、错正则,于是永远 PASS;人以为被保护,实际裸奔。 一条永远 PASS 的检查比没有检查更糟,因为它消耗注意力并提供虚假安全感。
负控记录格式:把 <文件> 的 <改动> 还原后,<命令> exit=1,输出 <关键片段>。
1. 四类知识的落位(无法自动化的部分写这里)
认知心理学把知识分为事实性、概念性、程序性、元认知四类。凡是没能变成检查的知识,按下表落位:
| 知识类型 | 回答的问题 | 落位 | 缺失后果(实测失败模式) |
|---|---|---|---|
| 事实性 (Factual) | "是什么":常量、报错串、版本、路径、默认值 | ## Facts 表格,每行带证据 + 复核命令 + 生效条件 + 记录日期 |
半年后无法判断结论是否仍成立;报错串被记错,检索命中不了 |
| 概念性 (Conceptual) | "为什么":机制、类别、关系、判别标准、边界 | ## Model:机制链 + 分类树 + 判别标准 + 适用边界 |
只有"这么改能好",症状相同、根因不同的近似案例会误用 |
| 程序性 (Procedural) | "怎么做":有序步骤、条件分支、回滚、停止条件 | ## Procedure:决策表 + 分支步骤 + 每步期望输出 + 回滚 + 停止条件 |
步骤只在原始环境成立;换环境第一步就卡住,且不知何时放弃 |
| 元认知 (Metacognitive) | "我(不)知道什么":置信度、证伪条件、未知项、复审 | ## Calibration:逐条置信度 + 证伪条件 + 未知清单 + 复审日期 + 使用台账 |
推测与实测混在一起被当事实传播;技能永不失效,成为污染源 |
What ships with it
24 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- examples/esm-circular-import-tdz/EXAMPLE.md 6.7 KB
- README.md 3.3 KB
- resources/skill-template.md 5.6 KB
- scripts/validate_skill.py 24 KB runs code
- tests/ab/ground_truth.json 1.1 KB
- tests/ab/probes/S1.md 1.7 KB
- tests/ab/probes/S2.md 1.7 KB
- tests/ab/probes/S3.md 1.5 KB
- tests/ab/probes2/S1.md 1.7 KB
- tests/ab/probes2/S2.md 1.7 KB
- tests/ab/probes2/S3.md 1.6 KB
- tests/ab/scenarios/S1.md 3.6 KB
- tests/ab/scenarios/S2.md 3.9 KB
- tests/ab/scenarios/S3.md 3.7 KB
- tests/ab/score.py 7.7 KB runs code
- tests/evals.json 3.8 KB
- tests/grade_runs.py 11 KB runs code
- tests/README.md 2.4 KB
- tests/scenarios/S1-corrections.md 1.8 KB
- tests/scenarios/S2-debug-and-taste.md 1.6 KB
- tests/scenarios/S3-trivial.md 435 B
- tests/scenarios/S4-attribution-trap.md 1.8 KB
- tests/scenarios/S5-taste-and-type.md 2.2 KB
- tests/test_eval_harness.py 3.5 KB runs code
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.
- 4d ago Changed · +1 lines · +8 tokens per session fba7d07f5f93
- 16d ago First seen · 391 lines · 324 tokens per session scan A 83047c0c1753
metaception is a skill published in the GitHub repository magic3007/dotfiles (11 stars, last pushed 5d ago), licensed MIT. It adds 332 tokens to every session and 6,711 once invoked, about $0.0013 per session on Opus 5.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-11-14.
metaception compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| metaceptionmagic3007/dotfiles | Skill | 11 | 5d ago | MIT | A | 332 | Claude Code |
| assess-qualityurmzd/dotfiles | Skill | 6 | 4d ago | Apache-2.0 | A | 120 | Claude Code |
| create-oss-skillurmzd/dotfiles | Skill | 6 | 4d ago | Apache-2.0 | A | 63 | Claude Code |
| extend-oss-skills-to-claudeurmzd/dotfiles | Skill | 6 | 4d ago | Apache-2.0 | A | 74 | Claude Code |
| scaffold-nodeurmzd/dotfiles | Skill | 6 | 4d ago | Apache-2.0 | A | 119 | Claude Code |
| test-codeurmzd/dotfiles | Skill | 6 | 4d ago | Apache-2.0 | A | 101 | Claude Code |
| scaffold-docsurmzd/dotfiles | Skill | 6 | 4d ago | Apache-2.0 | A | 196 | Claude Code |