Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 74 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
<!--
Write this for a teammate who has never worked on this part of the Comms CLI.
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 internal files, functions, types or modules.
Explain why the PR exists and what changes in behavior: what the commands, their
flags, their output and their errors do for the people, scripts and agents that
run them. Commands, flags and `--json` fields are what users 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.

This repository is public. Don't link internal threads, documents or private
repositories, and don't paste real user data or tokens.

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.

The PR title becomes the squash commit and sets the release: `feat:` is a minor,
`fix:` and `perf:` a patch, and `!` (as in `feat!:`) a major. Other types don't
release.
-->

## ⚡ TL;DR

<!-- One or two sentences a reviewer can read in a few seconds. Don't repeat them in Why. -->

## 🤔 Why

<!--
What problem does this solve, or which feature is it part of? What happens today
without it? Ground it in the issue, the request or a measurement; don't invent a
problem. If a number helps, show it, and say how you measured it.
-->

## 🛠 What changes

<!--
Describe what changes in behavior, not in the code. A before/after run of the
command, in plain and `--json` output, often says more than paragraphs. For a
change to a flow, use a before/after Mermaid diagram.

If callers must change anything, such as a command, a flag, a `--json` field or
an exit code, say what they change and mark the title with `!`.

Add only if relevant, one sentence each: a trade-off, a known gap.

If the PR is part of a stack, describe only what it adds on top of the PR below it.
-->

## 🔗 Reference

<!-- GitHub issues (Closes #...) and related PRs. -->

## 🧪 Test plan

<!--
Steps a reviewer can run, with checkboxes for what to check. Run the command on
a test workspace with `node dist/index.js <command>` after `npm run build`.
Don't list `npm run verify` or other checks CI runs.

End with a "Not verified:" line for anything you couldn't check, such as the
real Comms API or output in a real terminal. If manual testing doesn't apply,
replace the steps with a brief reason, e.g. "Not applicable: this PR only
changes tests; green CI is enough."

Example:
1. Run `node dist/index.js thread view <ref>`.
- [ ] The new behavior shows in the output.
2. Run it again with `--json`.
- [ ] The output has the new field, and the existing fields are unchanged.
-->
11 changes: 11 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down