コンテンツにスキップ

SuperClaude

# Clone SuperClaude repository
git clone https://github.com/NomenAK/SuperClaude.git
cd SuperClaude

# Copy configuration to Claude Code directory
cp superclaude.md ~/.claude/

# Initialize SuperClaude in your project
claude-code --config superclaude.md
```Claudeコードの開発を強化するための、特殊なコマンド、認知的ペルソナ、およびエビデンスベースの方法論を網羅したSuperClaude コマンドとワークフロー。
```bash
# Create SuperClaude config directory
mkdir -p ~/.superclaude

# Download configuration files
curl -o ~/.superclaude/config.md https://raw.githubusercontent.com/NomenAK/SuperClaude/main/superclaude.md

# Set environment variable
export SUPERCLAUDE_CONFIG=~/.superclaude/config.md
```## 概要

SuperClaude は、19の特殊なコマンド、9つの認知的ペルソナ、およびエビデンスベースの開発方法論を Claude Code に追加するオープンソースフレームワークです。追加のコードや外部ツールを必要とせずにソフトウェアエンジニアリングの原則を適用し、コンテキスト管理、トークン最適化、モジュラーワークフローを強化した、より強力な開発アシスタントに Claude Code を変換します。

> ⚠️ **使用上の注意**: SuperClaudeはClaude Codeの機能を拡張しますが、適切なテスト、コードレビュー、セキュリティ対策と併せて使用する必要があります。本番環境で使用する前に、AI生成のコードは常に検証してください。

| コマンド | 説明 |
|---------|-------------|
| `/architect` | システム設計のためのアーキテクト・ペルソナを有効化 |
| `/security` | コードレビューのためのセキュリティエキスパートペルソナを有効化 |
| `/optimizer` | パフォーマンス最適化ペルソナに切り替える |
| `/debugger` | デバッグ専門家ペルソナを有効化 |
| `/tester` | テスト専門家ペルソナを有効化 |
| `/docs` | ドキュメンテーション専門家ペルソナをアクティブ化 |
| `/reviewer` | コードレビュー専門家のペルソナに切り替える |
| `/mentor` | 教育とメンタリングのペルソナを有効にする |
| `/researcher` | 研究および分析ペルソナを有効化 |## インストール

### クイックセットアップ

| コマンド | 説明 |
|---------|-------------|
| `/context7` | リサーチおよびドキュメンテーションツール |
| `/checkpoint` | 開発チェックポイントを作成 |
| `/history` | 開発履歴を表示 |
| `/compress` | UltraCompressed モードを有効にする |
| `/expand` | 圧縮されたコンテキストを展開する |
| `/focus` | 特定のコードエリアに焦点を当てる |
| `/scope` | プロジェクトの範囲を定義する |### 手動設定

| コマンド | 説明 |
|---------|-------------|
| `/sequential` | 深い思考と分析を可能にする |
| `/parallel` | 並列で開発タスクを実行 |
| `/wave` | 複雑なワークフローを調整する |
| `/modular` | モジュラー開発アプローチを有効にする |
| `/iterative` | 反復的な開発サイクルを使用する |
| `/validate` | コードとアーキテクチャを検証する |## コアコマンド
```bash
# Activate architect persona
claude-code --persona-architect

# System design commands
/architect --design-system
/architect --review-architecture
/architect --optimize-structure
```## 特殊コマンド

### コンテキスト管理```bash
# Enable security expert
claude-code --persona-security

# Security analysis commands
/security --audit-code
/security --check-vulnerabilities
/security --review-permissions

開発ワークフロー```bash

Activate optimizer

claude-code —persona-optimizer

Performance commands

/optimizer —analyze-performance /optimizer —optimize-queries /optimizer —reduce-complexity

## ペルソナフラグ

### アーキテクチャペルソナ
```bash
# Enable token optimization
/compress --ultra

# Optimize conversation context
/context7 --optimize

# Reduce token usage
/focus --narrow-scope

セキュリティペルソナ

# Initialize modular structure
/modular --init

# Create module
/modular --create module_name

# Link modules
/modular --link module1 module2

パフォーマンスペルソナ

# Generate project documentation
/docs --generate-all

# Create API documentation
/docs --api-docs

# Generate README
/docs --readme

高度な機能

トークン最適化

# ~/.superclaude/config.yaml
personas:
  default: architect
  available: [architect, security, optimizer, debugger, tester, docs, reviewer, mentor, researcher]

