gen-code

Generate Python source code from verified code maps.

37|5|Updated Nov 18, 2025
One-click install
npx skills add https://github.com/BellaBe/lean-os --skill gen-code
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gen-code
Source: https://github.com/BellaBe/lean-os/tree/main/.claude/skills/engineering-gen-code
Command: npx skills add https://github.com/BellaBe/lean-os --skill gen-code

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Generates final source files from verified maps.

Core Features & Use Cases

  • Mechanical generation: from maps to code
  • Verification gating: ensures maps pass

Quick Start

Provide maps; returns generated code.

Frequently Asked Questions about gen-code

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

FAQPage Schema
How do I generate Python code from code maps?

Code generation from maps produces final Python source files for domain operations, workflows, and API handlers. The Skill accepts verified maps and outputs ready-to-use Python modules in structured artifact directories, automating the conversion from map definitions to executable code.

What does it mean for code maps to be verified before generation?

Verification ensures maps meet quality and correctness standards before code generation proceeds. The Skill requires verification status to be PASS; this gate prevents generating code from incomplete or invalid map definitions, guaranteeing the output code reflects validated logic.

Can I generate code for domain operations, workflows, and API handlers?

Yes. Code generation covers three output categories: domain operations, domain workflows, and API handlers. Each category generates to its own Python module path within the artifacts structure, letting you produce all three types from a single verified map set.

What's the output structure when code generation completes?

Generated Python code is organized in versioned artifact directories: artifacts/v{N}/gen/python/src/domain/operations/, artifacts/v{N}/gen/python/src/domain/workflows/, and artifacts/v{N}/gen/python/src/api/handlers/. Each path contains the corresponding module type ready for use.

Do I need to write code manually if I use code generation from maps?

No. Code generation is mechanical—it converts verified map definitions directly into Python source files without manual coding. You define the logic in maps, verify them, and the Skill produces the final modules automatically.

What happens if my code maps don't pass verification?

Generation will not proceed if maps fail verification. The Skill enforces verification gating to prevent invalid maps from producing code. Ensure maps pass verification status before attempting generation.