link-ticket-to-session
仓库创建 2026年1月6日最近提交 5 小时前SkillHot 收录 20 天前
▸ 精选理由
便于在本地追踪会话对应的 issue/PR,操作轻量且只读。
▸ 风险提示
依赖用户已配置的 MCP 服务与外部凭据
这个 Skill 做什么
将当前 Claude Code 会话与 Jira/Linear/GitHub 工单或 PR 关联并缓存元数据。
把当前的 Claude Code 会话和一个 Jira/Linear/GitHub Issue 或 PR 关联起来,并把工单的标题和状态缓存到本地 Karma 里。适合你明确要把当前工作“绑定”到某个票据或 PR 上时用,例如给会话记个票号以便追踪。特别之处是仅做只读缓存展示,不会回写到票据服务,元数据是通过用户已配置的 MCP 服务器抓取的。
▸ 展开 SKILL.md 英文原文
Link the current Claude Code session to a ticket (Linear, Jira, GitHub Issues, or GitHub Pull Requests) and cache its title/status in karma. Use when the user explicitly asks to link, attach, associate, or connect this session to a ticket, issue, or PR — e.g. "/link-ticket-to-session ABC-123", "link this session to LINEAR-42", "associate this work with issue
245
Stars
29
Forks
1
仓库内 Skill
+12
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/JayantDevkar/claude-code-karma/main/skills/link-ticket-to-session/SKILL.md或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/JayantDevkar/claude-code-karma/main/skills/link-ticket-to-session/SKILL.md"SKILL.MD 节选查看完整文件 ↗
You are linking the current Claude Code session (`${CLAUDE_SESSION_ID}`) to: **$ARGUMENTS**
Karma is a read-only observer on the user's machine. It stores the link
and caches title/status for display, but never writes back to the ticket
provider. You fetch metadata via the user's already-configured MCP server.
Karma's API URL comes from `KARMA_API_URL` (set by users on non-default
ports/hosts) with `http://localhost:8000` as fallback. Inline
`${KARMA_API_URL:-http://localhost:8000}` in **every** curl below — bash
variables don't persist across separate Bash tool calls, so a top-of-script
assignment would be empty by the time the next curl runs.
## Step 1 — Parse $ARGUMENTS
Recognized forvia SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有