test-scaffold

Generate language-appropriate test file scaffolds from source modules using cognitive-core configuration.

11|1|Updated Feb 9, 2026
One-click install
npx skills add https://github.com/mindcockpit-ai/cognitive-core --skill test-scaffold-mindcockpit-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-scaffold
Source: https://github.com/mindcockpit-ai/cognitive-core/tree/main/core/skills/test-scaffold
Command: npx skills add https://github.com/mindcockpit-ai/cognitive-core --skill test-scaffold-mindcockpit-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Manually crafting test files for each module across different languages and architectural layers is time‑consuming and error‑prone; this skill automates the creation of correctly structured test scaffolds.

Core Features & Use Cases

  • Language‑agnostic test generation: Reads cognitive-core configuration to produce appropriate test files for Python, JavaScript, Go, Rust, Java, and more.
  • Architecture‑aware scaffolding: Detects the module’s layer (domain, repository, service, controller, mapper) to apply suitable mock strategies.
  • Config‑driven path mapping: Maps source locations to test directories using CC_SRC_ROOT and CC_TEST_ROOT variables. Use case: A developer adds a new service module and invokes this skill to instantly obtain a ready‑to‑run test suite that matches the project’s conventions.

Quick Start

Ask the skill to generate tests for the module src/payments/service.py.

Frequently Asked Questions about test-scaffold

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

FAQPage Schema
How do I auto-generate test scaffolds for multi-language projects?

To auto-generate test scaffolds for multi-language projects, this skill reads cognitive-core configuration variables like CC_LANGUAGE and CC_SRC_ROOT to map source paths and produce language-appropriate test files automatically.

Can I automatically generate mock strategies for different architectural layers?

Yes, you can automatically generate mock strategies for different architectural layers. The skill detects the module's layer, such as domain, repository, service, or controller, and applies suitable mock strategies to the test scaffold.

Does test generation require specific configuration variables to map source directories?

Test generation requires specific configuration variables to map source directories. It depends on cognitive-core.conf variables including CC_SRC_ROOT and CC_TEST_ROOT to correctly map source locations to test directories.

What is the best way to create test files for a new service module?

The best way to create test files for a new service module is to invoke this skill with the module path. It instantly generates a ready-to-run test suite that matches your project's architectural conventions.

Which programming languages are supported for architecture-aware test scaffolding?

Architecture-aware test scaffolding supports multiple programming languages including Python, JavaScript, Go, Rust, and Java. It uses cognitive-core configuration to produce appropriate test files for each specific language environment.

How do I map source paths to test directories using configuration?

You map source paths to test directories using configuration by defining CC_SRC_ROOT and CC_TEST_ROOT variables. The skill reads these cognitive-core.conf values to ensure generated test files are placed in the correct directories.