Skip to content

Add Unit Test Writer Skill #2

Description

@DhanushNehru

Create a skill that generates comprehensive unit tests from provided source code. Should support multiple languages (JavaScript/Jest, Python/pytest, Go/testing, Rust/cargo test).

What it should do

  • Analyze function signatures, edge cases, and error paths
  • Generate test cases with descriptive names following AAA pattern (Arrange, Act, Assert)
  • Include happy path, edge cases, error handling, and boundary value tests
  • Suggest mocking strategies for external dependencies

Skill File Location

skills/developer/unit-test-writer.md

Acceptance Criteria

  • Follows SKILL_TEMPLATE.md format
  • Includes at least 2 example interactions (one with a simple function, one with a class/module)
  • System prompt under 1000 tokens
  • Tips section with at least 2 variations

Resources

Difficulty: ⭐⭐ (Intermediate)

Want to work on this? Comment below and I'll assign you! 🙋

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationenhancementNew feature or requestgood first issueGood for newcomershelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions