agentsclimarketplace

Test first

Skill s-hiraoku/synapse-a2a/.agents/skills/test-first

Install
npx -y skills add s-hiraoku/synapse-a2a --skill test-first

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 9 stars9 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Guide for Test-First (Test-Driven) Development. Focuses on writing tests before implementation, ensuring comprehensive coverage and clear requirements. Covers test design, edge cases, and the Arrange-Act-Assert structure.

The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

1.7 KB, as published. Nobody here has run it

Test-First Development Skill

Test-First Development (TDD) ensures that code is written to satisfy specific, predefined requirements, leading to higher quality and better design.

TDD Workflow

  1. Red: Write a failing test for a small piece of functionality.
  2. Green: Write the minimum amount of code required to make the test pass.
  3. Refactor: Clean up the code while ensuring the tests remain green.

Test Design Principles

1. Comprehensive Coverage

  • Normal Cases: Test the expected "happy path" behavior.
  • Boundary Values: Test inputs at the edges of valid ranges (e.g., 0, max_int, empty strings).
  • Edge Cases: Test unusual or extreme conditions (e.g., network timeout, disk full, null values).
  • Error Handling: Verify that the system fails gracefully and returns appropriate error messages.

2. Structure (Arrange-Act-Assert)

Follow the AAA pattern for clear and maintainable tests:

  • Arrange: Set up the necessary preconditions and inputs.
  • Act: Execute the function or method being tested.
  • Assert: Verify that the outcome matches the expectation.

Best Practices

  • One Assertion per Test: Aim to test a single concept per test case.
  • Descriptive Naming: Name tests clearly (e.g., test_should_reject_invalid_api_key).
  • Independence: Ensure tests do not depend on each other or on a specific execution order.
  • Fast Execution: Keep unit tests fast to encourage frequent execution.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.