Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计提醒

kata-add-issue卡塔添加问题

Agent Skill

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

总安装

442

周安装

19

GitHub Stars

1

下载量

155
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/gannonh/kata-skills --skill kata-add-issue

简介

kata-add-issue 用于围绕 GitHub 仓库、Issue、Pull Request 等协作流程提供辅助能力。

  • 适合查询项目状态、整理变更、辅助创建或检查协作事项,并将信息转为可执行步骤。
  • 使用时需区分只读查询与写入操作,涉及修改时需确认 token 权限和仓库范围。
  • 创建 PR、修改 Issue 或访问私有仓库时应核实用户授权和操作边界。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Enables "thought -> capture -> continue" flow without losing context or derailing current work.

Display:

Note: "todos" are now "issues". Using /kata-add-issue.

Then proceed with the action (non-blocking).

if [ -d ".planning/todos/pending" ] && [ ! -d ".planning/todos/_archived" ]; then
  # Create new structure
  mkdir -p .planning/issues/open .planning/issues/closed

  # Copy pending todos to open issues
  cp .planning/todos/pending/*.md .planning/issues/open/ 2>/dev/null || true

  # Copy done todos to closed issues
  cp .planning/todos/done/*.md .planning/issues/closed/ 2>/dev/null || true

  # Archive originals
  mkdir -p .planning/todos/_archived
  mv .planning/todos/pending .planning/todos/_archived/ 2>/dev/null || true
  mv .planning/todos/done .planning/todos/_archived/ 2>/dev/null || true

  echo "Migrated todos to issues format"
fi

Migration is idempotent: presence of _archived/ indicates already migrated.

Note existing areas for consistency in infer_area step.

Without arguments: Analyze recent conversation to extract:

  • The specific problem, idea, or task discussed
  • Relevant file paths mentioned
  • Technical details (error messages, line numbers, constraints)

Formulate:

  • title: 3-10 word descriptive title (action verb preferred)
  • problem: What's wrong or why this is needed
  • solution: Approach hints or "TBD" if just an idea
  • files: Relevant paths with line numbers from conversation
  • provenance: (optional) Origin of the issue - "local" (default), "github:owner/repo#N", or other external reference
Path patternArea
src/api/*, api/*api
src/components/*, src/ui/*ui
src/auth/*, auth/*auth
src/db/*, database/*database
tests/*, __tests__/*testing
docs/*docs
.planning/*planning
scripts/*, bin/*tooling
No files or uncleargeneral

Use existing area from step 2 if similar match exists.

If potential duplicate found:

  1. Read the existing issue
  2. Compare scope

If overlapping, use AskUserQuestion:

  • header: "Duplicate?"
  • question: "Similar issue exists: [title]. What would you like to do?"
  • options:

- "Skip" - keep existing issue - "Replace" - update existing with new context - "Add anyway" - create as separate issue

Generate slug from title (lowercase, hyphens, no special chars).

Write to .planning/issues/open/${date_prefix}-${slug}.md:

---
created: [timestamp]
title: [title]
area: [area]
provenance: [provenance or "local"]
files:
  - [file:lines]
---

## Problem

[problem description - enough context for future Claude to understand weeks later]

## Solution

[approach hints or "TBD"]
GITHUB_ENABLED=$(node scripts/kata-lib.cjs read-config "github.enabled" "false")

If GITHUB_ENABLED=false: Log "Local-only issue (GitHub integration disabled)" and skip to next step.

If GITHUB_ENABLED=true:

  1. Check if already synced:

- Read the just-created local file's frontmatter - If provenance already contains github:, skip (already synced)

  1. Create backlog label (idempotent): gh label create "backlog" --description "Kata backlog issues" --force 2>/dev/null || true
  2. Build issue body file: Write to /tmp/issue-body.md: ` ## Problem [problem section from local file] ## Solution [solution section from local file] --- _Created via Kata /kata-add-issue_ `
  3. Create GitHub Issue: ISSUE_URL=$(gh issue create \ --title "$TITLE" \ --body-file /tmp/issue-body.md \ --label "backlog" 2>/dev/null)
  4. Extract issue number and update provenance: if [-n "$ISSUE_URL"]; then ISSUE_NUMBER=$(echo "$ISSUE_URL" | grep -oE '[0-9]+$') REPO_NAME=$(gh repo view --json nameWithOwner --jq '.nameWithOwner' 2>/dev/null) # Update local file's frontmatter with provenance # provenance: github:owner/repo#N fi
  5. Update local file frontmatter:

- Read the local issue file - Replace provenance: local with provenance: github:${REPO_NAME}#${ISSUE_NUMBER} - Write updated file

Non-blocking error handling: All GitHub operations are wrapped to warn but continue on failure. Local file creation is never blocked by GitHub failures.

if ! gh auth status &>/dev/null; then
  echo "Warning: gh CLI not authenticated. GitHub sync skipped."
fi
  1. Count issues: find.planning/issues/open -maxdepth 1 -name "*.md" 2>/dev/null | wc -l
  2. Update "### Pending Issues" under "## Accumulated Context"

Check planning config:

COMMIT_PLANNING_DOCS=$(node scripts/kata-lib.cjs read-config "commit_docs" "true")
git check-ignore -q .planning 2>/dev/null && COMMIT_PLANNING_DOCS=false

If COMMIT_PLANNING_DOCS=false: Skip git operations, log "Issue saved (not committed - commit_docs: false)"

If COMMIT_PLANNING_DOCS=true (default):

git add .planning/issues/open/[filename]
[ -f .planning/STATE.md ] && git add .planning/STATE.md
git commit -m "$(cat <<'EOF'
docs(issue): capture issue - [title]

Area: [area]
EOF
)"

Confirm: "Committed: docs(issue): capture issue - [title]"

[title] Area: [area] Files: [count] referenced GitHub: #[number] (if synced, otherwise "local only")


Would you like to:

  1. Continue with current work
  2. Add another issue
  3. View all issues (/kata-check-issues)
</step>

</process>

<output>
- `.planning/issues/open/[date]-[slug].md`
- Updated `.planning/STATE.md` (if exists)
- GitHub Issue #N with `backlog` label (if github.enabled=true)
</output>

<anti_patterns>
- Don't create issues for work in current plan (that's deviation rule territory)
- Don't create elaborate solution sections - captures ideas, not plans
- Don't block on missing information - "TBD" is fine
</anti_patterns>

<success_criteria>
- [ ] Directory structure exists
- [ ] Issue file created with valid frontmatter
- [ ] Problem section has enough context for future Claude
- [ ] No duplicates (checked and resolved)
- [ ] Area consistent with existing issues
- [ ] STATE.md updated if exists
- [ ] Issue and state committed to git
- [ ] GitHub Issue created with backlog label (if github.enabled=true)
- [ ] Provenance field set in local file (if GitHub synced)
</success_criteria>

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

展示第三方安全扫描或审计结果

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

平台分布

Codex

38%
按下载量换算59

Claude

29.05%
按下载量换算45

Cursor

17.39%
按下载量换算27

Gemini CLI

9.68%
按下载量换算15

安全审计

Gen Agent Trust Hub

可疑

Socket

可疑

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

来源信息

继续浏览同类 Skills