بنقرة واحدة
workspace-create-or-update-pr
Create or update pull requests for all repositories (draft by default)
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Create or update pull requests for all repositories (draft by default)
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Detect and suggest blocked tool commands from recent sessions
Use when the user wants to start working on a task, ticket, or feature. Triggered by: ticket URLs (Jira, GitHub Issues, Linear, etc.), task descriptions, or requests like 'work on this', 'implement X', 'fix X', 'これをすすめて', 'これやって'. IMPORTANT: Before creating a new workspace, ALWAYS run /workspace-list first to check if a workspace already exists for the same ticket/task. If one exists, use /workspace-execute or /workspace-show-status instead. Creates workspace with README, clones repos, and plans TODO items via agents.
Add, remove, or modify TODO items
Review code changes and generate review reports
Continue working on an existing workspace by executing TODO items. Implements code, runs tests, makes commits. Use when the user wants to resume or continue work on a previously initialized workspace, or after /workspace-init completes.
List all existing workspaces. Use to check if a workspace already exists for a given ticket or task before creating a new one with /workspace-init.
| name | workspace-create-or-update-pr |
| description | Create or update pull requests for all repositories (draft by default) |
This skill creates or updates pull requests for all repositories in a workspace by delegating to the workspace-repo-create-or-update-pr agent for each repository.
Default behavior: PRs are created as draft unless explicitly requested otherwise.
Paths: Use relative paths from project root for all workspace file operations (see CLAUDE.md for details).
This skill receives $ARGUMENTS from the caller. Parse to extract:
workspace/{workspace-name} or just {workspace-name}--no-draft to create non-draft PRs (default: draft)workspace/feature-user-auth-20260116feature-user-auth-20260116 --no-draftIf workspace is not specified in $ARGUMENTS, abort with message:
Please specify a workspace. Example:
/workspace-create-or-update-pr workspace/feature-user-auth-20260116
Find all repository worktrees in the workspace:
./.claude/scripts/list-workspace-repos.sh {workspace-name}
For each repository in the workspace, use the Task tool to launch the workspace-repo-create-or-update-pr agent in background:
Task tool:
subagent_type: workspace-repo-create-or-update-pr
model: sonnet
run_in_background: true
prompt: |
Workspace: {workspace-name}
Repository: {org/repo-path}
Base Branch: {base-branch}
Draft: {true|false}
What the agent does (defined in agent, not by prompt):
Important: Launch agents in parallel if there are multiple repositories.
Do NOT wait for agents to complete. Proceed immediately to Step 3.
Report the launched agents to the user immediately.
User: Create PRs for my workspace
Assistant: Let me identify the workspace and create PRs...
[Identifies 2 repositories, launches 2 PR agents in background]
Launched 2 PR agents in background (draft mode).
PR URLs will be available when agents complete.
User: Update the PR with my latest changes
Assistant: I'll update the existing PR...
[Launches 1 PR agent in background]
Launched 1 PR agent in background.
PR URL will be available when agent completes.
User: Create a PR for workspace/feature-user-auth-20260116, not as draft
Assistant: I'll create a non-draft PR...
[Launches 1 PR agent in background with draft=false]
Launched 1 PR agent in background (non-draft mode).
PR URL will be available when agent completes.
After launching PR agents, report directly to the user immediately (do NOT wait for agents to complete):
/workspace-show-status {workspace-name} to monitor progressWhen all background agents have completed (confirmed via <task-notification>), use AskUserQuestion to let the user choose the next action:
AskUserQuestion:
question: "All PR agents have completed. What would you like to do next?"
header: "Next step"
options:
- label: "/workspace-show-status (Recommended)"
description: "Check PR URLs and status"
- label: "Done"
description: "No further action needed"
After the user selects an option, invoke the corresponding skill with the workspace name as argument (if applicable). Do NOT invoke other skills automatically before asking.
workspace/{name}/tmp/ during creation