â ã¹ãã«äžèŠ§ã«æ»ã

template-scaffold
by phatpham9
ð Automated development environment setup for macOS and Ubuntu
â 5ðŽ 2ð
2026幎1æ18æ¥
SKILL.md
name: template-scaffold description: 'Generate boilerplate templates and scaffolding for Next.js pages, NestJS modules, React components, API routes, Jest test files, Prisma models, and common project patterns'
Purpose
Provide consistent, production-ready boilerplate templates following project conventions and best practices to accelerate feature development.
When to Use
Use this skill when the task involves:
- Creating new feature modules or components
- Scaffolding API routes or pages
- Setting up test file structures
- Generating Prisma/database model boilerplate
- Starting new projects with predefined structure
Constraints
- Templates must follow TypeScript strict mode
- Use path aliases (
@/) in all imports - Include proper typing â no implicit any
- Add placeholder comments for customization points
- Follow Atomic Design for UI components
- Include basic error handling patterns
Available Templates
Next.js
pageâ App Router page with metadatalayoutâ Layout component with providersapi-routeâ Route handler with validationserver-actionâ Server action with error handling
NestJS
moduleâ Feature module with service, controller, DTOscontrollerâ REST controller with CRUD endpointsserviceâ Service with repository injectiondtoâ DTO with validation decorators
React
componentâ Typed functional component with props interfacehookâ Custom hook with proper cleanupcontextâ Context provider with typed value
Testing
unit-testâ Jest unit test with mockse2e-testâ Integration test setup
Examples
Input
Scaffold a new NestJS feature module for "products"
Output
// src/modules/products/products.module.ts
import { Module } from '@nestjs/common';
import { ProductsController } from './products.controller';
import { ProductsService } from './products.service';
import { ProductsRepository } from './products.repository';
@Module({
controllers: [ProductsController],
providers: [ProductsService, ProductsRepository],
exports: [ProductsService],
})
export class ProductsModule {}
// src/modules/products/products.controller.ts
import {
Controller,
Get,
Post,
Put,
Delete,
Param,
Body,
} from '@nestjs/common';
import { ProductsService } from './products.service';
import { CreateProductDto, UpdateProductDto, ProductResponseDto } from './dto';
@Controller('v1/products')
export class ProductsController {
constructor(private readonly productsService: ProductsService) {}
@Get()
async findAll(): Promise<ProductResponseDto[]> {
return this.productsService.findAll();
}
@Get(':id')
async findOne(@Param('id') id: string): Promise<ProductResponseDto> {
return this.productsService.findOne(id);
}
@Post()
async create(@Body() dto: CreateProductDto): Promise<ProductResponseDto> {
return this.productsService.create(dto);
}
@Put(':id')
async update(
@Param('id') id: string,
@Body() dto: UpdateProductDto,
): Promise<ProductResponseDto> {
return this.productsService.update(id, dto);
}
@Delete(':id')
async remove(@Param('id') id: string): Promise<void> {
return this.productsService.remove(id);
}
}
// src/modules/products/dto/create-product.dto.ts
import { IsString, IsNumber, IsOptional, Min } from 'class-validator';
export class CreateProductDto {
@IsString()
name: string;
@IsString()
@IsOptional()
description?: string;
@IsNumber()
@Min(0)
price: number;
}
Related Skills
nest-backend-service-builderâ Full implementation patternsnextjs-react-engineeringâ Frontend component patternsjest-testing-generatorâ Test file scaffolding
ã¹ã³ã¢
ç·åã¹ã³ã¢
65/100
ãªããžããªã®åè³ªææšã«åºã¥ãè©äŸ¡
âSKILL.md
SKILL.mdãã¡ã€ã«ãå«ãŸããŠãã
+20
âLICENSE
ã©ã€ã»ã³ã¹ãèšå®ãããŠãã
+10
â説ææ
100æå以äžã®èª¬æããã
0/10
â人æ°
GitHub Stars 100以äž
0/15
âæè¿ã®æŽ»å
3ã¶æä»¥å ã«æŽæ°ããã
0/10
âãã©ãŒã¯
10å以äžãã©ãŒã¯ãããŠãã
0/5
âIssue管ç
ãªãŒãã³Issueã50æªæº
+5
âèšèª
ããã°ã©ãã³ã°èšèªãèšå®ãããŠãã
+5
âã¿ã°
1ã€ä»¥äžã®ã¿ã°ãèšå®ãããŠãã
+5
ã¬ãã¥ãŒ
ð¬
ã¬ãã¥ãŒæ©èœã¯è¿æ¥å ¬éäºå®ã§ã





