Token导航 LogoToken导航TokenDH.com
待分类权限需确认github未标认证来源可访问许可证需确认审计未展示

github-issue-autodetectGitHub issue autodetect 问题管理

Agent Skill

用于围绕 GitHub 仓库、Issue、Pull Request、分支、提交和代码协作流程提供辅助能力。它适合让 Agent 查询项目状态、整理变更、辅助创建或检查协作事项,并把仓库中的信息转成可执行的下一步。使用时需要区分只读查询和写入操作;涉及创建 PR、修改 Issue、推送分支或访问私有仓库时,应确认 token 权限、目标仓库范围和用户授权。

总安装

196

周安装

8

GitHub Stars

28

下载量

63
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:github-issue-autodetect(GitHub issue autodetect 问题管理)
来源仓库:https://github.com/laurigates/claude-plugins
仓库路径:skills/github-issue-autodetect
安装命令:
npx skills add https://github.com/laurigates/claude-plugins --skill github-issue-autodetect
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/laurigates/claude-plugins --skill github-issue-autodetect

简介

用于自动识别和归类 GitHub 仓库中的 Issue。

  • 基于内容和上下文智能判断 Issue 类型和优先级。
  • 支持多语言处理和模糊匹配算法。github-issue-autodetect 属于待分类类 Skill,可作为该场景下的辅助能力补充。
  • 可集成到开发工作流中实现实时分类。
  • 需要配置模型参数以适应不同项目的命名规范。

SKILL.md

created
2026-01-15
modified
2026-04-25
reviewed
2026-04-25
name
github-issue-autodetect
description
|
user-invocable
false
allowed-tools
Bash, Read, Grep, Glob, mcp__github__list_issues, mcp__github__get_issue

GitHub Issue Auto-Detection

When to Use This Skill

Use this skill when...Use the alternative when...
Suggesting Fixes #N / Closes #N keywords from staged-diff contentUse git-commit-workflow for the broader commit message style
Matching diff hunks against open issues by file path or labelUse github-issue-writing to author or restructure the issue body itself
Inferring proper issue linkage before composing a commit messageUse git-issue-hierarchy for parent/child sub-issue and dependency links
Adding closing keywords mechanically based on issue metadataUse git-commit-trailers for trailer-style metadata (Co-authored-by, Release-As)

Expert guidance for automatically detecting GitHub issues that staged changes may fix or close, ensuring proper issue linkage in commit messages.

Core Expertise

  • Issue Detection: Match staged changes to open issues
  • Keyword Selection: Choose appropriate closing vs reference keywords
  • Context Analysis: Parse issue titles, bodies, and labels for relevance
  • File Path Matching: Correlate changed files to issue descriptions

Detection Workflow

Step 1: Fetch Open Issues

# Get open issues with relevant metadata (using gh CLI)
gh issue list --state open --json number,title,body,labels --limit 50

# Or filter by specific labels for targeted detection
gh issue list --state open --label bug --json number,title,body
gh issue list --state open --label enhancement --json number,title,body

Step 2: Analyze Staged Changes

# Get list of changed files
git diff --cached --name-only

# Get detailed diff for content analysis
git diff --cached

# Get summary of changes
git diff --cached --stat

Step 3: Match Issues to Changes

Analyze staged changes against issues using these heuristics:

SignalWeightExample
File path in issue bodyHighIssue mentions src/auth/login.ts, diff includes that file
Error message matchHighIssue title contains error text found in diff
Component/scope matchMediumIssue labeled auth, changes are in src/auth/
Keyword overlapMediumIssue mentions "login", diff modifies login logic
Function name matchMediumIssue references validateToken(), diff modifies it

Detection Algorithm

For each staged file:
  1. Extract file path components (directory, filename, extension)
  2. Extract modified function/class names from diff
  3. Extract error messages or string literals from diff

For each open issue:
  1. Parse title for keywords, file references, error messages
  2. Parse body for code snippets, file paths, stack traces
  3. Check labels for component/area tags

Score each (file, issue) pair:
  - +3 points: Exact file path match
  - +2 points: Error message or function name match
  - +1 point: Directory/component match
  - +1 point: Keyword overlap (>2 significant words)

Report issues with score >= 2 as potential matches

Keyword Selection Guide

Closing Keywords (Auto-Close on Merge)

Use when the commit fully resolves the issue:

KeywordUse Case
Fixes #NBug fixes - something was broken, now it works
Closes #NFeature completion - requested feature is implemented
Resolves #NGeneral resolution - issue is addressed

