code-generation

Generate Python module boilerplate and test scaffolds from configuration YAML.

3|Updated Nov 7, 2025
One-click install
npx skills add https://github.com/xiaden/nomarr --skill code-generation-xiaden
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-generation
Source: https://github.com/xiaden/nomarr/tree/main/.github/skills/code-generation
Command: npx skills add https://github.com/xiaden/nomarr --skill code-generation-xiaden

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill streamlines the creation of boilerplate code, ensuring consistent exports and test scaffolding across new modules.

Core Features & Use Cases

  • Auto-generate init.py files with proper all exports.
  • Generate test scaffolds with smart fixtures and proper structure.
  • Workflow guidance for adding new modules and aligning exports after refactors.

Quick Start

Run the generation scripts to scaffold boilerplate and tests:

  • python scripts/generate_inits.py
  • python scripts/generate_tests.py nomarr.components.new_comp --output tests/unit/components/test_new_comp.py --preview

Frequently Asked Questions about code-generation

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

FAQPage Schema
How do I auto-generate __init__.py files with proper __all__ exports for new Python modules?

To auto-generate __init__.py files with proper __all__ exports, run the Python script at scripts/generate_inits.py, which uses a YAML configuration to determine exports and ensure consistent boilerplate across new packages.

What's the best way to scaffold test files for new Python components in a CI workflow?

The best way to scaffold test files in a CI workflow is running scripts/generate_tests.py with your module path and output arguments, generating test scaffolds with smart fixtures and proper structure.

Does this boilerplate generation tool require external dependencies to create Python test scaffolds?

No, this boilerplate generation tool requires no external dependencies to create Python test scaffolds, relying entirely on internal Python scripts and a configuration YAML to drive the scaffolding process.

How do I preview generated test scaffolding before writing changes to my Python project?

To preview generated test scaffolding before writing changes, pass the --preview flag when executing generate_tests.py, allowing you to inspect the smart fixtures and structure prior to file creation.

When should I regenerate init files and exports after refactoring my Python modules?

You should regenerate init files and exports after refactoring Python modules to ensure package consistency, running the generation scripts to align __all__ exports and update test scaffolds across the modified components.