用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/sters/ai-workspace --skill workspace-create-or-update-pr命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
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
基于 SOC 职业分类
正在显示 SKILL.md
| 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 agent in background:
workspace-repo-create-or-update-prTask 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