modify-generated-code

Modify generated code in Baseplate projects with template extraction and generator updates.

4|Updated Feb 14, 2020
One-click install
npx skills add https://github.com/halfdomelabs/baseplate --skill modify-generated-code
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: modify-generated-code
Source: https://github.com/halfdomelabs/baseplate/tree/main/.claude/skills/modify-generated-code
Command: npx skills add https://github.com/halfdomelabs/baseplate --skill modify-generated-code

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the challenge of modifying generated code in Baseplate projects, simplifying the process of updating templates, generators, and synchronizing changes across multiple projects.

Core Features & Use Cases

  • Code Modification Workflow: Provides a step-by-step guide for modifying generated code, including template extraction, generator updates, and project synchronization.
  • Generator Architecture: Offers in-depth documentation on the generator architecture, including core providers, template rendering, and generator structure.
  • Template Management: Includes instructions for managing template metadata, creating new templates, and generating template files.
  • Advanced Features: Covers advanced topics such as snapshot management, template rendering, and creating new generators.
  • Use Case: Ideal for developers who need to customize Baseplate-generated code, add new templates, or update generator behavior.

Quick Start

Use the modify-generated-code skill to update the generator for the 'blog-with-auth' project with your custom changes.

Frequently Asked Questions about modify-generated-code

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

FAQPage Schema
How do I modify generated code in Baseplate projects?

To modify generated code in Baseplate projects, follow the workflow for template extraction, generator updates, and project synchronization to apply and propagate your custom changes across multiple projects.

What is the Baseplate generator architecture and how does it work?

The Baseplate generator architecture uses core providers and template rendering to generate code. Understanding this structure is necessary for updating generator behavior and creating new generators.

How do I manage template metadata and create new templates for code generation?

Managing template metadata involves defining template properties and generating template files. The Skill provides instructions for creating new templates to customize the output of your code generation process.

Do I need to know Baseplate's generator architecture to update generated code?

Yes, modifying generated code requires knowledge of Baseplate's generator architecture and template management to properly extract templates, update generators, and synchronize project changes.

What's the best way to synchronize generator updates across multiple projects?

The best way to synchronize generator updates across multiple projects is using the project synchronization workflow, which ensures custom changes to templates and generators are consistently applied everywhere.

Why are my Baseplate template rendering changes not showing up in the project?

Template rendering changes may not appear if project synchronization was skipped or snapshot management was not properly handled during the generator update process.