agentleFS
amurthygithubamurthygithub/Sharevalue_claude_skills/.claude/skills/linear/SKILL.md

linear

Skill1 starsChanged 6 months agoMITView on GitHub

CLI for <TRACKER> ticket operations (create epic / story / task, update status, show, list) — no committed secrets, reads $<TRACKER>_API_KEY from env. The most-replaceable skill in this template — swap the API layer for any tracker.

  • Reads credentials
  • Sends data out

53 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use xitter, minecraft-modpack-server 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.
  • braxtonROSE4Skill

    xitter

    Interact with X/Twitter via the x-cli terminal client using official X API credentials. Use for posting, reading timelines, searching tweets, liking, retweeting, bookmarks, mentions, and user lookups.

    Also in 3 projects that use this

  • braxtonROSE4Skill

    minecraft-modpack-server

    Set up a modded Minecraft server from a CurseForge/Modrinth server pack zip. Covers NeoForge/Forge install, Java version, JVM tuning, firewall, LAN config, backups, and launch scripts.

    Also in 3 projects that use this

  • AlexAI-MCPSkill

    jupyter-live-kernel

    Jupyter notebook and kernel operations — start kernels, execute cells programmatically, export, and data analysis patterns.

    Also in 4 projects that use this

  • AlexAI-MCPSkill

    youtube-content

    YouTube research and content operations — search, download, transcript extraction, and audio processing via yt-dlp.

    Also in 5 projects that use this

  • VercelSkill

    stripe

    Emulated Stripe API for local development and testing. Use when the user needs to process payments locally, test checkout flows, create customers, manage products and prices, handle payment intents, work with webhooks, or use the Stripe SDK without hitting real Stripe servers. Triggers include "Stripe API", "emulate Stripe", "test payments locally", "checkout flow", "payment intent", "Stripe webhook", "Stripe SDK", "STRIPE_API_KEY", or any task requiring a local Stripe API.

    Also in 4 projects that use this

  • GoogleSkill

    google-workspace

    Read/write Google Drive, Docs, Sheets, Gmail, Calendar, Chat, Tasks, Slides via the `gws` CLI. Needs an OAuth client or service account configured first. Use for any Google Workspace task.

    Also in 6 projects that use this

  • +2 more from braxtonROSE4
  • +1 more from AlexAI-MCP

The file

We split this skill into the rules it gives an agent

8 rules. 0 are common, 2 are distinctive, and 6 are very specific to this project.

  • 0

    Common

    Most of the 51 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 6

    Very specific

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

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

    If no --status given on create, default to Todo.

    line 36
  2. Very specific:

    Always check the response for .errors and abort with the message if present.

    line 50
  3. Very specific:

    When a subcommand references a sibling ticket (--parent, --epic, or update <id>), resolve the human identifier to the API UUID first:

    line 54
  4. Very specific:

    If the ticket doesn't exist, abort with Error: ticket not found.

    line 60
  5. Very specific:

    All three use the same issueCreate mutation.

    line 64
  6. Distinctive:

    After every mutation (create / update only — not show / list), write a

    line 157
  7. Distinctive:

    Keep shard bodies PII-free (repo-relative paths only, no committer email, no home-dir absolutes) — they are committed to git history.

    line 170
  8. Very specific:

    Don't print raw API responses unless --verbose is in $ARGUMENTS.

    line 184

“Common” is measured: kept by at least 6 in 10 of the 51 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

You are operating <TRACKER> via its API on behalf of the user. Team key: <TRACKER_TEAM_KEY>. Team UUID: <TRACKER_TEAM_UUID>. Read $<TRACKER>_API_KEY from the env (set it in your shell rc, e.g. ~/.zshrc); NEVER hardcode the token in any file or commit.

This template uses a Linear-style GraphQL API as the worked example. It is the most-replaceable skill here: adapt to Jira, GitHub Issues, Notion, or any tracker by swapping the API-call layer (the <TRACKER>_gql helper) and the field names — the subcommand contract stays the same.

Subcommands

Parse $ARGUMENTS as <subcommand> <rest>. Supported:

SubcommandArgsEffect
create-epic<title> [--description "..."] [--label "..."]Create a top-level issue.
create-story<title> --epic <TRACKER_TEAM_KEY>-NNN [--description "..."] [--label "..."]Create a child issue under an Epic.
create-task<title> --parent <TRACKER_TEAM_KEY>-NNN [--description "..."] [--label "..."]Create a child issue under any parent.
show<TRACKER_TEAM_KEY>-NNNPrint id, title, state, parent, children, URL.
update<TRACKER_TEAM_KEY>-NNN status:<state> OR title:"..." OR description:"..." OR parent:<TRACKER_TEAM_KEY>-NNNUpdate one or more fields.
list[--status <state>] [--mine] [--limit N] [--label "..."]List issues from the team.

