tdd-workflows-tdd-green – skill Lập trình cho agent AI
Viết mã tối thiểu cần thiết để làm cho các test thất bại vượt qua trong giai đoạn green của TDD.
Cài skill tdd-workflows-tdd-green bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/tdd-workflows-tdd-green-51849.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /tdd-workflows-tdd-green – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/tdd-workflows-tdd-green-51849.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $tdd-workflows-tdd-green – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/tdd-workflows-tdd-green-51849.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /tdd-workflows-tdd-green – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/tdd-workflows-tdd-green-51849.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /tdd-workflows-tdd-green – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
TDD Green Phase
Implement the smallest correct behavior for an agreed failing test while preserving existing requirements, security boundaries and interfaces. Read the bundled playbook as illustrative material, not an executable tool.
Use this skill when
- Moving from red to green in a TDD cycle
- Implementing minimal behavior to satisfy tests
- You want to keep implementation intentionally simple
Do not use this skill when
- You are refactoring for design or performance
- Tests are already passing and you need new requirements
- You need a full architectural redesign
Instructions
1. Review failing tests and identify the smallest fix.
2. Implement the minimal change to pass the next test.
3. Run tests after each change to confirm progress.
4. Record shortcuts or debt for the refactor phase.
Safety
- Avoid bypassing tests to make them pass.
- Keep changes scoped to the failing behavior only.
Resources
resources/implementation-playbook.mdfor detailed patterns and examples.
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
Skill liên quan
- tdd-workflows-tdd-red – Tạo các test thất bại cho giai đoạn red của TDD để xác định hành vi mong đợi và các…
- tdd-workflows-tdd-refactor – Dùng khi làm việc với bước refactor trong quy trình TDD.
- team-collaboration-issue – Bạn là chuyên gia xử lý GitHub issue, chuyên về điều tra lỗi có hệ thống, triển khai…
- technical-change-tracker – Theo dõi thay đổi mã bằng bản ghi JSON có cấu trúc, thực thi máy trạng thái và bàn giao…
- technical-tutorials – Khi người dùng muốn tạo hướng dẫn kỹ thuật từng bước, quickstart hoặc walkthrough mã…
- telegram – Tích hợp đầy đủ với Telegram Bot API. Thiết lập với BotFather, tin nhắn, webhook, inline…
- telegram-bot-builder – Chuyên gia xây dựng bot Telegram giải quyết vấn đề thực tế, từ tự động hóa đơn giản đến…
- telegram-mini-app – Chuyên gia xây dựng Telegram Mini App (TWA), tức ứng dụng web chạy bên trong Telegram…