testing-flexible

Guide test-first and flexible testing for Swift/XCTest and TypeScript/Vitest.

1|Updated Jan 7, 2026
One-click install
npx skills add https://github.com/bgrober/indie-stack --skill testing-flexible
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing-flexible
Source: https://github.com/bgrober/indie-stack/tree/main/skills/testing-flexible
Command: npx skills add https://github.com/bgrober/indie-stack --skill testing-flexible

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers write effective tests for their code, balancing the need for confidence with the flexibility required during prototyping and rapid development.

Core Features & Use Cases

  • Flexible Testing Strategies: Encourages test-first but allows skipping tests during prototyping.
  • Guidance on What to Test: Provides clear recommendations on critical paths, edge cases, and areas where testing can be skipped.
  • Test-First Pattern (RED-GREEN-REFACTOR): Details the steps for implementing tests before or during development.
  • Language-Specific Examples: Includes Swift/XCTest and TypeScript/Vitest examples.
  • Anti-Pattern Avoidance: Highlights common testing pitfalls and how to avoid them.

Quick Start

Use the testing-flexible skill to write tests for the critical business logic in the new user authentication module.

Frequently Asked Questions about testing-flexible

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write effective tests while prototyping rapidly?

Effective testing during prototyping balances confidence with flexibility by allowing you to skip tests initially, then applying test-first methodologies like RED-GREEN-REFACTOR to critical paths once the design stabilizes.

What is the RED-GREEN-REFACTOR pattern in test-first development?

The RED-GREEN-REFACTOR pattern is a test-first cycle where you write a failing test (RED), implement code to pass it (GREEN), then optimize the code (REFACTOR) to ensure quality and maintainability.

What are common testing anti-patterns and how do I avoid them?

Common testing anti-patterns include testing implementation details instead of behavior and writing overly coupled tests. Avoid them by focusing on critical paths and edge cases to ensure code quality and maintainability.

Does this testing approach work with both Swift and TypeScript?

Yes, this testing approach supports both Swift and TypeScript environments. It provides language-specific examples and best practices for XCTest in Swift and Vitest in TypeScript.

When should I skip writing tests during software development?

You should skip writing tests during early prototyping phases when code is highly volatile. Focus testing efforts on critical business logic and stable edge cases rather than experimental code paths.