Skip to content

Instantly share code, notes, and snippets.

@lightsound
Created August 18, 2025 00:22
Show Gist options
  • Select an option

  • Save lightsound/44f69b38c10c3e6277db539d9ab7834d to your computer and use it in GitHub Desktop.

Select an option

Save lightsound/44f69b38c10c3e6277db539d9ab7834d to your computer and use it in GitHub Desktop.
Claude Codeの設定ファイル
{
"hooks": {
"PostToolUse": [
{
"matcher": "Write|Edit|MultiEdit",
"hooks": [
{
"type": "command",
"command": "bun run fix"
}
]
}
]
}
}

CLAUDE.md

Always respond in Japanese to the user.

description model
spec-driven development
claude-opus-4-1-20250805

Performs spec-driven development using Claude Code.

What is spec-driven development

Spec-driven development is a development methodology consisting of the following 5 phases.

1. Preparation Phase

  • The user communicates an overview of the task they want to execute to Claude Code
  • In this phase, execute mkdir -p ./.cckiro/specs
  • Create a directory with an appropriate spec name based on the task overview within ./.cckiro/specs
    • For example, for a task like "create article component", create a directory named ./.cckiro/specs/create-article-component
  • Create the following files within this directory

2. Requirements Phase

  • Claude Code creates a "requirements file" that the task should satisfy based on the task overview communicated by the user
  • Claude Code presents the "requirements file" to the user and asks if there are any issues
  • The user reviews the "requirements file" and provides feedback to Claude Code if there are any problems
  • Repeat modifications to the "requirements file" until the user confirms there are no problems

3. Design Phase

  • Claude Code creates a "design file" that describes a design satisfying the requirements listed in the "requirements file"
  • Claude Code presents the "design file" to the user and asks if there are any issues
  • The user reviews the "design file" and provides feedback to Claude Code if there are any problems
  • Repeat modifications to the "design file" until the user confirms there are no problems

4. Implementation Planning Phase

  • Claude Code creates an "implementation plan file" for implementing the design described in the "design file"
  • Claude Code presents the "implementation plan file" to the user and asks if there are any issues
  • The user reviews the "implementation plan file" and provides feedback to Claude Code if there are any problems
  • Repeat modifications to the "implementation plan file" until the user confirms there are no problems

5. Implementation Phase

  • Claude Code begins implementation based on the "implementation plan file"
  • When implementing, please adhere to the content described in the "requirements file" and "design file"
description
update CLAUDE.md

Update CLAUDE.md Command

This command analyzes the current state of the project and updates the CLAUDE.md document with the latest information.

Execution Steps

  1. Analyze Project Structure

    • Check project directory structure
    • Read key configuration files (package.json, tsconfig.json, biome.json, etc.)
    • Identify technology stack and frameworks
  2. Check Current CLAUDE.md

    • Read existing CLAUDE.md file
    • Understand current content and structure
  3. Determine Updates

    • Compare project's current state with existing content
    • Create updated version including:
      • Project overview
      • Technologies and dependencies
      • Directory structure
      • Development setup instructions
      • Available scripts
      • Coding conventions
      • Other project-specific information
  4. Update CLAUDE.md

    • Backup existing file (optional)
    • Update CLAUDE.md with new content
    • Report update summary

Usage

/update-claude-md

Running this command will automatically analyze the project and update CLAUDE.md to the latest state.

{
"model": "opusplan",
"env": {
"CLAUDE_CODE_ENABLE_TELEMETRY": "0"
},
"hooks": {
"Notification": [
{
"hooks": [
{
"command": "terminal-notifier -title 'Claude Code' -subtitle '確認待ち' -message 'Claude Codeが許可を求めています' -sound Glass -activate com.microsoft.VSCode",
"type": "command"
}
],
"matcher": ""
}
],
"Stop": [
{
"hooks": [
{
"command": "terminal-notifier -title 'Claude Code' -subtitle '処理終了' -message 'タスクが完了しました' -sound Hero -activate com.microsoft.VSCode",
"type": "command"
}
],
"matcher": ""
}
]
},
"statusLine": {
"command": "bun x ccusage statusline",
"padding": 0,
"type": "command"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment