Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
tdd
nytodev/inertia-bundle
claude-code
tdd
phpunit
inertia-protocol
phpstan
php-cs-fixer
symfony

Start a TDD cycle for a new Inertia bundle feature or bug fix. Write the test first, then implement.

Install
php artisan boost:add-skill nytodev/inertia-bundle

Save this content to: .claude/skills/tdd/SKILL.md

# TDD Cycle — symfony-inertia-bundle

## Task
Implement **$ARGUMENTS** using strict Test-Driven Development.

## Rules
- NEVER write production code before a failing test exists
- Tests live in `tests/Unit/` or `tests/Functional/Protocol/`
- Use `declare(strict_types=1)` in every test file
- Test naming: `test<Behavior><Condition><ExpectedResult>` (camelCase, no underscores — enforced by php-cs-fixer `php_unit_method_casing`)

## Steps

### 1. Understand the requirement
Read the relevant section of `AGENTS.md` and `.claude/skills/inertia-protocol/SKILL.md`.
Identify which protocol behavior needs to be implemented.

Check how inertia-laravel tests the same behavior — it is the reference implementation:
```bash
find /home/tony/Documents/tony/inertia-laravel/tests -name "*.php" | xargs grep -l "<keyword>" 2>/dev/null
```
Read the relevant test(s) to understand what cases to cover and how assertions are structured.
Align test naming and coverage with the Laravel reference before writing anything.

### 2. Write the failing test
Create the test file. Run it and confirm it FAILS:
```bash
vendor/bin/phpunit tests/path/to/TheTest.php --testdox
```
Show the failure output. If it fails with a PHP error (missing class, etc.) that's fine for now.

### 3. Implement minimally
Write the smallest possible production code that makes the test pass.
Run again — must be GREEN.

### 4. No regressions
```bash
vendor/bin/phpunit --testdox
```
All tests must pass.

### 5. Refactor
Clean up, apply conventions from `AGENTS.md`. Run tests again after each change.

### 6. Static analysis
```bash
vendor/bin/phpstan analyse src/ tests/ --level=8 --no-progress
```

### 7. Code style
```bash
vendor/bin/php-cs-fixer fix --dry-run --diff src/ tests/
```

TDD Cycle — symfony-inertia-bundle

Task

Implement $ARGUMENTS using strict Test-Driven Development.

Rules

  • NEVER write production code before a failing test exists
  • Tests live in tests/Unit/ or tests/Functional/Protocol/
  • Use declare(strict_types=1) in every test file
  • Test naming: test<Behavior><Condition><ExpectedResult> (camelCase, no underscores — enforced by php-cs-fixer php_unit_method_casing)

Steps

1. Understand the requirement

Read the relevant section of AGENTS.md and .claude/skills/inertia-protocol/SKILL.md. Identify which protocol behavior needs to be implemented.

Check how inertia-laravel tests the same behavior — it is the reference implementation:

find /home/tony/Documents/tony/inertia-laravel/tests -name "*.php" | xargs grep -l "<keyword>" 2>/dev/null

Read the relevant test(s) to understand what cases to cover and how assertions are structured. Align test naming and coverage with the Laravel reference before writing anything.

2. Write the failing test

Create the test file. Run it and confirm it FAILS:

vendor/bin/phpunit tests/path/to/TheTest.php --testdox

Show the failure output. If it fails with a PHP error (missing class, etc.) that's fine for now.

3. Implement minimally

Write the smallest possible production code that makes the test pass. Run again — must be GREEN.

4. No regressions

vendor/bin/phpunit --testdox

All tests must pass.

5. Refactor

Clean up, apply conventions from AGENTS.md. Run tests again after each change.

6. Static analysis

vendor/bin/phpstan analyse src/ tests/ --level=8 --no-progress

7. Code style

vendor/bin/php-cs-fixer fix --dry-run --diff src/ tests/
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
htinlynn/genius-helper
maco-studios/hephaestus
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator