setting-up-projects
БесплатноБез исполняемых скриптовНе проверенAutomates project setup with best practices including pre-commit hooks, linting, formatting, and boilerplate. Activates when creating new projects, missing…
от rysweet★ 77 звёзд на GitHubОб этом скилле
Setting Up Projects
You are activating project setup automation. Your role is to establish best practices, quality tooling, and proper configuration for new or existing projects.
When to Activate
This skill activates when:
- User is creating a new project
- Project lacks pre-commit hooks configuration
- Missing essential config files (.gitignore, .editorconfig, etc.)
- Setting up development environment
- User asks about project setup or best practices
- Establishing quality baselines
Philosophy
Quality from the Start
- Automate Quality: Pre-commit hooks catch issues before commit
- Consistency: Formatting and linting enforce standards
- Security: Detect secrets and vulnerabilities early
- Productivity: Proper setup accelerates development
Progressive Enhancement
Start with essentials, add more as needed:
- Core configs (Git, editor, dependencies)
- Quality tooling (linting, formatting)
- Pre-commit hooks (automation)
- CI/CD pipelines (continuous validation)
Setup Process
1. Assess Current State
Check what exists:
ls -la # Check for config files
git status # Check Git state
Identify gaps:
-
.gitignorepresent? -
.editorconfigfor consistency? - Package manager config (package.json, requirements.txt, etc.)?
- Linter config?
- Formatter config?
- Pre-commit hooks?
- CI/CD config?
2. Create Core Configs
.gitignore
Generate appropriate ignore patterns:
- Language-specific (node_modules, pycache, etc.)
- IDE files (.vscode, .idea, etc.)
- OS files (.DS_Store, Thumbs.db, etc.)
- Environment files (.env, .env.local)
- Build artifacts (dist/, build/, *.pyc)
.editorconfig
Ensure consistent formatting across editors:
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.py]
indent_size = 4
[*.md]
trim_trailing_whitespace = false
3. Set Up Quality Tooling
Python Projects
Linting & Formatting:
- Ruff: Fast all-in-one tool (replaces black, flake8, isort)
- Pyright or Mypy: Type checking
Configuration (pyproject.toml):
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.ruff.lint]
select = ["E", "F", "I", "N", "W"]
[tool.pyright]
typeCheckingMode = "basic"
JavaScript/TypeScript Projects
Linting & Formatting:
- Prettier: Code formatting
- ESLint: Linting
Configuration:
// .prettierrc
{
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "es5"
}
// .eslintrc.json
{
"extends": ["eslint:recommended"],
"env": {
"node": true,
"es2021": true
}
}
4. Install Pre-commit Hooks
Pre-commit runs checks automatically before each commit.
Installation
pip install pre-commit
pre-commit install
Configuration (.pre-commit-config.yaml)
Python Project:
repos:
# Universal checks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-json
- id: check-merge-conflict
- id: check-added-large-files
args: ["--maxkb=500"]
# Python: Ruff (linting + formatting)
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.5
hooks:
- id: ruff
args: [--fix]
- id: ruff-format
# Python: Type checking
- repo: https://github.com/RobertCraigie/pyright-python
rev: v1.1.338
hooks:
- id: pyright
# Security: Detect secrets
- repo: https://github.com/Yelp/detect-secrets
rev: v1.4.0
hooks:
- id: detect-secrets
args: ["--baseline", ".secrets.baseline"]
JavaScript/TypeScript Project:
repos:
# Universal checks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-json
- id: check-merge-conflict
- id: check-added-large-files
# JavaScript: Prettier
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.1.0
hooks:
- id: prettier
types_or: [javascript, jsx, ts, tsx, json, yaml, markdown]
# JavaScript: ESLint
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.54.0
hooks:
- id: eslint
files: \.[jt]sx?$
types: [file]
# Security
- repo: https://github.com/Yelp/detect-secrets
rev: v1.4.0
hooks:
- id: detect-secrets
5. Initialize Baseline
For existing projects, create baseline to avoid flagging existing issues:
# Create secrets baseline (won't flag existing patterns)
detect-secrets scan > .secrets.baseline
# Run pre-commit on all files
pre-commit run --all-files
6. Document Setup
Create or update README.md with:
- Setup instructions
- Development
Установить setting-up-projects в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл setting-up-projects?
Automates project setup with best practices including pre-commit hooks, linting, formatting, and boilerplate. Activates when creating new projects, missing configuration files, or setting up development environment. Ensures quality tooling from the start.
Как установить скилл setting-up-projects?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл setting-up-projects запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic