agentleFS
withpiperwithpiper/pipekit/skills/linear/SKILL.md

linear

Skill6 starsChanged 2 months agoMITView on GitHub

Linear issue workflow helper. Use when triaging a Linear ticket. Use when transitioning state outside /work or /verify. Use when you need a structured comment template.

  • Commits and pushes

83 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use agent-deep-links, helium-mcp and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • ComposioHQSkill

    agent-deep-links

    Build, validate, and troubleshoot deep links for Codex, Cursor, VS Code, Visual Studio, and similar tools. Use when users ask for clickable links (especially in Slack) that open threads, files, folders, or app settings.

    Also in 3 projects that use this

  • ComposioHQSkill

    helium-mcp

    Search real-time news with bias scoring, get live stock/ETF/crypto data with AI analysis, ML options pricing, balanced news synthesis, and meme search via the Helium MCP server.

    Also in 3 projects that use this

  • petestewartSkill

    datadog-logs

    Query Datadog logs via the Logs Search API v2. Use when the user asks to "check the logs", "search logs", "find errors in Datadog", "look up logs for", "show me production logs", "check for errors", "search Datadog", or any request involving log search, error investigation, or production debugging that requires Datadog log data.

    Also in 3 projects that use this

  • OpenAISkill

    pull

    Also in 5 projects that use this

  • SentrySkill

    datadog

    Query live Datadog telemetry (logs, metrics, traces, spans, monitors, incidents, dashboards, services, hosts) through Datadog's Pup CLI. Use when users ask to investigate production behavior in Datadog, including searching logs, checking monitor status, inspecting traces or spans, looking up incidents, finding services, or correlating metrics. Do not use it for Sentry issues, repository/source-code work, or ticketing.

    Also in 4 projects that use this

  • +7 more from ComposioHQ

The file

Show its rules and text

We split this skill into the rules it gives an agent

15 rules. 0 are common, 13 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 79 edited versions we read keep these.

  • 13

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If the issue has a linked spec (Spec: or Linked spec: in description), read it

    line 36
  2. Distinctive:

    Use the appropriate prefix:

    line 48
  3. Distinctive:

    Use kebab-case, keep it short and descriptive

    line 53
  4. Distinctive:

    If the user requests changes, make them, commit, push, and update the Linear comment.

    line 65
  5. Distinctive:

    When the user approves:

    line 66
  6. Distinctive:

    When the user says to merge:

    line 79
  7. Distinctive:

    Keep Linear comments concise and useful:

    line 120
  8. Distinctive:

    Use bullet points for changes

    line 122
  9. Distinctive:

    Don't repeat the full issue description

    line 124
  10. Distinctive:

    Always confirm with the user before changing issue status

    line 128
  11. Distinctive:

    If the user wants to skip phases (e.g., go straight to prod), accommodate but warn about risks

    line 129
  12. Distinctive:

    If the issue already has a branch or PR, pick up from the appropriate phase

    line 130
  13. Distinctive:

    If the user says "close" or "done" at any point, skip to Phase 4/5

    line 131
  14. Distinctive:

    Keep the user informed of every status change you make

    line 132
  15. Very specific:

    Worktrees: All work happens in worktrees at {worktree prefix from method.config.md}<description>/, not branch switching in the main repo.

    line 134

“Common” is measured: kept by at least 6 in 10 of the 79 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Linear Issue Workflow

You guide the user through working on a Linear issue end-to-end, updating the issue status and posting comments at each milestone.

Triggers

This skill is invoked when the user says:

  • /linear PROJ-123
  • /linear https://linear.app/{workspace}/issue/{PREFIX}-123/...

Arguments

The argument is a Linear issue identifier (e.g., PROJ-178) or a full Linear URL. Extract the identifier from the URL if needed. Read method.config.md for the issue prefix and workspace slug.

Linear State IDs

Read all state IDs from your project's method.config.md under "Workflow State IDs". The table maps state names (Building, UAT, In Dev, In Beta, Done, etc.) to Linear state UUIDs specific to your workspace. The transitions below pass the state name (pk issue update <ID> --state Building) and pk resolves the id; the table is the reference for which names exist.

Workflow Phases

The workflow has 5 phases. At each phase transition, update the Linear issue status and post a comment. Always confirm with the user before moving to the next phase.


Phase 1: Understand

  1. Fetch the issue with its description and comments via the project's Linear route — pk issue show <ID> --comments (verb table: sop/Linear_SOP.md § Linear transport; the mcp route's equivalent is listed there).
  2. Present a summary to the user:
    • Title, description, priority, labels, current state
    • Any existing comments
    • If the issue has a linked spec (**Spec:** or **Linked spec:** in description), read it
  3. Move to Building — pk issue update <ID> --state Building.
  4. Post a comment — pk issue comment <ID> "Started work on this issue."
  5. Ask the user to confirm the scope and approach before proceeding.

