首页/ AI 技能 / @skilllib/skill-2014279379184988162
Skill站外收录 @skilllib/skill-2014279379184988162

create-issue

自动化创建符合用户故事规范的 GitHub 工单,包含角色化需求描述、可验证的验收条件,并自动关联至 TicketDAO 项目看板,设置优先级与规模标签,同时适配当前用户权限完成指派与类型配置。

0.0 (0) 236 次安装 原作者 编程导航
收录于 2026-01-22

Skills.MD

# Create GitHub Issue Creates a well-structured GitHub issue in tradingstrategy-ai/frontend with sensible defaults. ## Defaults | Setting | Default | | ---------- | --------------------------------- | | Assignee | Current GH user (if write access) | | Issue Type | Feature | | Project | TicketDAO (#2), status: Todo | | Labels | `priority: P1`, `size: S` | ## Information Gathering Prompt the user for: 1. **User Story**: Who (persona), What (capability), Why (benefit - preferred) 2. **Acceptance Criteria**: Clear, testable conditions. Use gherkin (Given/When/Then) when it improves clarity. Optional: Background context, attachments, or default overrides. ## Issue Body Format ```markdown # Goal As a [who], I want [what], so that [why]. ## Acceptance Criteria 1. [Condition] 2. [Condition] ## Background [Optional context] ``` ## Creating the Issue ### Step 1: Determine assignee Run: `scripts/get-assignee.sh` Returns the current GH user if they have write access, empty otherwise. ### Step 2: Create the issue ```bash gh issue create \ --repo tradingstrategy-ai/frontend \ --title "<brief summary from user story>" \ --body "<formatted markdown body>" \ --label "priority: P1" \ --label "size: S" \ --assignee "<result from step 1, omit flag if empty>" ``` Parse the issue number from the returned URL for use in subsequent steps. ### Step 3: Set issue type ```bash # Get Feature type ID TYPE_ID=$(scripts/get-issue-type-id.sh Feature) # Get issue node ID (use issue number from step 2) ISSUE_NODE_ID=$(scripts/get-issue-node-id.sh <ISSUE_NUMBER>) # Set the type scripts/set-issue-type.sh "$ISSUE_NODE_ID" "$TYPE_ID" ``` ### Step 4: Add to project ```bash scripts/add-to-project.sh "<ISSUE_URL>" Todo ``` If prompted about project scope, user should run: `gh auth refresh -s project` ### Step 5: Report results Confirm: issue URL, assignee, labels, type, project status. ## Error Handling - Project scope missing: prompt `gh auth refresh -s project` - Issue type fails: inform user to set manually - Always preview and confirm before creating

评论 0

还没有评论,来抢沙发。