link-ticket-to-session

link-ticket-to-session is a skill for Claude Code, Codex from JayantDevkar/claude-code-karma. It costs 91 tokens per session (1,914 once invoked), scanned A, original, Apache-2.0.

A link between the current coding session and a work item such as a Linear or Jira ticket, GitHub issue, or GitHub pull request. It stores the link and caches the item's title and status for display.

In plain words
What is it for?
Use it when starting work on a ticket, issue, or pull request so the session can show which work item it belongs to.
Why use it?
It keeps the session's work connected to the task being handled without writing changes back to the ticket system.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/jayantdevkar/claude-code-karma/link-ticket-to-session
Any agent
npx skills add JayantDevkar/claude-code-karma --skill link-ticket-to-session
Clone the repo
git clone --depth 1 https://github.com/JayantDevkar/claude-code-karma

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for link-ticket-to-session

README.md
[![agentmods](https://agentmods.dev/badge/skills/jayantdevkar/claude-code-karma/link-ticket-to-session.svg)](https://agentmods.dev/skills/jayantdevkar/claude-code-karma/link-ticket-to-session)
Your own site
<a href="https://agentmods.dev/skills/jayantdevkar/claude-code-karma/link-ticket-to-session"><img src="https://agentmods.dev/badge/skills/jayantdevkar/claude-code-karma/link-ticket-to-session.svg" alt="Measured on agentmods" height="20"></a>
Per session 91 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,914 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00091 $0.01914
Opus 5 $0.00046 $0.00957
Sonnet 5 $0.00018 $0.00383
Haiku 4.5 $0.00009 $0.00191

Measured 5d ago against content hash 46a816595b18, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

link-ticket-to-session scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

`${KARMA_API_URL:-http://localhost:8020}` in **every** curl below — bash
skills/link-ticket-to-session/SKILL.md · 147 lines

How it starts

The opening of the file, as written. The whole thing — 147 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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:8020 as fallback. Inline ${KARMA_API_URL:-http://localhost:8020} 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 forms:

Provider Short ref URL forms
Linear LINEAR-123 https://linear.app/.../issue/ABC-123
Jira PROJ-45 https://*.atlassian.net/browse/PROJ-45
GitHub Issue owner/repo#42 https://github.com/owner/repo/issues/42
GitHub PR owner/repo#42 https://github.com/owner/repo/pull/42

GitHub issues and pull requests share a single numbering namespace — owner/repo#42 could be either. The URL kind (/issues/ vs /pull/) is the only signal, and karma's backend preserves it, so when you have a URL keep it intact when POSTing (Step 4). For a bare owner/repo#N with no URL, default to /issues/N — GitHub auto-redirects to /pull/N when N is actually a PR, so the link still resolves.

A bare #N (no owner/repo) is not accepted — always qualify with owner/repo#N.

Step 2 — Identify provider and (for GitHub) kind

Set two variables you'll use below:

  • <provider>linear | jira | github
  • For GitHub: <kind>issue | pull_request (derived from URL path)

Read the full file on GitHub · 147 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 147 lines · 91 tokens per session scan A 46a816595b18

Subscribe to this mod's changes

link-ticket-to-session is a skill published in the GitHub repository JayantDevkar/claude-code-karma (323 stars, last pushed 5d ago), licensed Apache-2.0. It adds 91 tokens to every session and 1,914 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.