claude/skills/claude-code-setup-hooks/SKILL.md
Set up project-specific hooks for automated linting, formatting, and testing. Use this skill when you need to configure Claude Code hooks for code quality automation in a project.
npx skillsauth add qlawmarq/dotfiles-common claude-code-setup-hooksInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill helps you set up project-specific hooks for automated code quality checks, formatting, and testing.
ユーザーからプロジェクトの種類を受け取ってください。 指定がない場合は、プロジェクトのファイル構成から自動検出します。
Detects Project Type by checking for:
package.json → Node.js/JavaScript/TypeScriptpyproject.toml or setup.py → Pythongo.mod → GoCargo.toml → RustGemfile → Rubypom.xml or build.gradle → JavaIdentifies Available Tools in the project:
Creates Hook Configuration in .claude/settings.json:
PostToolUse hooks for auto-formatting after editsPreToolUse hooks for validation before commitsSessionEnd hooks for final quality checksGenerates Hook Scripts in .claude/hooks/:
{
"hooks": {
"PostToolUse": [
{
"matcher": "Edit|Write",
"hooks": [
{
"type": "command",
"command": "$CLAUDE_PROJECT_DIR/.claude/hooks/format-typescript.sh"
}
]
}
]
}
}
Generated script will run:
prettier --write for formattingeslint --fix for auto-fixable issues{
"hooks": {
"PostToolUse": [
{
"matcher": "Edit|Write",
"hooks": [
{
"type": "command",
"command": "$CLAUDE_PROJECT_DIR/.claude/hooks/format-python.sh"
}
]
}
]
}
}
Generated script will run:
ruff format or black for formattingruff check --fix for auto-fixable issuesThe skill will create:
.claude/settings.json - Project-level hook configuration (shared with team).claude/hooks/ - Hook script filesThese can be committed to version control for team sharing.
The skill will check for required tools and warn if they're not installed:
npm, npx, prettier, eslintruff, black, pytestgofmt, golangci-lintrustfmt, clippyユーザーから追加の指示がある場合は、それに従ってください。
development
Interactive requirements quality review and validation. Detects gold-plating (unrequested features), ambiguity, and scope creep before they propagate.
development
Plan and decompose a LARGE-SCALE software effort into multiple right-sized SDD specs. This is the AI-DLC Inception layer that sits ABOVE individual specs: it turns a whole product, a 0->1 greenfield build, or the scale-up of an existing prototype into an ordered roadmap of independently-shippable Units of Work, then scaffolds one SDD spec per unit. Make sure to use this skill whenever the user wants to plan a new app or product from scratch, break a big/ambiguous project into pieces, build an MVP roadmap, figure out "where do I even start", turn a prototype into a real product, or do anything too large to fit comfortably in a single feature spec. Prefer this over /sdd-spec-init when the scope is a whole product or several features rather than one focused feature.
tools
文章を指定した言語に翻訳。 ブログ記事やドキュメントを自然で高品質な翻訳に変換します。 フロントマター処理、専門用語の検証も行います。
tools
ブログコンテンツの品質をレビュー。 SEO最適化、文法・表現、コンテンツ品質、正確性・信頼性を 包括的にチェックし、改善提案を行います。