test-scaffolding

Generate language-aware test scaffolds from analyzed source code.

8|1|Updated Jul 11, 2025
One-click install
npx skills add https://github.com/Consiliency/treesitter-chunker --skill test-scaffolding
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-scaffolding
Source: https://github.com/Consiliency/treesitter-chunker/tree/main/.ai-dev-kit/skills/test-scaffolding
Command: npx skills add https://github.com/Consiliency/treesitter-chunker --skill test-scaffolding

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the generation of language-aware test scaffolds by analyzing source code and producing framework-compatible skeletons, accelerating test-driven development and onboarding.

Core Features & Use Cases

  • Cross-language scaffolds: Generates test skeletons for Python (pytest), TypeScript (vitest/jest), Go (testing), Rust, and Dart (flutter_test/test) based on public APIs.
  • Manifest-driven output: Produces a JSON manifest listing generated files, skipped files, and unit counts to integrate with downstream automation.
  • Preserved structure: Maintains repository layout in test files to simplify navigation and integration.

Quick Start

Run the /ai-dev-kit:scaffold-tests workflow against your project. It scans source files, detects frameworks, and generates language-specific test scaffolds in the corresponding test directories. It preserves source structure and outputs a manifest of generated files for traceability.

Frequently Asked Questions about test-scaffolding

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate test scaffolds from my source code?

Test scaffolding analyzes your source code to auto-generate language-specific test templates. Run the scaffold-tests workflow against your project; it detects frameworks, extracts public APIs, and outputs ready-to-fill test skeletons in your test directories while preserving repository structure.

What languages does automated test scaffold generation support?

Scaffold generation supports Python (pytest), TypeScript (vitest/jest), Go (testing), Rust, and Dart (flutter_test/test). Each generates framework-compatible test templates mapped to your project's public APIs and package structure.

Can I use test scaffolding across multiple programming languages in one project?

Yes. Test scaffolding is language-aware and processes multi-language repositories in a single run. It detects each language's package manifests, generates appropriate framework-specific skeletons, and outputs a unified manifest tracking all generated files and unit counts.

How does test scaffolding preserve my repository layout?

Test scaffolding maintains your source directory structure in generated test files, mapping public symbols to corresponding test locations. This preserves navigation hierarchy and simplifies integration with your existing project layout and CI/CD automation.

What output does test scaffolding produce?

The workflow generates language-specific test skeleton files placed in corresponding test directories and produces a JSON manifest listing generated files, skipped files, and unit counts. This manifest enables downstream automation and provides full traceability of scaffold generation.

Do I need to install test frameworks before running test scaffolding?

Test scaffolding auto-detects installed frameworks through package manifests (package.json, pyproject.toml, Cargo.toml, etc.). It generates skeletons compatible with your detected framework; you may install additional test dependencies after scaffold generation if needed.