🛠️ 開発・MCP コミュニティ
agentic-workflow
Practical AI agent workflows and productivity techniques. Provides optimized patterns for daily development tasks such as commands, shortcuts, Git integration, MCP usage, and session management.
⚡ おすすめ: コマンド1行でインストール(60秒)
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o agentic-workflow.zip https://jpskill.com/download/20885.zip && unzip -o agentic-workflow.zip && rm agentic-workflow.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/20885.zip -OutFile "$d\agentic-workflow.zip"; Expand-Archive "$d\agentic-workflow.zip" -DestinationPath $d -Force; ri "$d\agentic-workflow.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
agentic-workflow.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
agentic-workflowフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 1
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
AIエージェントワークフロー(ワークフローと生産性)
このスキルを使用するタイミング
- 日常のAIエージェント作業を最適化する
- Git/GitHubワークフローを統合する
- MCPサーバーを使用する
- セッションを管理および回復する
- 生産性向上テクニックを適用する
1. エージェントごとの主要コマンド
Claude Codeコマンド
| コマンド | 機能 | 使用するタイミング |
|---|---|---|
/init |
CLAUDE.mdドラフトを自動生成する | 新しいプロジェクトを開始する時 |
/usage |
トークン使用量/リセット時間を表示する | 各セッションの開始時 |
/clear |
会話履歴をクリアする | コンテキストが汚染された時、新しいタスクを開始する時 |
/context |
コンテキストウィンドウのX線表示 | パフォーマンスが低下した時 |
/clone |
会話全体をクローンする | A/B実験、バックアップ |
/mcp |
MCPサーバーを管理する | MCPの有効化/無効化 |
!cmd |
Claudeの処理なしで即座に実行する | クイックステータスチェック |
Gemini CLIコマンド
| コマンド | 機能 |
|---|---|
gemini |
会話を開始する |
@file |
ファイルコンテキストを追加する |
-m model |
モデルを選択する |
Codex CLIコマンド
| コマンド | 機能 |
|---|---|
codex |
会話を開始する |
codex run |
コマンドを実行する |
2. キーボードショートカット (Claude Code)
必須ショートカット
| ショートカット | 機能 | 重要度 |
|---|---|---|
Esc Esc |
最後のタスクを即座にキャンセルする | 最高 |
Ctrl+R |
プロンプト履歴を検索する | 高 |
Shift+Tab x2 |
プランモードを切り替える | 高 |
Tab / Enter |
プロンプトの提案を受け入れる | 中 |
Ctrl+B |
バックグラウンドに送る | 中 |
Ctrl+G |
外部エディタで編集する | 低 |
エディタ編集ショートカット
| ショートカット | 機能 |
|---|---|
Ctrl+A |
行の先頭に移動する |
Ctrl+E |
行の末尾に移動する |
Ctrl+W |
前の単語を削除する |
Ctrl+U |
行の先頭まで削除する |
Ctrl+K |
行の末尾まで削除する |
3. セッション管理
Claude Codeセッション
# 最後の会話を続ける
claude --continue
# 特定のセッションを再開する
claude --resume <session-name>
# 会話中にセッションに名前を付ける
/rename stripe-integration
推奨エイリアス
# ~/.zshrc または ~/.bashrc
alias c='claude'
alias cc='claude --continue'
alias cr='claude --resume'
alias g='gemini'
alias cx='codex'
4. Gitワークフロー
コミットメッセージの自動生成
"変更を分析し、適切なコミットメッセージを作成してからコミットする"
ドラフトPRの自動生成
"現在のブランチの変更からドラフトPRを作成する。
タイトルは変更を要約し、本文に主要な変更点をリストする。"
Gitワークツリーを使用する
# 複数のブランチで同時に作業する
git worktree add ../myapp-feature-auth feature/auth
git worktree add ../myapp-hotfix hotfix/critical-bug
# ワークツリーごとに独立したAIセッション
Tab 1: ~/myapp-feature-auth → 新機能開発
Tab 2: ~/myapp-hotfix → 緊急バグ修正
Tab 3: ~/myapp (main) → mainブランチを保持
PRレビューワークフロー
1. "gh pr checkout 123 を実行し、このPRの変更点を要約する"
2. "src/auth/middleware.ts の変更点を分析する。セキュリティ問題やパフォーマンス問題がないか確認する"
3. "このロジックをより効率的にする方法はあるか?"
4. "提案された改善を適用し、テストを実行する"
5. MCPサーバーの使用 (マルチエージェント)
主要なMCPサーバー
| MCPサーバー | 機能 | ユースケース |
|---|---|---|
| Playwright | ウェブブラウザを制御する | E2Eテスト |
| Supabase | データベースクエリ | 直接DBアクセス |
| Firecrawl | ウェブクローリング | データ収集 |
| Gemini-CLI | 大規模分析 | 100万トークン以上の分析 |
| Codex-CLI | コマンドを実行する | ビルド、デプロイ |
MCP使用例
# Gemini: 大規模分析
> ask-gemini "@src/ コードベース全体の構造を分析する"
# Codex: コマンドを実行する
> shell "docker-compose up -d"
> shell "npm test && npm run build"
MCP最適化
# 未使用のMCPサーバーを無効にする
/mcp
# 推奨数
# - MCPサーバー: 10未満
# - アクティブなツール: 80未満
6. マルチエージェントワークフローパターン
オーケストレーションパターン
[Claude] 計画 → [Gemini] 分析/調査 → [Claude] コード作成 → [Codex] 実行/テスト → [Claude] 結果統合
実践例: API設計 + 実装 + テスト
1. [Claude] スキルを使用してAPI仕様を設計する
2. [Gemini] ask-gemini "@src/ 既存のAPIパターンを分析する" - 大規模なコードベース分析
3. [Claude] 分析に基づいてコードを実装する
4. [Codex] shell "npm test && npm run build" - テストとビルド
5. [Claude] 最終レポートを作成する
TDDワークフロー
"TDDを使用して作業する。まず失敗するテストを書き、
次にテストがパスするコードを書く。"
# AIの動作:
# 1. 失敗するテストを書く
# 2. git commit -m "ユーザー認証の失敗するテストを追加"
# 3. テストをパスさせるための最小限のコードを書く
# 4. テストを実行 → パスすることを確認
# 5. git commit -m "テストをパスさせるためにユーザー認証を実装"
7. コンテナワークフロー
Dockerコンテナセットアップ
FROM ubuntu:22.04
RUN apt-get update && apt-get install -y \
curl git tmux vim nodejs npm python3 python3-pip
RUN curl -fsSL https://claude.ai/install.sh | sh
WORKDIR /workspace
CMD ["/bin/bash"]
安全な実験環境
# コンテナをビルドして実行する
docker build -t ai-sandbox .
docker run -it --rm \
-v $(pwd):/workspace \
-e ANTHROPIC_API_KEY=$ANTHROPIC_API_KEY \
ai-sandbox
# コンテナ内で実験作業を行う
8. トラブルシューティング
コンテキストが過負荷になった場合
/context # 使用量を確認する
/clear # コンテキストをリセットする
# または HANDOFF.md を作成して新しいセッションを開始する
タスクをキャンセルする
Esc Esc # 最後のタスクを即座にキャンセルする
パフォーマンスが低下した場合
# MCP/ツール数を確認する
/mcp
# 不要なMCPサーバーを無効にする
# コンテキストをリセットする
クイックリファレンスカード
=== 必須コマンド ===
/clear コンテキストをリセットする
/context 使用量を確認する
/usage トークンを確認する
/init プロジェクト説明ファイルを生成する
!command 即座に実行する
=== ショートカット ===
Esc Esc タスクをキャンセルする
Ctrl+R
(原文がここで切り詰められています) 📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
AI Agent Workflow (Workflow & Productivity)
When to use this skill
- Optimize everyday AI agent work
- Integrate Git/GitHub workflows
- Use MCP servers
- Manage and recover sessions
- Apply productivity techniques
1. Key commands by agent
Claude Code commands
| Command | Function | When to use |
|---|---|---|
/init |
Auto-generate a CLAUDE.md draft | Start a new project |
/usage |
Show token usage/reset time | Start of every session |
/clear |
Clear conversation history | When context is polluted; start a new task |
/context |
Context window X-Ray | When performance degrades |
/clone |
Clone the entire conversation | A/B experiments; backups |
/mcp |
Manage MCP servers | Enable/disable MCP |
!cmd |
Run immediately without Claude processing | Quick status checks |
Gemini CLI commands
| Command | Function |
|---|---|
gemini |
Start a conversation |
@file |
Add file context |
-m model |
Select model |
Codex CLI commands
| Command | Function |
|---|---|
codex |
Start a conversation |
codex run |
Run a command |
2. Keyboard shortcuts (Claude Code)
Essential shortcuts
| Shortcut | Function | Importance |
|---|---|---|
Esc Esc |
Cancel the last task immediately | Highest |
Ctrl+R |
Search prompt history | High |
Shift+Tab x2 |
Toggle plan mode | High |
Tab / Enter |
Accept prompt suggestion | Medium |
Ctrl+B |
Send to background | Medium |
Ctrl+G |
Edit in external editor | Low |
Editor editing shortcuts
| Shortcut | Function |
|---|---|
Ctrl+A |
Move to start of line |
Ctrl+E |
Move to end of line |
Ctrl+W |
Delete previous word |
Ctrl+U |
Delete to start of line |
Ctrl+K |
Delete to end of line |
3. Session management
Claude Code sessions
# Continue the last conversation
claude --continue
# Resume a specific session
claude --resume <session-name>
# Name the session during the conversation
/rename stripe-integration
Recommended aliases
# ~/.zshrc or ~/.bashrc
alias c='claude'
alias cc='claude --continue'
alias cr='claude --resume'
alias g='gemini'
alias cx='codex'
4. Git workflow
Auto-generate commit messages
"Analyze the changes, write an appropriate commit message, then commit"
Auto-generate draft PR
"Create a draft PR from the current branch's changes.
Make the title summarize the changes, and list the key changes in the body."
Use Git worktrees
# Work on multiple branches simultaneously
git worktree add ../myapp-feature-auth feature/auth
git worktree add ../myapp-hotfix hotfix/critical-bug
# Independent AI sessions per worktree
Tab 1: ~/myapp-feature-auth → new feature development
Tab 2: ~/myapp-hotfix → urgent bug fix
Tab 3: ~/myapp (main) → keep main branch
PR review workflow
1. "Run gh pr checkout 123 and summarize this PR's changes"
2. "Analyze changes in src/auth/middleware.ts. Check for security issues or performance problems"
3. "Is there a way to make this logic more efficient?"
4. "Apply the improvements you suggested and run tests"
5. Using MCP servers (Multi-Agent)
Key MCP servers
| MCP server | Function | Use case |
|---|---|---|
| Playwright | Control web browser | E2E tests |
| Supabase | Database queries | Direct DB access |
| Firecrawl | Web crawling | Data collection |
| Gemini-CLI | Large-scale analysis | 1M+ token analysis |
| Codex-CLI | Run commands | Build, deploy |
MCP usage examples
# Gemini: large-scale analysis
> ask-gemini "@src/ Analyze the structure of the entire codebase"
# Codex: run commands
> shell "docker-compose up -d"
> shell "npm test && npm run build"
MCP optimization
# Disable unused MCP servers
/mcp
# Recommended numbers
# - MCP servers: fewer than 10
# - Active tools: fewer than 80
6. Multi-Agent workflow patterns
Orchestration pattern
[Claude] Plan → [Gemini] Analysis/research → [Claude] Write code → [Codex] Run/test → [Claude] Synthesize results
Practical example: API design + implementation + testing
1. [Claude] Design API spec using the skill
2. [Gemini] ask-gemini "@src/ Analyze existing API patterns" - large-scale codebase analysis
3. [Claude] Implement code based on the analysis
4. [Codex] shell "npm test && npm run build" - test and build
5. [Claude] Create final report
TDD workflow
"Work using TDD. First write a failing test,
then write code that makes the test pass."
# The AI:
# 1. Write a failing test
# 2. git commit -m "Add failing test for user auth"
# 3. Write minimal code to pass the test
# 4. Run tests → confirm they pass
# 5. git commit -m "Implement user auth to pass test"
7. Container workflow
Docker container setup
FROM ubuntu:22.04
RUN apt-get update && apt-get install -y \
curl git tmux vim nodejs npm python3 python3-pip
RUN curl -fsSL https://claude.ai/install.sh | sh
WORKDIR /workspace
CMD ["/bin/bash"]
Safe experimentation environment
# Build and run the container
docker build -t ai-sandbox .
docker run -it --rm \
-v $(pwd):/workspace \
-e ANTHROPIC_API_KEY=$ANTHROPIC_API_KEY \
ai-sandbox
# Do experimental work inside the container
8. Troubleshooting
When context is overloaded
/context # Check usage
/clear # Reset context
# Or create HANDOFF.md and start a new session
Cancel a task
Esc Esc # Cancel the last task immediately
When performance degrades
# Check MCP/tool counts
/mcp
# Disable unnecessary MCP servers
# Reset context
Quick Reference Card
=== Essential commands ===
/clear reset context
/context check usage
/usage check tokens
/init generate project description file
!command run immediately
=== Shortcuts ===
Esc Esc cancel task
Ctrl+R search history
Shift+Tab×2 plan mode
Ctrl+B background
=== CLI flags ===
--continue continue conversation
--resume resume session
-p "prompt" headless mode
=== Multi-Agent ===
Claude plan/code generation
Gemini large-scale analysis
Codex run commands
=== Troubleshooting ===
Context overloaded → /clear
Cancel task → Esc Esc
Performance degradation → check /context