No Ticket Comments — AI skill for Claude Code
AI coding agents paste Jira/Linear ticket numbers, review notes, and long recaps into code comments.
How to install No Ticket Comments
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open chasanc/no-ticket-comments and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What No Ticket Comments does
AI coding agents paste Jira/Linear ticket numbers, review notes, and long recaps into code comments. Those comments go stale. This Claude Code and Cursor hook keeps ticket IDs in commits and pull requests, and limits a comment to a short why
Alternatives in AI
README
no-ticket-comments
No ticket numbers in code comments.
AI coding agents explain a change by pasting a Jira-style ticket id (`PROJ-123`), a review finding, or a long recap into the source. Those comments go stale: the ticket is closed, the tracker gets replaced, and the next reader has no ticket open. Ticket IDs belong in commits, branches, and pull requests. A code comment is a short why, or nothing.
This repository is a hook for Claude Code and Cursor that enforces that. Ticket IDs stay allowed in commits, branches, pull requests, and Markdown.
Two parts, one script (`plugin/hooks/no-ticket-comments.py`):
- Rule (
plugin/hooks/RULES.md), injected into every session at start. - Enforcement: an edit that adds a comment containing a ticket ID, or a new comment block longer than 2 lines, is rejected. Only lines the edit introduces count; existing comments are left alone.
| Claude Code | Cursor | |
|---|---|---|
| Rule injected | SessionStart | sessionStart |
| Enforcement | PreToolUse: the edit is blocked before it is written | afterFileEdit records it; at stop the agent is sent back to remove it (Cursor has no pre-edit hook) |
Install: Claude Code
From a shell:
claude plugin marketplace add chasanc/no-ticket-comments
claude plugin install no-ticket-comments@no-ticket-comments
Or from inside a session (Claude Code v2.1.275 or later):
/plugin install no-ticket-comments --marketplace chasanc/no-ticket-comments
Restart the session. On enable, Claude Code asks for ticket prefixes. `PROJ` and `TASK` are placeholders; replace them with your tracker keys. If this account already has the rule in `CLAUDE.md` or this hook in `settings.json`, remove those so it does not run twice.
To try a local checkout instead of GitHub, use `/plugin marketplace add /path/to/no-ticket-comments`.
Install: Cursor
git clone https://github.com/chasanc/no-ticket-comments.git
cd no-ticket-comments
./install-cursor.sh
Copies the script to
Related Skills
LinkedIn Automation AI Agent
Run your LinkedIn on autopilot: one post a day, useful comments, connection notes with a real message, and pro
Mask2ai
PII redaction for ChatGPT, claude.ai and Claude Code. Masks names, emails, phone numbers, cards, IBANs and IDs
AI Weekly Update
Claude Code skill: fill your individual row on a Confluence AI-usage weekly report. Researches Jira, Slack, Ou
Dashboard Jira
Local board that orchestrates Claude Code sessions from Jira tickets: approve cards from desktop or phone and
Code Agent
An AI Agent that operates on GitHub Actions. By using this action, you can directly invoke Coding Agent CLI fr
Process Comments
Address every unresolved review comment on a pull request (AI bug, suggestion and nit findings, plus human com
Related Agents
Worker Data Collector
Collect data from GitHub, Slack, Jira, Linear, or file system. Structured extraction only — no synthesis.
Tracker Scout
One-shot, read-only scout that pulls context from the issue tracker (Jira, Linear, GitHub Issues, or other): a
Repotify Scanner Guardian
Use for any change under src/scan/ (line rules, shell reading, file rules, typosquatting) and to triage a repo