features:
  token_optimization: true
  modular_development: true
  checkpoint_system: true
  ultra_compressed: false

workflows:
  sequential_thinking: true
  parallel_processing: false
  wave_orchestration: true

モジュラー開発

# Advanced SuperClaude configuration
context:
  max_tokens: 200000
  compression_ratio: 0.7
  focus_depth: 3

development:
  checkpoint_frequency: 10
  auto_documentation: true
  code_validation: true
  security_checks: true

personas:
  architect:
    focus: [system_design, architecture_patterns, scalability]
  security:
    focus: [vulnerability_assessment, secure_coding, compliance]
  optimizer:
    focus: [performance_tuning, resource_optimization, efficiency]

ドキュメント生成

# Initialize project with architect persona
claude-code --persona-architect
/architect --design-system "e-commerce platform"

# Switch to security review
/security --audit-design

# Implement with optimizer
/optimizer --implement-efficient

# Test with tester persona
/tester --comprehensive-testing

# Document with docs persona
/docs --generate-complete

設定オプション

基本設定

# Start code review session
claude-code --persona-reviewer

# Analyze code quality
/reviewer --analyze-quality

# Check security issues
/security --vulnerability-scan

# Performance review
/optimizer --performance-review

# Generate review report
/docs --review-report

詳細設定

# Activate debugger persona
claude-code --persona-debugger

# Analyze error
/debugger --analyze-error "error_message"

# Trace execution
/debugger --trace-execution

# Suggest fixes
/debugger --suggest-fixes

# Validate solution
/tester --validate-fix

ワークフロー例

フルスタック開発

# SuperClaude enhanced file operations
claude-code edit --persona-architect file.py
claude-code create --persona-security auth.py
claude-code review --persona-reviewer codebase/

# Context-aware development
claude-code --context7 --focus-area authentication
claude-code --sequential --deep-analysis
claude-code --wave --orchestrate-features

コードレビューワークフロー

# Create project with SuperClaude template
claude-code create-project --template superclaude-fullstack
claude-code create-project --template superclaude-api
claude-code create-project --template superclaude-frontend

# Initialize existing project
claude-code init --superclaude

デバッグセッション

# Optimize token usage
/compress --smart-compression
/focus --relevant-context
/checkpoint --save-state

# Monitor token consumption
/context7 --token-usage
/history --token-analysis
```### 開発ライフサイクル
```bash
# 1. Planning phase
/architect --plan-project

# 2. Implementation phase
/optimizer --implement-efficient

# 3. Security phase
/security --security-review

# 4. Testing phase
/tester --comprehensive-testing

# 5. Documentation phase
/docs --complete-documentation

# 6. Review phase
/reviewer --final-review
```## トラブルシューティング
```bash
# Reset SuperClaude configuration
claude-code --reset-superclaude

# Clear context cache
/context7 --clear-cache

# Rebuild persona profiles
/persona --rebuild-all

# Validate configuration
/validate --config-check
```### パフォーマンス最適化
```bash
# Optimize SuperClaude performance
/optimizer --superclaude-performance

# Reduce memory usage
/compress --memory-optimization

# Speed up responses
/focus --performance-mode
```### デバッグモード
```bash
# Enable SuperClaude debug mode
claude-code --debug-superclaude

# Verbose logging
/debugger --verbose-logging

# Trace persona switching
/persona --trace-switches
```## 高度な使用事例
```bash
# Coordinate multiple personas
/wave --multi-agent-coordination

# Parallel development streams
/parallel --architect --security --optimizer

# Sequential expert consultation
/sequential --architect -> /security -> /optimizer
```### マルチエージェント開発
```bash
# Enterprise configuration
claude-code --enterprise-superclaude

# Team collaboration
/wave --team-coordination

# Compliance checking
/security --compliance-audit

# Documentation standards
/docs --enterprise-standards
```### エンタープライズ統合
```bash
# Create custom workflow
/wave --create-workflow "custom_dev_flow"

# Define workflow steps
/wave --add-step "architect_review"
/wave --add-step "security_check"
/wave --add-step "performance_optimization"

# Execute custom workflow
/wave --execute "custom_dev_flow"
```### カスタムワークフロー
https://github.com/NomenAK/SuperClaude#

# リソース
https://superclaude.org/- [SuperClaude GitHub リポジトリ](
https://docs.superclaude.org/- [SuperClaude 公式ウェブサイト](
https://discord.gg/superclaude- [SuperClaude ドキュメント](
https://youtube.com/superclaude- [コミュニティ Discord](