project-session-manager
できること
このスキルは、課題、プルリクエスト、機能ごとに、リポジトリの分離された作業コピーを管理します。複数の作業を同時に抱え、互いに分けておきたい開発者向けです。
使う場面
- ✓課題、プルリクエスト、機能のための別の作業コピーが必要なとき。
- ✓1つのリポジトリで複数の作業を抱え、分離したいとき。
- ✓作業セッションの一覧を見たり、接続したり、片付けたりしたいとき。
スキルのリンク
https://github.com/Yeachan-Heo/oh-my-claudecode/blob/main/skills/project-session-manager/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“課題123用に別の作業コピーを作ってください。現在の作業に触れずに修正できるようにしたいです。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、その作業専用のgitのworktreeを作ります。簡単なコマンドから始め、必要ならターミナルのセッションも開けます。また、作業がマージされたかクローズされたセッションを、一覧表示、接続、片付けできます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Project Session Manager (PSM) Skill
psm is the compatibility alias for this canonical skill entrypoint.
Quick Start (worktree-first): Start with
omc teleportwhen you want an isolated issue/PR/feature worktree before adding any tmux/session orchestration:omc teleport #123 # Create worktree for issue/PR omc teleport my-feature # Create worktree for feature omc teleport list # List worktreesSee Teleport Command below for details.
Automate isolated development environments using git worktrees and tmux sessions with Claude Code. Enables parallel work across multiple tasks, projects, and repositories.
Canonical slash command: /oh-my-claudecode:project-session-manager (alias: /oh-my-claudecode:psm).
Commands
| Command | Description | Example |
|---|---|---|
review <ref> |
PR review session | /psm review omc#123 |
fix <ref> |
Issue fix session | /psm fix omc#42 |
feature <proj> <name> |
Feature development | /psm feature omc add-webhooks |
list [project] |
List active sessions | /psm list |
attach <session> |
Attach to session | /psm attach omc:pr-123 |
kill <session> |
Kill session | /psm kill omc:pr-123 |
cleanup |
Clean merged/closed | /psm cleanup |
status |
Current session info | /psm status |
Project References
Supported formats:
- Alias:
omc#123(requires~/.psm/projects.json) - Full:
owner/repo#123 - URL:
https://github.com/owner/repo/pull/123 - Current:
#123(uses current directory's repo)
Configuration
Project Aliases (~/.psm/projects.json)
{
"aliases": {
"omc": {
"repo": "Yeachan-Heo/oh-my-claudecode",
"local": "~/Workspace/oh-my-claudecode",
"default_base": "main"
}
},
"defaults": {
"worktree_root": "~/.psm/worktrees",
"cleanup_after_days": 14
}
}
Providers
PSM supports multiple issue tracking providers:
| Provider | CLI Required | Reference Formats | Commands |
|---|---|---|---|
| GitHub (default) | gh |
owner/repo#123, alias#123, GitHub URLs |
review, fix, feature |
| Jira | jira |
PROJ-123 (if PROJ configured), alias#123 |
fix, feature |
Jira Configuration
To use Jira, add an alias with jira_project and provider: "jira":
{
"aliases": {
"mywork": {
"jira_project": "MYPROJ",
"repo": "mycompany/my-project",
"local": "~/Workspace/my-project",
"default_base": "develop",
"provider": "jira"
}
}
}
Important: The repo field is still required for cloning the git repository. Jira tracks issues, but you work in a git repo.
For non-GitHub repos, use clone_url instead:
{
"aliases": {
"private": {
"jira_project": "PRIV",
"clone_url": "git@gitlab.internal:team/repo.git",
"local": "~/Workspace/repo",
"provider": "jira"
}
}
}
Jira Reference Detection
PSM only recognizes PROJ-123 format as Jira when PROJ is explicitly configured as a jira_project in your aliases. This prevents false positives from branch names like FIX-123.
Jira Examples
# Fix a Jira issue (MYPROJ must be configured)
psm fix MYPROJ-123
# Fix using alias (recommended)
psm fix mywork#123
# Feature development (works same as GitHub)
psm feature mywork add-webhooks
# Note: 'psm review' is not supported for Jira (no PR concept)
# Use 'psm fix' for Jira issues
Jira CLI Setup
Install the Jira CLI:
# macOS
brew install ankitpokhrel/jira-cli/jira-cli
# Linux
# See: https://github.com/ankitpokhrel/jira-cli#installation
# Configure (interactive)
jira init
The Jira CLI handles authentication separately from PSM.
Directory Structure
~/.psm/
├── projects.json # Project aliases
├── sessions.json # Active session registry
└── worktrees/ # Worktree storage
└── <project>/
└── <type>-<id>/
Session Naming
The public session ID (colon form, e.g. omc:pr-123) is the human-facing
identifier stored in sessions.json and used with psm attach/psm kill. tmux
reserves : and . for its session:window.pane target syntax and silently
rewrites them, so the actual tmux session name uses a tmux-safe form where
those characters become _ (issue #3528). PSM translates the public ID to the
tmux-safe name at every tmux boundary; attach dire
よくある質問
worktreeとは何ですか?
同じリポジトリ用の別の作業フォルダで、ブランチを切り替えずに別の作業ができます。
ターミナルのセッションは必要ですか?
いいえ。worktreeの部分は単独で動き、ターミナルのセッションは任意です。
古いセッションはどう削除されますか?
片付けのコマンドで、作業がマージまたはクローズされたセッションを削除します。
詳細
作者による元の説明
Worktree-first dev environment manager for issues, PRs, and features with optional tmux sessions
人気
- GitHubのスター
- 41k
- ランキング
- #7016
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
agent-doc-discipline
41kエージェントが、他のAIエージェントが独力で従える指示を書けるよう支援します。確認できるルールと、各ルールの理由を明示します。
ai-slop-cleaner
41kエージェントが、動くけれど肥大化して繰り返しの多いAI生成コードを整理できるよう支援します。動作を変えずに、余分なコードを取り除きます。
architecture-survey
41kエージェントが、コードベースの構造を確認し、変更が難しくなっている部分を根拠とともに挙げます。自分では何も変更しません。
ask-navigator
41kエージェントが、あいまいなプロジェクトを明確な決定事項の一覧に変え、1つずつ検討して進む道筋を見えるようにします。
似ているスキル
openclaw-update
394k既存のOpenClaw Gatewayを更新するようエージェントを支援します。インストール方法に合った更新方法を選び、セッションを動かし続けます。
diagnose-gateway
394k設定、チャンネル、ポートを確認して、OpenClaw Gatewayが失敗している理由を、何も変更せずに突き止めるようエージェントを支援します。
crabbox-apps
394k一時的なクラウドマシン上でアプリを開いて実行し、そのビューをチャットのサイドパネルに表示するようエージェントを支援します。