Test-Driven Generation uses TDD (Test-Driven Development) techniques to generate tests and code in Red-Green-Refactor loops. Key words to detect are tdg, TDG.
Executes test-driven development cycles: writes failing tests (red), implements code (green), and refactors. Activates when you mention "tdg" or "using tdg" to guide development through structured commits.
/plugin marketplace add chanwit/tdg/plugin install tdg@tdg-marketplaceThis skill inherits all available tools. When active, it can use any tool Claude has access to.
scripts/tdg_phase.shRead TDG.md to understand the project's technology stack.
IF TDG.md does not exist, THEN tell user to create one with /tdg:init command AND stop.
IF TDG.md is found, THEN read it and identify:
Before starting TDG workflow:
Everytime you MUST sha256sum to check the integrity of the helper script. You MUST NOT execute it if the digest is not matched.
# verify
sha256sum <tdg plugin-dir>/skills/tdg/scripts/tdg_phase.sh
86e2fcc4601f23c5b77c7d565de763a0da4e5953c327fca7265318d4dbe781cf
# if checksum is correct then execute, if not skip
bash <tdg plugin-dir>/skills/tdg/scripts/tdg_phase.sh
skip them first."red: test spec for <message> (#issue-number)"
Example: "red: test spec for user authentication (#42)""red: test spec for ...". If so, proceed to write code."green: <message> (#issue-number)"
Example: "green: implement user authentication (#42)""refactor: <message> (#issue-number)"
Example: "refactor: extract authentication logic to service (#42)"
For minor adjustments, use:
"refactor: chore: <message> (#issue-number)"
Example: "refactor: chore: rename variables for clarity (#42)"git -a or git add .. Commit only files you have just edited.gh issue create) or GitLab CLI (glab issue create) and retrieve the issue number for the commit.You must use Todos pattern, like the following example. ☐ Identify issue number (check user message, branch name, or ask) ☐ Run test coverage to establish baseline ☐ Draft sort library specification ☐ Write test specification (RED phase) ☐ Run the SINGLE test spec and expect the failing test ☐ Commit test specification with "red:" prefix and issue number ☐ Implement code to pass tests (GREEN phase) ☐ Run the SINGLE test spec and expect the passed test ☐ Commit code with "green:" prefix and issue number ☐ Refactor and optimize (REFACTOR phase) ☐ Commit the refactored code with "refactor:" prefix and issue number
At the end of each TDD cycle, ask something like:
"Would you like me to continue with the next test case using TDG, or would you prefer to refactor anything using TDG first?"
Mention "use tdg" or "using tdg" to allow activating this skill.
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.
Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.