tdd-laravel
仓库创建 2026年7月4日最近提交 22 天前SkillHot 收录 22 天前
▸ 精选理由
规范测试循环并确保重构质量与用户确认,适合严谨开发流程。
这个 Skill 做什么
在 Laravel 中用 Pest 执行红-绿-重构的 TDD 流程并强制重构阶段。
在 Laravel 项目里用 Pest 推行红-绿-重构(red-green-refactor)的 TDD 流程:先写失败的测试,再实现让测试通过,最后必须做重构并验证。每个循环都会给出具体的重构建议并在征得你同意后再改代码,确保改动安全且可测试。适合想要严格测试驱动开发、写出可维护集成测试的团队或个人。
▸ 展开 SKILL.md 英文原文
Test-driven development with red-green-refactor loop using Pest PHP. Use when user wants to build features or fix bugs using TDD, mentions "red-green-refactor", wants integration tests, asks for test-first development, or needs guidance on writing testable code with Pest.
0
Stars
0
Forks
23
仓库内 Skill
+0
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/ceilidhboy/skills/master/skills/tdd-laravel/SKILL.md或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/ceilidhboy/skills/master/skills/tdd-laravel/SKILL.md"SKILL.MD 节选查看完整文件 ↗
# Test-Driven Development ## 🛑 CRITICAL: The Refactor Phase Is Mandatory **After EVERY red-green cycle, you MUST:** 1. **Complete the refactor checklist** (see [refactor-checklist.md](refactor-checklist.md)) 2. **Propose refactors to the user** with specific code examples 3. **Get explicit user approval** before making any changes 4. **Execute approved refactors** and verify tests still pass 5. **Display the completed checklist** to the user before proceeding **Do NOT skip refactoring. Do NOT proceed to the next test without user approval of refactoring.** The TDD Mantras are: - 🕉️ **RED → GREEN → REFACTOR (with user approval) → RED → GREEN → REFACTOR (with user approval) → ...** - 🛑
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有