Workflow state UUIDs (Linear-style — replace with your tracker's equivalents):

NameUUID placeholder
Todo<TRACKER_STATE_TODO_UUID>
In Progress<TRACKER_STATE_INPROGRESS_UUID>
In Review<TRACKER_STATE_INREVIEW_UUID>
Done<TRACKER_STATE_DONE_UUID>

If no --status given on create, default to Todo.

Common: send a request

<TRACKER>_gql() {
  local query="$1"
  curl -sS -X POST <TRACKER_API_BASE> \
    -H "Authorization: $<TRACKER>_API_KEY" \
    -H "Content-Type: application/json" \
    -d "$(jq -nc --arg q "$query" '{query:$q}')"
}

Always check the response for .errors and abort with the message if present.

Resolve <TRACKER_TEAM_KEY>-NNN → UUID

When a subcommand references a sibling ticket (--parent, --epic, or update <id>), resolve the human identifier to the API UUID first:

query { issue(id: "<TRACKER_TEAM_KEY>-NNN") { id identifier title state { name id } } }

If the ticket doesn't exist, abort with Error: ticket not found.

create-epic / create-story / create-task

All three use the same issueCreate mutation; parentId is the only difference.

mutation {
  issueCreate(input: {
    teamId: "<TRACKER_TEAM_UUID>"
    title: "<title>"
    description: "<description-or-null>"
    stateId: "<todo-state-uuid>"
    parentId: "<parent-uuid-or-null>"
    labelIds: [<label-uuids-or-empty>]
  }) {
    success
    issue { id identifier title url }
  }
}

To resolve a label name → UUID, query the team's labels once per session and cache in memory. After creation, print:

✅ Created <identifier> "<title>" — <url>
   Parent: <parent-identifier-or-none>  •  State: <state-name>  •  Labels: <names-or-none>

update

Map status:<name> to the workflow state UUID via the table above (case-insensitive match). For parent:<TRACKER_TEAM_KEY>-NNN, resolve to UUID first.

mutation {
  issueUpdate(id: "<uuid-from-resolve>", input: {
    stateId: "<uuid-or-omit>"
    title: "<value-or-omit>"
    description: "<value-or-omit>"
    parentId: "<uuid-or-omit>"
  }) {
    success
    issue { id identifier title state { name } url }
  }
}

Build the input dynamically — only include fields the user passed. Print ✅ Updated <identifier>: <changed-fields>.

show

query {
  issue(id: "<TRACKER_TEAM_KEY>-NNN") {
    id identifier title url
    description
    state { name }
    parent { identifier title }
    children { nodes { identifier title state { name } } }
    labels { nodes { name } }
    assignee { displayName }
    createdAt updatedAt
    comments(first: 5) { nodes { user { displayName } body createdAt } }
  }
}

Print as a tidy block. Truncate description to ~500 chars; truncate comment bodies to ~200 chars each.

list

query {
  issues(
    filter: {
      team: { key: { eq: "<TRACKER_TEAM_KEY>" } }
      <optional state filter>
      <optional assignee filter for --mine>
      <optional label filter>
    }
    first: <limit-or-20>
    orderBy: updatedAt
  ) {
    nodes {
      identifier title url
      state { name }
      assignee { displayName }
      updatedAt
    }
  }
}

Print as a one-line-per-issue table.

Logging

After every mutation (create / update only — not show / list), write a per-invocation audit shard, not an append to one shared file. A single RUN_LOG.md serializes parallel sessions and produces merge conflicts the moment two /<TRACKER> invocations run at once; one file per invocation at a unique path never conflicts.

# CUSTOMIZE: point this at your own shard helper. It should write a uniquely
# named file under docs/agent-evolution/runs/<UTC-date>/ — one per call.
./scripts/runlog.sh append "<TRACKER> <subcommand>" "<identifier>" \
  "<key=value pairs of what changed>"

Keep shard bodies PII-free (repo-relative paths only, no committer email, no home-dir absolutes) — they are committed to git history.

Error handling

  • Missing <TRACKER>_API_KEY → abort with Error: <TRACKER>_API_KEY not set in environment.
  • Tracker API error → abort with the verbatim error message from the response.
  • Unknown subcommand → print the subcommand table above as usage, exit non-zero.
  • create-* without a title → abort with usage.

Output style

  • One ✅ / ❌ line per top-level result.
  • For multi-step operations (resolve → mutate), emit a brief progress line per step.
  • Don't print raw API responses unless --verbose is in $ARGUMENTS.

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.