Phase 2: Implement

  1. Create a worktree using pk branch <ID> (Linear-issue-based, recommended) or manually:
    • Branch from dev (default) or main (hotfixes only)
    • Worktree at {worktree prefix from method.config.md}<description>/
    • Use the appropriate prefix:
      • hotfix/ for urgent production fixes (branch from main)
      • fix/ for bug fixes (branch from dev)
      • feature/ for new functionality (branch from dev)
      • refactor/ for code restructuring (branch from dev)
    • Use kebab-case, keep it short and descriptive
    • Include the issue ID if natural (e.g., feature/proj-178-markup-tooltip)
  2. Do the work — implement the changes as discussed.
  3. Commit with conventional commit format: {type}({scope}): {description} and include Closes PROJ-XXX in the body.
  4. Push the branch and verify the Vercel preview deployment succeeds.
  5. Post a comment to the Linear issue summarizing what was done and the Vercel preview URL.

Phase 3: Review

  1. Ask the user to test on the Vercel preview URL (or the dev environment URL if merged to dev).
  2. If the user requests changes, make them, commit, push, and update the Linear comment.
  3. When the user approves:
    • Create a PR to dev (or main for hotfixes) using gh pr create with:
      • Short title (under 70 chars)
      • Body with Summary bullets + Test plan checklist
      • Closes PROJ-XXX in the body
    • Move to UAT — pk issue update <ID> --state UAT.
    • Post a comment with the PR link.

Phase 4: Merge & Deploy

  1. Wait for PR checks to pass (CI: type-check, lint, test).
  2. When the user says to merge:
    • Merge the PR using gh pr merge (default merge commit, not squash).
    • For normal flow (merged to dev): the change deploys automatically to the dev environment via Vercel.
    • For production (merged to main): verify the production deployment of the merge commit succeeded and the production URL serves it. Deploy from git, never from a CLI upload of a working tree.
    • For hotfixes (merged to main): immediately cherry-pick back to both dev and beta.
    • Post a comment confirming deployment target.
  3. Transition state per environment. Under v2.5.0, state maps 1:1 to environment via env-named statuses:
    • 2-tier project (Ship environments: dev,main): on dev merge → move to In Dev (set by pk done); on main merge → move to Done (set by pk promote main).
    • 3-tier project (Ship environments: dev,beta,main): on dev merge → In Dev (pk done); on beta merge → In Beta (pk promote beta); on main merge → Done (pk promote main).
    • The recommended path is pk done (UAT → In <FirstEnv>) and pk promote <env> (one hop per call). This manual fallback only applies if you opened the promote PR by hand without pk promote.

Phase 5: Cleanup

  1. Clean up the worktree using pk done <ID> (Linear-issue-based, recommended) or manually:
    # From main repo directory
    git worktree remove {worktree prefix from method.config.md}<description>/
    git branch -d <branch-name>
    git push origin --delete <branch-name>
  2. Post a final comment summarizing the full change and confirming deployment.
  3. Report to the user that the issue is complete.

Status Transition Summary

PhaseStatusComment
UnderstandBuilding"Started work on this issue."
ImplementBuildingSummary of changes + preview URL
Review (iterations)BuildingUpdates on changes
Review (PR created)UATPR link
Merge to first envIn <FirstEnv> (e.g. In Dev)Set by pk done
Promote intermediateIn <Env> (e.g. In Beta)Set by pk promote <env>
Final promoteDoneDeployment confirmed

Comment Style

Keep Linear comments concise and useful:

  • Bold the milestone (e.g., "Fix deployed to dev")
  • Use bullet points for changes
  • Include commit hashes, branch names, PR links, preview URLs, and deploy targets
  • Don't repeat the full issue description

Important Notes

  • Always confirm with the user before changing issue status
  • If the user wants to skip phases (e.g., go straight to prod), accommodate but warn about risks
  • If the issue already has a branch or PR, pick up from the appropriate phase
  • If the user says "close" or "done" at any point, skip to Phase 4/5
  • Keep the user informed of every status change you make
  • Branch strategy: PRs target dev by default. Only hotfixes target main. See CLAUDE.md for the full release flow.
  • Worktrees: All work happens in worktrees at {worktree prefix from method.config.md}<description>/, not branch switching in the main repo.

Related

  • Branch + worktree: pk branch <ID> — creates worktree + branch + Linear → In Progress (idempotent)
  • v2 daily loop: pk next → pk branch → /work → /verify → pk ship → pk done (recommended path; this skill is the manual hands-on alternative). /pk-exit is not part of this chain — it's the per-session log command (see below); pk done runs from the parent repo and deletes the worktree, so in a worktree session run /pk-exit first, then leave the worktree and run pk done.
  • Promotion: pk ship (feature → integration branch) + pk promote (walks the chain per Ship environments in method.config.md)
  • Session log: /pk-exit — narrative session log to Logs/Sessions/<date>_<HHMM>.md (last command of every Claude Code session)
  • Git workflow: See CLAUDE.md "Branch Strategy"

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.