Reference Keywords (Link Without Closing)

Use when the commit relates to but doesn't fully resolve:

KeywordUse Case
Refs #NPartial progress toward issue
Related to #NTangentially related changes
See #NContext or discussion reference
Part of #NOne of multiple commits for an issue

Not a keyword: blocking / blocked-by

Blocks #N and Blocked by #N are *relationships*, not commit trailers — GitHub does not parse them from commit messages. If the detected issue is a hard blocker for (or blocked by) the current work, record that through /git:issue-hierarchy --blocked-by N (native dependencies API) rather than adding a line to the commit footer. Keep commit trailers limited to the closing/reference keywords above.

Decision Tree

Is this commit the FINAL fix for the issue?
├─ YES → Is it a bug fix?
│        ├─ YES → Use "Fixes #N"
│        └─ NO → Use "Closes #N"
└─ NO → Does it make progress on the issue?
         ├─ YES → Use "Refs #N"
         └─ NO → Use "Related to #N" or omit

Common Patterns

Bug Fix Detection

# Issue: "Login fails with 'invalid token' error"
# Staged changes in: src/auth/token.ts

# Detection signals:
# - File path: src/auth/* matches "Login" context
# - Error message: "invalid token" may appear in diff
# - Issue label: bug

# Suggested: Fixes #123

Feature Implementation Detection

# Issue: "Add dark mode support"
# Staged changes in: src/theme/dark-mode.ts, src/components/ThemeToggle.tsx

# Detection signals:
# - New files with relevant names
# - Issue label: enhancement
# - Keywords: "dark mode", "theme"

# Suggested: Closes #456

Partial Work Detection

# Issue: "Refactor authentication system"
# Staged changes in: src/auth/oauth.ts (but more work needed)

# Detection signals:
# - File path matches scope
# - Issue is large (multiple sub-tasks in body)
# - Other files mentioned in issue not yet changed

# Suggested: Refs #789

Integration Commands

Quick Issue Scan Before Commit

# One-liner to show relevant issues for staged changes
gh issue list --state open --json number,title,labels --limit 20 | \
  jq -r '.[] | "#\(.number): \(.title)"'

Detailed Issue Analysis

# Get full issue details for matching
gh issue view <number> --json title,body,labels,assignees

# Search issues by keyword
gh issue list --search "keyword in:title,body" --state open

File-Based Issue Search

# Search for issues mentioning specific file
gh issue list --search "filename.ts in:body" --state open

# Search for issues mentioning directory
gh issue list --search "src/auth in:body" --state open

Agentic Optimizations

ContextCommand
Quick issue listgh issue list --state open --json number,title -L 20
Bug issues onlygh issue list --state open --label bug --json number,title
Search by keywordgh issue list --search "keyword" --state open --json number,title
Full issue detailgh issue view N --json title,body,labels

Output Format for Agent

When reporting detected issues, use this format:

Detected potentially related issues:

HIGH CONFIDENCE:
- #123 "Login fails with invalid token" → Fixes #123
  Match: File path src/auth/token.ts, error message match

MEDIUM CONFIDENCE:
- #456 "Improve auth error handling" → Refs #456
  Match: Directory src/auth/, keyword "error"

Suggested commit message footer:
Fixes #123
Refs #456

Best Practices

  1. Always check for related issues before committing
  2. Prefer Fixes over Closes for bug fixes (clearer intent)
  3. Use Refs for partial work to maintain traceability without premature closure
  4. Include multiple references when a commit addresses several issues
  5. Verify issue state - don't reference already-closed issues unless reopening
  6. Cross-reference PRs - issues may already have linked PRs in progress

Edge Cases

No Matching Issues Found

If no open issues match the staged changes:

  • Consider if an issue should be created first (for traceability)
  • For trivial fixes, commit without issue reference is acceptable
  • For significant changes, create issue retroactively and link in PR

Multiple Matching Issues

When several issues relate to the same changes:

# Close all that are fully resolved
Fixes #123, fixes #124, fixes #125

# Or mix closing and reference keywords
Fixes #123
Refs #124, #125

Cross-Repository Issues

# Reference issue in another repository
Fixes owner/other-repo#42

# Common for monorepo or multi-repo projects

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

33.09%
按下载量换算21

Claude

28.21%
按下载量换算18

Cursor

19.09%
按下载量换算12

Gemini CLI

9.97%
按下载量换算6

安全审计

暂无安全审计结果可展示。

权限和风险

权限需确认

当前来源未能明确判断权限范围,默认进入异常复核队列。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills