Skip to content
aj-geddes avatar

Code Generation Template

Reusable code generation guide covering templates, AST tooling, scaffolding, and schema-driven generators for consistent boilerplate.

CCM score
37 of 100
skills.sh installs
539
GitHub stars
396
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers template engines, AST-based generation, project scaffolding, and schema-driven clients, models, and types
  • Includes seven reference guides: Handlebars-style templates, AST manipulation, OpenAPI clients, database models, GraphQL, and Plop.js generators
  • Shows a Handlebars React component template using pascalCase and kebabCase helpers with typed props
  • Lists practices to follow, such as versioning templates, adding tests to generated code, and validating inputs before generation
  • Designed for teams automating repetitive scaffolding, CRUD, and API client work, and steers away from over-generation and one-off generators

Install

$ npx -y skills add aj-geddes/useful-ai-prompts --skill code-generation-template -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Code Generation & Templates

Table of Contents

Overview

Comprehensive guide to code generation techniques including template engines, AST manipulation, code scaffolding, and automated boilerplate generation for increased productivity and consistency.

When to Use

  • Scaffolding new projects or components
  • Generating repetitive boilerplate code
  • Creating CRUD operations automatically
  • Generating API clients from OpenAPI specs
  • Building code from templates
  • Creating database models from schemas
  • Generating TypeScript types from JSON Schema
  • Building custom CLI generators

Quick Start

Minimal working example:

// templates/component.hbs
import React from 'react';

export interface {{pascalCase name}}Props {
  {{#each props}}
  {{this.name}}{{#if this.optional}}?{{/if}}: {{this.type}};
  {{/each}}
}

Details

Repository
github.com/aj-geddes/useful-ai-prompts
First seen
Jun 3, 2026

Questions

What does the code-generation-template skill do?

The code-generation-template skill generates code from templates and patterns, including project scaffolding, boilerplate generation, AST-based code generation and template engines. It is meant for scaffolding projects, creating boilerplate and building code from templates.

Which tasks can the code-generation-template skill handle?

It covers scaffolding new projects or components, generating repetitive boilerplate, creating CRUD operations and database models from schemas, generating API clients from OpenAPI specs and TypeScript types from JSON Schema. It also covers building custom CLI generators.

How do I install the code-generation-template skill?

Run npx -y skills add aj-geddes/useful-ai-prompts --skill code-generation-template -y inside your project. Once installed, the agent can generate code from templates when you ask for scaffolding or boilerplate.

More from aj-geddes/useful-ai-prompts

All 258

Similar to Code Generation Template