module-scaffolder
Module Scaffolder
Automate creation of feature modules with proper structure, boilerplate files, and enforced quality standards.
Auto-Triggers
Auto-triggered by keywords:
- "new module", "create module", "scaffold module"
- "new feature module", "add module"
Quick Commands
# Create new module
./.claude/skills/module-scaffolder/scripts/create-module.sh <module-name>
# Add component to module
./.claude/skills/module-scaffolder/scripts/add-component.sh <module-name> <ComponentName>
# Validate module
./.claude/skills/module-scaffolder/scripts/validate-module.sh <module-name>
Generated Structure
modules/<module-name>/
├── components/
│ ├── ExampleCard.tsx # Starter component (rename/delete)
│ └── index.ts # Barrel exports
├── hooks/
│ └── index.ts
├── utils/
│ └── index.ts
└── types.ts # Module-specific types
All generated files automatically follow DevPrep AI quality standards.
Usage Workflow
1. Creating a New Module
Example: Create analytics module
# 1. Scaffold
./scripts/create-module.sh analytics
# 2. Add components as needed
./scripts/add-component.sh analytics AnalyticsChart
./scripts/add-component.sh analytics AnalyticsSummary
# 3. Validate
./scripts/validate-module.sh analytics
What happens:
- Module directory created with proper structure
- Boilerplate files generated from templates
- TypeScript interfaces with I prefix
- Path aliases configured
- Quality standards enforced
2. Adding Components
./scripts/add-component.sh <module-name> <ComponentName>
Result:
- Component file generated with proper TypeScript patterns
- Barrel export (
index.ts) automatically updated - I prefix interface included
- Ready to implement logic
3. Validating Modules
./scripts/validate-module.sh <module-name>
Checks:
- Directory structure (6-folder architecture)
- File size limits (≤180 lines)
- Interface naming (I prefix)
- No
anytypes - Import patterns
Integration
Before scaffolding: Use brainstorming skill to plan module design
After scaffolding:
- Use
trpc-scaffolderto create API endpoints - Use
quality-reviewerto review code quality
Documentation
Detailed references available in references/:
6-folder-architecture.md- Where modules fit, structure rulesnaming-conventions.md- I prefix, PascalCase, camelCase rulespath-aliases.md- Import patterns, @shared, @lib usagequality-checklist.md- Complete quality standards
Examples: See examples/complete-module/ for fully structured reference module
Troubleshooting
Module name: Use lowercase-with-hyphens (analytics, user-profile)
Component name: Use PascalCase (AnalyticsChart, UserCard)
Path errors: Ensure running from project root or use absolute paths
Templates
All templates in templates/ directory are automatically used by scripts. Modify templates to customize generated code patterns.
More from ariegoldkin/devprepai
ascii-visualizer
Creates beautiful ASCII art visualizations for plans, architectures, workflows, and data. This skill should be used when explaining system architecture, creating implementation plans, showing workflows, visualizing comparisons, or documenting file structures. NOT for code syntax highlighting or markdown tables. User explicitly loves ASCII art - use liberally for visual communication.
4trpc-scaffolder
Scaffolds tRPC routers, procedures, and Zod schemas with full type safety following DevPrep AI patterns
4quality-reviewer
Automatically reviews DevPrep AI code for quality standards including ESLint compliance, TypeScript strict mode, 180-line file limits, complexity under 15, proper naming conventions, import patterns, and architectural compliance with the 6-folder structure
3design-to-production
Guided workflow for implementing HTML design prototypes as production React components with glassmorphism styling and quality standards enforcement. Use when converting design prototypes to production code.
3architecture-navigator
Understand and navigate the DevPrep AI 7-folder architecture. Use this skill when asked about code organization, where to place new features, what modules exist, or when starting development tasks that need architecture context. Auto-triggers on keywords like "where should", "add module", "architecture", "structure", "organize", "place code", "what modules".
3brainstorming
Use when creating or developing anything, before writing code or implementation plans - refines rough ideas into fully-formed designs through structured Socratic questioning, alternative exploration, and incremental validation
2