Agent Skillsrohitg00/pro-workflow › auto-setup

auto-setup

GitHub

自动检测项目类型(Node/Python/Rust/Go等)并配置代码质量门禁,包括 lint、类型检查、测试和格式化命令。验证工具安装情况,生成 .claude/settings.json 配置文件,支持多仓库且避免覆盖现有设置。

skills/auto-setup/SKILL.md rohitg00/pro-workflow

Trigger Scenarios

开始新项目工作 接入不熟悉的项目代码库 配置 CI 集成

Install

npx skills add rohitg00/pro-workflow --skill auto-setup -g -y
More Options

Use without installing

npx skills use rohitg00/pro-workflow@auto-setup

指定 Agent (Claude Code)

npx skills add rohitg00/pro-workflow --skill auto-setup -a claude-code -g -y

安装 repo 全部 skill

npx skills add rohitg00/pro-workflow --all -g -y

预览 repo 内 skill

npx skills add rohitg00/pro-workflow --list

SKILL.md

Frontmatter
{
    "name": "auto-setup",
    "description": "Auto-configure quality gates, hooks, and settings for a new project. Detects project type and sets up appropriate tooling. Use when onboarding a new codebase.",
    "user-invocable": true
}

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

Version History

  • 7f7209d Current 2026-07-24 11:39

Same Skill Collection

skills/agent-teams/SKILL.md
skills/batch-orchestration/SKILL.md
skills/bug-capture/SKILL.md
skills/compact-guard/SKILL.md
skills/context-engineering/SKILL.md
skills/context-optimizer/SKILL.md
skills/cost-tracker/SKILL.md
skills/design-engineering/SKILL.md
skills/deslop/SKILL.md
skills/domain-modeling/SKILL.md
skills/file-watcher/SKILL.md
skills/improve-architecture/SKILL.md
skills/insights/SKILL.md
skills/learn-rule/SKILL.md
skills/llm-council/SKILL.md
skills/llm-gate/SKILL.md
skills/mcp-audit/SKILL.md
skills/orchestrate/SKILL.md
skills/parallel-worktrees/SKILL.md
skills/permission-tuner/SKILL.md
skills/plan-interrogate/SKILL.md
skills/replay-learnings/SKILL.md
skills/safe-mode/SKILL.md
skills/session-handoff/SKILL.md
skills/skill-router/SKILL.md
skills/smart-commit/SKILL.md
skills/sprint-status/SKILL.md
skills/tdd/SKILL.md
skills/thoroughness-scoring/SKILL.md
skills/token-efficiency/SKILL.md
skills/wiki-builder/SKILL.md
skills/wiki-query/SKILL.md
skills/wiki-research-loop/SKILL.md
skills/wiki-viewer/SKILL.md
skills/wrap-up/SKILL.md
skills/writing-guidelines/SKILL.md
skills/pro-workflow/SKILL.md
skills/skill-optimizer/SKILL.md
skills/survey-generator/SKILL.md

Metadata

Files
0
Version
7f7209d
Hash
598fa05f
Indexed
2026-07-24 11:39

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-06 22:36
浙ICP备14020137号-1 $Гость$