Logo: Tdd

Tdd

Organisatioun
Shelpuk-AI-Technology-Consulting
tdd

Use for every coding task. Enforce strict TDD workflow: activate Serena, investigate first, clarify+confirm requirements, write per-task REQUIREMENTS.md in .requirements/<datetime>_<feature_name>/, verify APIs via web search, then implement in tiny test-verified steps.

Iwwersiicht

EditeurShelpuk-AI-Technology-Consulting
Repositoryagent-skill-tdd
Skill-Nummtdd
Stären
31
Forks
1
Matgeliwwert Dateien
Nëmmen Instruktiounen
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    Shelpuk-AI-Technology-Consulting huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Tdd an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/Shelpuk-AI-Technology-Consulting/agent-skill-tdd/tree/main/skills/tdd
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Shelpuk-AI-Technology-Consulting/agent-skill-tdd.git /tmp/agent-skill-tdd
mkdir -p .claude/skills
cp -r /tmp/agent-skill-tdd/skills/tdd .claude/skills/tdd
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Tdd an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Tdd automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Tdd net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Working Agreement

This skill is intentionally always-on for coding tasks. Follow it exactly unless the user explicitly opts out.

Non-negotiables

  1. Serena first: Start by activating the Serena project (if the Serena tools exist in the environment). If activation fails for reasons outside your control, continue without Serena and say why.
  2. Investigate before changing anything: Understand the current state (application state, execution results, user input, logs) before proposing edits.
  3. No requirement changes without confirmation: If requirements are unclear, ask clarifying questions. Before you change/add/interpret requirements, get explicit confirmation.
  4. Create a per-task REQUIREMENTS.md before implementation:
    • Create/use root .requirements/.
    • For each task, choose a short snake_case feature name using lowercase ASCII letters, digits, and underscores only (for example, update_github_authentication).
    • Create a folder named <datetime>_<feature_name> using UTC datetime format YYYYMMDDTHHMMSSZ (for example, 20260301T143210Z_update_github_authentication).
    • If the folder already exists, append a numeric suffix (_01, _02, and so on) to avoid collisions. Example: .requirements/20260301T143210Z_update_github_authentication_01/.
    • Write the task requirements file to .requirements/<datetime>_<feature_name>/REQUIREMENTS.md using the mandated structure (below).
  5. Use up-to-date docs: When you rely on an API/package/technology detail, use Kindly Web Search (if available) to confirm signatures, version behavior, breaking changes, and deprecations.
  6. Smallest possible steps (TDD): Implement one small change at a time and test each change (unit → integration → smoke as appropriate) before proceeding.

Per-task REQUIREMENTS.md Structure (Mandated)

For each task, write REQUIREMENTS.md to .requirements/<datetime>_<feature_name>/REQUIREMENTS.md with:

  1. As Is: current behavior/state (what exists today).
  2. To Be: desired behavior/state after the change.
  3. Requirements: functional requirements (numbered).
  4. Acceptance Criteria: for every functional requirement, add explicit acceptance criteria.
  5. Testing Plan: test strategy + cases (TDD best practices).
  6. Implementation Plan: the smallest sequential code changes; for each change, include how you’ll test it.

Workflow (Step-by-step)

1) Investigate

  • Inspect the repository structure, relevant code paths, current behavior, and existing tests.
  • Run the smallest commands needed to confirm the current state (build/test, smoke, reproducer), when applicable.
  • Summarize findings briefly.

2) Clarify + confirm requirements

  • Ask clarifying questions where anything is ambiguous (scope, UX, edge cases, compatibility, performance).
  • Propose the requirements in concrete, testable language.
  • Ask for explicit confirmation before finalizing requirements or changing them.

3) Create task requirements folder + REQUIREMENTS.md

  • Ensure .requirements/ exists at repository root.
  • Choose a concise snake_case <feature_name> (lowercase ASCII letters, digits, and underscores only).
  • Generate UTC <datetime> in format YYYYMMDDTHHMMSSZ.
  • Create .requirements/<datetime>_<feature_name>/.
  • If that folder already exists, append _01, _02, and so on, until you get a unique folder name.
  • Write .requirements/<datetime>_<feature_name>/REQUIREMENTS.md before implementation.
  • First, write the "As Is" section explaining the current state of the system.
  • Then, write the "To Be" section, describing in detail how the system should behave after the necessary changes.
  • Then write the "Requirements" section describing functional requirements.
  • Use Kindly Web Search to get up-to-date documentation and information on packages, functions, APIs, and other technologies you plan to use.
  • Record useful Kindly Web Search findings to Serena memories for future use.
  • Then go over the "Requirements" section once again, and for every functional requirement, you add acceptance criteria.
  • Then you add the "Testing Plan" section. You list there the testing plan for this new feature, following the test-driven development (TDD) best practices.
  • Write the "Implementation Plan" section. The Implementation Plan describes the feature implementation order and attributes every feature to the tests from the Testing Plan that should validate it. Now, this is super important! In the "Implementation Plan", you always describe the smallest possible changes that need to be implemented one after the other to implement the requirements. For every change, you describe how to test it.

