pdd-setup
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChinesePDD setup
PDD 设置
Add one short PDD block to the file that this repo's agents read, and keep out of Git. This skill installs nothing: if you can read it, the PDD skills are already installed. The command checks for a ready agent, does the same in the current folder, installs missing skills and updates eligible marked copies, then previews MCP changes for approval.
.pdd/pdd setupThe bundled skills also include pdd-product, pdd-graph and pdd-setup. Bundled workflow names also include .
product- Pick the file: if it exists, else
CLAUDE.md. If neither exists, createAGENTS.md. Use the repo root.AGENTS.md - Write this block exactly. Leave out the RUNBOOK.md line if the pdd-prompting skill has no RUNBOOK.md.
- If the file already has a …
<!-- pdd:start -->block, replace only that block. Otherwise add the block at the end, after one empty line. Keep all other text.<!-- pdd:end --> - If the block is already the same, change nothing. If only one marker is there, stop and ask the person.
- In a Git repo, add the line at the end of the root
.pdd/if no line there is.gitignore,.pdd,.pdd/or/.pdd(no space at the start). Create the file if needed. Keep all other bytes. If the last such line starts with/.pdd/, or there is no such line but a line starts with!or!.pdd(for example!/.pdd), change nothing and tell the person.!.pdd/config.jsonkeeps its local cache inpdd test..pdd/
markdown
<!-- pdd:start -->在当前仓库的 Agent 所读取的文件中添加一个简短的 PDD 配置块,并确保 不进入 Git。此 skill 不会安装任何内容:如果你能读到这些内容,说明 PDD skills 已经安装。 命令会检查是否已有准备就绪的 Agent,在当前目录执行相同操作,安装缺失的 skills,并更新符合条件的标记副本,然后预览 MCP 变更以供批准。
.pdd/pdd setup捆绑的 skills 还包括 pdd-product、pdd-graph 和 pdd-setup。捆绑的 workflow 名称还包括 。
product- 选择文件:如果存在 ,则使用它;否则使用
CLAUDE.md。如果两者都不存在,则创建AGENTS.md。使用仓库根目录。AGENTS.md - 原样写入以下配置块。如果 pdd-prompting skill 中没有 RUNBOOK.md,则省略 RUNBOOK.md 那一行。
- 如果文件中已经存在 …
<!-- pdd:start -->配置块,则仅替换该配置块。否则,在文件末尾添加该配置块,并在此前保留一个空行。保留所有其他文本。<!-- pdd:end --> - 如果配置块已经相同,则不做任何更改。如果只存在其中一个标记,则停止操作并询问用户。
- 在 Git 仓库中,如果根目录 的末尾没有
.gitignore、.pdd、.pdd/或/.pdd这一行,则将/.pdd/添加到末尾。必要时创建该文件。保留所有其他字节。如果最后一个匹配的行以.pdd/开头,或者不存在匹配行,但有一行以!或!.pdd开头(例如!/.pdd),则不做任何更改并告知用户。!.pdd/config.json会将本地缓存保存在pdd test中。.pdd/
markdown
<!-- pdd:start -->PDD
PDD
This project uses PDD. Change the prompt that owns a file before the file. New code starts with its prompt. Files that no prompt owns change directly, with a test when behavior changes.
Skills: pdd-prompting (the Prompting guide), pdd-feature, pdd-bug, pdd-small-change, pdd-product, pdd-setup and pdd-graph. Call one with in Codex or in Claude Code, or just ask for it by name.
Full run with PRs: (NAME: feature, bug, small-change, product or your own workflow).
Before you write prompts or tests, read RUNBOOK.md in the pdd-prompting skill.
<!-- pdd:end -->
$pdd-feature/pdd-featurepdd workflow run NAME ISSUE
Never paste the guide or a workflow into the file. Show the person the diff.This project uses PDD. Change the prompt that owns a file before the file. New code starts with its prompt. Files that no prompt owns change directly, with a test when behavior changes.
Skills: pdd-prompting (the Prompting guide), pdd-feature, pdd-bug, pdd-small-change, pdd-product, pdd-setup and pdd-graph. Call one with in Codex or in Claude Code, or just ask for it by name.
Full run with PRs: (NAME: feature, bug, small-change, product or your own workflow).
Before you write prompts or tests, read RUNBOOK.md in the pdd-prompting skill.
<!-- pdd:end -->
$pdd-feature/pdd-featurepdd workflow run NAME ISSUE
绝不要将 guide 或 workflow 粘贴到文件中。向用户展示 diff。