← スキル一覧に戻る

project-init
by ArjenSchwarz
⭐ 14🍴 3📅 2026年1月22日
SKILL.md
name: project-init description: Initialize Claude Code project settings with standard hooks and language-specific permissions. Use when setting up a new project for Claude Code or adding standard configuration to an existing project.
Project Init
Initialize a project with standard Claude Code configuration.
What It Does
- Adds a SessionStart hook to
.claude/settings.jsonfor remote environment setup - Detects project languages and adds appropriate tool permissions
Language Detection
The script detects languages based on project files and adds permissions:
| Detection File | Language | Permissions Added |
|---|---|---|
go.mod | Go | go, golangci-lint, staticcheck, govulncheck |
Package.swift, *.xcodeproj | Swift | swift, xcodebuild, swiftlint, xcrun |
package.json | Node.js | npm, npx, node, plus yarn/pnpm/bun if lockfiles present |
pyproject.toml, requirements.txt | Python | python, pip, uv, pytest, ruff, mypy |
Cargo.toml | Rust | cargo, rustc |
Gemfile | Ruby | ruby, bundle, rake, rspec |
pom.xml | Java (Maven) | mvn, java |
build.gradle | Java (Gradle) | gradle, ./gradlew, java |
Dockerfile | Docker | docker, docker-compose |
*.tf | Terraform | terraform, tofu |
Makefile | Make | make |
git is always included.
Usage
Run the setup script from your project directory:
~/.claude/skills/project-init/scripts/setup-project.sh
The script:
- Creates
.claude/settings.jsonif it doesn't exist - Merges hooks and permissions into existing settings without overwriting
- Is idempotent (safe to run multiple times)
- Requires
jqfor JSON manipulation
Batch Setup
To initialize multiple projects:
for dir in ~/projects/*; do
(cd "$dir" && ~/.claude/skills/project-init/scripts/setup-project.sh)
done
スコア
総合スコア
50/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です