AgentSkillsCN

lazy-issue

使用结构清晰的GitHub问题,结合丰富的调研背景,通过gh CLI创建问题。在被要求创建GitHub问题、提交Bug报告、开启功能请求、上报问题,或以问题形式记录任务时使用。会调研类似实现方案,补充验收标准,并附上代码引用。

SKILL.md
--- frontmatter
name: lazy-issue
description: Create well-structured GitHub issues using the gh CLI with research-enriched context. Use when asked to create a GitHub issue, file a bug report, open a feature request, report a problem, or document a task as an issue. Researches similar implementations, adds acceptance criteria, and includes code references.

Lazy Issue

Create a well-structured GitHub issue. Only create issues in repos owned by us.

Ownership Check

bash
gh auth status
gh org list
git remote -v

If not owned by user or their orgs, DO NOT CREATE — ask how to proceed.

Research Phase

Before creating, search for:

  • Similar implementations in other projects
  • Code examples and patterns
  • Best practices and pitfalls
  • Relevant discussions in similar projects

Enrich issue with links to reference implementations and code snippets.

Issue Components

  • Title: Concise summary ("Add support for..." or "Fix error when...")
  • Problem/Context: What needs to be done or what problem exists
  • Acceptance Criteria: Measurable outcomes defining completion
  • Implementation Details (if applicable):
    • Technical approach
    • Code references with file paths
    • External references and examples
  • Tasks: Checkbox list for multi-step issues

Create Issue

bash
gh issue create --title "Issue title" --body "$(cat <<'EOF'
[issue body]
EOF
)"

Add labels with --label bug or --label enhancement as appropriate.

Clarifying Questions

Use ask_questions tool for:

  • Unclear scope or priority
  • Whether to include implementation details
  • Related issues to reference
  • Appropriate labels