Logo Tdd

Tdd

Tổ chức
Shelpuk-AI-Technology-Consulting
tdd

Dùng cho mọi tác vụ lập trình. Tuân thủ quy trình TDD nghiêm ngặt: kích hoạt Serena, điều tra trước, làm rõ và xác nhận yêu cầu, tạo REQUIREMENTS.md cho từng tác vụ trong .requirements/<datetime>_<feature_name>/, xác minh API bằng tìm kiếm web, sau đó triển khai theo từng bước nhỏ và kiểm thử ở mỗi bước.

Tổng quan

Nhà phát hànhShelpuk-AI-Technology-Consulting
Kho mãagent-skill-tdd
Tên kỹ năngtdd
Sao
31
Bản fork
1
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được Shelpuk-AI-Technology-Consulting công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Tdd trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/Shelpuk-AI-Technology-Consulting/agent-skill-tdd/tree/main/skills/tdd
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

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
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Tdd trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Tdd ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Tdd với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

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.

Câu hỏi thường gặp

Kỹ năng AI Tdd làm được gì?

Dùng cho mọi tác vụ lập trình. Tuân thủ quy trình TDD nghiêm ngặt: kích hoạt Serena, điều tra trước, làm rõ và xác nhận yêu cầu, tạo REQUIREMENTS.md cho từng tác vụ trong .requirements/<datetime>_<feature_name>/, xác minh API bằng tìm kiếm web, sau đó triển khai theo từng bước nhỏ và kiểm thử ở mỗi bước.

Vì sao nên dùng Tdd trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Tdd là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Tdd trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/Shelpuk-AI-Technology-Consulting/agent-skill-tdd/tree/main/skills/tdd. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Tdd?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Tdd với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Tdd với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Tdd có miễn phí không?

Có. Kỹ năng này được Shelpuk-AI-Technology-Consulting phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