Index of every page on this site: llms.txt
All skills
Run it yourself

Test-driven development with red-green-refactor loop. Use when user wants to build features or fix bugs using TDD, mentions "red-green-refactor", wants integration tests, or asks for test-first development.

  • 6 files
  • 11.5 KB
  • Updated 6 months ago
  • GitHub
Use this Skill: https://skilld.dev/gh/soulesidibe/skync/tdd

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

interface-design.md

≈157 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Interface Design for Testability

Good interfaces make testing natural:

  1. Accept dependencies, don't create them

    // Testable
    function process_order(order, payment_gateway): ...
    
    // Hard to test
    function process_order(order):
      gateway = new PaymentGateway()
      ...
  2. Return results, don't produce side effects

    // Testable
    function calculate_discount(cart) -> Discount: ...
    
    // Hard to test
    function apply_discount(cart):
      cart.total -= discount
  3. Small surface area

    • Fewer methods = fewer tests needed
    • Fewer params = simpler test setup

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at c4bae9f. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 4 weeks ago.

Steadyupdated 6 months ago

README badge

README badge for soulesidibe/skync/tdd