mcpField
A
auto-setup

auto-setup

github.com/rohitg00Testing & quality2.9k149 installsUpdated 4w ago
Repository

About auto-setup

A setup skill that detects a project's type and prepares quality-gate configuration for Claude Code. It checks tool availability and avoids replacing existing settings without approval.

Key features

  1. 01Detect project type and workspaces
  2. 02Configure lint, typecheck, test, and format commands
  3. 03Check whether tools are installed
  4. 04Generate .claude/settings.json suggestions

Use cases

  1. 01Set up a new project
  2. 02Onboard to an unfamiliar codebase
  3. 03Prepare CI quality gates

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/rohitg00/pro-workflow --skill auto-setup

After installing, type/auto-setupin Claude Code to confirm it loaded.

Details

From the project README

Auto Setup

Detect project type and configure pro-workflow quality gates automatically.

Trigger

Use when:

  • Starting work on a new project
  • Onboarding to an unfamiliar codebase
  • Setting up CI integration

Detection

Step 1: Identify Project Type
ls package.json pyproject.toml Cargo.toml go.mod Gemfile pom.xml build.gradle 2>/dev/null
Step 2: Configure Quality Gates

Node.js/TypeScript:

{
  "lint": "npm run lint",
  "typecheck": "npx tsc --noEmit",
  "test": "npm test -- --changed --passWithNoTests",
  "format": "npx prettier --check ."
}

Python:

{
  "lint": "ruff check .",
  "typecheck": "mypy .",
  "test": "pytest --tb=short -q",
  "format": "ruff format --check ."
}

Rust:

{
  "lint": "cargo clippy -- -D warnings",
  "typecheck": "cargo check",
  "test": "cargo test --quiet",
  "format": "cargo fmt --check"
}

Go:

{
  "lint": "golangci-lint run",
  "typecheck": "go vet ./...",
  "test": "go test ./... -count=1",
  "format": "gofmt -l ."
}
Step 3: Verify Tools Are Installed

Run each command with --version or --help to confirm availability. Report missing tools.

Step 4: Create Configuration

Generate a .claude/settings.json with:

  • Quality gate commands for the detected project type
  • Suggested permission rules (user reviews and approves)
  • Hook configuration for the project

Output

AUTO SETUP
  Project type: [Node.js/Python/Rust/Go/Mixed]
  Package manager: [npm/pnpm/yarn/pip/cargo]

  Quality gates configured:
    lint:      [command] ✓
    typecheck: [command] ✓
    test:      [command] ✓
    format:    [command] ✓

  Missing tools:
    - [tool] — install with: [command]

  Settings written to: .claude/settings.json

Rules

  • Never overwrite existing settings without asking
  • Detect, don't assume — check for tool presence
  • Support monorepos (check for workspaces config)
  • Report missing tools with install commands

Comments

Markdown supported