AgentSkillsCN

laravel:tdd-with-pest

以测试优先的工作流与确定性的回归防护,安全地交付Laravel行为。适用于使用pest进行TDD任务。

SKILL.md
--- frontmatter
name: laravel:tdd-with-pest
allowed-tools:
  - Read
  - Write
  - Edit
  - Bash
  - Glob
  - Grep
description: Deliver Laravel behavior safely with test-first workflows and deterministic regression protection. Use for tdd with pest tasks.

Tdd With Pest (Laravel)

Use when

  • Implementing new behavior with regression risk.
  • Fixing bugs via reproducible failing tests.

Default workflow

  1. Write a failing test for expected behavior and one edge case.
  2. Implement minimal code to pass.
  3. Refactor for clarity while keeping tests green.
  4. Run targeted tests, then broader suite for impacted modules.

Guardrails

  • No behavior change without test evidence.
  • Prefer deterministic fixtures and isolated state.
  • Assert business outcomes instead of internals.

Progressive disclosure

  • Start with this file for execution posture and constraints.
  • Load references only for deep implementation detail or edge cases.

Output contract

  • RED/GREEN/REFACTOR summary.
  • Test files changed and command output.
  • Remaining coverage gaps.

References

  • reference.md
  • docs/complexity-tiers.md