From strict-loop
This skill should be used when the user asks to "plan a feature", "prepare for dev loop", "structure TDD approach", "break down this task", "create development plan", or when generating structured prompts for iterative development. Creates dev-loop-ready plans with TDD phases, file tables, code snippets, and framework-specific guidance.
How this skill is triggered — by the user, by Claude, or both
Slash command
/strict-loop:tdd-plannerThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Generate high-quality, structured development plans following Test-Driven Development principles for use with the strict-loop command.
Generate high-quality, structured development plans following Test-Driven Development principles for use with the strict-loop command.
Every plan must meet this checklist before saving:
Reference: See references/good-example.md for expected quality.
This skill activates when:
## Context
- **Framework**: Flutter / Django / Next.js / etc.
- **Current State**: What exists now
- **Test Command**: `flutter test` / `pytest` / etc.
- **Lint Command**: `flutter analyze` / `ruff check .` / etc.
- **Items to Work On**:
- `ComponentA` (description)
- `ComponentB` (description)
## Success Criteria
- [ ] Login returns JWT token (specific behavior)
- [ ] 81+ tests pass (quantitative)
- [ ] Invalid credentials return 401 (negative case)
- [ ] All tests pass (`flutter test`)
- [ ] Linter clean (`flutter analyze`)
## Files to Modify
| File | Action |
|------|--------|
| `lib/main.dart` | Replace MultiProvider with ProviderScope |
## New Files to Create
| File | Purpose |
|------|---------|
| `lib/providers/auth_provider.dart` | Riverpod auth state |
### Phase 2: Green - Implement Auth Provider
**Goal:** Create Riverpod provider that passes tests
**Tasks:**
- [ ] Create `lib/providers/auth_provider.dart`:
- StateNotifierProvider with AuthNotifier
- Methods: login(), logout(), checkAuth()
**Implementation Structure:**
\```dart
final authProvider = StateNotifierProvider<AuthNotifier, AuthState>((ref) {
return AuthNotifier();
});
\```
**Verification:**
\```bash
flutter test test/providers/auth_test.dart
\```
**Expected:** Tests should PASS
**Self-correction:**
- If tests fail, check state class matches test expectations
## Stuck Handling
### If same test keeps failing:
1. Read the exact error message
2. Check if ProviderScope wraps the widget tree
3. Verify ref.watch vs ref.read usage
### Alternative approaches if blocked:
1. Keep hybrid approach temporarily
2. Migrate one screen at a time
Package manager auto-detection (defaults to bun):
bun.lockb -> bunpnpm-lock.yaml -> pnpmyarn.lock -> yarnpackage-lock.json -> npmAuto-detected frameworks (17+):
| Category | Framework | Detection | Test | Lint |
|---|---|---|---|---|
| Mobile | Flutter | pubspec.yaml | flutter test | flutter analyze |
| React Native | react-native in package.json | ${PM} test | ${PM} run lint | |
| Python | Django | manage.py | pytest | ruff check . |
| FastAPI | fastapi in pyproject.toml | pytest | ruff check . | |
| Flask | flask in pyproject.toml | pytest | ruff check . | |
| Node.js | NestJS | @nestjs/core | ${PM} test | ${PM} run lint |
| Next.js | next | ${PM} test | ${PM} run lint | |
| Nuxt.js | nuxt | ${PM} test | ${PM} run lint | |
| Hono | hono | bun test | bun run lint | |
| Express | express | ${PM} test | ${PM} run lint | |
| TanStack | @tanstack/react-router | bun test | bun run lint | |
| Systems | Go | go.mod | go test ./... | golangci-lint run |
| Rust | Cargo.toml | cargo test | cargo clippy | |
| Web | Rails | rails in Gemfile | bundle exec rspec | bundle exec rubocop |
| Laravel | laravel in composer.json | php artisan test | ./vendor/bin/pint |
Custom frameworks:
/strict-plan "Build API" --framework elixir --test-cmd "mix test" --lint-cmd "mix credo"
Bad Task:
- [ ] Create login view
Good Task:
- [ ] Create `lib/screens/login_screen.dart`:
- ConsumerStatefulWidget
- Form with email/password TextFormFields
- Calls `ref.read(authProvider.notifier).login()`
- Shows loading state during auth
- Navigates to home on success
| Don't | Do Instead |
|---|---|
| "Implement the feature" | "Create lib/auth/login.dart with ConsumerWidget" |
| "If it fails, try again" | "If tests pass in Red, they're too weak — add assertions" |
| Missing code snippets | Show actual structure with types and patterns |
| No file tables | Always list files to modify/create |
| "App works well" | "Login returns JWT, logout invalidates token, 401 on bad creds" |
| Generic stuck handling | Framework-specific: "Check ProviderScope wraps app" |
/strict-plan "Migrate to Riverpod" --framework flutter
/strict-plan "Add user authentication" --interactive
/strict-loop --from-plan
references/plan-template.md - Full template with all variablesreferences/good-example.md - High-quality example planreferences/framework-patterns.md - Framework-specific patternsProvides behavioral guidelines to reduce common LLM coding mistakes, focusing on simplicity, surgical changes, assumption surfacing, and verifiable success criteria.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
npx claudepluginhub mohamedgamalali/claude-rails --plugin strict-loop