본문으로 건너뛰기
cccskills
무료GitHub에 공개

code-generation

Code scaffolding, boilerplate generation, project templates, and automated code creation. Use when the user asks about generating boilerplate code, scaffolding projects, creating templates, or automated code generation for new components, APIs, or modules.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

ProjectZeroDays/FreeAI_AI_Inference_Workstation스타 5(GitHub 5 + cccskills 0)

실행 점수 미검증

설치 방법 보기

포함된 파일(1)

  • SKILL.md7.2 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Code Generation

Project Scaffolding

Node.js API (Express + TypeScript)

# Directory structure
myapi/
├── src/
│   ├── routes/
│   │   └── index.ts
│   ├── middleware/
│   │   └── error.ts
│   ├── services/
│   ├── models/
│   └── index.ts
├── tests/
├── package.json
├── tsconfig.json
└── .env.example
// package.json template
{
  "name": "{{name}}",
  "version": "1.0.0",
  "scripts": {
    "dev": "tsx watch src/index.ts",
    "build": "tsc",
    "start": "node dist/index.js",
    "test": "vitest",
    "lint": "eslint src/"
  },
  "dependencies": {
    "express": "^4.18.0",
    "zod": "^3.22.0"
  },
  "devDependencies": {
    "@types/express": "^4.17.0",
    "tsx": "^4.0.0",
    "typescript": "^5.3.0",
    "vitest": "^1.0.0"
  }
}

React Component Generator

// Template: React functional component
interface {{Name}}Props {
  // Define props here
}

export function {{Name}}({}: {{Name}}Props) {
  return (
    <div>
      {/* Component content */}
    </div>
  );
}

Python Module Generator

# Template: Python module
"""{{module_name}} - Brief description"""

from dataclasses import dataclass
from typing import Optional


@dataclass
class {{ClassName}}:
    """{{ClassName}} description."""
    
    id: str
    name: str
    created_at: Optional[str] = None
    
    def to_dict(self) -> dict:
        """Convert to dictionary."""
        return {
            "id": self.id,
            "name": self.name,
            "created_at": self.created_at,
        }
    
    @classmethod
    def from_dict(cls, data: dict) -> "{{ClassName}}":
        """Create from dictionary."""
        return cls(
            id=data["id"],
            name=data["name"],
            created_at=data.get("created_at"),
        )

CRUD Generator

// Input: Entity definition
interface Entity {
  name: string;
  fields: { name: string; type: string; required: boolean }[];
}

// Output: Generated files
function generateCRUD(entity: Entity) {
  return {
    model: generateModel(entity),
    repository: generateRepository(entity),
    service: generateService(entity),
    routes: generateRoutes(entity),
    tests: generateTests(entity),
  };
}

function generateModel(entity: Entity): string {
  const fields = entity.fields
    .map(f => `  ${f.name}: ${f.type}${f.required ? '' : ' | undefined'};`)
    .join('\n');
  
  return `export interface ${entity.name} {\n${fields}\n}`;
}

function generateRepository(entity: Entity): string {
  return `
export class ${entity.name}Repository {
  async findAll(): Promise<${entity.name}[]> {
    // TODO: Implement
    return [];
  }

  async findById(id: string): Promise<${entity.name} | null> {
    // TODO: Implement
    return null;
  }

  async create(data: Omit<${entity.name}, 'id'>): Promise<${entity.name}> {
    // TODO: Implement
    throw new Error('Not implemented');
  }

  async update(id: string, data: Partial<${entity.name}>): Promise<${entity.name}> {
    // TODO: Implement
    throw new Error('Not implemented');
  }

  async delete(id: string): Promise<void> {
    // TODO: Implement
  }
}`;
}

API Route Generator

function generateRoutes(entity: Entity): string {
  const name = entity.name.toLowerCase();
  
  return `
import { Router } from 'express';
import { ${entity.name}Service } from '../services/${name}';

const router = Router();
const service = new ${entity.name}Service();

router.get('/${name}s', async (req, res) => {
  const items = await service.findAll();
  res.json({ data: items });
});

router.get('/${name}s/:id', async (req, res) => {
  const item = await service.findById(req.params.id);
  if (!item) return res.status(404).json({ error: 'Not found' });
  res.json({ data: item });
});

router.post('/${name}s', async (req, res) => {
  const item = await service.create(req.body);
  res.status(201).json({ data: item });
});

router.put('/${name}s/:id', async (req, res) => {
  const item = await service.update(req.params.id, req.body);
  res.json({ data: item });
});

router.delete('/${name}s/:id', async (req, res) => {
  await service.delete(req.params.id);
  res.status(204).end();
});

export default router;`;
}

