Repository navigation
chore: add the tdd skill for test-driven development - #3637
Conversation
|
commit: |
34eb743 to
695c093
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 34eb7433f8
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| - Internal methods with only a single parameter should not be turned into options objects just for stylistic uniformity. | ||
| - Split functions only along abstraction levels: each function reads as one level of narrative (Step-down Rule), and a wrapper that adds no new abstraction level — especially one with a single call site — is inlined instead of extracted. | ||
| - Except for a package's `index.ts`, other `index.ts` files should prefer `export * from './module';`. | ||
| - When writing or updating tests, follow the `tdd` skill. |
There was a problem hiding this comment.
Make the required TDD skill discoverable
This makes the skill mandatory for every test change, but a repo-wide search of .agents/skills finds no tdd skill; the only implementation added here is inside the Kimi runtime catalog. Repository-aware agents that are not already running the newly built CLI therefore cannot resolve or follow this instruction. Add a discoverable .agents/skills/tdd/SKILL.md or avoid making the root workflow depend on it.
AGENTS.md reference: AGENTS.md:L61-L61
Useful? React with 👍 / 👎.
| "@moonshot-ai/kimi-code": minor | ||
| --- | ||
|
|
||
| Add the `/tdd` skill for test-driven development. Use it to build features or fix bugs test-first with the red → green loop. |
There was a problem hiding this comment.
Collapse the changeset to one sentence
The entry consists of two user-facing sentences (Add ... and Use ...), so it will generate release text that violates the repository's explicit single-sentence changeset requirement. Combine the usage detail into the first sentence or remove it before this changeset is consumed.
AGENTS.md reference: AGENTS.md:L86-L87
Useful? React with 👍 / 👎.
| | `/update-config` | Inspect or edit `config.toml` (model, provider, permission, hooks) and `tui.toml` (theme, editor, notifications, auto-update) | | ||
| | `/check-kimi-code-docs` | Answer Kimi Code product questions (CLI usage, configuration, membership, error codes) against the official docs | | ||
| | `/import-from-cc-codex` | Import Claude Code and Codex instructions, skills, and MCP settings into Kimi Code | | ||
| | `/tdd` | Build features or fix bugs test-first with the red → green loop: what a good test is, where tests go, anti-patterns, and mocking guidelines | |
There was a problem hiding this comment.
Explain the newly introduced testing jargon
This is the first occurrence on the page of terms such as “red → green loop,” “anti-patterns,” and “mocking,” but none receives the required plain-language gloss; the mirrored Chinese row likewise introduces seam and mock without explaining them. Readers outside software development cannot determine what the command actually guides them through, so add brief parenthetical explanations in both locales.
AGENTS.md reference: docs/AGENTS.md:L38-L46
Useful? React with 👍 / 👎.
695c093 to
55d3035
Compare
Related Issue
N/A — internal change, no linked issue.
Problem
Agents developing in this repo have no shared reference for test-driven development. Test style (what a good test is, where tests should live, when to mock) is re-derived from scratch each session.
What changed
tddskill from mattpocock/skills into.agents/skills/tdd/(SKILL.md,tests.md,mocking.md, byte-identical to upstream; the OpenAI-harness-onlyagents/openai.yamlwas dropped). It is a repo-local project skill for development use only — nothing ships in the CLI.AGENTS.md: added one coding rule — when writing or updating tests, follow thetddskill (.agents/skills/tdd/SKILL.md).Checklist
/approve). — N/A: internal change.AGENTS.mdrule; nothing executable changed.gen-changesetsskill, or this PR needs no changeset. — No changeset:.agents/skills/is repo development tooling and never enters the shipped artifact.gen-docsskill, or this PR needs no doc update. — No doc update: the skill is not part of the product.