Bootstrap

From InugamiDev/ultrathink-oss · View interactive version

Bootstrap is an AI agent skill from the GitHub repository InugamiDev/ultrathink-oss. New project scaffolding orchestrator that sets up a complete project from scratch with the right stack, structure, configuration, and initial code.

How to use this skill

Skill file

Bootstrap

Purpose

Bootstrap is the new project scaffolding orchestrator. It takes a project idea or specification and produces a complete, ready-to-develop project with the right directory structure, configuration, tooling, and initial code. Bootstrap doesn't just run create-next-app -- it makes informed decisions about project architecture, sets up quality tooling, and creates a foundation that follows best practices.

Bootstrap is opinionated but configurable. It will suggest a stack and structure based on the project type, but defers to user preferences when specified. It always errs on the side of a clean, maintainable foundation over a feature-packed but messy one.

Workflow

Phase 1: Discover & Decide

  1. Parse the project brief -- Extract project type, target platform, scale expectations, and any specified technologies.
  2. Invoke brainstorm (if underspecified) -- If the user gives a vague brief ("build me a SaaS"), brainstorm what the stack and structure should look like.
  3. Invoke research -- Look up current best practices for the chosen stack. Check for latest versions, recommended configurations, and known pitfalls via Context7.
  4. Invoke plan -- Create a scaffolding plan:
  1. Present the plan -- Show the user what will be created. Get confirmation before writing files.

Phase 2: Scaffold Structure

  1. Create directory tree -- Build out the full directory structure following conventions for the chosen stack.
  2. Write configuration files -- Generate all config files:

Phase 3: Write Initial Code

  1. Create entry points -- Set up the main entry file(s) for the application.
  2. Create example components/modules -- Write 1-2 example components or modules that demonstrate the project's conventions:
  1. Create example tests -- Write tests for the example code to establish the testing pattern.
  2. Create shared utilities -- Set up common utilities (error handling, logging, config loading) if appropriate for the project type.

Phase 4: Tooling & CI

  1. Set up development scripts -- Configure dev, build, test, lint, and format scripts.
  2. Set up CI/CD (if requested) -- Generate GitHub Actions, GitLab CI, or other CI configuration.
  3. Set up pre-commit hooks (if appropriate) -- Configure husky, lint-staged, or equivalent.

Phase 5: Document & Commit

  1. Invoke docs-writer -- Generate a README with:
  1. Invoke git-workflow -- Initialize git repository.
  2. Invoke commit-crafter -- Create the initial commit with a meaningful message.
  3. Present summary -- Report what was created, how to get started, and suggested next steps.

Stack Templates

Next.js (App Router)

project/
  src/
    app/
      layout.tsx
      page.tsx
      globals.css
    components/
      ui/
    lib/
      utils.ts
    hooks/
    types/
  public/
  tests/
  .env.example
  next.config.ts
  tailwind.config.ts
  tsconfig.json
  package.json

Node.js API

project/
  src/
    routes/
    middleware/
    services/
    models/
    utils/
    config/
    index.ts
  tests/
    unit/
    integration/
  .env.example
  tsconfig.json
  package.json

CLI Tool (TypeScript)

project/
  src/
    commands/
    utils/
    config/
    index.ts
  tests/
  bin/
  package.json
  tsconfig.json

Python Package

project/
  src/
    package_name/
      __init__.py
      core.py
      utils.py
  tests/
    test_core.py
  pyproject.toml
  README.md

Decision Points

| Condition | Action |

|-----------|--------|

| User specifies stack | Use specified stack, validate with research |

| User says "whatever is best" | Use brainstorm + research to recommend |

| Project is a monorepo | Set up workspace configuration (turborepo, nx, etc.) |

| Deployment target specified | Configure build output and CI for that target |

| User wants a database | Include ORM/driver setup and migration tooling |

| User wants auth | Include auth library setup and example middleware |

Usage

Use Bootstrap at the very beginning of a new project. It sets the foundation that all subsequent development builds on.

Best for:

Not ideal for:

Examples

Example 1: SaaS application

User: /bootstrap Create a Next.js SaaS app with Supabase auth,
       Stripe billing, and Tailwind CSS

Bootstrap workflow:
1. research -> Latest Next.js App Router patterns, Supabase client setup,
               Stripe integration best practices
2. plan -> Directory structure, dependencies, config files
3. Scaffold -> Next.js app with app router, Tailwind, TypeScript
4. Initial code -> Auth middleware, Stripe webhook handler,
                   example dashboard page, pricing component
5. Tooling -> ESLint, Prettier, Vitest, GitHub Actions
6. docs-writer -> README with setup instructions for Supabase + Stripe
7. git-workflow + commit-crafter -> Init repo, first commit

Example 2: CLI tool

User: /bootstrap Scaffold a Node.js CLI tool for managing Docker containers

Bootstrap workflow:
1. research -> Commander.js vs yargs vs clipanion, best CLI patterns
2. plan -> CLI structure with commands, config, output formatting
3. Scaffold -> TypeScript project with bin entry point
4. Initial code -> Help command, version command, example container-list command
5. Tooling -> ESLint, Vitest, build to CJS for Node
6. docs-writer -> README with installation and usage
7. git-workflow + commit-crafter -> Init repo, first commit

Example 3: Monorepo

User: /bootstrap Set up a Turborepo monorepo with a Next.js frontend,
       Express API, and shared types package

Bootstrap workflow:
1. research -> Turborepo workspace config, shared package patterns
2. plan -> Root config, three packages, shared dependencies
3. Scaffold -> Turborepo root, apps/web, apps/api, packages/shared
4. Initial code -> Example page calling API, shared type definitions,
                   API route using shared types
5. Tooling -> Root ESLint, per-package tsconfig, Turborepo pipelines
6. docs-writer -> Root README + per-package READMEs
7. git-workflow + commit-crafter -> Init repo, first commit

Guardrails

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.