Skip to content
Skillv1.0.0

scaffold

Generate incremental local code modules following existing codebase patterns. Use for endpoints, components, packages, collections, or modules inside an existing repo; not for full project scaffolds.

by shipshitdev(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from shipshitdev/skills (skills/scaffold/SKILL.md). Install upstream with npx skills add shipshitdev/skills --skill scaffold. Copyright stays with the author.

Scaffold

Generate incremental code inside an existing repository, following local codebase patterns.

Contract

Inputs:

  • Scaffold target type and name
  • Repository root
  • Existing examples to follow

Outputs:

  • Files created or modified
  • Patterns copied from existing code
  • Manual follow-up steps and tests to run

Creates/Modifies:

  • Local source, test, and export files for the requested module/component/package
  • Does not create a full product repo

External Side Effects:

  • None

Confirmation Required:

  • Before overwriting existing files
  • Before introducing a new pattern when fewer than 3 matching examples exist

Delegates To:

  • project-init-orchestrator when the user needs a whole new project
  • fullstack-workspace-init / npx @shipshitdev/v0 when the user needs a new Shipshit.dev product repo
  • Framework-specific skills such as nestjs-expert, react-patterns, shadcn, or typescript-expert

Steps

  1. Determine what to scaffold from arguments:

    • endpoint [name] — New API endpoint (controller + service + module)
    • module [name] — New backend module with full structure
    • component [name] — New UI component with proper typing
    • package [name] — New shared package
    • collection [name] — New database collection with schema + service
  2. Find 3+ existing examples:

    • Search for similar implementations in the codebase
    • Identify the exact patterns used (imports, naming, file structure)
    • Note any module-specific conventions
  3. Scaffold based on type:

    API Endpoint

    • Controller, Service, Module in appropriate directory
    • Follow: auth guards, tenant filtering, serializer response

    UI Component

    • Component file with proper typing
    • Props interface in dedicated props file
    • Export from barrel

    Shared Package

    • Directory with package.json
    • Barrel export: src/index.ts
    • TypeScript config

    Database Collection

    • Schema/model file
    • Interface in shared interfaces package
    • Serializer in shared serializers package (if applicable)
  4. Apply critical rules:

    • Interfaces in dedicated files, not inline
    • Path aliases, not relative imports
    • Tenant/organization filter in all queries (if applicable)
  5. Report: List all files created and any manual steps needed

Arguments

  • Required: what to scaffold (e.g., "endpoint tasks", "component ImageGrid", "collection workflows")

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/shipshitdev-skills-scaffold/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

shipshitdev-skills-scaffold.ocm.jsonjson
{
  "ocm": "1",
  "id": "shipshitdev-skills-scaffold",
  "kind": "skill",
  "name": "scaffold",
  "description": "Generate incremental local code modules following existing codebase patterns. Use for endpoints, components, packages, collections, or modules inside an existing repo; not for full project scaffolds.",
  "publisher": "shipshitdev",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "coding"
    ],
    "tags": [
      "skill-md",
      "scaffolding",
      "code-generation",
      "boilerplate",
      "productivity",
      "skills-sh"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "Generate incremental local code modules following existing codebase patterns. Use for endpoints, components, packages, collections, or modules inside an existing repo; not for full project scaffolds."
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "skills.sh",
      "repository": "https://github.com/shipshitdev/skills",
      "path": "skills/scaffold/SKILL.md",
      "ref": "HEAD",
      "url": "https://github.com/shipshitdev/skills/blob/HEAD/skills/scaffold/SKILL.md",
      "key": "shipshitdev/skills/skills/scaffold/SKILL.md"
    }
  },
  "instructions": "# Scaffold\n\nGenerate incremental code inside an existing repository, following local\ncodebase patterns.\n\n## Contract\n\nInputs:\n\n- Scaffold target type and name\n- Repository root\n- Existing examples to follow\n\nOutputs:\n\n- Files created or modified\n- Patterns copied from existing code\n- Manual follow-up steps and tests to run\n\nCreates/Modifies:\n\n- Local source, test, and export files for the requested module/component/package\n- Does not create a full product repo\n\nExternal Side Effects:\n\n- None\n\nConfirmation Required:\n\n- Before overwriting existing files\n- Before introducing a new pattern when fe",
  "cost": {
    "context_tokens": 612
  }
}

Fetch it by URL: GET /api/v1/registry/shipshitdev-skills-scaffold/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.