About linear-discipline
linear-discipline is an always-on skill that guides when and how repositories should be tracked in Linear. It follows repository-specific tracking rules, prevents duplicate issues through search-first handling, and prompts once before setup when tracking is absent.
Key features
- 01Detects repository tracking configuration
- 02Respects the repository skip marker
- 03Searches Linear before creating issues
- 04Guides issue state and session closeout
- 05Prompts once when tracking is absent
Use cases
- 01Keeping tracked project work updated in Linear
- 02Avoiding duplicate issues during development
- 03Choosing whether to set up tracking for an untracked repository
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ tjcages/ linear --skill linear-disciplineAfter installing, type/linear-disciplinein Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
ALWAYS_ON.mdAUTH.mdAUTOMATION.mdEXAMPLES.mdMETHODOLOGY.mdRESPONSE.mdDetails
From the project READMELinear discipline (always-on)
Chat rules: RESPONSE.md. Auth before Linear calls: AUTH.md.
Detect tracking
Tracked if the repo has a “Linear tracking” (or equivalent) section in CLAUDE.md, AGENTS.md, or .cursor/rules/* that names team + project.
Skipped if .linear-tracking-skip exists at repo root.
If tracked
Follow the protocol written in-repo:
- Search before create.
- Non-trivial work → file/update an issue in the named project + milestone.
Backlog→In Progressat start →Doneonly when shipped.- Close the loop before session end (state and/or comment).
- Prefer Linear’s generated branch names.
Before any Linear tool call: Step 0 auth.
If untracked and not skipped (soft nudge — 1B)
Ask once, one line, no preamble:
This repo isn’t tracked in Linear. Set it up now? (~10–20 min)
- Yes → hand off to
linear-setup(do not bootstrap inline without that skill’s gates). - No → create
.linear-tracking-skipat repo root; stay quiet next time. - Never auto-create Linear projects or issues from a nudge alone.
- Never nudge from Automation /
linear-monitorruns.
If skipped
Stay quiet about setup. Still use Linear MCP for explicit user requests.
Out of scope
Full bootstrap → linear-setup. Rescue/audit → linear-sync. Health digest → linear-monitor.