← ClaudeAtlas

test-scaffoldinglisted

Generate test file scaffolds from source analysis with language-appropriate templates.
aiskillstore/marketplace · ★ 329 · Testing & QA · score 79
Install: claude install-skill aiskillstore/marketplace
# Test Scaffolding Skill Generate test file scaffolds for source files, enabling TDD workflows. Scaffolds contain TODO stubs that the test-engineer agent fills during lane execution. ## Variables | Variable | Default | Description | |----------|---------|-------------| | SOURCE_FILES | [] | List of source files to scaffold tests for | | TEST_FRAMEWORK | auto | Framework to use (auto-detects from manifest) | | OUTPUT_DIR | tests/ | Where to place generated test files | | NAMING_CONVENTION | language-default | Test file naming pattern | | INCLUDE_FIXTURES | true | Generate fixture stubs | | STUB_STYLE | todo | `todo` (TODO comments) or `skip` (skip markers) | ## Workflow (Mandatory) 1. **Detect stack**: Read package manifest (`pyproject.toml`, `package.json`, `go.mod`, `Cargo.toml`) 2. **Identify framework**: Match test dependencies (pytest, vitest, jest, testing, cargo test) 3. **Analyze sources**: Extract public functions, classes, methods from each source file 4. **Map to tests**: Apply naming convention to determine test file paths 5. **Generate scaffolds**: Use language template, insert TODO stubs for each testable unit 6. **Return manifest**: JSON with generated files, skipped files, and unit counts ## Supported Frameworks | Language | Frameworks | Detection | |----------|------------|-----------| | Python | pytest, unittest | `pyproject.toml` → `[tool.pytest]` or `pytest` in deps | | TypeScript | vitest, jest | `package.json` → `vitest` or `jest` in devDeps | | Ja