Grok Bot 工程负责人分享仓库智能体文本审计提示词
Lauren Tan 分享一个可复用提示词,用于审计仓库中面向智能体的非结构化文本(AGENTS.md、skills、cursor rules 等),将其尽可能替换为可执行代码、类型、lint 和测试。
原文给出完整可复用的审计提示词,把面向智能体的文本规则转化为可执行检查,并用盲测消融验证保留必要性。
here's a prompt you can try
Audit all unstructured agent-facing text in this repo (AGENTS.md, skills, cursor rules, architecture/spec markdown docs) and replace as much of it as possible with executable code, types, lints, and tests. Then prove empirically what text actually earns its context window.
1. Inventory: list every doc, rule, and skill file, its byte size, and classify each claim into:
- Restates code or types (delete)
- Mechanically enforceable (convert into a linter, compiler check, typed API, or test, then delete the prose)
- Irreducible judgment call (candidate to keep, only if concise)
2. Prune and enforce: move enforceable rules into CI/lints/tests first, delete the dead prose, and shrink root instructions to only what automated checks cannot catch.
3. Run a blinded ablation eval before keeping any remaining instructions/skills:
- Pick 1 to 2 representative real tasks from this repo with an objective rubric and stress tests.
- Pre-register a prune rule before running (for example: drop the larger text set unless its median beats the smaller set by at least 2 points).
- Run 3 fresh isolated replicates per condition on clean commits that differ ONLY in the text under test:
- A: full current instructions/skills
- B: domain-only instructions
- C: minimal root instructions only (0 skills/extra docs)
- Audit transcripts for leaks (verify which files were actually opened vs just sitting in the system prompt).
- Grade blinded diffs + built artifacts only (strip branch names, SHAs, and notes) using a separate judge model + automated probe tests.
4. Report the scorecard, which docs/skills were never opened, where extra text hurt or helped, and delete everything that fails the pre-registered prune rule. Turn any recurring failure modes into tests or lints, not new prose.
来源:lauren · x.com