diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..aa63d1b --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,74 @@ + + +## โšก TL;DR + + + +## ๐Ÿค” Why + + + +## ๐Ÿ›  What changes + + + +## ๐Ÿ”— Reference + + + +## ๐Ÿงช Test plan + + diff --git a/AGENTS.md b/AGENTS.md index 0415486..7952f45 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -114,6 +114,17 @@ throw new CliError('ERROR_CODE', 'User-facing message', ['Optional hint']) - Agent tooling lives in `.agents/scripts/`, never in `scripts/` (which ships in the npm package). - How it all fits together: [`docs/agents.md`](docs/agents.md). +## Pull request descriptions + +Fill in [`.github/PULL_REQUEST_TEMPLATE.md`](.github/PULL_REQUEST_TEMPLATE.md) and follow the guidance in its comments. Reviewers are busy and may not know this part of the CLI: + +- **Plain language.** Explain the PR as you would out loud to a teammate. Explain any project term the first time you use it. +- **Why and what, not how.** In TL;DR, Why and What changes, don't narrate the diff or name internal files, functions, types or modules. Describe what changes for the people, scripts and agents running the commands; commands, flags and `--json` fields are what they see, so those are fine. +- **Short.** Open with a one or two sentence TL;DR. If the description no longer fits on one screen, cut it or link to the issue. +- **Diagrams over paragraphs** when a change alters a flow: a before/after Mermaid diagram. +- **Nothing invented.** Don't add sections the template doesn't have, and don't restate test names. +- **Re-read before opening the PR.** Read it as a reviewer who has never seen this code. Cut any sentence that repeats the diff, names an internal symbol, or uses a term you haven't explained. + ## Skill Content (Agent Command Reference) The file `src/lib/skills/content.ts` exports `SKILL_CONTENT` โ€” a comprehensive command reference that gets installed into AI agent skill directories via `tdc skill install`. This is the source of truth that agents use to understand available CLI commands.