提示词模板
Seven AGENTS.md Rules for Vibe-Coding Agents
Seven standing rules for AGENTS.md / CLAUDE.md: no fake-green tests, no guessed packages, no memory-API calls, prove done with real output, stop after two failed fixes, change only what was asked, and never destructive git without approval. Shared by @kloss_xyz.
从示例开始
点一张示例图,整套设置立即套用,再改成你自己的。
改成你的
只展示值得改的部分,提示词会实时更新。
你的提示词
1. Never edit, skip, or delete a test to make it pass. For every test you write, confirm it would fail if the code under test did nothing. If it would still pass, rewrite it. A green test suite is the easiest thing for an agent to fake. 2. Before adding any dependency, confirm it exists on the official registry, who maintains it, and when it last shipped. Show me the link. Never guess a package name. Agents repeat the same fake package names, and attackers can register them. 3. Before using any library's API, check the installed version and read its actual docs or source. Never write code from memory of an older version. Agents write code for the version they were trained on. Yours could be newer or older. 4. Never say a task is done until you've proven it against the real thing. Run it and show me the actual output, not a summary. 'It compiles' is not proof. If you can't run it, say so. When agents grade their own work, they rarely fail themselves. 5. If two fixes fail the same way, stop. The shared assumption is probably wrong. Question it before writing another fix. Never retry a theory you already ruled out. Agents retry the same wrong theory with more confidence every time. 6. Only change what a task requires. If you notice other issues, first list them instead of immediately fixing them. The bugs you didn't ask for come from the fixes you didn't ask for. 7. Never delete untracked files or data, rewrite git history, or force-push without showing me the exact command and waiting for approval. One command can erase a day of work, and agents run them casually.
点击高亮部分即可直接修改。
适用场景
Use when you want a portable, model-agnostic rules file that travels with your harness across Claude Code, Codex and Cursor on the same repo.
怎样效果最好
- Drop the seven rules into AGENTS.md (or your global config if Claude would otherwise ignore AGENTS.md when CLAUDE.md exists).
- Keep rule 4's prove-it line; summaries without output are how agents self-grade as done.
避坑提醒
- If the repo has both CLAUDE.md and AGENTS.md, Claude Code may skip AGENTS.md until you change Project instructions in /config.
相关模板
- MILO Penguin Apple Sled Comedy (Character Sheet → Seedance 2.5 Workflow)Use when you want a consistent original 3D animal character in a physics-driven slapstick short and need the reference-sheet step that locks identity.
- Manga-Panel Music Video Edit from Two Clips (Claude Opus 5.5)Use when you have two AI-generated (or your own) action clips and a music file and want an AMV / anime-opening style edit built by Claude with code, no editing software.
- Restaurant Kitchen Martial-Arts Fight Scene (Seedance 2.5, 10s Beat List)Use when you want a short, cinematic action beat with clear second-by-second choreography and a richly dressed real-world location.
- Character Goodnight Bedroom Visual (ChatGPT Image, Japanese Prompt)Use when you want a soft, personal bedtime illustration of your own original character that reflects their personality down to the pajamas and bedroom decor.
- Character Fashion Magazine Cover (ChatGPT Image, Japanese Prompt)Use when you have an original character and want a polished, magazine-style key visual that shows them in a fresh, modern outfit.
- Gunslinger vs Giant Slow-Mo Sandevistan Shot List (Seedance 2.5)Use when you want a stylised action beat with a slow-motion afterimage ('Sandevistan') effect, a rewind and a full-speed replay, all inside one Seedance generation.
来源与归属
- 示例案例作者
- klöss