From 2c1eac43e386e17374beb651d8cad38872ccbd31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ernesto=20Garc=C3=ADa?= Date: Fri, 4 Dec 2026 14:47:09 -0300 Subject: [PATCH 1/2] docs: Guide PR descriptions toward a TL;DR, Why, and What changes --- .github/PULL_REQUEST_TEMPLATE.md | 68 ++++++++++++++++++++++++++++++++ AGENTS.md | 11 ++++++ 2 files changed, 79 insertions(+) create mode 100644 .github/PULL_REQUEST_TEMPLATE.md diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..510e356 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,68 @@ + + + + +## โšก TL;DR + + + +## ๐Ÿค” Why + + + +## ๐Ÿ›  What changes + + + +## ๐Ÿ”— Reference + + + +## ๐Ÿงช Test plan + + diff --git a/AGENTS.md b/AGENTS.md index 0415486..b8c3b3d 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 files, functions, types or modules. Describe what changes for the people, scripts and agents running the commands; commands, flags, `--json` fields and error codes 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 a 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. From 1ea85d477f4716388926bffabfdfc2416ce08dfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ernesto=20Garc=C3=ADa?= Date: Fri, 4 Dec 2026 14:53:17 -0300 Subject: [PATCH 2/2] docs: Align the PR template with the other todoist repos --- .github/PULL_REQUEST_TEMPLATE.md | 60 ++++++++++++++++++-------------- AGENTS.md | 4 +-- 2 files changed, 35 insertions(+), 29 deletions(-) diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 510e356..aa63d1b 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -4,21 +4,23 @@ Explain it the way you would if they sat next to you: plain words, short sentences, and any project term explained the first time you use it. The diff already shows how the code changed, so don't repeat it. In TL;DR, Why -and What changes, don't name files, functions, types or modules. Explain why the -PR exists and what changes in behavior: what the commands, their flags and their -output do for the people, scripts and agents that run them. Commands, flags, -`--json` fields and error codes are what they see, so name them when they help. -A refactor may name the symbol it moves or renames when that is the point of the PR. - -If the description doesn't fit on one screen, cut it or link to the issue. -Omit sections that don't apply, with their headings and placeholders. -Remove all instructional HTML comments from the final PR description. ---> - - ## โšก TL;DR @@ -36,33 +38,37 @@ problem. If a number helps, show it, and say how you measured it. ## ๐Ÿ›  What changes ## ๐Ÿ”— Reference - + ## ๐Ÿงช Test plan diff --git a/AGENTS.md b/AGENTS.md index b8c3b3d..7952f45 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -119,11 +119,11 @@ throw new CliError('ERROR_CODE', 'User-facing message', ['Optional hint']) 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 files, functions, types or modules. Describe what changes for the people, scripts and agents running the commands; commands, flags, `--json` fields and error codes are what they see, so those are fine. +- **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 a symbol, or uses a term you haven't explained. +- **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)