code-generation

Generate scaffolded code from design documents with contract enforcement.

18|4|Updated Apr 29, 2026
One-click install
npx skills add https://github.com/aws-samples/sample-oh-my-aidlcops --skill code-generation-aws-samples
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-generation
Source: https://github.com/aws-samples/sample-oh-my-aidlcops/tree/main/plugins/aidlc/skills/construction/code-generation
Command: npx skills add https://github.com/aws-samples/sample-oh-my-aidlcops --skill code-generation-aws-samples

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires mypy, ruff, pyproject.toml, pydantic, sqlalchemy, prisma, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the process of generating code from approved design documents, streamlining development and maintaining code quality and compliance.

Core Features & Use Cases

  • Code Generation: Converts design specifications into scaffolded code, interfaces, data models, and implementation code.
  • Rollback Snapshots: Creates rollback snapshots for safe code changes.
  • Contract Violation Detection: Ensures compliance with design contracts during code generation.
  • User-Invocable: Allows manual invocation for specific code generation tasks.
  • Integration with DevOps Workflows: Facilitates integration with existing DevOps processes.

Quick Start

Run the code-generation skill with the unit name, e.g., code-generation my-component.

Frequently Asked Questions about code-generation

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

FAQPage Schema
How do I automate code generation from a design document?

You can automate code generation from design documents by running the Skill with a target unit name. It parses design.md files to scaffold implementation code and data models while enforcing static analysis rules to ensure compliance.

Can I enforce design compliance and contract rules during code generation?

Yes, design compliance is enforced during code generation using contract violation detection. The Skill validates generated code against approved design specifications to prevent structural deviations before runtime.

Do I need Python and specific linting tools to generate code from design specifications?

Yes, generating code from design specifications requires Python and specific linting tools for static analysis. Dependencies like mypy, ruff, pydantic, sqlalchemy, and prisma must be configured in your pyproject.toml.

How do I rollback generated code changes if the output breaks my project?

To rollback generated code changes, you can use the built-in rollback snapshots feature. It creates safe restore points before applying new scaffolding, allowing you to revert implementation code if contract violations occur.

What is the best way to integrate design-to-code automation into existing DevOps workflows?

The best way to integrate design-to-code automation into DevOps workflows is through user-invocable scripts. This Skill fits into existing pipelines by manually triggering specific code generation tasks and producing compliant implementation outputs.