bootstrap-project
Bootstrap a project with CI/CD, pre-commit hooks, CLAUDE.md, and framework best practices. Use when setting up a new project, adding CI pipelines, configuring husky/lint-staged, initializing CLAUDE.md, or applying Vercel best practices. Triggers on "bootstrap project", "setup CI", "add pre-commit hooks", "add husky", "setup linting", "add code coverage", "project setup", "init CLAUDE.md", or when starting a new codebase that needs infrastructure.
What this skill does
# Project Bootstrap Ensure a project has CI, pre-commit hooks, CLAUDE.md, and framework best practices configured. Detect what exists, add what's missing. ## Workflow ### 1. Detect Project State Read `package.json` to determine: - Package manager (check for `pnpm-lock.yaml`, `yarn.lock`, `bun.lockb`/`bun.lock`, `package-lock.json`) - Existing scripts (`lint`, `test`, `build`, `typecheck`, `format`) - Existing devDependencies (`husky`, `lint-staged`, `eslint`, `prettier`, `vitest`, `jest`) - Framework (`next`, `react`, `vue`, `svelte`) Check for existing config: - `.github/workflows/ci.yml` — CI already configured? - `.husky/` — Husky already initialized? - Vercel skills already installed? Report findings to user before making changes. ### 2. GitHub CI Workflow Ensure `.github/workflows/ci.yml` exists with jobs for **lint**, **typecheck**, **test with coverage**, and **build**. Read [references/ci-workflow.md](references/ci-workflow.md) for the template and adaptation guide. If a CI workflow already exists, diff it against requirements and only add missing steps. Do not overwrite existing workflows — merge into them. Configure coverage thresholds in the test runner config (e.g., `vitest.config.ts`, `jest.config.ts`). LLM coding agents generate tests alongside code, so enforce high thresholds: | Metric | Threshold | |--------|-----------| | Statements | 80% | | Branches | 80% | | Functions | 80% | | Lines | 80% | CI must **fail** if coverage drops below these thresholds. See [references/ci-workflow.md](references/ci-workflow.md) for configuration examples. Add a separate `coverage-report` job that posts a coverage summary comment on pull requests. This runs after the main CI job and uses `davelosert/vitest-coverage-report-action` (Vitest) or `MishaKav/jest-coverage-comment` (Jest). See [references/ci-workflow.md](references/ci-workflow.md) for the template and coverage reporter configuration. ### 3. Husky Pre-commit Ensure husky and lint-staged are installed and configured with checks for **lint**, **format**, and **typecheck**. Read [references/husky-precommit.md](references/husky-precommit.md) for setup instructions. Key decisions: - Include tests in pre-commit only if they run in <30s; otherwise CI-only - Typecheck runs as a separate hook step (not inside lint-staged) - lint-staged handles per-file lint + format ### 4. Claude Code Hook Guard Ensure `.claude/settings.json` has a `PreToolCall` hook that blocks `--no-verify` and `--no-gpg-sign` in git commands. This prevents AI agents from bypassing pre-commit hooks. Read [references/claude-code-hooks.md](references/claude-code-hooks.md) for the configuration. If `.claude/settings.json` already exists, merge the hooks into it — do not overwrite existing settings. Also add a rule to the project's `CLAUDE.md` (create if it doesn't exist) reinforcing the instruction: ``` NEVER use --no-verify or --no-gpg-sign with git commands. Pre-commit hooks must always run. If a hook fails, fix the underlying issue instead of bypassing it. ``` ### 5. Initialize CLAUDE.md Generate a project-level `CLAUDE.md` that gives Claude (and other AI agents) the context they need to work effectively in this codebase. If `CLAUDE.md` already exists, merge new sections into it — do not overwrite existing content. **Gather context first:** - Read `package.json` for project name, description, scripts, and dependencies - Read `README.md` (if it exists) for project purpose and setup instructions - Read `docs/PRD.md` and `docs/ARCHITECTURE.md` (if they exist) for domain and design context - Scan the top-level directory structure and key source directories to understand the layout - Check for frameworks, ORMs, and major libraries in dependencies **Write the following sections:** 1. **Project overview** — One-paragraph description of what this project is, its purpose, and its primary technology stack. 2. **Architecture** — Brief summary of the architecture (monolith, monorepo, client-server, etc.), key directories, and how they relate. Reference `docs/ARCHITECTURE.md` if it exists rather than duplicating it. 3. **Key commands** — List the common development commands (`dev`, `build`, `test`, `lint`, `typecheck`, `format`) with the correct package manager prefix. Only include commands that actually exist in `package.json` scripts. 4. **Code style and conventions** — Note any conventions visible from the codebase: naming patterns (kebab-case files, PascalCase components), import style (absolute vs relative), test file location (`__tests__/` vs co-located `.test.ts`), and any linter/formatter config. 5. **Rules** — Mandatory rules for AI agents working in this repo. Always include the hook guard rule from step 4. Add any other rules derived from the project's linter config or existing `CLAUDE.md` content. Keep the file concise — aim for under 80 lines. Prefer short bullet points over prose. Do not include information that's already obvious from file names or standard framework conventions. ### 6. Vercel Best Practices Install Vercel's agent skills for framework-specific guidance. Read [references/vercel-best-practices.md](references/vercel-best-practices.md) for details. Skip if the project doesn't use Vercel or a Vercel-supported framework. ### 7. Verify After setup, verify everything works: ```bash # Pre-commit hook fires correctly git add -A && git commit --dry-run # CI workflow is valid YAML cat .github/workflows/ci.yml | python3 -c "import sys, yaml; yaml.safe_load(sys.stdin)" # Scripts exist and run <run-command> lint <run-command> test <run-command> build ``` Report results to user. ## Missing Tooling If the project lacks lint/format/test tooling, suggest and install sensible defaults: | Tool | Default | When | |------|---------|------| | Linter | `eslint` | No linter configured | | Formatter | `prettier` | No formatter configured | | Test runner | `vitest` | No test runner configured | | Typecheck | `tsc --noEmit` | TypeScript project, no typecheck script | Ask the user before installing new tooling — do not assume.
Related in Cloud & DevOps
appbuilder-action-scaffolder
IncludedCreate, implement, deploy, and debug Adobe Runtime actions with consistent layout, validation, and error handling. Use this skill whenever the user needs to add actions to an App Builder project, understand action structure (params, response format, web/raw actions), configure actions in the manifest, use App Builder SDKs (State, Files, Events, database), deploy and invoke actions via CLI, debug action issues, or implement patterns such as webhook receivers, custom event providers, journaling consumers, large payload redirects, action sequence pipelines, and Asset Compute workers. Also trigger when users mention serverless functions in Adobe context, action logging, IMS authentication for actions, or cron-style scheduled actions.
orchestrating-datacloud
IncludedSalesforce Data Cloud product orchestrator for connect→prepare→harmonize→segment→act workflows. Use this skill when the user needs a multi-step Data Cloud pipeline, cross-phase troubleshooting, or data space and data kit management. TRIGGER when: user needs a multi-step Data Cloud pipeline, asks to set up or troubleshoot Data Cloud across phases, manages data spaces or data kits, or wants a cross-phase sf data360 workflow. DO NOT TRIGGER when: work is isolated to a single phase (use the matching phase-specific skill), the task is STDM/session tracing/parquet telemetry (use observing-agentforce), standard CRM SOQL (use querying-soql), or Apex implementation (use generating-apex).
github-project-automation
IncludedAutomate GitHub repository setup with CI/CD workflows, issue templates, Dependabot, and CodeQL security scanning. Includes 12 production-tested workflows and prevents 18 errors: YAML syntax, action pinning, and configuration. Use when: setting up GitHub Actions CI/CD, creating issue/PR templates, enabling Dependabot or CodeQL scanning, deploying to Cloudflare Workers, implementing matrix testing, or troubleshooting YAML indentation, action version pinning, secrets syntax, runner versions, or CodeQL configuration. Keywords: github actions, github workflow, ci/cd, issue templates, pull request templates, dependabot, codeql, security scanning, yaml syntax, github automation, repository setup, workflow templates, github actions matrix, secrets management, branch protection, codeowners, github projects, continuous integration, continuous deployment, workflow syntax error, action version pinning, runner version, github context, yaml indentation error
sf-datacloud
IncludedSalesforce Data Cloud product orchestrator for connect→prepare→harmonize→segment→act workflows. TRIGGER when: user needs a multi-step Data Cloud pipeline, asks to set up or troubleshoot Data Cloud across phases, manages data spaces or data kits, or wants a cross-phase `sf data360` workflow. DO NOT TRIGGER when: work is isolated to a single phase (use the matching sf-datacloud-* skill), the task is STDM/session tracing/parquet telemetry (use sf-ai-agentforce-observability), standard CRM SOQL (use sf-soql), or Apex implementation (use sf-apex).
fabric-cli
IncludedUse this skill for Fabric.so CLI workflows with the `fabric` terminal command: diagnose/install/login, search or browse a Fabric library, save notes/links/files, create folders, ask the Fabric AI assistant, manage tasks/workspaces, generate shell completion, check subscription usage, produce JSON output, and use Fabric as persistent agent memory. Do not use for Microsoft Fabric/Azure/Power BI `fab`, Daniel Miessler's Fabric framework, Python Fabric SSH, Fabric.js, or textile/fashion fabric.
lark
IncludedLark/Feishu CLI skills: lark-cli operations for docs, markdown, sheets, base, calendar, im, mail, task, okr, drive, wiki, slides, whiteboard, apps, approval, attendance, contact, vc, minutes, event. Use when the user needs to operate Lark/Feishu resources via lark-cli, send messages, manage documents, spreadsheets, calendars, tasks, OKRs, deploy web pages, or any Feishu/Lark workspace operations.