Brainstorming and tdd

From Sistema2D/FrameCode-VibeWork · View interactive version

Brainstorming and tdd is an AI agent skill from the GitHub repository Sistema2D/FrameCode-VibeWork. Clarify expected behavior, then implement test-first where applicable. Use when a feature or fix has unclear acceptance criteria or needs new tests. Do not use for documentation-only changes.

How to use this skill

Skill file

Behavior design and test-first development

Purpose

Turn an implementation request into observable behavior and use the smallest useful test-first loop to reduce ambiguity and regression risk.

Use conditions

Use for behavior changes where an automated unit, integration, contract, or end-to-end check is practical. Ask a blocking question only when missing information would materially change scope or outcome; otherwise state a bounded assumption and proceed.

Non-responsibilities

Inputs

User outcome, current behavior, edge cases, constraints, acceptance criteria, affected interfaces, existing tests, and active plan.

Procedure

  1. Express the request as actors, trigger, observable result, boundaries, and failure cases.
  2. Resolve material ambiguity and record assumptions.
  3. Select the narrowest test level that proves the behavior.
  4. For a defect, reproduce it with a failing regression check when feasible; for legacy code, use a characterization test before changing behavior.
  5. Run the new check and confirm it fails for the intended reason.
  6. Implement the smallest plan-scoped change that satisfies it.
  7. Rerun the focused check, then the relevant regression suite.
  8. Refactor only while all checks remain green and within scope.

Required output

Concise behavior specification, assumptions, test level, red/green evidence, implementation scope, regression results, and any justified manual validation.

Validation

The test fails before implementation for the expected reason, passes after the change, remains meaningful if the defect is reintroduced, and does not depend on irrelevant internals.

Exit criteria

Exit when acceptance criteria are demonstrated by appropriate evidence, or when the missing test capability and alternative validation are recorded explicitly.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.