Implémentation de tâches simples

VérifiéSûr

Implémente de petites fonctionnalités, des corrections de bugs ou des améliorations rapides en suivant les bonnes pratiques des documents directeurs du projet. Utilise le développement piloté par les tests (Rouge-Vert-Refactor), les principes SOLID et des vérifications de sécurité. Idéal pour les tâches qui ne nécessitent pas le processus complet de SDD.

Spar Skills Guide Bot
DeveloppementDébutant
9002/06/2026
Claude Code
#simple-task#tdd#best-practices#bug-fixes

Recommandé pour

Notre avis

Implémente de petites fonctionnalités, correctifs ou améliorations rapides en utilisant le TDD et les bonnes pratiques.

Points forts

  • Suit le développement piloté par les tests (TDD)
  • Assure la qualité du code et la sécurité via des checklists
  • S'intègre aux documents de référence du projet
  • Fournit un résultat structuré avec résumé d'implémentation

Limites

  • Destiné aux tâches petites et bien définies
  • Peut être trop simpliste pour des fonctionnalités complexes
  • Nécessite que les documents de référence existent dans le projet
Quand l'utiliser

Utilisez pour les petites additions de fonctionnalités, corrections de bugs ou améliorations rapides qui ne nécessitent pas de revue de conception formelle.

Quand l'éviter

N'utilisez pas pour des fonctionnalités complexes nécessitant plusieurs composants ou une analyse d'exigences formelle.

Analyse de sécurité

Sûr
Score qualité90/100

The skill is a workflow guide for implementing code changes safely, emphasizing TDD, code quality, and security checks. It does not contain any destructive, exfiltrating, or obfuscated instructions.

Aucun point d'attention détecté

Exemples

Add logout button to navbar
/simple-task add a logout button to the navbar that clears the session and redirects to the login page
Fix login validation error
/simple-task fix the login form validation error that shows when the username field is empty
Add unit tests for user service
/simple-task add unit tests for the user service covering all public methods

name: simple-task description: Implement simple features with best practices. Use when adding small features, bug fixes, or quick enhancements without the full SDD workflow. Invoked via /simple-task <description>.

Simple Task Implementation

Implement small features, bug fixes, or quick enhancements while following best practices from the project's steering documents.

When to Use

Use /simple-task for:

  • Small feature additions (e.g., "add logout button")
  • Bug fixes
  • Minor enhancements
  • Quick refactoring

Use full SDD workflow for:

  • Complex features requiring multiple components
  • New modules or subsystems
  • Features needing formal requirements/design review

Workflow

Step 1: Understand the Task

  1. Clarify what needs to be done
  2. Identify affected files/components
  3. Estimate scope (if larger than expected, suggest full SDD workflow)

Step 2: Apply TDD (Test-Driven Development)

Reference: .spec/steering/tdd-guideline.md

Follow the Red-Green-Refactor cycle:

1. RED    → Write a failing test first
2. GREEN  → Write minimal code to pass
3. REFACTOR → Clean up while tests pass

Quick TDD Checklist:

  • [ ] Write test before implementation
  • [ ] Test describes expected behavior
  • [ ] Minimal code to make test pass
  • [ ] Refactor without breaking tests

Step 3: Apply Design Principles

Reference: .spec/steering/principles.md

SOLID Quick Reference:

  • Single Responsibility: Each function/class does one thing
  • Open/Closed: Extend behavior without modifying existing code
  • Liskov Substitution: Subtypes must be substitutable
  • Interface Segregation: Small, focused interfaces
  • Dependency Inversion: Depend on abstractions

Other Principles:

  • DRY: Don't repeat yourself - extract common logic
  • KISS: Keep it simple - avoid unnecessary complexity
  • YAGNI: You aren't gonna need it - only implement what's required

Step 4: Code Quality Review

Reference: .spec/steering/linus-review.md

Before finalizing, ask:

  1. Taste: Is the solution elegant? Can special cases be eliminated?
  2. Simplicity: Can it be simpler? Fewer lines? Less nesting?
  3. Data Structures: Is the right data structure used?
  4. Breaking Changes: Does this break existing functionality?

Quality Checklist:

  • [ ] Functions are short and focused
  • [ ] No more than 3 levels of indentation
  • [ ] Clear, descriptive naming
  • [ ] No unnecessary complexity

Step 5: Security Check

Reference: .spec/steering/owasp-top10-check.md

Quick Security Checklist:

  • [ ] Input validation (sanitize user inputs)
  • [ ] No SQL/command injection (use parameterized queries)
  • [ ] Access control enforced
  • [ ] No secrets in code (use env vars)
  • [ ] Proper error handling (no stack traces to users)

Step 6: Implement and Test

  1. Write the failing test (RED)
  2. Implement minimal solution (GREEN)
  3. Run tests to confirm pass
  4. Refactor if needed
  5. Run full test suite
  6. Verify no lint/type errors

Reference Documents

These steering documents provide detailed guidance:

| Document | Content | |----------|---------| | tdd-guideline.md | TDD methodology, test pyramid, Red-Green-Refactor | | principles.md | SOLID, DRY, KISS, YAGNI, Separation of Concerns | | linus-review.md | Code quality, "good taste", simplicity standards | | owasp-top10-check.md | Security checklist (OWASP Top 10) |

Output

After implementing, provide:

## Implementation Summary

**Task:** {what was implemented}

**Changes:**
- {file1}: {what changed}
- {file2}: {what changed}

**Tests Added:**
- {test description}

**Principles Applied:**
- TDD: {how TDD was followed}
- Design: {which principles were applied}
- Security: {security considerations}

**Ready for:** {commit / further review / testing}

Example

User: /simple-task add a logout button to the navbar

Claude:
1. Understand: Add logout button that clears session and redirects to login
2. TDD: Write test for logout functionality first
3. Principles: Single responsibility - logout logic in AuthService
4. Security: Ensure session is properly invalidated
5. Implement: Button component + logout handler
6. Test: Verify all tests pass
Skills similaires