跳到正文
Skillpedia
任务与项目6.3k · #14354

publish

它能做什么

这项技能根据已保存的规格创建 GitHub 议题,包括一个史诗议题及其任务议题。适合在 GitHub 中管理工作、并希望把规格拆分为可跟踪事项的团队。

适用场景

  • ✓当你有一份完成的规格,并希望把工作记录为 GitHub 议题时。
  • ✓当你想为规格的每个部分创建一个包含任务列表的史诗议题时。
  • ✓当你的团队在 GitHub 中规划工作,需要把规格加入其中的时候。

技能链接

https://github.com/Q00/ouroboros/blob/main/skills/publish/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/Q00/ouroboros/blob/main/skills/publish/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请帮我把最新保存的规格发布到 GitHub,作为一个史诗议题,并为每个部分创建一个任务议题。”

每周 5 个新技能,1 分钟读完。

工作原理

这项技能找到已保存的规格文件,读取其目标、约束和标准,并使用 GitHub 命令行工具创建新议题。它不会修改已经存在的议题。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

/ouroboros:publish

Convert a Seed into a GitHub Epic issue plus Task issues. Works entirely through the gh CLI (no MCP), creates new issues only, and never modifies existing ones.

ooo publish [seed_path]
/ouroboros:publish [seed_path]

Instructions

Run commands with the active runtime's run_shell capability and ask every question with the active runtime's ask_user capability.

Step 1: Prerequisites

Run command -v gh. If missing, tell the user to install it from https://cli.github.com/ and stop. Run gh auth status; if not authenticated, tell the user to run gh auth login and stop.

Step 2: Locate the Seed

Seeds live in ~/.ouroboros/seeds/: interview Seeds as {seed_id}.yaml, PM Seeds as pm_seed_{id}.json. In priority order:

  1. An explicit .yaml or .json path argument.
  2. The most recent files from ls -t ~/.ouroboros/seeds/*.yaml ~/.ouroboros/seeds/*.json 2>/dev/null | head -5; if several exist, ask the user to choose.
  3. A Seed path reported by ooo seed or ooo pm earlier in this conversation.

If none is found, tell the user to run ooo seed or ooo pm first, and stop.

Step 3: Parse the Seed

Detect the format by extension. Omit any section whose field is missing or empty rather than failing.

YAML Seed (ooo interview + ooo seed):

Field Use
goal Epic title and Goal section
constraints Constraints section
acceptance_criteria Epic checklist, distributed to Task issues
ontology_schema Ontology table (field, type, description)
evaluation_principles Evaluation Principles table (name, weight, description)
exit_conditions Exit Conditions (Definition of Done)
metadata.ambiguity_score Confidence indicator
metadata.seed_id Duplicate detection

JSON PM Seed (ooo pm, PMSeed schema):

Field Use
pm_id Duplicate detection
product_name Epic title prefix
goal Goal section
constraints Constraints section
success_criteria Acceptance Criteria checklist
user_stories User Stories, each as "As a {persona}, I want to {action}, so that {benefit}."
deferred_items Deferred Items section
decide_later_items Open Questions section
assumptions Assumptions section

Step 4: Target repository

Run gh repo view --json nameWithOwner -q '.nameWithOwner' 2>/dev/null. If it returns a repo, ask whether to publish there or to another owner/repo; otherwise ask for owner/repo. Store the answer as TARGET_REPO. Every later gh command MUST include -R <TARGET_REPO>.

Step 5: Duplicate check

gh issue list -R <TARGET_REPO> --label "ouroboros" --state all --search "<seed_id or pm_id>" --limit 5 --json number,title,state

This finds earlier publishes because the Epic body records the Seed ID (Step 7). If matches exist, list them and ask whether to create anyway or cancel; on cancel, stop.

Step 6: Plan the issues

Group the acceptance criteria into logical implementation units (by feature area, layer, or dependency order); each unit becomes one Task. Show the plan (Epic goal summary, then each Task title and brief scope) and ask whether to create the issues or modify the plan. On modify, ask what to change, adjust, and show it again.

Step 7: Create the issues

gh issue create prints the issue URL; take the number from its trailing digits (grep -o '[0-9]*$'). Pass bodies through a quoted heredoc (--body "$(cat <<'BODY' ... BODY)").

  1. Create labels, ignoring "already exists":
    gh label create "ouroboros" -R <TARGET_REPO> --description "Created by Ouroboros publish" --color "6f42c1" 2>/dev/null || true
    gh label create "epic" -R <TARGET_REPO> --description "Epic / parent issue" --color "0075ca" 2>/dev/null || true
    gh label create "task" -R <TARGET_REPO> --description "Implementation task" --color "008672" 2>/dev/null || true
    
  2. Epic: title [Epic] <goal summary>, labels ouroboros,epic. Body: the Step 3 sections in order (Goal, Constraints, Acceptance Criteria as - [ ] items, Ontology, Evaluation Principles, Exit Conditions, plus the PM-only sections), then this footer:
    ---
    
    **Seed ID**: `<seed_id or pm_id>` | **Ambiguity Score**: <score> | **Seed**: `<seed_file_path>`
    *Generated by [Ouroboros](https://github.com/Q00/ouroboros) via `ooo publish`*
    
  3. Each Task: title [Task] <task title>, labels `ouroboros,tas
常见问题

使用前需要准备什么?

你需要先安装并登录 GitHub 命令行工具。

它会修改已有的议题吗?

不会。描述中说明,它只创建新议题,从不修改已有议题。

它在哪里找规格?

它会在 Ouroboros 的种子规格文件夹中查找,也可以使用你提供的规格路径。

详情

作者的原始描述

Publish Seed specification as GitHub Issues for team-based project management

repo: Q00/ouroboros

热度

GitHub 星标
6.3k
排名
#14354
许可证
MIT
更新时间
2026/11/1

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能