scaffold

Generates domain models and feature boilerplate for existing codebases.

1|Updated Aug 31, 2024
One-click install
npx skills add https://github.com/nnsi/hono-practice --skill scaffold-nnsi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: scaffold
Source: https://github.com/nnsi/hono-practice/tree/main/.claude/skills/scaffold
Command: npx skills add https://github.com/nnsi/hono-practice --skill scaffold-nnsi

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Scaffolding backend projects is repetitive and error-prone; this Skill automates the rapid creation of domain models and feature boilerplate to accelerate development.

Core Features & Use Cases

  • Domain scaffolding: generates domain schemas and factory code following existing patterns.
  • Feature scaffolding: creates route, handler, usecase, repository, and tests for a new feature.
  • Project integration: supports updating exports and coordinates with migrations and infrastructure changes after generation.

Quick Start

Run node scripts/generate-domain.js <entityName> and node scripts/generate-feature.js <entityName> to scaffold a new domain and its associated feature.

Frequently Asked Questions about scaffold

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

FAQPage Schema
How do I automate backend domain scaffolding for new features?

Backend domain scaffolding is automated by generating domain schemas and feature boilerplate. The tool creates route, handler, usecase, and repository files by aligning with existing project patterns to accelerate development across your codebase.

What is the best way to generate CRUD feature boilerplate across an existing codebase?

Generating CRUD feature boilerplate is best handled by running scripts/generate-feature.js. This script creates route, handler, usecase, repository, and test files while updating exports to match your existing project structure and domain schema patterns.

Can I scaffold domain models and schema factories without breaking existing code?

Scaffolding domain models follows your project's schema and feature structure to maintain compatibility. The tool generates domain schemas and factory code based on existing patterns, updating exports while requiring manual integration for infrastructure changes to prevent breaking code.

Do I need to manually run database migrations after generating a new domain?

Manual database migrations are required after generating a new domain. The tool automates domain model and feature boilerplate creation but explicitly coordinates with infrastructure changes by leaving database migrations and integration points as manual steps.

How does domain scaffolding work with existing project patterns?

Domain scaffolding works by analyzing your existing codebase to replicate established patterns. It generates domain schemas and factory code that align with your current project structure, automatically updating exports to ensure seamless integration with existing modules.

What are the limitations of automated backend code generation for new features?

Limitations of automated backend code generation include requiring manual steps for database migrations and integration points. The tool creates feature boilerplate like routes and repositories but cannot automatically wire complex infrastructure dependencies or modify external services.