test-scaffolding
Generate test file scaffolds from source analysis with language-appropriate templates.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Generate test file scaffolds from source analysis with language-appropriate templates.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Generic BAML patterns for type-safe LLM prompting. Covers schema design, DTO generation, client wrappers, and cross-language codegen. Framework-agnostic.
Browser automation for documentation discovery. Use when curl fails on JS-rendered sites, when detecting available browser tools, or when configuring browser-based documentation collection.
C4 architectural modeling for documenting software architecture. Use when creating architecture diagrams, planning new systems, communicating with stakeholders, or conducting architecture reviews.
Debug and analyze web applications using Chrome DevTools MCP. Use for console log inspection, network request monitoring, performance analysis, and debugging authenticated sessions. For basic browser automation (screenshots, form filling), use browser-discovery skill instead.
Patterns and techniques for analyzing brownfield codebases. Use when onboarding to unfamiliar code, preparing for refactoring, conducting architecture reviews, or identifying technical debt.
Detect new imports in modified files and auto-install missing dependencies. Works with npm, uv, pip, cargo, go mod, and other package managers. Triggers after code implementation to keep manifests in sync.
| name | test-scaffolding |
| description | Generate test file scaffolds from source analysis with language-appropriate templates. |
Generate test file scaffolds for source files, enabling TDD workflows. Scaffolds contain TODO stubs that the test-engineer agent fills during lane execution.
| 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) |
pyproject.toml, package.json, go.mod, Cargo.toml)| Language | Frameworks | Detection |
|---|---|---|
| Python | pytest, unittest | pyproject.toml → [tool.pytest] or pytest in deps |
| TypeScript | vitest, jest | package.json → vitest or jest in devDeps |
| JavaScript | vitest, jest | package.json → vitest or jest in devDeps |
| Go | testing | go.mod → built-in testing package |
| Rust | cargo test | Cargo.toml → built-in test harness |
| Dart | flutter_test, test | pubspec.yaml → flutter_test or test in dev_deps |
| Language | Source | Test File |
|---|---|---|
| Python | src/auth/login.py | tests/auth/test_login.py |
| TypeScript | src/auth/login.ts | src/auth/login.test.ts or tests/auth/login.test.ts |
| Go | pkg/auth/login.go | pkg/auth/login_test.go |
| Rust | src/auth/login.rs | inline #[cfg(test)] module |
| Dart | lib/auth/login.dart | test/auth/login_test.dart |
def function_name( where name doesn't start with _class ClassName: for public classes__init__, __str__, etc. (dunder methods)export function, export const, export classexport default function/classpub fn, pub struct, pub enumimpl blocks with public methods{
"format": "scaffold-manifest/v1",
"generated_at": "<ISO-8601 UTC>",
"framework": "pytest",
"generated": [
{
"source": "src/auth/login.py",
"test": "tests/auth/test_login.py",
"units": ["login", "logout", "refresh_token"],
"unit_count": 3
}
],
"skipped": [
{
"source": "src/auth/utils.py",
"reason": "test file exists"
}
],
"total_units": 12
}
--force specified/ai-dev-kit:plan-phaseTests Owned Files columnOwned Artifacts from impl tasks as source files/ai-dev-kit:execute-lanechore(P{n}-{lane}): scaffold test filestest-engineer agent/ai-dev-kit:scaffold-tests is invoked