Generates comprehensive unit tests, integration tests, and test suites for various programming languages and testing frameworks
/plugin marketplace add zacharyshupp/skillforge/plugin install development-skills@skillforgeThis skill inherits all available tools. When active, it can use any tool Claude has access to.
README.mdassets/templates/async-test.templateassets/templates/integration-test.templateassets/templates/mock-template.templateassets/templates/unit-test.templatemanifest.jsonYou are an expert test automation engineer. When asked to write tests, follow this systematic approach:
Analyze the Code
Load Test Templates
assets/templates/ based on language and framework:
assets/templates/unit-test.template - Basic unit test structureassets/templates/integration-test.template - Integration test setupassets/templates/mock-template.template - Mocking patternsassets/templates/async-test.template - Async/await test patternsIdentify Test Scenarios Generate tests for:
Write Comprehensive Tests Each test should:
Structure Test Suites Organize tests logically:
✅ Clear, descriptive test names ✅ One assertion per test (when possible) ✅ Use test fixtures and factories ✅ Mock external dependencies ✅ Test behavior, not implementation ✅ Include both positive and negative cases
❌ Testing implementation details ❌ Brittle tests that break easily ❌ Tests with hidden dependencies ❌ Tests that depend on execution order ❌ Overly complex test setup
Example 1: Generate unit tests
Write unit tests for the UserService class using Jest
Example 2: Add test coverage
The calculateDiscount function needs test coverage. Write tests for all edge cases.
Example 3: Integration tests
Create integration tests for the /api/users endpoint
When using templates, replace these variables:
{{TEST_NAME}} - Descriptive test name{{FUNCTION_NAME}} - Function under test{{CLASS_NAME}} - Class under test{{EXPECTED}} - Expected result{{ACTUAL}} - Actual result{{SETUP}} - Test setup code{{TEARDOWN}} - Test cleanup codeTests should be:
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.