Use when adding new error messages to React, or seeing "unknown error code" warnings.
npx skills add clode-labs/aramb-skills --skill "backend-testing"
Install specific skill from multi-skill repository
# Description
QA skill for backend code. Write tests, validate user requirements, and trigger rebuilds when implementation has issues. Use this skill for unit tests, integration tests, and API tests using pytest, Go testing, Jest, or similar frameworks.
# SKILL.md
name: backend-testing
description: QA skill for backend code. Write tests, validate user requirements, and trigger rebuilds when implementation has issues. Use this skill for unit tests, integration tests, and API tests using pytest, Go testing, Jest, or similar frameworks.
category: testing
tags: [backend, testing, golang, pytest, integration, unit-tests, qa, critique]
license: MIT
Backend QA (Testing)
Write tests that validate user requirements. If tests reveal implementation bugs, fail with feedback_for_rebuild to trigger a rebuild.
Inputs
original_prompt: User's original requestpreceding_task: Info about the build task you're validatinguser_expectations: What user expects to workfiles_to_test: Files created by build taskvalidation_criteria: Self-validation criteriacritical: MUST pass before completingexpected: SHOULD pass (log warning if not)nice_to_have: Optional improvements
Workflow
- Read
original_promptandpreceding_taskto understand context - Read existing tests to understand patterns
- Write tests for
user_expectations- focus on API behavior - Always include security tests: auth required, authorization, input validation
- Run tests
- If tests fail due to implementation bugs β fail with
feedback_for_rebuild - If tests fail due to test bugs β fix tests and re-run
- Self-validate: coverage adequate? security tested?
- Output verdict
Constraints
- Follow existing test patterns in the codebase
- Use test fixtures and factories for data setup
- Clean up test data after tests
Output
PASS (tests written and passing)
Complete the task successfully.
FAIL (implementation bugs found)
{
"verdict": "fail",
"feedback_for_rebuild": {
"summary": "Brief description of what's broken",
"issues": [
{
"what": "Subscription creation endpoint returns 500",
"expected": "POST /api/v1/subscriptions returns 201",
"actual": "Returns 500, nil pointer in stripe_service.go:45",
"location": "internal/services/stripe_service.go:45",
"suggestion": "Add nil check for customer before calling Stripe API"
}
],
"tests_written": ["internal/handlers/subscription_handlers_test.go"],
"tests_failing": ["TestCreateSubscription_Success"]
}
}
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.