Skip to content

aiskillstore/marketplace / skills/9tykeshav/backend-test-writer

backend-test-writer

Verified

Use when generating tests for backend code (Express routes, MongoDB models, Node services) - analyzes file type, detects test framework from package.json, generates comprehensive tests with setup/teardown and edge case coverage

FileKindSize
SKILL.mdskill md4.4 KB
reference/test-patterns.mdmarkdown8.5 KB
reference/test-setup.mdmarkdown2.4 KB
skill-report.jsonconfig58.7 KB

skill-report.json

View on GitHub
{
  "schema_version": "2.0",
  "meta": {
    "generated_at": "2026-07-05T16:38:28.227Z",
    "slug": "9tykeshav-backend-test-writer",
    "source_url": "https://github.com/9tykeshav/mern-ninja-cc/tree/main/skills/backend-test-writer",
    "source_ref": "main",
    "model": "codex",
    "analysis_version": "3.0.0",
    "source_type": "community",
    "content_hash": "283d385a17866541528ee6384c2bbf411490964849ef301befc80f3467dbfa89",
    "tree_hash": "ec70feae7aa961363ebd7c16a8f0ece836625cf25d4bfdea4aa795f41506e6da",
    "provenance": {
      "model_effective": "codex",
      "fallback_chain": [
        {
          "agent": "codex",
          "outcome": "success"
        }
      ],
      "analysis_version": "3.0.0"
    }
  },
  "skill": {
    "name": "backend-test-writer",
    "description": "Generates Jest, Supertest, and MongoDB test guidance for Express routes, controllers, services, models, middleware, and utilities.",
    "summary": "Create backend tests for MERN APIs with setup, cleanup, and edge coverage.",
    "icon": "📦",
    "version": "1.0.1",
    "author": "9tykeshav",
    "license": "MIT",
    "tags": [
      "backend-testing",
      "jest",
      "supertest",
      "mern",
      "mongodb"
    ],
    "supported_tools": [
      "claude",
      "codex",
      "claude-code"
    ],
    "risk_factors": [
      "external_commands",
      "network",
      "filesystem",
      "env_access"
    ],
    "category": "coding"
  },
  "security_audit": {
    "risk_level": "safe",
    "is_blocked": false,
    "safe_to_publish": true,
    "analysis_status": "ok",
    "summary": "The static detections are false positives from Markdown examples and inline code snippets. Supertest calls, relative imports, template literals, and process.env usage are instructional test patterns, not executable skill logic. No evidence found of prompt injection, data exfiltration intent, or unauthorized command execution.",
    "remediation": [],
    "risk_factor_evidence": [
      {
        "factor": "external_commands",
        "evidence": [
          {
            "file": "reference/test-patterns.md",
            "line_start": 100,
            "line_end": 106
          },
          {
            "file": "reference/test-patterns.md",
            "line_start": 233,
            "line_end": 242
          },
          {
            "file": "reference/test-setup.md",
            "line_start": 84,
            "line_end": 94
          },
          {
            "file": "SKILL.md",
            "line_start": 27,
            "line_end": 27
          },
          {
            "file": "SKILL.md",
            "line_start": 29,
            "line_end": 29
          },
          {
            "file": "SKILL.md",
            "line_start": 30,
            "line_end": 30
          },
          {
            "file": "SKILL.md",
            "line_start": 38,
            "line_end": 38
          },
          {
            "file": "SKILL.md",
            "line_start": 39,
            "line_end": 39
          },
          {
            "file": "SKILL.md",
            "line_start": 40,
            "line_end": 40
          },
          {
            "file": "SKILL.md",
            "line_start": 41,
            "line_end": 41
          },
          {
            "file": "SKILL.md",
            "line_start": 42,
            "line_end": 42
          },
          {
            "file": "SKILL.md",
            "line_start": 43,
            "line_end": 43
          },
          {
            "file": "SKILL.md",
            "line_start": 45,
            "line_end": 45
          },
          {
            "file": "SKILL.md",
            "line_start": 65,
            "line_end": 68
          },
          {
            "file": "SKILL.md",
            "line_start": 68,
            "line_end": 69
          },
          {
            "file": "SKILL.md",
            "line_start": 69,
            "line_end": 79
          },
          {
            "file": "SKILL.md",
            "line_start": 79,
            "line_end": 79
          },
          {
            "file": "SKILL.md",
            "line_start": 80,
            "line_end": 81
          },
          {
            "file": "SKILL.md",
            "line_start": 81,
            "line_end": 82
          },
          {
            "file": "SKILL.md",
            "line_start": 82,
            "line_end": 86
          },
          {
            "file": "SKILL.md",
            "line_start": 86,
            "line_end": 98
          },
          {
            "file": "SKILL.md",
            "line_start": 98,
            "line_end": 107
          },
          {
            "file": "SKILL.md",
            "line_start": 107,
            "line_end": 108
          },
          {
            "file": "SKILL.md",
            "line_start": 108,
            "line_end": 133
          },
          {
            "file": "SKILL.md",
            "line_start": 133,
            "line_end": 133
          }
        ]
      },
      {
        "factor": "network",
        "evidence": [
          {
            "file": "reference/test-patterns.md",
            "line_start": 19,
            "line_end": 19
          },
          {
            "file": "reference/test-patterns.md",
            "line_start": 33,
            "line_end": 33
          },
          {
            "file": "reference/test-patterns.md",
            "line_start": 41,
            "line_end": 41
          },
          {
            "file": "reference/test-patterns.md",
            "line_start": 51,
            "line_end": 51
          },
          {
            "file": "reference/test-patterns.md",
            "line_start": 52,
            "line_end": 52
          },
          {
            "file": "reference/test-patterns.md",
            "line_start": 80,
            "line_end": 80
          },
          {
            "file": "reference/test-patterns.md",
            "line_start": 87,
            "line_end": 87
          },
          {
            "file": "reference/test-patterns.md",
            "line_start": 91,
            "line_end": 91
          },
          {
            "file": "reference/test-patterns.md",
            "line_start": 98,
            "line_end": 98
          },
          {
            "file": "reference/test-patterns.md",
            "line_start": 284,
            "line_end": 284
          },
          {
            "file": "reference/test-patterns.md",
            "line_start": 291,
            "line_end": 291
          },
          {
            "file": "reference/test-patterns.md",
            "line_start": 292,
            "line_end": 292
          },
          {
            "file": "reference/test-patterns.md",
            "line_start": 150,
            "line_end": 150
          },
          {
            "file": "reference/test-setup.md",
            "line_start": 88,
            "line_end": 88
          },
          {
            "file": "reference/test-setup.md",
            "line_start": 89,
            "line_end": 89
          },
          {
            "file": "reference/test-setup.md",
            "line_start": 108,
            "line_end": 108
          },
          {
            "file": "reference/test-setup.md",
            "line_start": 109,
            "line_end": 109
          },
          {
            "file": "reference/test-setup.md",
            "line_start": 110,
            "line_end": 110
          }
        ]
      },
      {
        "factor": "filesystem",
        "evidence": [
          {
            "file": "reference/test-patterns.md",
            "line_start": 13,
            "line_end": 13
          },
          {
            "file": "reference/test-setup.md",
            "line_start": 80,
            "line_end": 80
          },
          {
            "file": "reference/test-setup.md",
            "line_start": 100,
            "line_end": 100
          }
        ]
      },
      {
        "factor": "env_access",
        "evidence": [
          {
            "file": "reference/test-patterns.md",
            "line_start": 232,
            "line_end": 232
          },
          {
            "file": "reference/test-patterns.md",
            "line_start": 232,
            "line_end": 232
          }
        ]
      }
    ],
    "static_findings": [
      {
        "id": "external_commands:reference/test-patterns.md:100:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "reference/test-patterns.md",
        "line_start": 100,
        "line_end": 106,
        "snippet": ".set('Authorization', `Bearer ${token}`)"
      },
      {
        "id": "external_commands:reference/test-patterns.md:233:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "reference/test-patterns.md",
        "line_start": 233,
        "line_end": 242,
        "snippet": "req.headers.authorization = `Bearer ${token}`;"
      },
      {
        "id": "network:reference/test-patterns.md:19:http-client-library",
        "category": "network",
        "severity": "low",
        "pattern": "HTTP client library",
        "file": "reference/test-patterns.md",
        "line_start": 19,
        "line_end": 19,
        "snippet": "const res = await request(app)"
      },
      {
        "id": "network:reference/test-patterns.md:33:http-client-library",
        "category": "network",
        "severity": "low",
        "pattern": "HTTP client library",
        "file": "reference/test-patterns.md",
        "line_start": 33,
        "line_end": 33,
        "snippet": "const res = await request(app)"
      },
      {
        "id": "network:reference/test-patterns.md:41:http-client-library",
        "category": "network",
        "severity": "low",
        "pattern": "HTTP client library",
        "file": "reference/test-patterns.md",
        "line_start": 41,
        "line_end": 41,
        "snippet": "await request(app)"
      },
      {
        "id": "network:reference/test-patterns.md:51:http-client-library",
        "category": "network",
        "severity": "low",
        "pattern": "HTTP client library",
        "file": "reference/test-patterns.md",
        "line_start": 51,
        "line_end": 51,
        "snippet": "await request(app).post('/api/users').send(data);"
      },
      {
        "id": "network:reference/test-patterns.md:52:http-client-library",
        "category": "network",
        "severity": "low",
        "pattern": "HTTP client library",
        "file": "reference/test-patterns.md",
        "line_start": 52,
        "line_end": 52,
        "snippet": "await request(app).post('/api/users').send(data).expect(409);"
      },
      {
        "id": "network:reference/test-patterns.md:80:http-client-library",
        "category": "network",
        "severity": "low",
        "pattern": "HTTP client library",
        "file": "reference/test-patterns.md",
        "line_start": 80,
        "line_end": 80,
        "snippet": "const res = await request(app)"
      },
      {
        "id": "network:reference/test-patterns.md:87:http-client-library",
        "category": "network",
        "severity": "low",
        "pattern": "HTTP client library",
        "file": "reference/test-patterns.md",
        "line_start": 87,
        "line_end": 87,
        "snippet": "await request(app).get('/api/profile').expect(401);"
      },
      {
        "id": "network:reference/test-patterns.md:91:http-client-library",
        "category": "network",
        "severity": "low",
        "pattern": "HTTP client library",
        "file": "reference/test-patterns.md",
        "line_start": 91,
        "line_end": 91,
        "snippet": "await request(app)"
      },
      {
        "id": "network:reference/test-patterns.md:98:http-client-library",
        "category": "network",
        "severity": "low",
        "pattern": "HTTP client library",
        "file": "reference/test-patterns.md",
        "line_start": 98,
        "line_end": 98,
        "snippet": "await request(app)"
      },
      {
        "id": "network:reference/test-patterns.md:284:http-client-library",
        "category": "network",
        "severity": "low",
        "pattern": "HTTP client library",
        "file": "reference/test-patterns.md",
        "line_start": 284,
        "line_end": 284,
        "snippet": "await request(app).post('/api/x').send({ field: input }).expect(400);"
      },
      {
        "id": "network:reference/test-patterns.md:291:http-client-library",
        "category": "network",
        "severity": "low",
        "pattern": "HTTP client library",
        "file": "reference/test-patterns.md",
        "line_start": 291,
        "line_end": 291,
        "snippet": "request(app).post('/api/users').send({ name: 'A', email, password: 'P1!' }),"
      },
      {
        "id": "network:reference/test-patterns.md:292:http-client-library",
        "category": "network",
        "severity": "low",
        "pattern": "HTTP client library",
        "file": "reference/test-patterns.md",
        "line_start": 292,
        "line_end": 292,
        "snippet": "request(app).post('/api/users').send({ name: 'B', email, password: 'P2!' }),"
      },
      {
        "id": "network:reference/test-patterns.md:150:email-sending-capability",
        "category": "network",
        "severity": "medium",
        "pattern": "Email sending capability",
        "file": "reference/test-patterns.md",
        "line_start": 150,
        "line_end": 150,
        "snippet": "mockEmail.sendWelcome.mockRejectedValue(new Error('SMTP'));"
      },
      {
        "id": "filesystem:reference/test-patterns.md:13:path-traversal-sequence",
        "category": "filesystem",
        "severity": "high",
        "pattern": "Path traversal sequence",
        "file": "reference/test-patterns.md",
        "line_start": 13,
        "line_end": 13,
        "snippet": "const app = require('../app');"
      },
      {
        "id": "env_access:reference/test-patterns.md:232:environment-variable-access-dot-notation",
        "category": "env_access",
        "severity": "low",
        "pattern": "Environment variable access (dot notation)",
        "file": "reference/test-patterns.md",
        "line_start": 232,
        "line_end": 232,
        "snippet": "const token = jwt.sign({ userId: '1' }, process.env.JWT_SECRET);"
      },
      {
        "id": "env_access:reference/test-patterns.md:232:environment-variable-object",
        "category": "env_access",
        "severity": "low",
        "pattern": "Environment variable object",
        "file": "reference/test-patterns.md",
        "line_start": 232,
        "line_end": 232,
        "snippet": "const token = jwt.sign({ userId: '1' }, process.env.JWT_SECRET);"
      },
      {
        "id": "sensitive:reference/test-patterns.md:232:environment-file-access",
        "category": "sensitive",
        "severity": "high",
        "pattern": "Environment file access",
        "file": "reference/test-patterns.md",
        "line_start": 232,
        "line_end": 232,
        "snippet": "const token = jwt.sign({ userId: '1' }, process.env.JWT_SECRET);"
      },
      {
        "id": "blocker:reference/test-patterns.md:40:system-reconnaissance",
        "category": "blocker",
        "severity": "low",
        "pattern": "System reconnaissance",
        "file": "reference/test-patterns.md",
        "line_start": 40,
        "line_end": 40,
        "snippet": "it('should return 400 for invalid email', async () => {"
      },
      {
        "id": "blocker:reference/test-patterns.md:57:system-reconnaissance",
        "category": "blocker",
        "severity": "low",
        "pattern": "System reconnaissance",
        "file": "reference/test-patterns.md",
        "line_start": 57,
        "line_end": 57,
        "snippet": "// GET /api/users/:id - same pattern: success (200), not found (404), invalid id (400)"
      },
      {
        "id": "blocker:reference/test-patterns.md:58:system-reconnaissance",
        "category": "blocker",
        "severity": "low",
        "pattern": "System reconnaissance",
        "file": "reference/test-patterns.md",
        "line_start": 58,
        "line_end": 58,
        "snippet": "// PUT /api/users/:id - same pattern + validation errors"
      },
      {
        "id": "blocker:reference/test-patterns.md:59:system-reconnaissance",
        "category": "blocker",
        "severity": "low",
        "pattern": "System reconnaissance",
        "file": "reference/test-patterns.md",
        "line_start": 59,
        "line_end": 59,
        "snippet": "// DELETE /api/users/:id - same pattern, expect 204 on success"
      },
      {
        "id": "blocker:reference/test-patterns.md:64:system-reconnaissance",
        "category": "blocker",
        "severity": "low",
        "pattern": "System reconnaissance",
        "file": "reference/test-patterns.md",
        "line_start": 64,
        "line_end": 64,
        "snippet": "| Method | Success | Not Found | Invalid Input |"
      },
      {
        "id": "blocker:reference/test-patterns.md:66:system-reconnaissance",
        "category": "blocker",
        "severity": "low",
        "pattern": "System reconnaissance",
        "file": "reference/test-patterns.md",
        "line_start": 66,
        "line_end": 66,
        "snippet": "| GET /:id | 200 + body | 404 | 400 (bad ObjectId) |"
      },
      {
        "id": "blocker:reference/test-patterns.md:67:system-reconnaissance",
        "category": "blocker",
        "severity": "low",
        "pattern": "System reconnaissance",
        "file": "reference/test-patterns.md",
        "line_start": 67,
        "line_end": 67,
        "snippet": "| PUT /:id | 200 + updated | 404 | 400 (validation) |"
      },
      {
        "id": "blocker:reference/test-patterns.md:68:system-reconnaissance",
        "category": "blocker",
        "severity": "low",
        "pattern": "System reconnaissance",
        "file": "reference/test-patterns.md",
        "line_start": 68,
        "line_end": 68,
        "snippet": "| DELETE /:id | 204 | 404 | 400 (bad ObjectId) |"
      },
      {
        "id": "blocker:reference/test-patterns.md:90:system-reconnaissance",
        "category": "blocker",
        "severity": "low",
        "pattern": "System reconnaissance",
        "file": "reference/test-patterns.md",
        "line_start": 90,
        "line_end": 90,
        "snippet": "it('should return 401 with invalid token', async () => {"
      },
      {
        "id": "blocker:reference/test-patterns.md:97:system-reconnaissance",
        "category": "blocker",
        "severity": "low",
        "pattern": "System reconnaissance",
        "file": "reference/test-patterns.md",
        "line_start": 97,
        "line_end": 97,
        "snippet": "it('should return 200 with valid token', async () => {"
      },
      {
        "id": "blocker:reference/test-patterns.md:175:system-reconnaissance",
        "category": "blocker",
        "severity": "low",
        "pattern": "System reconnaissance",
        "file": "reference/test-patterns.md",
        "line_start": 175,
        "line_end": 175,
        "snippet": "it('should reject invalid email', async () => {"
      },
      {
        "id": "blocker:reference/test-patterns.md:180:system-reconnaissance",
        "category": "blocker",
        "severity": "low",
        "pattern": "System reconnaissance",
        "file": "reference/test-patterns.md",
        "line_start": 180,
        "line_end": 180,
        "snippet": "it('should accept valid data', async () => {"
      },
      {
        "id": "blocker:reference/test-patterns.md:225:system-reconnaissance",
        "category": "blocker",
        "severity": "low",
        "pattern": "System reconnaissance",
        "file": "reference/test-patterns.md",
        "line_start": 225,
        "line_end": 225,
        "snippet": "it('should 401 with invalid token', async () => {"
      },
      {
        "id": "blocker:reference/test-patterns.md:231:system-reconnaissance",
        "category": "blocker",
        "severity": "low",
        "pattern": "System reconnaissance",
        "file": "reference/test-patterns.md",
        "line_start": 231,
        "line_end": 231,
        "snippet": "it('should call next with valid token', async () => {"
      },
      {
        "id": "blocker:reference/test-patterns.md:266:system-reconnaissance",
        "category": "blocker",
        "severity": "low",
        "pattern": "System reconnaissance",
        "file": "reference/test-patterns.md",
        "line_start": 266,
        "line_end": 266,
        "snippet": "it('should throw for invalid input', () => {"
      },
      {
        "id": "external_commands:reference/test-setup.md:84:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "reference/test-setup.md",
        "line_start": 84,
        "line_end": 94,
        "snippet": "email: `test${Date.now()}@example.com`,"
      },
      {
        "id": "network:reference/test-setup.md:88:http-client-library",
        "category": "network",
        "severity": "low",
        "pattern": "HTTP client library",
        "file": "reference/test-setup.md",
        "line_start": 88,
        "line_end": 88,
        "snippet": "await request(app).post('/api/auth/register').send(user);"
      },
      {
        "id": "network:reference/test-setup.md:89:http-client-library",
        "category": "network",
        "severity": "low",
        "pattern": "HTTP client library",
        "file": "reference/test-setup.md",
        "line_start": 89,
        "line_end": 89,
        "snippet": "const res = await request(app).post('/api/auth/login').send(user);"
      },
      {
        "id": "network:reference/test-setup.md:108:http-client-library",
        "category": "network",
        "severity": "low",
        "pattern": "HTTP client library",
        "file": "reference/test-setup.md",
        "line_start": 108,
        "line_end": 108,
        "snippet": "jest.mock('axios');"
      },
      {
        "id": "network:reference/test-setup.md:109:http-client-library",
        "category": "network",
        "severity": "low",
        "pattern": "HTTP client library",
        "file": "reference/test-setup.md",
        "line_start": 109,
        "line_end": 109,
        "snippet": "axios.get.mockResolvedValue({ data: { id: 1 } });"
      },
      {
        "id": "network:reference/test-setup.md:110:http-client-library",
        "category": "network",
        "severity": "low",
        "pattern": "HTTP client library",
        "file": "reference/test-setup.md",
        "line_start": 110,
        "line_end": 110,
        "snippet": "axios.get.mockRejectedValue(new Error('Network'));"
      },
      {
        "id": "filesystem:reference/test-setup.md:80:path-traversal-sequence",
        "category": "filesystem",
        "severity": "high",
        "pattern": "Path traversal sequence",
        "file": "reference/test-setup.md",
        "line_start": 80,
        "line_end": 80,
        "snippet": "const app = require('../../src/app');"
      },
      {
        "id": "filesystem:reference/test-setup.md:100:path-traversal-sequence",
        "category": "filesystem",
        "severity": "high",
        "pattern": "Path traversal sequence",
        "file": "reference/test-setup.md",
        "line_start": 100,
        "line_end": 100,
        "snippet": "jest.mock('../../src/services/email', () => ({"
      },
      {
        "id": "external_commands:SKILL.md:27:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 27,
        "line_end": 27,
        "snippet": "1. Check `package.json` for test framework (Jest/Vitest/Mocha)"
      },
      {
        "id": "external_commands:SKILL.md:29:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 29,
        "line_end": 29,
        "snippet": "3. Check for `mongodb-memory-server` (needed for integration tests)"
      },
      {
        "id": "external_commands:SKILL.md:30:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 30,
        "line_end": 30,
        "snippet": "4. Detect test file convention (colocated vs `__tests__/` vs `tests/`)"
      },
      {
        "id": "external_commands:SKILL.md:38:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 38,
        "line_end": 38,
        "snippet": "| `routes/`, `*.routes.js` | Route | Integration (Supertest + real DB) |"
      },
      {
        "id": "external_commands:SKILL.md:39:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 39,
        "line_end": 39,
        "snippet": "| `controllers/` | Controller | Integration |"
      },
      {
        "id": "external_commands:SKILL.md:40:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 40,
        "line_end": 40,
        "snippet": "| `services/` | Service | Unit (mocked deps) |"
      },
      {
        "id": "external_commands:SKILL.md:41:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 41,
        "line_end": 41,
        "snippet": "| `models/`, `*.model.js` | Model | Unit (validation tests) |"
      },
      {
        "id": "external_commands:SKILL.md:42:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 42,
        "line_end": 42,
        "snippet": "| `middleware/` | Middleware | Unit (mock req/res/next) |"
      },
      {
        "id": "external_commands:SKILL.md:43:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 43,
        "line_end": 43,
        "snippet": "| `utils/`, `helpers/` | Utility | Unit (pure functions) |"
      },
      {
        "id": "external_commands:SKILL.md:45:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 45,
        "line_end": 45,
        "snippet": "**Override:** User can specify `--unit` or `--integration`."
      },
      {
        "id": "external_commands:SKILL.md:65:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 65,
        "line_end": 68,
        "snippet": "```"
      },
      {
        "id": "external_commands:SKILL.md:68:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 68,
        "line_end": 69,
        "snippet": "Next: Run `npm test` to verify"
      },
      {
        "id": "external_commands:SKILL.md:69:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 69,
        "line_end": 79,
        "snippet": "```"
      },
      {
        "id": "external_commands:SKILL.md:79:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 79,
        "line_end": 79,
        "snippet": "| Route | `supertest`, `mongodb-memory-server` | Real (in-memory) |"
      },
      {
        "id": "external_commands:SKILL.md:80:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 80,
        "line_end": 81,
        "snippet": "| Service | `jest` | Mocked |"
      },
      {
        "id": "external_commands:SKILL.md:81:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 81,
        "line_end": 82,
        "snippet": "| Model | `mongoose` | Mocked |"
      },
      {
        "id": "external_commands:SKILL.md:82:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 82,
        "line_end": 86,
        "snippet": "| Middleware | `jest` | None |"
      },
      {
        "id": "external_commands:SKILL.md:86:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 86,
        "line_end": 98,
        "snippet": "```javascript"
      },
      {
        "id": "external_commands:SKILL.md:98:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 98,
        "line_end": 107,
        "snippet": "```"
      },
      {
        "id": "external_commands:SKILL.md:107:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 107,
        "line_end": 108,
        "snippet": "- [ ] Test framework in `package.json`"
      },
      {
        "id": "external_commands:SKILL.md:108:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 108,
        "line_end": 133,
        "snippet": "- [ ] Test script defined (`\"test\": \"jest\"`)"
      },
      {
        "id": "external_commands:SKILL.md:133:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 133,
        "line_end": 133,
        "snippet": "| No DB cleanup | Add `afterEach` with `deleteMany({})` |"
      },
      {
        "id": "blocker:SKILL.md:92:system-reconnaissance",
        "category": "blocker",
        "severity": "low",
        "pattern": "System reconnaissance",
        "file": "SKILL.md",
        "line_start": 92,
        "line_end": 92,
        "snippet": "it('should return 400 for [invalid case]', async () => {});"
      }
    ],
    "finding_verdicts": [
      {
        "id": "external_commands:reference/test-patterns.md:100:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.96,
        "reason": "The flagged text is a JavaScript template literal inside an example test snippet. It is not shell execution and is not executed by the skill."
      },
      {
        "id": "external_commands:reference/test-patterns.md:233:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.96,
        "reason": "The flagged text is a JavaScript template literal inside an example test snippet. It is not shell execution and is not executed by the skill."
      },
      {
        "id": "network:reference/test-patterns.md:19:http-client-library",
        "verdict": "false_positive",
        "confidence": 0.95,
        "reason": "The request(app) calls are Supertest examples against an in-process Express app. They are local test patterns, not outbound network access by the skill."
      },
      {
        "id": "network:reference/test-patterns.md:33:http-client-library",
        "verdict": "false_positive",
        "confidence": 0.95,
        "reason": "The request(app) calls are Supertest examples against an in-process Express app. They are local test patterns, not outbound network access by the skill."
      },
      {
        "id": "network:reference/test-patterns.md:41:http-client-library",
        "verdict": "false_positive",
        "confidence": 0.95,
        "reason": "The request(app) calls are Supertest examples against an in-process Express app. They are local test patterns, not outbound network access by the skill."
      },
      {
        "id": "network:reference/test-patterns.md:51:http-client-library",
        "verdict": "false_positive",
        "confidence": 0.95,
        "reason": "The request(app) calls are Supertest examples against an in-process Express app. They are local test patterns, not outbound network access by the skill."
      },
      {
        "id": "network:reference/test-patterns.md:52:http-client-library",
        "verdict": "false_positive",
        "confidence": 0.95,
        "reason": "The request(app) calls are Supertest examples against an in-process Express app. They are local test patterns, not outbound network access by the skill."
      },
      {
        "id": "network:reference/test-patterns.md:80:http-client-library",
        "verdict": "false_positive",
        "confidence": 0.95,
        "reason": "The request(app) calls are Supertest examples against an in-process Express app. They are local test patterns, not outbound network access by the skill."
      },
      {
        "id": "network:reference/test-patterns.md:87:http-client-library",
        "verdict": "false_positive",
        "confidence": 0.95,
        "reason": "The request(app) calls are Supertest examples against an in-process Express app. They are local test patterns, not outbound network access by the skill."
      },
      {
        "id": "network:reference/test-patterns.md:91:http-client-library",
        "verdict": "false_positive",
        "confidence": 0.95,
        "reason": "The request(app) calls are Supertest examples against an in-process Express app. They are local test patterns, not outbound network access by the skill."
      },
      {
        "id": "network:reference/test-patterns.md:98:http-client-library",
        "verdict": "false_positive",
        "confidence": 0.95,
        "reason": "The request(app) calls are Supertest examples against an in-process Express app. They are local test patterns, not outbound network access by the skill."
      },
      {
        "id": "network:reference/test-patterns.md:284:http-client-library",
        "verdict": "false_positive",
        "confidence": 0.95,
        "reason": "The request(app) calls are Supertest examples against an in-process Express app. They are local test patterns, not outbound network access by the skill."
      },
      {
        "id": "network:reference/test-patterns.md:291:http-client-library",
        "verdict": "false_positive",
        "confidence": 0.95,
        "reason": "The request(app) calls are Supertest examples against an in-process Express app. They are local test patterns, not outbound network access by the skill."
      },
      {
        "id": "network:reference/test-patterns.md:292:http-client-library",
        "verdict": "false_positive",
        "confidence": 0.95,
        "reason": "The request(app) calls are Supertest examples against an in-process Express app. They are local test patterns, not outbound network access by the skill."
      },
      {
        "id": "network:reference/test-patterns.md:150:email-sending-capability",
        "verdict": "false_positive",
        "confidence": 0.96,
        "reason": "The line configures a mocked email dependency to throw during a unit test. It does not send email or contact an external service."
      },
      {
        "id": "filesystem:reference/test-patterns.md:13:path-traversal-sequence",
        "verdict": "false_positive",
        "confidence": 0.94,
        "reason": "The path traversal pattern is a static match on normal relative imports or Jest module mocks in example tests. There is no dynamic file path or filesystem traversal behavior."
      },
      {
        "id": "env_access:reference/test-patterns.md:232:environment-variable-access-dot-notation",
        "verdict": "false_positive",
        "confidence": 0.88,
        "reason": "The example reads JWT_SECRET only to sign a local test token for auth middleware coverage. There is no exfiltration, logging, or external transmission of the value."
      },
      {
        "id": "env_access:reference/test-patterns.md:232:environment-variable-object",
        "verdict": "false_positive",
        "confidence": 0.88,
        "reason": "The example reads JWT_SECRET only to sign a local test token for auth middleware coverage. There is no exfiltration, logging, or external transmission of the value."
      },
      {
        "id": "sensitive:reference/test-patterns.md:232:environment-file-access",
        "verdict": "false_positive",
        "confidence": 0.88,
        "reason": "The snippet uses process.env.JWT_SECRET in a local test example and does not access an environment file. No evidence found of secret collection or disclosure."
      },
      {
        "id": "blocker:reference/test-patterns.md:40:system-reconnaissance",
        "verdict": "false_positive",
        "confidence": 0.97,
        "reason": "The flagged text is a test description, HTTP status table, or example route pattern. It does not perform system reconnaissance or instruct discovery of host details."
      },
      {
        "id": "blocker:reference/test-patterns.md:57:system-reconnaissance",
        "verdict": "false_positive",
        "confidence": 0.97,
        "reason": "The flagged text is a test description, HTTP status table, or example route pattern. It does not perform system reconnaissance or instruct discovery of host details."
      },
      {
        "id": "blocker:reference/test-patterns.md:58:system-reconnaissance",
        "verdict": "false_positive",
        "confidence": 0.97,
        "reason": "The flagged text is a test description, HTTP status table, or example route pattern. It does not perform system reconnaissance or instruct discovery of host details."
      },
      {
        "id": "blocker:reference/test-patterns.md:59:system-reconnaissance",
        "verdict": "false_positive",
        "confidence": 0.97,
        "reason": "The flagged text is a test description, HTTP status table, or example route pattern. It does not perform system reconnaissance or instruct discovery of host details."
      },
      {
        "id": "blocker:reference/test-patterns.md:64:system-reconnaissance",
        "verdict": "false_positive",
        "confidence": 0.97,
        "reason": "The flagged text is a test description, HTTP status table, or example route pattern. It does not perform system reconnaissance or instruct discovery of host details."
      },
      {
        "id": "blocker:reference/test-patterns.md:66:system-reconnaissance",
        "verdict": "false_positive",
        "confidence": 0.97,
        "reason": "The flagged text is a test description, HTTP status table, or example route pattern. It does not perform system reconnaissance or instruct discovery of host details."
      },
      {
        "id": "blocker:reference/test-patterns.md:67:system-reconnaissance",
        "verdict": "false_positive",
        "confidence": 0.97,
        "reason": "The flagged text is a test description, HTTP status table, or example route pattern. It does not perform system reconnaissance or instruct discovery of host details."
      },
      {
        "id": "blocker:reference/test-patterns.md:68:system-reconnaissance",
        "verdict": "false_positive",
        "confidence": 0.97,
        "reason": "The flagged text is a test description, HTTP status table, or example route pattern. It does not perform system reconnaissance or instruct discovery of host details."
      },
      {
        "id": "blocker:reference/test-patterns.md:90:system-reconnaissance",
        "verdict": "false_positive",
        "confidence": 0.97,
        "reason": "The flagged text is a test description, HTTP status table, or example route pattern. It does not perform system reconnaissance or instruct discovery of host details."
      },
      {
        "id": "blocker:reference/test-patterns.md:97:system-reconnaissance",
        "verdict": "false_positive",
        "confidence": 0.97,
        "reason": "The flagged text is a test description, HTTP status table, or example route pattern. It does not perform system reconnaissance or instruct discovery of host details."
      },
      {
        "id": "blocker:reference/test-patterns.md:175:system-reconnaissance",
        "verdict": "false_positive",
        "confidence": 0.97,
        "reason": "The flagged text is a test description, HTTP status table, or example route pattern. It does not perform system reconnaissance or instruct discovery of host details."
      },
      {
        "id": "blocker:reference/test-patterns.md:180:system-reconnaissance",
        "verdict": "false_positive",
        "confidence": 0.97,
        "reason": "The flagged text is a test description, HTTP status table, or example route pattern. It does not perform system reconnaissance or instruct discovery of host details."
      },
      {
        "id": "blocker:reference/test-patterns.md:225:system-reconnaissance",
        "verdict": "false_positive",
        "confidence": 0.97,
        "reason": "The flagged text is a test description, HTTP status table, or example route pattern. It does not perform system reconnaissance or instruct discovery of host details."
      },
      {
        "id": "blocker:reference/test-patterns.md:231:system-reconnaissance",
        "verdict": "false_positive",
        "confidence": 0.97,
        "reason": "The flagged text is a test description, HTTP status table, or example route pattern. It does not perform system reconnaissance or instruct discovery of host details."
      },
      {
        "id": "blocker:reference/test-patterns.md:266:system-reconnaissance",
        "verdict": "false_positive",
        "confidence": 0.97,
        "reason": "The flagged text is a test description, HTTP status table, or example route pattern. It does not perform system reconnaissance or instruct discovery of host details."
      },
      {
        "id": "external_commands:reference/test-setup.md:84:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.96,
        "reason": "The flagged text is a JavaScript template literal inside an example test snippet. It is not shell execution and is not executed by the skill."
      },
      {
        "id": "network:reference/test-setup.md:88:http-client-library",
        "verdict": "false_positive",
        "confidence": 0.95,
        "reason": "The request(app) calls are Supertest examples against an in-process Express app. They are local test patterns, not outbound network access by the skill."
      },
      {
        "id": "network:reference/test-setup.md:89:http-client-library",
        "verdict": "false_positive",
        "confidence": 0.95,
        "reason": "The request(app) calls are Supertest examples against an in-process Express app. They are local test patterns, not outbound network access by the skill."
      },
      {
        "id": "network:reference/test-setup.md:108:http-client-library",
        "verdict": "false_positive",
        "confidence": 0.96,
        "reason": "The axios reference is inside a mocking example using jest.mock. It documents how to avoid real external API calls in tests."
      },
      {
        "id": "network:reference/test-setup.md:109:http-client-library",
        "verdict": "false_positive",
        "confidence": 0.96,
        "reason": "The axios reference is inside a mocking example using jest.mock. It documents how to avoid real external API calls in tests."
      },
      {
        "id": "network:reference/test-setup.md:110:http-client-library",
        "verdict": "false_positive",
        "confidence": 0.96,
        "reason": "The axios reference is inside a mocking example using jest.mock. It documents how to avoid real external API calls in tests."
      },
      {
        "id": "filesystem:reference/test-setup.md:80:path-traversal-sequence",
        "verdict": "false_positive",
        "confidence": 0.94,
        "reason": "The path traversal pattern is a static match on normal relative imports or Jest module mocks in example tests. There is no dynamic file path or filesystem traversal behavior."
      },
      {
        "id": "filesystem:reference/test-setup.md:100:path-traversal-sequence",
        "verdict": "false_positive",
        "confidence": 0.94,
        "reason": "The path traversal pattern is a static match on normal relative imports or Jest module mocks in example tests. There is no dynamic file path or filesystem traversal behavior."
      },
      {
        "id": "external_commands:SKILL.md:27:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.97,
        "reason": "The detected backticks are Markdown inline code or code fences in prose guidance. They do not invoke a shell or Ruby command."
      },
      {
        "id": "external_commands:SKILL.md:29:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.97,
        "reason": "The detected backticks are Markdown inline code or code fences in prose guidance. They do not invoke a shell or Ruby command."
      },
      {
        "id": "external_commands:SKILL.md:30:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.97,
        "reason": "The detected backticks are Markdown inline code or code fences in prose guidance. They do not invoke a shell or Ruby command."
      },
      {
        "id": "external_commands:SKILL.md:38:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.97,
        "reason": "The detected backticks are Markdown inline code or code fences in prose guidance. They do not invoke a shell or Ruby command."
      },
      {
        "id": "external_commands:SKILL.md:39:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.97,
        "reason": "The detected backticks are Markdown inline code or code fences in prose guidance. They do not invoke a shell or Ruby command."
      },
      {
        "id": "external_commands:SKILL.md:40:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.97,
        "reason": "The detected backticks are Markdown inline code or code fences in prose guidance. They do not invoke a shell or Ruby command."
      },
      {
        "id": "external_commands:SKILL.md:41:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.97,
        "reason": "The detected backticks are Markdown inline code or code fences in prose guidance. They do not invoke a shell or Ruby command."
      },
      {
        "id": "external_commands:SKILL.md:42:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.97,
        "reason": "The detected backticks are Markdown inline code or code fences in prose guidance. They do not invoke a shell or Ruby command."
      },
      {
        "id": "external_commands:SKILL.md:43:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.97,
        "reason": "The detected backticks are Markdown inline code or code fences in prose guidance. They do not invoke a shell or Ruby command."
      },
      {
        "id": "external_commands:SKILL.md:45:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.97,
        "reason": "The detected backticks are Markdown inline code or code fences in prose guidance. They do not invoke a shell or Ruby command."
      },
      {
        "id": "external_commands:SKILL.md:65:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.97,
        "reason": "The detected backticks are Markdown inline code or code fences in prose guidance. They do not invoke a shell or Ruby command."
      },
      {
        "id": "external_commands:SKILL.md:68:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.97,
        "reason": "The detected backticks are Markdown inline code or code fences in prose guidance. They do not invoke a shell or Ruby command."
      },
      {
        "id": "external_commands:SKILL.md:69:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.97,
        "reason": "The detected backticks are Markdown inline code or code fences in prose guidance. They do not invoke a shell or Ruby command."
      },
      {
        "id": "external_commands:SKILL.md:79:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.97,
        "reason": "The detected backticks are Markdown inline code or code fences in prose guidance. They do not invoke a shell or Ruby command."
      },
      {
        "id": "external_commands:SKILL.md:80:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.97,
        "reason": "The detected backticks are Markdown inline code or code fences in prose guidance. They do not invoke a shell or Ruby command."
      },
      {
        "id": "external_commands:SKILL.md:81:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.97,
        "reason": "The detected backticks are Markdown inline code or code fences in prose guidance. They do not invoke a shell or Ruby command."
      },
      {
        "id": "external_commands:SKILL.md:82:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.97,
        "reason": "The detected backticks are Markdown inline code or code fences in prose guidance. They do not invoke a shell or Ruby command."
      },
      {
        "id": "external_commands:SKILL.md:86:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.97,
        "reason": "The detected backticks are Markdown inline code or code fences in prose guidance. They do not invoke a shell or Ruby command."
      },
      {
        "id": "external_commands:SKILL.md:98:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.97,
        "reason": "The detected backticks are Markdown inline code or code fences in prose guidance. They do not invoke a shell or Ruby command."
      },
      {
        "id": "external_commands:SKILL.md:107:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.97,
        "reason": "The detected backticks are Markdown inline code or code fences in prose guidance. They do not invoke a shell or Ruby command."
      },
      {
        "id": "external_commands:SKILL.md:108:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.97,
        "reason": "The detected backticks are Markdown inline code or code fences in prose guidance. They do not invoke a shell or Ruby command."
      },
      {
        "id": "external_commands:SKILL.md:133:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.97,
        "reason": "The detected backticks are Markdown inline code or code fences in prose guidance. They do not invoke a shell or Ruby command."
      },
      {
        "id": "blocker:SKILL.md:92:system-reconnaissance",
        "verdict": "false_positive",
        "confidence": 0.97,
        "reason": "The flagged text is a test description, HTTP status table, or example route pattern. It does not perform system reconnaissance or instruct discovery of host details."
      }
    ],
    "semantic_findings": [],
    "critical_findings": [],
    "high_findings": [],
    "medium_findings": [],
    "low_findings": [],
    "dangerous_patterns": [],
    "files_scanned": 3,
    "total_lines": 581,
    "audit_model": "codex",
    "audited_at": "2026-07-05T16:38:28.227Z",
    "agent_auto_install_policy": "allowed",
    "manual_install_policy": "allowed"
  },
  "content": {
    "user_title": "Generate Backend Test Suites",
    "value_statement": "Backend test coverage is hard to keep consistent across routes, services, models, and middleware. This skill detects project patterns and helps generate practical Jest, Supertest, and MongoDB tests.",
    "seo_keywords": [
      "Claude",
      "Codex",
      "Claude Code",
      "backend test writer",
      "Jest tests",
      "Supertest integration tests",
      "MERN testing",
      "Express API tests",
      "MongoDB test setup",
      "Node.js test generation"
    ],
    "actual_capabilities": [
      "Detects Jest, Vitest, or Mocha from package.json before generating tests.",
      "Chooses unit or integration testing based on backend file type.",
      "Provides setup and teardown guidance for MongoDB Memory Server tests.",
      "Supplies test patterns for routes, services, models, middleware, and utilities.",
      "Covers success, validation, auth, not found, duplicate, and edge cases.",
      "Reports generated test files, total cases, and the next test command."
    ],
    "limitations": [
      "Targets MERN and Node backends; other stacks need adaptation.",
      "Requires source files to be read before useful tests can be generated.",
      "May require user approval to add missing test dependencies.",
      "Generated tests still need execution in the local project."
    ],
    "use_cases": [
      {
        "title": "Add Missing API Tests",
        "description": "Generate route and controller tests that cover status codes, validation, auth, and duplicate records.",
        "target_user": "Backend developer"
      },
      {
        "title": "Standardize Test Setup",
        "description": "Create consistent Jest, Supertest, and MongoDB Memory Server setup across a Node project.",
        "target_user": "Tech lead"
      },
      {
        "title": "Review Release Coverage",
        "description": "Find backend test gaps before release and prioritize missing cases by impact.",
        "target_user": "QA engineer"
      }
    ],
    "prompt_templates": [
      {
        "title": "Create Basic Backend Tests",
        "scenario": "Beginner request for one backend file.",
        "prompt": "Use this skill to generate tests for src/routes/users.routes.js. Follow the project test framework and include setup notes."
      },
      {
        "title": "Generate Route Integration Tests",
        "scenario": "Intermediate request for HTTP behavior coverage.",
        "prompt": "Use this skill on src/routes/users.routes.js. Include success, validation, auth, not found, and duplicate cases."
      },
      {
        "title": "Build Service Unit Tests",
        "scenario": "Advanced request with mocked dependencies.",
        "prompt": "Use this skill for src/services/user.service.js. Mock repository and email dependencies. Cover duplicate, failure, and success paths."
      },
      {
        "title": "Audit Test Coverage Gaps",
        "scenario": "Advanced request across multiple backend layers.",
        "prompt": "Use this skill across routes, middleware, and models. Identify existing test gaps, generate priority labels, and propose helper factories."
      }
    ],
    "output_examples": [
      {
        "input": "A user route file with create, update, and delete handlers.",
        "output": [
          "An integration test plan for each route and expected status code.",
          "Generated cases for validation errors, auth failures, missing records, and duplicate users.",
          "A short summary with test count and the command to run next."
        ]
      },
      {
        "input": "A service module with repository and email dependencies.",
        "output": [
          "A unit test suite plan using mocked collaborators.",
          "Cases for successful creation, duplicate email, repository failure, and email failure.",
          "Notes about which dependencies are mocked and why."
        ]
      },
      {
        "input": "A project without a configured test framework.",
        "output": [
          "An infrastructure checklist for Jest, Supertest, and MongoDB Memory Server.",
          "A prompt to confirm dependency setup before any installation steps.",
          "Guidance for placing setup files and test fixtures."
        ]
      }
    ],
    "best_practices": [
      "Read target source and existing tests before generating new files.",
      "Keep integration tests isolated with database setup and cleanup.",
      "Run the local test command after generation and fix failures promptly."
    ],
    "anti_patterns": [
      "Generating only happy path tests.",
      "Starting a live server when Supertest can import the app.",
      "Committing generated tests before checking secrets, fixtures, and cleanup."
    ],
    "faq": [
      {
        "question": "Which backend stacks does this skill support best?",
        "answer": "It works best with MERN and Node projects using Express, MongoDB, Jest, and Supertest."
      },
      {
        "question": "Can it create both unit and integration tests?",
        "answer": "Yes. It chooses the approach from the file type and accepts user overrides."
      },
      {
        "question": "Does it install test dependencies automatically?",
        "answer": "No. It checks for missing dependencies and should ask before setup changes."
      },
      {
        "question": "Does it replace existing tests?",
        "answer": "No. It should inspect existing tests first and add missing coverage."
      },
      {
        "question": "Can it test protected routes?",
        "answer": "Yes. It includes patterns for valid tokens, invalid tokens, and missing auth headers."
      },
      {
        "question": "What should users do after generation?",
        "answer": "Run the local test command, review failures, and adjust fixtures for project-specific behavior."
      }
    ]
  },
  "file_structure": [
    {
      "name": "reference",
      "type": "dir",
      "path": "reference",
      "children": [
        {
          "name": "test-patterns.md",
          "type": "file",
          "path": "reference/test-patterns.md",
          "lines": 300
        },
        {
          "name": "test-setup.md",
          "type": "file",
          "path": "reference/test-setup.md",
          "lines": 118
        }
      ]
    },
    {
      "name": "SKILL.md",
      "type": "file",
      "path": "SKILL.md",
      "lines": 163
    }
  ]
}
finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the workStars: 322kUpdated Claude CodeCodexVerifiedInstall
systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixesStars: 322kUpdated Claude CodeCodexVerifiedInstall
test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation codeStars: 322kUpdated Claude CodeCodexVerifiedInstall
skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.Stars: 198kUpdated Claude CodeCodexVerifiedInstall