4) Validate assumptions

  • Use Kindly Web Search to verify any API or dependency assumptions.
  • Update the current task's .requirements/<datetime>_<feature_name>/REQUIREMENTS.md if assumptions change (and re-confirm requirements when needed).

5) Review with Lad MCP

  • Review your system design in the current task's requirements file with system_design_review tool of the Lad MCP Server. Explain the requirements. Provide as much context as you can.
  • Review Lad's feedback and consider whether it is worth taking into account. Then, if necessary, update the current task's requirements file to incorporate this feedback.
  • Keep reviewing the current task's requirements file with Lad until it stops providing useful feedback.

6) Implement with TDD and review with Lad

  • Follow the Implementation Plan in order.
  • Follow Test-Driven Development (TDD) best practices. Implement tests first. Implement feature next. Make sure the tests pass.
  • After each test is implemented, review the test implementation with Lad MCP Server code_review tool. Implement the suggestions that are worthy of consideration.
  • After each step: run the smallest relevant tests first; expand to broader tests when confidence is needed.
  • Keep diffs minimal and focused; avoid unrelated refactors.
  • Use Lad MCP Server code_review tool to review each of your code changes. Implement the suggestions that are worthy of consideration.
  • Keep reviewing your code with Lad until it stops providing useful feedback.
  • Record useful implementation comments and design information to Serena memories for future use.

Workflow Activity Diagram (PlantUML)

This diagram explains the same workflow as above in PlantUML format.

plantuml
@startuml
start

:Activate Serena project;
if (Serena activation succeeds?) then (yes)
  :Proceed with Serena-enabled workflow;
else (no)
  :Continue without Serena;
  :State why activation failed;
endif

:Investigate repository structure and current behavior;

repeat
  :Clarify scope and requirements;
  :Ask questions when requirements are unclear;
  :Propose concrete, testable requirements;
repeat while (Requirements confirmed?) is (no)

:Ensure .requirements/ exists;
:Choose <feature_name> and UTC <datetime>;
:Create .requirements/<datetime>_<feature_name>/;
if (Task folder exists?) then (yes)
  :Append _01, _02, ... until unique;
endif
:Write REQUIREMENTS.md (As Is/To Be/Requirements/AC/Testing/Plan);
:Use Kindly Web Search for API/dependency assumptions;
:Record useful web findings to Serena memory;

while (Assumptions changed?) is (yes)
  :Update current task REQUIREMENTS.md;
  :Re-confirm requirements if needed;
  :Re-check assumptions with web search;
endwhile (no)

repeat
  :Run Lad system_design_review on requirements;
  :Apply useful requirements feedback;
repeat while (More useful design feedback?) is (yes)

repeat
  :Pick next smallest implementation step;
  :Write or update tests first;
  :Review test implementation with Lad code_review;
  :Apply worthwhile test feedback;
  :Implement code change;
  :Run smallest relevant tests;
  :Review code change with Lad code_review;
  :Apply worthwhile code feedback;
repeat while (Implementation plan remaining?) is (yes)

:Record useful implementation notes to Serena memory;
stop
@enduml

Serena memories (when supported)

When Serena memory tools are available, store important information as short memories:

  • project_overview.md: what the repo is, key architectural facts.
  • suggested_commands.md: build/test/lint/smoke commands.
  • style_and_conventions.md: coding conventions, patterns, gotchas.
  • bugs.md: notable bugs + fixes (date, cause, prevention) when applicable.

Heefeg gestallte Froen

Wat mécht de KI-Skill Tdd?

Use for every coding task. Enforce strict TDD workflow: activate Serena, investigate first, clarify+confirm requirements, write per-task REQUIREMENTS.md in .requirements/<datetime>_<feature_name>/, verify APIs via web search, then implement in tiny test-verified steps.

Firwat Tdd op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Tdd besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Tdd an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/Shelpuk-AI-Technology-Consulting/agent-skill-tdd/tree/main/skills/tdd an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Tdd benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Tdd benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Tdd domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Tdd gratis?

Jo. Shelpuk-AI-Technology-Consulting huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