← 返回 Skills 市场
djc00p

GitHub Issue Writer

作者 Deonte Cooper · GitHub ↗ · v1.0.1 · MIT-0
linuxdarwinwin32 ✓ 安全检测通过
37
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install gh-issue-writer
功能描述
Draft well-structured GitHub issues from a description, error, or idea. Supports bug reports, feature requests, enhancements, and tasks. Optionally submits d...
使用说明 (SKILL.md)

gh-issue-writer

Draft clear, actionable GitHub issues from a brief description, error message, or idea. Covers bug reports, feature requests, enhancements, and tasks.


Step 1 — Understand the Input

Ask (or infer from context):

  1. What type of issue? Bug | Feature Request | Enhancement | Task | Question
  2. What repo? (detect from git remote get-url origin if in a git dir, otherwise ask)
  3. What happened / what's wanted? (the raw description, error, or idea)
  4. Optional: Labels, assignee, milestone, environment details

If the user gives you enough context, proceed without asking — draft and show for confirmation.


Step 2 — Draft the Issue

Use the appropriate template below. Fill every field; omit sections only if genuinely not applicable.

Bug Report

## Description
\x3C!-- Clear, one-paragraph summary of the problem. -->

## Steps to Reproduce
1.
2.
3.

## Expected Behavior
\x3C!-- What should have happened? -->

## Actual Behavior
\x3C!-- What actually happened? Include error messages verbatim. -->

## Environment
- OS:
- Browser / Runtime / Version:
- Relevant config or dependencies:

## Logs / Screenshots
\x3C!-- Paste relevant logs, stack traces, or attach screenshots. -->

## Additional Context
\x3C!-- Anything else that might help: related issues, recent changes, workarounds tried. -->

Feature Request

## Problem / Motivation
\x3C!-- What problem does this solve? Why does it matter? -->

## Proposed Solution
\x3C!-- Describe the feature clearly. What would it look like? How would it work? -->

## Alternatives Considered
\x3C!-- Other approaches you thought about and why you ruled them out. -->

## Acceptance Criteria
- [ ]
- [ ]

## Additional Context
\x3C!-- Mockups, related issues, prior art, links. -->

Enhancement (improvement to existing behavior)

## Current Behavior
\x3C!-- What does it do now? -->

## Desired Behavior
\x3C!-- What should it do instead? -->

## Why This Matters
\x3C!-- Impact: who benefits, how much, how often? -->

## Suggested Implementation
\x3C!-- Optional: any technical ideas or constraints. -->

Task / Chore

## What needs to be done
\x3C!-- Clear, specific description of the work. -->

## Why / Context
\x3C!-- Why is this needed now? What does it unblock? -->

## Definition of Done
- [ ]
- [ ]

Step 3 — Write a Strong Title

Title format by type:

Type Pattern Example
Bug Bug: \x3Cwhat fails> on \x3Cwhere> Bug: 500 on POST /login when payload missing field
Feature Feature: \x3Ccapability> for \x3Cwho/where> Feature: CSV export for admin reports
Enhancement Enhance: \x3Cwhat> — \x3Cimprovement> Enhance: error messages — add field-level detail
Task Task: \x3Cverb> \x3Cthing> Task: upgrade Stripe SDK to v16

Rules:

  • Under 72 characters
  • No vague words ("fix thing", "update stuff")
  • Specific: what + where, not just what

Step 4 — Suggest Labels & Metadata

Recommend labels based on type and content:

Signal Suggested Labels
Bug bug, needs-repro
Feature enhancement, feature-request
High impact / blocking priority:high
Needs more info needs-info
Good for contributors good first issue
Security security
Performance performance
Docs documentation

Also suggest:

  • Assignee: who owns this area of the codebase?
  • Milestone: which release or sprint does this target?

Step 5 — Present for Review

Show the complete draft:

**Title:** \x3Ctitle>

**Type:** Bug / Feature / Enhancement / Task
**Suggested labels:** bug, priority:high
**Suggested assignee:** (if known)

---
\x3Cfull issue body>
---

Ask: "Does this look right? I can adjust the title, add details, or submit it directly."


Step 6 — Optional: Submit

Prerequisites for submission:

  • gh CLI (authenticated via gh auth login) — preferred path
  • GH_TOKEN env var — required for the curl API fallback
  • git — used to detect the repo from git remote get-url origin

Drafting (Steps 1–5) works without any of these.

If the user says "submit", "create it", "go ahead", or similar:

Via GitHub CLI (preferred)

