From aj-geddes-useful-ai-prompts-4
Generates code from templates and patterns for scaffolding projects, boilerplate, AST manipulation, OpenAPI/GraphQL clients, and database models. Use for repetitive code, CRUD ops, and automation.
npx claudepluginhub joshuarweaver/cascade-code-languages-misc-1 --plugin aj-geddes-useful-ai-prompts-4This skill uses the workspace's default tool permissions.
- [Overview](#overview)
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Checks Next.js compilation errors using a running Turbopack dev server after code edits. Fixes actionable issues before reporting complete. Replaces `next build`.
Comprehensive guide to code generation techniques including template engines, AST manipulation, code scaffolding, and automated boilerplate generation for increased productivity and consistency.
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}}
}
export const {{pascalCase name}}: React.FC<{{pascalCase name}}Props> = ({
{{#each props}}{{this.name}},{{/each}}
}) => {
return (
<div className="{{kebabCase name}}">
{/* Component implementation */}
</div>
);
};
Detailed implementations in the references/ directory:
| Guide | Contents |
|---|---|
| Template Engines | Template Engines |
| AST-Based Code Generation | AST-Based Code Generation |
| Project Scaffolding | Project Scaffolding |
| OpenAPI Client Generation | OpenAPI Client Generation |
| Database Model Generation | Database Model Generation |
| GraphQL Code Generation | GraphQL Code Generation |
| Plop.js Generator | Plop.js Generator |