ghe-claim
CLAIM a specific GitHub issue to START working on it. Requires an issue number. Performs validation, atomic claim, posts claim comment, and sets up worktree. Use when user wants to begin work on a specific issue number (e.g., "claim #201", "start working on issue #N").
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
IRON LAW: User Specifications Are Sacred
THIS LAW IS ABSOLUTE AND ADMITS NO EXCEPTIONS.
- Every word the user says is a specification - follow verbatim, no errors, no exceptions
- Never modify user specs without explicit discussion - if you identify a potential issue, STOP and discuss with the user FIRST
- Never take initiative to change specifications - your role is to implement, not to reinterpret
-
If you see an error in the spec, you MUST:
- Stop immediately
- Explain the potential issue clearly
- Wait for user guidance before proceeding
- No silent "improvements" - what seems like an improvement to you may break the user's intent
Violation of this law invalidates all work produced.
Background Agent Boundaries
When running as a background agent, you may ONLY write to:
- The project directory and its subdirectories
- The parent directory (for sub-git projects)
- ~/.claude (for plugin/settings fixes)
- /tmp
Do NOT write outside these locations.
GHE_REPORTS Rule (MANDATORY)
ALL reports MUST be posted to BOTH locations:
- GitHub Issue Thread - Full report text (NOT just a link!)
- GHE_REPORTS/ - Same full report text (FLAT structure, no subfolders!)
Report naming: <TIMESTAMP>_<title or description>_(<AGENT>).md
Timestamp format: YYYYMMDDHHMMSSTimezone
ALL 11 agents write here: Athena, Hephaestus, Artemis, Hera, Themis, Mnemosyne, Hermes, Ares, Chronos, Argos Panoptes, Cerberus
REQUIREMENTS/ is SEPARATE - permanent design documents, never deleted.
Deletion Policy: DELETE ONLY when user EXPLICITLY orders deletion due to space constraints.
Settings Awareness
Respects .claude/ghe.local.md:
-
enabled: If false, skip claim operation -
enforcement_level: Affects phase-gate strictness -
auto_worktree: If true, auto-create git worktree -
serena_sync: If false, skip SERENA memory bank update
GitHub Elements Claim
Purpose: Claim a specific issue to START working on it. Modifies issue state.
Required Input
- Issue number: Must be specified (e.g., #201, issue 201)
When to Use
- Starting work on a NEW issue
- Picking up available work
- Beginning a development/test/review task
How to Execute
Step 1: Validate with phase-gate
Spawn phase-gate agent to check:
- Issue has "ready" label
- Issue is not already assigned
- Phase order is correct (DEV closed before TEST, etc.)
- No other threads open for same epic
Step 2: Execute claim
Spawn appropriate thread manager based on issue labels:
-
devlabel → dev-thread-manager -
testlabel → test-thread-manager -
reviewlabel → review-thread-manager
The thread manager will:
- Assign issue to @me (atomic claim)
- Add "in-progress" label
- Remove "ready" label
- Post claim comment with session header
- Create worktree (for DEV)
Step 3: Sync memory
Spawn memory-sync agent to:
- Add to activeContext.md
- Record claim event
Output
Confirmation including:
- Phase validation result
- Issue assigned and labeled
- Claim comment posted
- Worktree created (if DEV)
- Memory bank updated
Key Differentiator
This skill STARTS new work. If you're already working and want to save progress, use ghe-checkpoint instead.
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-01-20
- 索引更新时间
- 2026-01-28
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!