gh issue create \
  --repo owner/repo \
  --title "\x3Ctitle>" \
  --body "\x3Cbody>" \
  --label "bug,priority:high" \
  --assignee "@me"

Via GitHub API (fallback if gh isn't available)

curl -s -X POST \
  -H "Authorization: Bearer $GH_TOKEN" \
  -H "Accept: application/vnd.github+json" \
  https://api.github.com/repos/{owner}/{repo}/issues \
  -d '{
    "title": "\x3Ctitle>",
    "body": "\x3Cbody>",
    "labels": ["bug"],
    "assignees": []
  }'

On success, output the issue URL. On error, show the response and offer to retry.


Quality Checklist

Before presenting the draft, verify:

  • Title is specific and under 72 chars
  • For bugs: repro steps are numbered and minimal
  • Expected vs actual behavior is clearly separated
  • Environment section filled (OS, version, runtime)
  • No vague language ("sometimes", "doesn't work", "weird behavior")
  • Logs/errors quoted verbatim, not paraphrased
  • Ends with a clear ask or next step

Tips for Better Issues

Do:

  • Quote error messages exactly — don't summarize them
  • Include the minimal repro — what's the smallest thing that triggers the bug?
  • Link related issues with #\x3Cnumber>
  • Mention what you've already tried

Don't:

  • "Works on my machine" without environment details
  • Multiple unrelated problems in one issue
  • Vague titles like "Login broken" or "Feature request"
  • Screenshot of code instead of pasted text

See Also

安全使用建议
This skill appears to do what it says: draft and optionally submit GitHub issues. Before installing: 1) Only provide a GH_TOKEN with the minimum scope needed (e.g., public_repo or repo scope as appropriate) and avoid granting broader org-level privileges. 2) Be aware the agent may submit issues autonomously if allowed — remove or withhold GH_TOKEN if you want to prevent automatic submissions. 3) The skill may run git commands in the current working directory to detect the repo; avoid running it in directories containing sensitive remotes you don't want queried. 4) Review each draft before asking the skill to submit it (the SKILL.md supports review). If you want tighter control, keep GH_TOKEN offline and only provide it temporarily when you explicitly request submission.
能力评估
Purpose & Capability
The name/description (draft and optionally submit GitHub issues) matches the declared requirements: gh, git, curl and a GH_TOKEN for API fallback. Those binaries and the GH_TOKEN credential are exactly what you'd expect for detecting a repo, creating drafts, and submitting issues.
Instruction Scope
SKILL.md focuses on collecting issue details, generating a formatted issue body, and optionally submitting via the gh CLI or GitHub API. The only system interaction beyond text composition is checking git remote (git remote get-url origin) to infer the repo — which is consistent with the stated behavior. There are no instructions to read unrelated files or exfiltrate data to third-party endpoints.
Install Mechanism
This is an instruction-only skill with no install spec or downloaded code, which minimizes on-disk risk. It relies on existing system tools (gh/git/curl) rather than installing packages.
Credentials
Only GH_TOKEN is identified as the primary credential and is used only for the documented submission fallback via the GitHub API. No unrelated secrets or environment variables are required. The SKILL.md explicitly notes drafting works without credentials and submission requires authentication, which is proportionate.
Persistence & Privilege
The skill is not always-enabled (always:false). However, it can be invoked autonomously (platform default). If a GH_TOKEN with issue-creation privileges is provided and the agent is allowed to invoke skills autonomously, the agent could submit issues without an extra user confirmation — this is expected behavior but something to be aware of.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install gh-issue-writer
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /gh-issue-writer 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
Fix: declare GH_TOKEN as primaryEnv, add git + curl to required bins. Add prerequisite note clarifying drafting works without credentials; only submission requires gh/GH_TOKEN/git.
v1.0.0
Initial release: bug reports, feature requests, enhancements, tasks. Strong title patterns, quality checklist, optional submit via gh CLI or GitHub API.
元数据
Slug gh-issue-writer
版本 1.0.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

GitHub Issue Writer 是什么?

Draft well-structured GitHub issues from a description, error, or idea. Supports bug reports, feature requests, enhancements, and tasks. Optionally submits d... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 37 次。

如何安装 GitHub Issue Writer?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install gh-issue-writer」即可一键安装,无需额外配置。

GitHub Issue Writer 是免费的吗?

是的,GitHub Issue Writer 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

GitHub Issue Writer 支持哪些平台?

GitHub Issue Writer 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(linux, darwin, win32)。

谁开发了 GitHub Issue Writer?

由 Deonte Cooper(@djc00p)开发并维护,当前版本 v1.0.1。

💬 留言讨论