用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/wp-media/maestro --skill sprint命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | sprint |
| description | Plan and estimate issues for a sprint — capacity planning, story points, HTML report. |
Read .claude/maestro.json:
{REPO} = .ai.repo{DISPLAY_NAME} = .ai.display_name{TEMP_ROOT} = .ai.temp_rootAsk the user:
Total Capacity (Story Points) = Team Size × 8 SP per developer
2 weeks × 5 days/week = 10 working days per dev.
Accounting for reviews, meetings, and overhead: ~8 SP per dev per sprint.
Example: 2 devs → 16 SP, 3 devs → 24 SP.
gh api "repos/{REPO}/issues" \
--method GET \
-f state=open \
-f per_page=100 \
--paginate \
--jq '.[] | select(.assignee == null) | {number: .number, title: .title, body: .body, labels: [.labels[].name], milestone: .milestone.title}'
Filter criteria:
opennull (unassigned only)If a milestone was specified, keep only issues whose milestone matches. Otherwise include all.
For each issue, analyze title + first 200 chars of body using these heuristics:
| Pattern | Base Points | Notes |
|---|---|---|
| "typo", "wording", "rename", single-file scope | 1 SP | Trivial |
| Simple fix/enhancement, 1–2 files, well-defined | 2 SP | Low |
| Feature or refactor, 3–5 files, standard | 3 SP | Medium |
| Architecture change, 6+ files, complex | 5 SP | High |
| "Rewrite", "overhaul", cross-module, major | 8 SP | Huge |
Has fix: prefix or bug label | −1 SP (min 1) | Bugs tend to be tighter |
Has priority:critical or critical label | +1 SP | May be more involved |
If scope is truly ambiguous, default to 3 SP. Don't overthink it — this is a heuristic, not a spec.
Sort in this order:
priority:critical + bug label)priority:high + bug label)Add issues in priority order until total story points reach 100% of sprint capacity. Reserve roughly 15–20% of the budget for tech debt.
Identify 2–3 overflow high-priority issues that didn't fit, for discussion.
Write to: {TEMP_ROOT}/sprint/sprint-shortlist-YYYY-MM-DD-HHMM.html
Create the directory if needed. Use the current date/time for the filename.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Sprint Planner — {DISPLAY_NAME}</title>
<style>
body { font-family: -apple-system, BlinkMacSystemFont, sans-serif; padding: 20px; background: #f5f5f5; }
.container { max-width: 1000px; margin: 0 auto; background: white; padding: 30px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
h1 { color: #333; border-bottom: 3px solid #0066cc; padding-bottom: 10px; }
h2 { color: #555; margin-top: 30px; }
table { width: ; : collapse; : ; }
{ : ; : white; : ; : left; }
{ : ; : solid ; }
{ : ; }
{ : ; : solid ; : ; : ; }
{ : grid; : (, fr); : ; : ; }
{ : ; : ; : ; : center; }
{ : ; : ; }
{ : ; : bold; : ; }
{ : ; : ; : ; }
{ : solid ; }
{ : solid ; }
{ : solid ; }
{ : ; : ; : solid ; : ; : ; }
Sprint Planner — {DISPLAY_NAME}
Sprint Parameters:
Repository: {REPO}
Team Size: [TEAM_SIZE] developers
Duration: 2 weeks (10 working days)
Total Capacity: [CAPACITY] Story Points
Target Milestone: [MILESTONE or "All Open Backlog"]
Generated: [TIMESTAMP]
Capacity Allocation
Bugs
[BUG_POINTS] SP
[BUG_PCT]% of budget
Features
[FEATURE_POINTS] SP
[FEATURE_PCT]% of budget
Tech Debt
[DEBT_POINTS] SP
[DEBT_PCT]% of budget
Proposed Shortlist ([TOTAL_ISSUES] issues, [TOTAL_SP] / [CAPACITY] SP)
Issue
Title
Type
Estimated Effort
Points
[ISSUES_TABLE_ROWS]
High-Priority Overflow (didn't fit this sprint)
[LEFTOVER_ISSUES]
Lightweight effort estimation — review during sprint planning for scope adjustments.
Repo: {REPO} · Generated by Maestro sprint
Replace placeholders with actual data before writing:
[TEAM_SIZE], [CAPACITY], [MILESTONE], [TIMESTAMP] — from user input and current time[BUG_POINTS], [FEATURE_POINTS], [DEBT_POINTS], [BUG_PCT], [FEATURE_PCT], [DEBT_PCT] — from tally[TOTAL_ISSUES], [TOTAL_SP] — final counts[ISSUES_TABLE_ROWS] — one <tr> per shortlisted issue with class issue-row-bug, issue-row-feature, or issue-row-debt[LEFTOVER_ISSUES] — bulleted list of overflow issues with links to https://github.com/{REPO}/issues/<N>Tell the user:
gh CLI for GitHub API calls — relies on the user's stored auth token