code-generator

Generate API and service code from detected project code patterns.

4|Updated Jan 13, 2026
One-click install
npx skills add https://github.com/jhlee0409/claude-plugins --skill code-generator-jhlee0409
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-generator
Source: https://github.com/jhlee0409/claude-plugins/tree/main/plugins/oas/skills/code-generator
Command: npx skills add https://github.com/jhlee0409/claude-plugins --skill code-generator-jhlee0409

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill addresses the repetitive task of scaffolding new API files and services by reproducing an existing project's code style across patterns (FSD, feature-based, or flat). It helps teams maintain consistency and speed up integration.

Core Features & Use Cases

  • Code style cloning: Generate new API/model files that match your current codebase patterns.
  • Pattern-based scaffolding: Create file layouts for FSD, feature-based, or flat structures based on your endpoints.
  • Type and path generation: Produce type definitions, path constants, and API wrappers aligned with existing samples.
  • Use Case: When starting a new service tag, supply endpoints and a sample project, and the Skill will scaffold types, paths, and API functions in the correct structure.

Quick Start

Use the code-generator skill to scaffold files for a new tag by providing the target tag, selected pattern, and endpoint list.

Frequently Asked Questions about code-generator

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

FAQPage Schema
How do I scaffold new API files that match my existing TypeScript code style?

To scaffold new API files that match your code style, provide a sample project and endpoint list. The skill identifies existing patterns and generates types, paths, and API wrappers that align with your detected codebase conventions.

Can I generate code for feature-based or FSD file layouts?

Yes, you can generate code for feature-based or FSD file layouts. The skill supports FSD, feature-based, and flat file structures, tailoring the output to your selected pattern and specific endpoint naming conventions.

What do I need to provide to generate API wrappers and type definitions?

You need to provide a target service tag, a selected file layout pattern, and an endpoint list. The skill uses a sample project to repurpose existing code patterns for generating aligned types and API wrappers.

How does code pattern cloning work for new service integration?

Code pattern cloning works by analyzing your existing project to detect naming conventions and file structures. It then repurposes these patterns to generate new API and service code, ensuring types and imports maintain consistency.

What is the best way to maintain consistency when scaffolding new API endpoints?

The best way to maintain consistency is to clone existing code patterns. The skill detects your project's sample patterns and generates new types, paths, and API functions that align with your current file layout and conventions.

Does the code generator work with flat file structures?

Yes, the code generator works with flat file structures. It supports FSD, feature-based, and flat file layouts, ensuring generated types, paths, and imports align with the detected sample patterns within your chosen structure.