tdd-workflows-tdd-green

sickn33/antigravity-awesome-skills · updated Apr 8, 2026

$npx skills add https://github.com/sickn33/antigravity-awesome-skills --skill tdd-workflows-tdd-green
0 commentsdiscussion
summary

def product_list(request):

  • products = Product.objects.all()
  • return JsonResponse({'products': list(products.values())})
skill.md

Green Phase: Simple function

def product_list(request): products = Product.objects.all() return JsonResponse({'products': list(products.values())})

Refactor: Class-based view

class ProductListView(View): def get(self, request): products = Product.objects.all() return JsonResponse({'products': list(products.values())})

Refactor: Generic view

class ProductListView(ListView): model = Product context_object_name = 'products'


### Express Patterns

**Inline → Middleware → Service Layer:**
```javascript
// Green Phase: Inline logic
app.post('/api/users', (req, res) => {
  const user = { id: Date.now(), ...req.body };
  users.push(user);
  res.json(user);
});

// Refactor: Extract middleware
app.post('/api/users', validateUser, (req, res) => {
  const user = userService.create(req.body);
  res.json(user);
});

// Refactor: Full layering
app.post('/api/users',
  validateUser,
  asyncHandler(userController.create)
);

Use this skill when

  • Moving from red to green in a TDD cycle
  • Implementing minimal behavior to satisfy tests
  • You want to keep implementation intentionally simple

Do not use this skill when

  • You are refactoring for design or performance
  • Tests are already passing and you need new requirements
  • You need a full architectural redesign

Instructions

  1. Review failing tests and identify the smallest fix.
  2. Implement the minimal change to pass the next test.
  3. Run tests after each change to confirm progress.
  4. Record shortcuts or debt for the refactor phase.

Safety

  • Avoid bypassing tests to make them pass.
  • Keep changes scoped to the failing behavior only.

Resources

  • resources/implementation-playbook.md for detailed patterns and examples.

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
general reviews

Ratings

4.551 reviews
  • Chaitanya Patil· Dec 28, 2024

    We added tdd-workflows-tdd-green from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.

  • Zara Dixit· Dec 8, 2024

    I recommend tdd-workflows-tdd-green for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Tariq Kapoor· Dec 4, 2024

    Keeps context tight: tdd-workflows-tdd-green is the kind of skill you can hand to a new teammate without a long onboarding doc.

  • Advait Martin· Nov 23, 2024

    tdd-workflows-tdd-green is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • Piyush G· Nov 19, 2024

    tdd-workflows-tdd-green fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.

  • Advait Sharma· Oct 14, 2024

    Useful defaults in tdd-workflows-tdd-green — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Hassan Rahman· Oct 14, 2024

    Useful defaults in tdd-workflows-tdd-green — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Shikha Mishra· Oct 10, 2024

    Registry listing for tdd-workflows-tdd-green matched our evaluation — installs cleanly and behaves as described in the markdown.

  • Harper Jain· Sep 21, 2024

    Registry listing for tdd-workflows-tdd-green matched our evaluation — installs cleanly and behaves as described in the markdown.

  • Ama Lopez· Sep 21, 2024

    Solid pick for teams standardizing on skills: tdd-workflows-tdd-green is focused, and the summary matches what you get after install.

showing 1-10 of 51

1 / 6