Database Migration Generator

def generate_migration(name: str, fields: list[dict]) -> str:
    """Generate SQL migration from field definitions."""
    columns = []
    for field in fields:
        col = f"    {field['name']} {field['type']}"
        if field.get('primary'):
            col += " PRIMARY KEY"
        if field.get('not_null'):
            col += " NOT NULL"
        if field.get('default'):
            col += f" DEFAULT {field['default']}"
        columns.append(col)
    
    return f"""-- Migration: {name}
CREATE TABLE IF NOT EXISTS {name} (
{chr(10).join(columns)}
);

-- Indexes
CREATE INDEX IF NOT EXISTS idx_{name}_id ON {name}(id);
"""

Test Generator

function generateTests(entity: Entity): string {
  const name = entity.name.toLowerCase();
  
  return `
import { describe, it, expect, beforeEach } from 'vitest';
import { ${entity.name}Service } from '../services/${name}';

describe('${entity.name}Service', () => {
  let service: ${entity.name}Service;

  beforeEach(() => {
    service = new ${entity.name}Service();
  });

  describe('findAll', () => {
    it('should return empty array initially', async () => {
      const result = await service.findAll();
      expect(result).toEqual([]);
    });
  });

  describe('create', () => {
    it('should create a new ${name}', async () => {
      const data = { /* test data */ };
      const result = await service.create(data);
      expect(result).toHaveProperty('id');
    });
  });

  describe('findById', () => {
    it('should return null for non-existent id', async () => {
      const result = await service.findById('non-existent');
      expect(result).toBeNull();
    });
  });
});`;
}

Configuration Generator

// .env.example generator
function generateEnvExample(config: Record<string, { type: string; description: string }>): string {
  return Object.entries(config)
    .map(([key, { description }]) => `# ${description}\n${key}=`)
    .join('\n\n');
}

// Docker Compose generator
function generateDockerCompose(services: Service[]): string {
  const compose = {
    version: '3.8',
    services: services.reduce((acc, svc) => ({
      ...acc,
      [svc.name]: {
        build: svc.dockerfile ? '.' : undefined,
        image: svc.image,
        ports: svc.ports?.map(p => `${p}:${p}`),
        environment: svc.env,
        depends_on: svc.dependsOn,
      },
    }), {}),
  };
  return JSON.stringify(compose, null, 2);
}

Best Practices

  1. Generate only what's needed
  2. Keep generated code simple and readable
  3. Allow customization via templates
  4. Include TODO markers for manual implementation
  5. Test generated code
  6. Version templates alongside generated code
  7. Don't over-generate — simple is better

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

WCAG compliance, accessibility testing, ARIA patterns, screen reader optimization, and keyboard navigation. Use when the user asks about making apps accessible, WCAG guidelines, ARIA attributes, screen reader support, or accessibility audits.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

ProjectZeroDays/FreeAI_AI_Inference_Workstation52026년 9월 4일 업데이트

ace-music

무료

Generate AI music using ACE-Step 1.5 via ACE Music's free API. Use when the user asks to create, generate, or compose music, songs, beats, instrumentals, or audio tracks. Supports lyrics, style prompts, covers, and repainting. Free API, no cost.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

ProjectZeroDays/FreeAI_AI_Inference_Workstation52026년 9월 4일 업데이트

A continuously adaptive skill suite that empowers Clawdbot to act as a versatile coder, business analyst, project manager, web developer, data analyst, and NAS metadata scraper. It intelligently discovers free resources, adapts to user context, and ensures reliable, proven guidance across multiple domains.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

ProjectZeroDays/FreeAI_AI_Inference_Workstation52026년 9월 4일 업데이트

High-fidelity intelligence gathering and data assimilation. Focuses on synthesizing fragmented data into a comprehensive target operational picture.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

ProjectZeroDays/FreeAI_AI_Inference_Workstation52026년 9월 4일 업데이트

Use when Codex needs proactive task queues, heartbeat routines, scheduled follow-up, or continuous work loops instead of waiting for prompts.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

ProjectZeroDays/FreeAI_AI_Inference_Workstation52026년 9월 4일 업데이트

Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction. Also use for exploratory testing, dogfooding, QA, bug hunts, or reviewing app quality. Also use for automating Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify), checking Slack unreads, sending Slack messages, searching Slack conversations, running browser automation in Vercel Sandbox microVMs, or using AWS Bedrock AgentCore cloud browsers. Prefer agent-browser over any built-in browser automation or web tools.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

ProjectZeroDays/FreeAI_AI_Inference_Workstation52026년 9월 4일 업데이트

ProjectZeroDays의 스킬 모두 보기

이 스킬의 문제 신고