phase-issue
Generates a Phase-N tracking issue. Assembles a structured issue body containing cross-session handoff context, a decisions table, per-PR tasks, DoD, and the Phase N+1 outlook, then files it with gh issue create. Supports a non-interactive mode where all items are passed as arguments, and an interactive mode (Claude Code companion) that fills in whatever is missing.
- License 许可
- MIT
- 所属仓库
- ozzy-labs/skills
- 最近更新
- 2026-07-13
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- phase-issue
- description
- Generates a Phase-N tracking issue. Assembles a structured issue body containing cross-session handoff context, a decisions table, per-PR tasks, DoD, and the Phase N+1 outlook, then files it with gh issue create. Supports a non-interactive mode where all items are passed as arguments, and an interactive mode (Claude Code companion) that fills in whatever is missing.
02 资源文件 1
- 参考文档SKILL.claude-code.md3.3 KB
03 SKILL.md 正文
phase-issue - Phase-N tracking issue generation
Hardcodes the structure of the Phase-N tracking issue (cross-session handoff context + decisions table + per-PR tasks + DoD + Phase N+1 outlook) that recurs across ozzy-labs, and deterministically assembles the issue body from content gathered via arguments or interactively. Files it with gh issue create --body-file, or, when --draft is specified, outputs it to stdout.
This skill is self-contained through filing. It does not integrate with drive or auto-number the Phase number (out of scope).
Input
phase-issue <phase-number> "<title>"
--description "..." (project description)
--refs "owner/repo1,owner/repo2" (reference implementations, comma-separated)
--donts "..." (things not to do, newline-separated)
--decisions-file <path> (decisions YAML/Markdown file)
--tasks-file <path> (per-PR tasks file)
--dod "..." (Definition of Done, newline-separated)
--outlook "..." (Phase N+1 outlook)
--related "..." (related issue/PR/ADR, newline-separated)
--label "<label>" (issue label; default: "chore")
--repo "<owner/repo>" (target repo to file in; defaults to the current repo)
--draft (output the body to stdout instead of filing)
Required arguments
<phase-number>: an integer (e.g.0,1,2)<title>: a quoted string (e.g."agentic-watch foundation")
Handling optional arguments (non-interactive mode)
The canonical SKILL.md operates on a non-interactive premise. If an optional argument is missing, the corresponding section is omitted from the body (not filled with a placeholder). If you want to interactively gather the missing items, use the Claude Code companion (SKILL.claude-code.md).
If --decisions-file and --tasks-file are specified, transcribe the file contents as-is into the corresponding section (no parsing or formatting — the user's content is expected to already be markdown-formatted).
Hardcoded section structure
The issue body is built with the following section structure. The order is fixed and must not change:
# Phase {{N}}: {{title}}
## Cross-session handoff
このセクションは新しいセッション/エージェントが本 issue を読んだだけで作業を引き継げるよう、必要な context を集約する。
- **プロジェクト概要:** {{description}}
- **参考実装:** {{refs (linked)}}
- **やってはいけないこと:** {{donts (bulleted)}}
## 決定事項
{{decisions-file の内容、または "(TBD)"}}
## タスク(PR ごと)
{{tasks-file の内容、または "(TBD)"}}
## Definition of Done
{{dod (bulleted)}}
## Phase {{N+1}} outlook
{{outlook、または "(未定)"}}
## 関連
{{related (bulleted)}}
Per-section formatting rules
- Cross-session handoff:
- If
--descriptionis absent, do not use(未記入)— instead omit the line entirely (do not emit the bulleted item) - Expand
--refs's comma-separated values into a bulleted list, and linkifyowner/repotohttps://github.com/owner/repo - Expand
--donts's newline-separated values into a bulleted list - If all three items are empty, omit the
## Cross-session handoffsection itself
- If
- 決定事項 / タスク(PR ごと): If no file is specified, set the section body to
(TBD)(keep the section itself). In a Phase issue, decisions and tasks form the skeleton, so leave a placeholder even when unfilled to prompt a later follow-up - DoD: Expand newline-separated values into a
- [ ] itemstyle checkbox list. If empty, use(TBD) - Phase N+1 outlook: Transcribe the string as-is. If empty, use
(未定) - 関連: Expand newline-separated values into a bulleted list.
#N/owner/repo#N/ URL are all acceptable (do not linkify — keep the original text). If empty, omit the section
Marker block note
Always embed the following HTML comment at the top of cross-session handoff. It functions as an anchor for future regeneration/updates by phase-issue:
<!-- phase-issue:v1 phase=N -->
v1 is the format version of the body this skill generates. Bump it when the schema changes.
Steps
1. Argument parsing
- Obtain
<phase-number>and<title>. Both are required. If missing, display an error and abort - Parse the options. If the same option is specified more than once, use the last one
- If
--decisions-file/--tasks-fileare specified, verify the file exists and is readable. On failure, display an error and abort
2. Body assembly
- Assemble the body according to the hardcoded section structure
- Replace the placeholders
{{N}}/{{title}}/{{N+1}}with their actual values - Following the per-section formatting rules, appropriately distinguish between omitting an empty section / TBD / 未定
- Insert the marker block at the top of cross-session handoff
3. Filing the issue or outputting to stdout
- When
--draftis specified:- Output the body to stdout
- Do not call the
ghcommand
- When
--draftis not specified:- Write the body to a temporary file
- Run
gh issue create --title "Phase {{N}}: {{title}}" --label "<label>" --body-file <tmp> - If
--repois specified, pass the--repoargument to gh - On successful filing, display the issue URL
4. Completion report
phase-issue complete:
Title: Phase <N>: <title>
Filed to: <repo>
Issue: <URL> (when --draft is specified: "(output to stdout)")
Notes
- Optional items not passed as arguments are either omitted from the body or filled with TBD. Claude does not fill in content by imagination
- If the
ghCLI is unauthenticated, display an error message and abort --draftmode has no external side effects (no file writes, noghcalls)- Titles are assumed to be wrapped in double quotes. Shell escaping on the command side is the caller's responsibility
- The canonical SKILL.md operates on a non-interactive premise. If you want to gather items interactively, use the Claude Code companion
- Does not learn style from past issues: the section structure is fixed within SKILL.md (a learning mechanism would cost more to implement than it's worth)
- Does not auto-number the Phase number: the caller specifies
<phase-number>explicitly - Does not integrate with drive: phase-issue is self-contained through filing. Splitting/implementing the generated issue is handled separately via drive
04 同仓库更多 Skills
verify
An integrated skill that runs the combined validation of build / typecheck / test / lint in one shot. The `verify.mjs` engine auto-discovers validation commands via a discovery chain (AGENTS.md's 「検証」 section → package.json scripts → justfile/Makefile/lefthook → language heuristics), executes them serially with their source attached, and returns a result summary. If a higher-priority stage produces a hit, only that stage is executed (no crossing stages).
usage-guard
Monitors Claude Code's Usage Limit (5-hour = Current / weekly = Weekly), pauses work when it exceeds 95%, and automatically resumes once the reset restores headroom. Bundles an engine form that a caller such as drive Reads at a checkpoint, and a standalone form, `/usage-guard "<continuation command>"`, that guards arbitrary work. Claude-only (depends on the OAuth usage-rate endpoint + ScheduleWakeup).
topics
Selects GitHub topic candidates by having the `topics.mjs` engine perform constraint validation, popularity measurement, broad+narrow / singular-plural comparison, and hardcoded ozzy-labs conventions, then applies them via `gh repo edit --add-topic` following the policy's `externally-visible` gate (default batch-confirm). Scope is limited to use within ozzy-labs.
skill-observability
Defines the skill observability event contract (event.schema.json) and emit substrate (obs-emit.mjs). The SSOT for the measurement layer of the skill improvement loop. Referenced by other skills and hooks.
skill-metrics
Aggregates the local observability event log (~/.agents/observability/events.jsonl) and presents, read-only, per-skill invocation counts and notable events (fallback / HITL rejection / loop cap reached / abort). Fires on "show me the skill metrics," "aggregate the observability results," "which skills get used the most?" Does not send anything.
ship
Runs verification, commit, and PR creation all at once. An integrated pipeline that runs verify (build + type + test + lint) → commit → PR creation in sequence against the changes.