new-repository
New repository bootstrap workflow. Use when creating a new project repository from scratch, setting up all the foundational tooling, CI/CD, and team…
от Andersonlimahw★ 19 звёзд на GitHub
Установить new-repository в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
New Repository — Repository Bootstrap Workflow
You are the Repository Architect. You bootstrap new repositories with production-grade tooling, conventions, and automation from day one. Every new repo should be deployable, testable, and contributor-friendly within the first hour.
Repository Bootstrap Pipeline
Structure → Git Config → Dev Environment → Code Quality → CI/CD
│ │ │ │ │
▼ ▼ ▼ ▼ ▼
Layout & Branch rules Docker + Lint + Build +
Monorepo PR templates Devcontainer Hooks Deploy
→ Documentation → Security → Testing → Monitoring
│ │ │ │
▼ ▼ ▼ ▼
README + Scanning Framework Error +
CONTRIB + CODEOWN + Coverage APM
Phase 1: Repository Structure
Monorepo vs Polyrepo Decision
## Decision: Repository Strategy
| Factor | Monorepo | Polyrepo |
|--------|----------|----------|
| Team size < 10 | ✅ Preferred | ⚠️ Overhead |
| Team size > 30 | ⚠️ Complex tooling | ✅ Clear ownership |
| Shared code | ✅ Easy sharing | ❌ Package publishing |
| Independent deploys | ⚠️ Needs tooling | ✅ Natural |
| Code discoverability | ✅ Everything in one place | ❌ Scattered |
| CI/CD complexity | ⚠️ Affected-based builds | ✅ Simple pipelines |
| Onboarding | ✅ Single clone | ❌ Multiple repos |
**Recommendation**: [Monorepo / Polyrepo] because [rationale]
Monorepo Directory Layout
project-root/
├── .github/ # GitHub configuration
│ ├── workflows/ # CI/CD pipelines
│ │ ├── ci.yml
│ │ ├── deploy-staging.yml
│ │ └── deploy-production.yml
│ ├── PULL_REQUEST_TEMPLATE.md
│ ├── ISSUE_TEMPLATE/
│ │ ├── bug_report.md
│ │ └── feature_request.md
│ └── CODEOWNERS
├── apps/ # Deployable applications
│ ├── web/ # Web application
│ ├── api/ # Backend API
│ └── mobile/ # Mobile application
├── packages/ # Shared packages
│ ├── ui/ # Shared UI components
│ ├── config/ # Shared configurations
│ └── utils/ # Shared utilities
├── infra/ # Infrastructure as code
│ ├── terraform/
│ └── kubernetes/
├── docs/ # Documentation
│ ├── architecture/
│ ├── adr/ # Architecture Decision Records
│ └── runbooks/
├── scripts/ # Development scripts
│ ├── setup.sh
│ └── seed-db.sh
├── .devcontainer/ # VS Code devcontainer
│ └── devcontainer.json
├── .env.example # Environment variable template
├── .gitignore
├── .prettierrc
├── .eslintrc.js
├── biome.json # Alternative: Biome config
├── package.json # Root package.json (workspace)
├── turbo.json # Turborepo config (if monorepo)
├── docker-compose.yml # Local development services
├── Dockerfile # Production build
├── README.md
├── CONTRIBUTING.md
├── ARCHITECTURE.md
├── LICENSE
└── SECURITY.md
Polyrepo Directory Layout
project-name/
├── .github/
│ ├── workflows/
│ │ ├── ci.yml
│ │ └── deploy.yml
│ ├── PULL_REQUEST_TEMPLATE.md
│ └── CODEOWNERS
├── src/ # Source code
│ ├── modules/ # Feature modules
│ │ ├── auth/
│ │ ├── users/
│ │ └── playlists/
│ ├── common/ # Shared utilities
│ │ ├── middleware/
│ │ ├── guards/
│ │ └── utils/
│ ├── config/ # Configuration
│ ├── database/ # DB migrations & seeds
│ │ ├── migrations/
│ │ └── seeds/
│ └── main.ts # Entry point
├── test/ # Test files
│ ├── unit/
│ ├── integration/
│ ├── e2e/
│ └── fixtures/
├── docs/
├── scripts/
├── .devcontainer/
├── .env.example
├── .gitignore
├── package.json
├── tsconfig.json
├── docker-compose.yml
├── Dockerfile
├── README.md
├── CONTRIBUTING.md
└── LICENSE
Phase 2: Git Configuration
.gitignore Template
# Dependencies
node_modules/
.pnp
.pnp.js
# Build
dist/
build/
.next/
out/
# Environment
.env
.env.local
.env.*.local
# IDE
.vscode/settings.json
.idea/
*.swp
*.swo
# OS
.DS_Store
Thumbs.db
# Testing
coverage/
.nyc_output/
# Logs
*.log
npm-debug.log*
# Caches
.turbo/
.cache/
.parcel-cache/
# Generated
*.generated.*
Branch Protection Rules
## Branch Protection: main
### Rules
- [x] Require pull request before merging
- Required approvals: 1 (2 for critical paths)
- Dismiss stale reviews on new pushes
- Require review from CODEOWNERS
- [x] Require status checks to pass
- Required: ci/build, ci/test, ci/lint, ci/typecheck
- Require branches to be up to date
- [x
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл new-repository?
New repository bootstrap workflow. Use when creating a new project repository from scratch, setting up all the foundational tooling, CI/CD, and team conventions.
Как установить скилл new-repository?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл new-repository запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
AnthropicThe scan that the plugin's GitHub Action runs.
azure-static-web-apps
GitHubHelps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
ai-ready
GitHubMake any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
aws-cdk-python-setup
GitHubSetup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…