[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CB2RBB4A4KFEN697VH6D22":3,"skill-same:01M6CB2RBB4A4KFEN697VH6D22":145},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":56,"commitSha":57,"skillDirectory":58,"forksCount":59,"repositoryHtmlUrl":60,"repositoryHomepageUrl":6,"ownerHtmlUrl":61,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":62,"install":63,"resources":76},"01M6CB2RBB4A4KFEN697VH6D22","linear",null,"Use when reading or managing Linear issues, projects, teams, comments, attachments, or documents. Prefer the authenticated ltui CLI; use direct GraphQL only as an explicit fallback when ltui cannot perform the operation.","adnichols\u002Fai-configs","adnichols","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F493746?v=4","01M6C33VRY9WF6XWYPT1AFA7JJ","Aaron Nichols","01M6C33VWTNKGRM92E9G643V4W",5,"MIT","https:\u002F\u002Fgithub.com\u002Fadnichols\u002Fai-configs\u002Fblob\u002Fmain\u002F_hermes\u002Fdefault\u002Fskills\u002Fproductivity\u002Flinear\u002FSKILL.md",[],[5,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"attachments","fallback","only","use","management","hermes agent","hermes","direct","projects","GraphQL","macos","productivity","issues","project management","teams","documents","windows","linux","cli","2026-11-10 10:12:30",false,"---\nname: linear\ndescription: \"Use when reading or managing Linear issues, projects, teams, comments, attachments, or documents. Prefer the authenticated ltui CLI; use direct GraphQL only as an explicit fallback when ltui cannot perform the operation.\"\nversion: 1.2.0\nauthor: Hermes Agent\nlicense: MIT\nplatforms: [linux, macos, windows]\nprerequisites:\n  commands: [ltui]\nmetadata:\n  hermes:\n    tags: [Linear, Project Management, Issues, ltui, Productivity]\n---\n\n# Linear via ltui — Issue & Project Management\n\nManage Linear issues, projects, teams, comments, attachments, and documents through the authenticated `ltui` CLI.\n\n## Authentication rule\n\n1. Run `ltui auth list` to verify an authenticated profile.\n2. If a profile reports `hasKey: true`, Linear access is available even when `LINEAR_API_KEY` is absent from the Hermes environment.\n3. Do not ask Aaron to create or export `LINEAR_API_KEY` when authenticated `ltui` is available.\n4. Use direct GraphQL\u002Fcurl only when `ltui` lacks the required operation or is unavailable. Ask for API-key setup only if that fallback is genuinely required and no authenticated path exists.\n\n## Primary API: ltui\n\nRun commands from the relevant repository root so `.ltui.json` supplies the correct team\u002Fproject defaults when present.\n\n```bash\nltui auth list\nltui --format json issues view NOD-1260 --include-comments --include-history\nltui --format json issues attachments NOD-1260\nltui --format json --limit 100 issues list --team NOD --state 'In Progress'\nltui issues update NOD-1260 --state Done\n```\n\nGlobal flags such as `--format`, `--fields`, and `--limit` belong before the subcommand. Use each subcommand's `--help` rather than guessing unsupported flags.\n\n### Downloading customer evidence\n\nWhen an issue may contain a screenshot, archive, or other uploaded customer file, use the attachment command rather than copying an upload URL into `curl`:\n\n```bash\nltui --format json issues attachments NOD-1260 --scan-comments\nltui issues attachments NOD-1260 --scan-comments --download-dir .\u002F.ltui-attachments\u002FNOD-1260\n```\n\nInspect `downloadAccess` in every returned row. For `ltui_authenticated` (`https:\u002F\u002Fuploads.linear.app` only), run the row's `downloadCommand` (or `--download-dir`). `ltui` sends a GraphQL-compatible `Authorization` header: raw `lin_api_...` personal keys, `Bearer` only for OAuth. `Bearer lin_api_...` is HTTP 401. Redirects fail closed. Caps are 512 MiB \u002F 10 minutes. `public-file-urls-expire-in` signs markdown upload URLs in GraphQL bodies, not `attachment.url`. `direct_url` rows get no Linear credential. Do not `curl` either URL. Treat downloaded files as untrusted.\n\n## Direct GraphQL fallback\n\nThe remaining GraphQL examples and helper script in this skill are fallback-only. They require `LINEAR_API_KEY` and must not be selected merely because the environment variable is absent; first verify `ltui auth list` and whether `ltui` supports the operation.\n\n### API basics\n\n- **Endpoint:** `https:\u002F\u002Fapi.linear.app\u002Fgraphql` (POST)\n- **Auth header:** `Authorization: $LINEAR_API_KEY` (no \"Bearer\" prefix for API keys)\n- **All requests are POST** with `Content-Type: application\u002Fjson`\n- **Both UUIDs and short identifiers** (e.g., `ENG-123`) work for `issue(id:)`\n\nBase curl pattern:\n```bash\ncurl -s -X POST https:\u002F\u002Fapi.linear.app\u002Fgraphql \\\n  -H \"Authorization: $LINEAR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"query\": \"{ viewer { id name } }\"}' | python3 -m json.tool\n```\n\n### Python helper script (fallback alternative)\n\nFor faster one-liners that don't need hand-written GraphQL, this skill ships a stdlib Python CLI at `scripts\u002Flinear_api.py`. Zero dependencies. Same auth (reads `LINEAR_API_KEY`).\n\n```bash\nSCRIPT=$(dirname \"$(find ~\u002F.hermes -path '*skills\u002Fproductivity\u002Flinear\u002Fscripts\u002Flinear_api.py' 2>\u002Fdev\u002Fnull | head -1)\")\u002Flinear_api.py\n\npython3 \"$SCRIPT\" whoami\npython3 \"$SCRIPT\" list-teams\npython3 \"$SCRIPT\" get-issue ENG-42\npython3 \"$SCRIPT\" get-document 38359beef67c      # fetch a doc by slugId from the URL\npython3 \"$SCRIPT\" raw 'query { viewer { name } }'\n```\n\nAll subcommands: `whoami`, `list-teams`, `list-projects`, `list-states`, `list-issues`, `get-issue`, `search-issues`, `create-issue`, `update-issue`, `update-status`, `add-comment`, `list-documents`, `get-document`, `search-documents`, `raw`. Run with `--help` for flags.\n\nUse the script only when `ltui` cannot perform the operation and direct GraphQL credentials are already available. Use curl for unsupported query shapes.\n\n## Repo-local ltui configuration\n\nWhen working inside Aaron's code repos, check repo-local Linear configuration such as `.ltui.json`. The local `ltui` profile owns authentication independently of the Hermes process environment.\n\nTypical pattern from a repo root:\n```bash\n# Inspect repo defaults; Heddle\u002Fccore normally has team\u002Fproject defaults here.\npython3 -m json.tool .ltui.json\n\n# Discover the supported surface.\nltui --help\nltui issues create --help\n\n# Create a well-scoped issue using the repo defaults or explicit project id.\nltui issues create \\\n  --team NOD \\\n  --project \u003Cproject-id-from-.ltui.json> \\\n  --title \"\u003Cconcise outcome>\" \\\n  --description @\u002Ftmp\u002Fissue-description.md \\\n  --priority 2 \\\n  --state Backlog\n```\n\nFor evidence-heavy issues, write the description to `\u002Ftmp\u002F\u003Cslug>.md` first, then pass `--description @\u002Ftmp\u002F\u003Cslug>.md`. Include observed code paths, local data evidence, impact, and acceptance criteria. Do not propose a full solution if the user asked only to collect evidence and open a tracking issue.\n\n### `ltui` command-shape gotchas\n\n- Global flags such as `--format json` and `--limit N` belong **before** the subcommand: `ltui --format json --limit 20 issues list ...`, not `ltui issues list --limit 20`.\n- Some `ltui issues view` output can omit labels even when the issue has them. Verify label mutations with `ltui --format json issues list --search '\u003Ctitle>' --team \u003Ckey>` or the mutation response, not only `issues view`.\n- When Aaron asks to “just open the Linear” and explicitly says not to build, create the issue only, set the requested workflow state\u002Flabels, verify the row, and stop. For Doct autobuild intake this commonly means project `Doc Thingy`, state `Ready to Pull`, and label `autobuild`.\n- If `ltui issues create` errors after submission with a transient Linear\u002Fnetwork\u002Fproject-fetch failure (for example HTTP 503), do **not** immediately retry creation. First search\u002Flist by the exact title in the target team\u002Fproject to see whether the issue was created despite the error. Only retry if verification shows no issue. If a retry already created a duplicate, cancel or duplicate-link the extra issue, remove automation labels like `autobuild` from the extra, and comment pointing to the canonical issue.\n- `ltui issues update \u003CKEY> --state Done` generally does not need `--project`; prefer the narrow issue-key update and add only `--team \u003CKEY>` if required. Passing `--project` or running from a repo with `.ltui.json` can trigger an extra broad project lookup, which is painful when the Linear API is near rate limit.\n\n### API-budget audits for `ltui` and `nod-symphony`\n\nWhen Aaron asks why Linear\u002Fltui\u002Fnod-symphony is hitting rate limits, inspect both code and live runtime shape before recommending fixes. See `references\u002Fltui-nod-symphony-api-budget-audit.md` for the concrete audit checklist and durable findings.\n\nHigh-yield checks:\n- `ltui`: confirm whether high-volume reads use shaped raw GraphQL (`issues list --fields`, repeated `--state`, `--show-rate-limit`) and whether expensive paths still default to attachment\u002Fcomment scans (`issues view`, `issues attachments`) or post-mutation refetches.\n- `nod-symphony`: inspect `LinearClient` query shapes and `Orchestrator` polling intervals. Candidate, project-summary, and state-reconcile paths should not all fetch full issue context with comments\u002Fattachments.\n- Runtime: check configured daemon profiles, poll\u002Freview\u002Fsummary intervals, active processes, local dashboard `\u002Fapi\u002Fv1\u002Fstate`, and recent logs for `candidate_fetch`, `issue_summary_refresh`, `tracker_state_reconcile`, and `RATELIMITED`.\n- Prefer fixes that reduce calls\u002Fcomplexity at source: server-side label\u002Fstate filters, cheap scan + per-dispatch hydration, state-only reconciliation queries, summary-specific queries, longer stable metadata caches, and shared Linear budget\u002Fbackoff across daemons\u002Ftools.\n\n### Reviewing In Review issues for completion\n\nWhen Aaron asks to review Linear issues in a repo\u002Fproject and move completed work to Done:\n\n1. Use the repo-local project defaults first (`.ltui.json`) and list the target state with JSON output, e.g. `ltui --format json --limit 100 issues list --team NOD --project \u003Cproject-id> --state 'In Review'`.\n2. For each candidate, gather evidence from Linear issue attachments (`ltui --format json issues attachments NOD-123`) and GitHub PR search\u002Fview. Attachments often contain the exact PR URL; `gh pr view \u003Cnum> --json state,mergedAt,title,body,statusCheckRollup` gives authoritative merge state.\n3. Move to `Done` only when there is direct completion evidence: linked\u002Fmentioned PR is `MERGED`, merged body explicitly covers the issue identifier or acceptance scope, and no issue description says the work was only a partial\u002Fdeferred slice.\n4. Do **not** close items merely because a related PR or nearby epic is merged. Leave ambiguous issues in review\u002Fbacklog and report why (e.g. no direct PR attachment, only indirect docs, or related PR was still open).\n5. After mutations, re-list the source state and the Done state to verify the final rows. Treat mutation output as provisional until a fresh list\u002Fview confirms the state.\n\nReference example: `references\u002Fccore-identity-fragmentation-issue.md` captures a C-Core\u002FHeddle account identity fragmentation investigation and the evidence shape used for NOD-1084.\n\n## Workflow States\n\nLinear uses `WorkflowState` objects with a `type` field. **6 state types:**\n\n| Type | Description |\n|------|-------------|\n| `triage` | Incoming issues needing review |\n| `backlog` | Acknowledged but not yet planned |\n| `unstarted` | Planned\u002Fready but not started |\n| `started` | Actively being worked on |\n| `completed` | Done |\n| `canceled` | Won't do |\n\nEach team has its own named states (e.g., \"In Progress\" is type `started`). To change an issue's status, you need the `stateId` (UUID) of the target state — query workflow states first.\n\n**Priority values:** 0 = None, 1 = Urgent, 2 = High, 3 = Medium, 4 = Low\n\n## Common Queries\n\n### Get current user\n```bash\ncurl -s -X POST https:\u002F\u002Fapi.linear.app\u002Fgraphql \\\n  -H \"Authorization: $LINEAR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"query\": \"{ viewer { id name email } }\"}' | python3 -m json.tool\n```\n\n### List teams\n```bash\ncurl -s -X POST https:\u002F\u002Fapi.linear.app\u002Fgraphql \\\n  -H \"Authorization: $LINEAR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"query\": \"{ teams { nodes { id name key } } }\"}' | python3 -m json.tool\n```\n\n### List workflow states for a team\n```bash\ncurl -s -X POST https:\u002F\u002Fapi.linear.app\u002Fgraphql \\\n  -H \"Authorization: $LINEAR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"query\": \"{ workflowStates(filter: { team: { key: { eq: \\\"ENG\\\" } } }) { nodes { id name type } } }\"}' | python3 -m json.tool\n```\n\n### List issues (first 20)\n```bash\ncurl -s -X POST https:\u002F\u002Fapi.linear.app\u002Fgraphql \\\n  -H \"Authorization: $LINEAR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"query\": \"{ issues(first: 20) { nodes { identifier title priority state { name type } assignee { name } team { key } url } pageInfo { hasNextPage endCursor } } }\"}' | python3 -m json.tool\n```\n\n### List my assigned issues\n```bash\ncurl -s -X POST https:\u002F\u002Fapi.linear.app\u002Fgraphql \\\n  -H \"Authorization: $LINEAR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"query\": \"{ viewer { assignedIssues(first: 25) { nodes { identifier title state { name type } priority url } } } }\"}' | python3 -m json.tool\n```\n\n### Get a single issue (by identifier like ENG-123)\n```bash\ncurl -s -X POST https:\u002F\u002Fapi.linear.app\u002Fgraphql \\\n  -H \"Authorization: $LINEAR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"query\": \"{ issue(id: \\\"ENG-123\\\") { id identifier title description priority state { id name type } assignee { id name } team { key } project { name } labels { nodes { name } } comments { nodes { body user { name } createdAt } } url } }\"}' | python3 -m json.tool\n```\n\n### Search issues by text\n```bash\ncurl -s -X POST https:\u002F\u002Fapi.linear.app\u002Fgraphql \\\n  -H \"Authorization: $LINEAR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"query\": \"{ issueSearch(query: \\\"bug login\\\", first: 10) { nodes { identifier title state { name } assignee { name } url } } }\"}' | python3 -m json.tool\n```\n\n### Filter issues by state type\n```bash\ncurl -s -X POST https:\u002F\u002Fapi.linear.app\u002Fgraphql \\\n  -H \"Authorization: $LINEAR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"query\": \"{ issues(filter: { state: { type: { in: [\\\"started\\\"] } } }, first: 20) { nodes { identifier title state { name } assignee { name } } } }\"}' | python3 -m json.tool\n```\n\n### Filter by team and assignee\n```bash\ncurl -s -X POST https:\u002F\u002Fapi.linear.app\u002Fgraphql \\\n  -H \"Authorization: $LINEAR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"query\": \"{ issues(filter: { team: { key: { eq: \\\"ENG\\\" } }, assignee: { email: { eq: \\\"user@example.com\\\" } } }, first: 20) { nodes { identifier title state { name } priority } } }\"}' | python3 -m json.tool\n```\n\n### List projects\n```bash\ncurl -s -X POST https:\u002F\u002Fapi.linear.app\u002Fgraphql \\\n  -H \"Authorization: $LINEAR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"query\": \"{ projects(first: 20) { nodes { id name description progress lead { name } teams { nodes { key } } url } } }\"}' | python3 -m json.tool\n```\n\n### List team members\n```bash\ncurl -s -X POST https:\u002F\u002Fapi.linear.app\u002Fgraphql \\\n  -H \"Authorization: $LINEAR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"query\": \"{ users { nodes { id name email active } } }\"}' | python3 -m json.tool\n```\n\n### List labels\n```bash\ncurl -s -X POST https:\u002F\u002Fapi.linear.app\u002Fgraphql \\\n  -H \"Authorization: $LINEAR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"query\": \"{ issueLabels { nodes { id name color } } }\"}' | python3 -m json.tool\n```\n\n## Common Mutations\n\n### Create an issue\n```bash\ncurl -s -X POST https:\u002F\u002Fapi.linear.app\u002Fgraphql \\\n  -H \"Authorization: $LINEAR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"query\": \"mutation($input: IssueCreateInput!) { issueCreate(input: $input) { success issue { id identifier title url } } }\",\n    \"variables\": {\n      \"input\": {\n        \"teamId\": \"TEAM_UUID\",\n        \"title\": \"Fix login bug\",\n        \"description\": \"Users cannot login with SSO\",\n        \"priority\": 2\n      }\n    }\n  }' | python3 -m json.tool\n```\n\n### Update issue status\nFirst get the target state UUID from the workflow states query above, then:\n```bash\ncurl -s -X POST https:\u002F\u002Fapi.linear.app\u002Fgraphql \\\n  -H \"Authorization: $LINEAR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"query\": \"mutation { issueUpdate(id: \\\"ENG-123\\\", input: { stateId: \\\"STATE_UUID\\\" }) { success issue { identifier state { name type } } } }\"}' | python3 -m json.tool\n```\n\n### Assign an issue\n```bash\ncurl -s -X POST https:\u002F\u002Fapi.linear.app\u002Fgraphql \\\n  -H \"Authorization: $LINEAR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"query\": \"mutation { issueUpdate(id: \\\"ENG-123\\\", input: { assigneeId: \\\"USER_UUID\\\" }) { success issue { identifier assignee { name } } } }\"}' | python3 -m json.tool\n```\n\n### Set priority\n```bash\ncurl -s -X POST https:\u002F\u002Fapi.linear.app\u002Fgraphql \\\n  -H \"Authorization: $LINEAR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"query\": \"mutation { issueUpdate(id: \\\"ENG-123\\\", input: { priority: 1 }) { success issue { identifier priority } } }\"}' | python3 -m json.tool\n```\n\n### Add a comment\n```bash\ncurl -s -X POST https:\u002F\u002Fapi.linear.app\u002Fgraphql \\\n  -H \"Authorization: $LINEAR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"query\": \"mutation { commentCreate(input: { issueId: \\\"ISSUE_UUID\\\", body: \\\"Investigated. Root cause is X.\\\" }) { success comment { id body } } }\"}' | python3 -m json.tool\n```\n\n### Set due date\n```bash\ncurl -s -X POST https:\u002F\u002Fapi.linear.app\u002Fgraphql \\\n  -H \"Authorization: $LINEAR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"query\": \"mutation { issueUpdate(id: \\\"ENG-123\\\", input: { dueDate: \\\"2026-04-01\\\" }) { success issue { identifier dueDate } } }\"}' | python3 -m json.tool\n```\n\n### Add labels to an issue\n```bash\ncurl -s -X POST https:\u002F\u002Fapi.linear.app\u002Fgraphql \\\n  -H \"Authorization: $LINEAR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"query\": \"mutation { issueUpdate(id: \\\"ENG-123\\\", input: { labelIds: [\\\"LABEL_UUID_1\\\", \\\"LABEL_UUID_2\\\"] }) { success issue { identifier labels { nodes { name } } } } }\"}' | python3 -m json.tool\n```\n\n### Add issue to a project\n```bash\ncurl -s -X POST https:\u002F\u002Fapi.linear.app\u002Fgraphql \\\n  -H \"Authorization: $LINEAR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"query\": \"mutation { issueUpdate(id: \\\"ENG-123\\\", input: { projectId: \\\"PROJECT_UUID\\\" }) { success issue { identifier project { name } } } }\"}' | python3 -m json.tool\n```\n\n### Create a project\n```bash\ncurl -s -X POST https:\u002F\u002Fapi.linear.app\u002Fgraphql \\\n  -H \"Authorization: $LINEAR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"query\": \"mutation($input: ProjectCreateInput!) { projectCreate(input: $input) { success project { id name url } } }\",\n    \"variables\": {\n      \"input\": {\n        \"name\": \"Q2 Auth Overhaul\",\n        \"description\": \"Replace legacy auth with OAuth2 and PKCE\",\n        \"teamIds\": [\"TEAM_UUID\"]\n      }\n    }\n  }' | python3 -m json.tool\n```\n\n## Documents\n\nLinear **Documents** are prose docs (RFCs, specs, notes) stored alongside issues. They have their own `documents` root query and `document(id:)` single-fetch.\n\n### Document URLs and `slugId`\n\nDocument URLs look like:\n```\nhttps:\u002F\u002Flinear.app\u002F\u003Cworkspace>\u002Fdocument\u002F\u003Cslug>-\u003ChexSlugId>\n```\n\nThe trailing hex segment is the `slugId`. Example: `https:\u002F\u002Flinear.app\u002Fnousresearch\u002Fdocument\u002Frfc-hermes-permission-gateway-discord-38359beef67c` → `slugId` is `38359beef67c`.\n\n**Important schema detail:** the Markdown body is in the `content` field. The ProseMirror JSON is in `contentState` (not `contentData` — that field does not exist and the API returns 400).\n\n### Fetch a document by slugId\n\n`document(id:)` only accepts UUIDs. To fetch by the URL's hex slug, filter the collection:\n\n```bash\ncurl -s -X POST https:\u002F\u002Fapi.linear.app\u002Fgraphql \\\n  -H \"Authorization: $LINEAR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"query\": \"query($s: String!) { documents(filter: { slugId: { eq: $s } }, first: 1) { nodes { id title content contentState slugId url creator { name } project { name } updatedAt } } }\", \"variables\": {\"s\": \"38359beef67c\"}}' \\\n  | python3 -m json.tool\n```\n\nOr via the Python helper:\n```bash\npython3 scripts\u002Flinear_api.py get-document 38359beef67c\n```\n\n### Fetch a document by UUID\n\n```bash\ncurl -s -X POST https:\u002F\u002Fapi.linear.app\u002Fgraphql \\\n  -H \"Authorization: $LINEAR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"query\": \"{ document(id: \\\"11700cff-b514-4db3-afcc-3ed1afacba1c\\\") { title content url } }\"}' \\\n  | python3 -m json.tool\n```\n\n### List recent documents\n\n```bash\ncurl -s -X POST https:\u002F\u002Fapi.linear.app\u002Fgraphql \\\n  -H \"Authorization: $LINEAR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"query\": \"{ documents(first: 25, orderBy: updatedAt) { nodes { id title slugId url updatedAt project { name } } } }\"}' \\\n  | python3 -m json.tool\n```\n\n### Search documents by title\n\nLinear's schema has no `searchDocuments` root. Use a title-substring filter instead:\n\n```bash\ncurl -s -X POST https:\u002F\u002Fapi.linear.app\u002Fgraphql \\\n  -H \"Authorization: $LINEAR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"query\": \"{ documents(filter: { title: { containsIgnoreCase: \\\"RFC\\\" } }, first: 25) { nodes { title slugId url } } }\"}' \\\n  | python3 -m json.tool\n```\n\n## Pagination\n\nLinear uses Relay-style cursor pagination:\n\n```bash\n# First page\ncurl -s -X POST https:\u002F\u002Fapi.linear.app\u002Fgraphql \\\n  -H \"Authorization: $LINEAR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"query\": \"{ issues(first: 20) { nodes { identifier title } pageInfo { hasNextPage endCursor } } }\"}' | python3 -m json.tool\n\n# Next page — use endCursor from previous response\ncurl -s -X POST https:\u002F\u002Fapi.linear.app\u002Fgraphql \\\n  -H \"Authorization: $LINEAR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"query\": \"{ issues(first: 20, after: \\\"CURSOR_FROM_PREVIOUS\\\") { nodes { identifier title } pageInfo { hasNextPage endCursor } } }\"}' | python3 -m json.tool\n```\n\nDefault page size: 50. Max: 250. Always use `first: N` to limit results.\n\n## Filtering Reference\n\nComparators: `eq`, `neq`, `in`, `nin`, `lt`, `lte`, `gt`, `gte`, `contains`, `startsWith`, `containsIgnoreCase`\n\nCombine filters with `or: [...]` for OR logic (default is AND within a filter object).\n\n## Typical Workflow\n\n1. **Query teams** to get team IDs and keys\n2. **Query workflow states** for target team to get state UUIDs\n3. **List or search issues** to find what needs work\n4. **Create issues** with team ID, title, description, priority\n5. **Update status** by setting `stateId` to the target workflow state\n6. **Add comments** to track progress\n7. **Mark complete** by setting `stateId` to the team's \"completed\" type state\n\n## Rate Limits\n\n- 5,000 requests\u002Fhour per API key\n- 3,000,000 complexity points\u002Fhour\n- Use `first: N` to limit results and reduce complexity cost\n- Monitor `X-RateLimit-Requests-Remaining` response header\n\n## Important Notes\n\n- Always use `terminal` tool with `curl` for API calls — do NOT use `web_extract` or `browser`\n- Always check the `errors` array in GraphQL responses — HTTP 200 can still contain errors\n- If `stateId` is omitted when creating issues, Linear defaults to the first backlog state\n- The `description` field supports Markdown\n- Use `python3 -m json.tool` or `jq` to format JSON responses for readability\n","# Linear via ltui — Issue & Project Management\n\nManage Linear issues, projects, teams, comments, attachments, and documents through the authenticated `ltui` CLI.\n\n## Authentication rule\n\n1. Run `ltui auth list` to verify an authenticated profile.\n2. If a profile reports `hasKey: true`, Linear access is available even when `LINEAR_API_KEY` is absent from the Hermes environment.\n3. Do not ask Aaron to create or export `LINEAR_API_KEY` when authenticated `ltui` is available.\n4. Use direct GraphQL\u002Fcurl only when `ltui` lacks the required operation or is unavailable. Ask for API-key setup only if that fallback is genuinely required and no authenticated path exists.\n\n## Primary API: ltui\n\nRun commands from the relevant repository root so `.ltui.json` supplies the correct team\u002Fproject defaults when present.\n\n```bash\nltui auth list\nltui --format json issues view NOD-1260 --include-comments --include-history\nltui --format json issues attachments NOD-1260\nltui --format json --limit 100 issues list --team NOD --state 'In Progress'\nltui issues update NOD-1260 --state Done\n```\n\nGlobal flags such as `--format`, `--fields`, and `--limit` belong before the subcommand. Use each subcommand's `--help` rather than guessing unsupported flags.\n\n### Downloading customer evidence\n\nWhen an issue may contain a screenshot, archive, or other uploaded customer file, use the attachment command rather than copying an upload URL into `curl`:\n\n```bash\nltui --format json issues attachments NOD-1260 --scan-comments\nltui issues attachments NOD-1260 --scan-comments --download-dir .\u002F.ltui-attachments\u002FNOD-1260\n```\n\nInspect `downloadAccess` in every returned row. For `ltui_authenticated` (`https:\u002F\u002Fuploads.linear.app` only), run the row's `downloadCommand` (or `--download-dir`). `ltui` sends a GraphQL-compatible `Authorization` header: raw `lin_api_...` personal keys, `Bearer` only for OAuth. `Bearer lin_api_...` is HTTP 401. Redirects fail closed. Caps are 512 MiB \u002F 10 minutes. `public-file-urls-expire-in` signs markdown upload URLs in GraphQL bodies, not `attachment.url`. `direct_url` rows get no Linear credential. Do not `curl` either URL. Treat downloaded files as untrusted.\n\n## Direct GraphQL fallback\n\nThe remaining GraphQL examples and helper script in this skill are fallback-only. They require `LINEAR_API_KEY` and must not be selected merely because the environment variable is absent; first verify `ltui auth list` and whether `ltui` supports the operation.\n\n### API basics\n\n- **Endpoint:** `https:\u002F\u002Fapi.linear.app\u002Fgraphql` (POST)\n- **Auth header:** `Authorization: $LINEAR_API_KEY` (no \"Bearer\" prefix for API keys)\n- **All requests are POST** with `Content-Type: application\u002Fjson`\n- **Both UUIDs and short identifiers** (e.g., `ENG-123`) work for `issue(id:)`\n\nBase curl pattern:\n```bash\ncurl -s -X POST https:\u002F\u002Fapi.linear.app\u002Fgraphql \\\n  -H \"Authorization: $LINEAR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"query\": \"{ viewer { id name } }\"}' | python3 -m json.tool\n```\n\n### Python helper script (fallback alternative)\n\nFor faster one-liners that don't need hand-written GraphQL, this skill ships a stdlib Python CLI at `scripts\u002Flinear_api.py`. Zero dependencies. Same auth (reads `LINEAR_API_KEY`).\n\n```bash\nSCRIPT=$(dirname \"$(find ~\u002F.hermes -path '*skills\u002Fproductivity\u002Flinear\u002Fscripts\u002Flinear_api.py' 2>\u002Fdev\u002Fnull | head -1)\")\u002Flinear_api.py\n\npython3 \"$SCRIPT\" whoami\npython3 \"$SCRIPT\" list-teams\npython3 \"$SCRIPT\" get-issue ENG-42\npython3 \"$SCRIPT\" get-document 38359beef67c      # fetch a doc by slugId from the URL\npython3 \"$SCRIPT\" raw 'query { viewer { name } }'\n```\n\nAll subcommands: `whoami`, `list-teams`, `list-projects`, `list-states`, `list-issues`, `get-issue`, `search-issues`, `create-issue`, `update-issue`, `update-status`, `add-comment`, `list-documents`, `get-document`, `search-documents`, `raw`. Run with `--help` for flags.\n\nUse the script only when `ltui` cannot perform the operation and direct GraphQL credentials are already available. Use curl for unsupported query shapes.\n\n## Repo-local ltui configuration\n\nWhen working inside Aaron's code repos, check repo-local Linear configuration such as `.ltui.json`. The local `ltui` profile owns authentication independently of the Hermes process environment.\n\nTypical pattern from a repo root:\n```bash\n# Inspect repo defaults; Heddle\u002Fccore normally has team\u002Fproject defaults here.\npython3 -m json.tool .ltui.json\n\n# Discover the supported surface.\nltui --help\nltui issues create --help\n\n# Create a well-scoped issue using the repo defaults or explicit project id.\nltui issues create \\\n  --team NOD \\\n  --project \u003Cproject-id-from-.ltui.json> \\\n  --title \"\u003Cconcise outcome>\" \\\n  --description @\u002Ftmp\u002Fissue-description.md \\\n  --priority 2 \\\n  --state Backlog\n```\n\nFor evidence-heavy issues, write the description to `\u002Ftmp\u002F\u003Cslug>.md` first, then pass `--description @\u002Ftmp\u002F\u003Cslug>.md`. Include observed code paths, local data evidence, impact, and acceptance criteria. Do not propose a full solution if the user asked only to collect evidence and open a tracking issue.\n\n### `ltui` command-shape gotchas\n\n- Global flags such as `--format json` and `--limit N` belong **before** the subcommand: `ltui --format json --limit 20 issues list ...`, not `ltui issues list --limit 20`.\n- Some `ltui issues view` output can omit labels even when the issue has them. Verify label mutations with `ltui --format json issues list --search '\u003Ctitle>' --team \u003Ckey>` or the mutation response, not only `issues view`.\n- When Aaron asks to “just open the Linear” and explicitly says not to build, create the issue only, set the requested workflow state\u002Flabels, verify the row, and stop. For Doct autobuild intake this commonly means project `Doc Thingy`, state `Ready to Pull`, and label `autobuild`.\n- If `ltui issues create` errors after submission with a transient Linear\u002Fnetwork\u002Fproject-fetch failure (for example HTTP 503), do **not** immediately retry creation. First search\u002Flist by the exact title in the target team\u002Fproject to see whether the issue was created despite the error. Only retry if verification shows no issue. If a retry already created a duplicate, cancel or duplicate-link the extra issue, remove automation labels like `autobuild` from the extra, and comment pointing to the canonical issue.\n- `ltui issues update \u003CKEY> --state Done` generally does not need `--project`; prefer the narrow issue-key update and add only `--team \u003CKEY>` if required. Passing `--project` or running from a repo with `.ltui.json` can trigger an extra broad project lookup, which is painful when the Linear API is near rate limit.\n\n### API-budget audits for `ltui` and `nod-symphony`\n\nWhen Aaron asks why Linear\u002Fltui\u002Fnod-symphony is hitting rate limits, inspect both code and live runtime shape before recommending fixes. See `references\u002Fltui-nod-symphony-api-budget-audit.md` for the concrete audit checklist and durable findings.\n\nHigh-yield checks:\n- `ltui`: confirm whether high-volume reads use shaped raw GraphQL (`issues list --fields`, repeated `--state`, `--show-rate-limit`) and whether expensive paths still default to attachment\u002Fcomment scans (`issues view`, `issues attachments`) or post-mutation refetches.\n- `nod-symphony`: inspect `LinearClient` query shapes and `Orchestrator` polling intervals. Candidate, project-summary, and state-reconcile paths should not all fetch full issue context with comments\u002Fattachments.\n- Runtime: check configured daemon profiles, poll\u002Freview\u002Fsummary intervals, active processes, local dashboard `\u002Fapi\u002Fv1\u002Fstate`, and recent logs for `candidate_fetch`, `issue_summary_refresh`, `tracker_state_reconcile`, and `RATELIMITED`.\n- Prefer fixes that reduce calls\u002Fcomplexity at source: server-side label\u002Fstate filters, cheap scan + per-dispatch hydration, state-only reconciliation queries, summary-specific queries, longer stable metadata caches, and shared Linear budget\u002Fbackoff across daemons\u002Ftools.\n\n### Reviewing In Review issues for completion\n\nWhen Aaron asks to review Linear issues in a repo\u002Fproject and move completed work to Done:\n\n1. Use the repo-local project defaults first (`.ltui.json`) and list the target state with JSON output, e.g. `ltui --format json --limit 100 issues list --team NOD --project \u003Cproject-id> --state 'In Review'`.\n2. For each candidate, gather evidence from Linear issue attachments (`ltui --format json issues attachments NOD-123`) and GitHub PR search\u002Fview. Attachments often contain the exact PR URL; `gh pr view \u003Cnum> --json state,mergedAt,title,body,statusCheckRollup` gives authoritative merge state.\n3. Move to `Done` only when there is direct completion evidence: linked\u002Fmentioned PR is `MERGED`, merged body explicitly covers the issue identifier or acceptance scope, and no issue description says the work was only a partial\u002Fdeferred slice.\n4. Do **not** close items merely because a related PR or nearby epic is merged. Leave ambiguous issues in review\u002Fbacklog and report why (e.g. no direct PR attachment, only indirect docs, or related PR was still open).\n5. After mutations, re-list the source state and the Done state to verify the final rows. Treat mutation output as provisional until a fresh list\u002Fview confirms the state.\n\nReference example: `references\u002Fccore-identity-fragmentation-issue.md` captures a C-Core\u002FHeddle account identity fragmentation investigation and the evidence shape used for NOD-1084.\n\n## Workflow States\n\nLinear uses `WorkflowState` objects with a `type` field. **6 state types:**\n\n| Type | Description |\n|------|-------------|\n| `triage` | Incoming issues needing review |\n| `backlog` | Acknowledged but not yet planned |\n| `unstarted` | Planned\u002Fready but not started |\n| `started` | Actively being worked on |\n| `completed` | Done |\n| `canceled` | Won't do |\n\nEach team has its own named states (e.g., \"In Progress\" is type `started`). To change an issue's status, you need the `stateId` (UUID) of the target state — query workflow states first.\n\n**Priority values:** 0 = None, 1 = Urgent, 2 = High, 3 = Medium, 4 = Low\n\n## Common Queries\n\n### Get current user\n```bash\ncurl -s -X POST https:\u002F\u002Fapi.linear.app\u002Fgraphql \\\n  -H \"Authorization: $LINEAR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"query\": \"{ viewer { id name email } }\"}' | python3 -m json.tool\n```\n\n### List teams\n```bash\ncurl -s -X POST https:\u002F\u002Fapi.linear.app\u002Fgraphql \\\n  -H \"Authorization: $LINEAR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"query\": \"{ teams { nodes { id name key } } }\"}' | python3 -m json.tool\n```\n\n### List workflow states for a team\n```bash\ncurl -s -X POST https:\u002F\u002Fapi.linear.app\u002Fgraphql \\\n  -H \"Authorization: $LINEAR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"query\": \"{ workflowStates(filter: { team: { key: { eq: \\\"ENG\\\" } } }) { nodes { id name type } } }\"}' | python3 -m json.tool\n```\n\n### List issues (first 20)\n```bash\ncurl -s -X POST https:\u002F\u002Fapi.linear.app\u002Fgraphql \\\n  -H \"Authorization: $LINEAR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"query\": \"{ issues(first: 20) { nodes { identifier title priority state { name type } assignee { name } team { key } url } pageInfo { hasNextPage endCursor } } }\"}' | python3 -m json.tool\n```\n\n### List my assigned issues\n```bash\ncurl -s -X POST https:\u002F\u002Fapi.linear.app\u002Fgraphql \\\n  -H \"Authorization: $LINEAR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"query\": \"{ viewer { assignedIssues(first: 25) { nodes { identifier title state { name type } priority url } } } }\"}' | python3 -m json.tool\n```\n\n### Get a single issue (by identifier like ENG-123)\n```bash\ncurl -s -X POST https:\u002F\u002Fapi.linear.app\u002Fgraphql \\\n  -H \"Authorization: $LINEAR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"query\": \"{ issue(id: \\\"ENG-123\\\") { id identifier title description priority state { id name type } assignee { id name } team { key } project { name } labels { nodes { name } } comments { nodes { body user { name } createdAt } } url } }\"}' | python3 -m json.tool\n```\n\n### Search issues by text\n```bash\ncurl -s -X POST https:\u002F\u002Fapi.linear.app\u002Fgraphql \\\n  -H \"Authorization: $LINEAR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"query\": \"{ issueSearch(query: \\\"bug login\\\", first: 10) { nodes { identifier title state { name } assignee { name } url } } }\"}' | python3 -m json.tool\n```\n\n### Filter issues by state type\n```bash\ncurl -s -X POST https:\u002F\u002Fapi.linear.app\u002Fgraphql \\\n  -H \"Authorization: $LINEAR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"query\": \"{ issues(filter: { state: { type: { in: [\\\"started\\\"] } } }, first: 20) { nodes { identifier title state { name } assignee { name } } } }\"}' | python3 -m json.tool\n```\n\n### Filter by team and assignee\n```bash\ncurl -s -X POST https:\u002F\u002Fapi.linear.app\u002Fgraphql \\\n  -H \"Authorization: $LINEAR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"query\": \"{ issues(filter: { team: { key: { eq: \\\"ENG\\\" } }, assignee: { email: { eq: \\\"user@example.com\\\" } } }, first: 20) { nodes { identifier title state { name } priority } } }\"}' | python3 -m json.tool\n```\n\n### List projects\n```bash\ncurl -s -X POST https:\u002F\u002Fapi.linear.app\u002Fgraphql \\\n  -H \"Authorization: $LINEAR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"query\": \"{ projects(first: 20) { nodes { id name description progress lead { name } teams { nodes { key } } url } } }\"}' | python3 -m json.tool\n```\n\n### List team members\n```bash\ncurl -s -X POST https:\u002F\u002Fapi.linear.app\u002Fgraphql \\\n  -H \"Authorization: $LINEAR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"query\": \"{ users { nodes { id name email active } } }\"}' | python3 -m json.tool\n```\n\n### List labels\n```bash\ncurl -s -X POST https:\u002F\u002Fapi.linear.app\u002Fgraphql \\\n  -H \"Authorization: $LINEAR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"query\": \"{ issueLabels { nodes { id name color } } }\"}' | python3 -m json.tool\n```\n\n## Common Mutations\n\n### Create an issue\n```bash\ncurl -s -X POST https:\u002F\u002Fapi.linear.app\u002Fgraphql \\\n  -H \"Authorization: $LINEAR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"query\": \"mutation($input: IssueCreateInput!) { issueCreate(input: $input) { success issue { id identifier title url } } }\",\n    \"variables\": {\n      \"input\": {\n        \"teamId\": \"TEAM_UUID\",\n        \"title\": \"Fix login bug\",\n        \"description\": \"Users cannot login with SSO\",\n        \"priority\": 2\n      }\n    }\n  }' | python3 -m json.tool\n```\n\n### Update issue status\nFirst get the target state UUID from the workflow states query above, then:\n```bash\ncurl -s -X POST https:\u002F\u002Fapi.linear.app\u002Fgraphql \\\n  -H \"Authorization: $LINEAR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"query\": \"mutation { issueUpdate(id: \\\"ENG-123\\\", input: { stateId: \\\"STATE_UUID\\\" }) { success issue { identifier state { name type } } } }\"}' | python3 -m json.tool\n```\n\n### Assign an issue\n```bash\ncurl -s -X POST https:\u002F\u002Fapi.linear.app\u002Fgraphql \\\n  -H \"Authorization: $LINEAR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"query\": \"mutation { issueUpdate(id: \\\"ENG-123\\\", input: { assigneeId: \\\"USER_UUID\\\" }) { success issue { identifier assignee { name } } } }\"}' | python3 -m json.tool\n```\n\n### Set priority\n```bash\ncurl -s -X POST https:\u002F\u002Fapi.linear.app\u002Fgraphql \\\n  -H \"Authorization: $LINEAR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"query\": \"mutation { issueUpdate(id: \\\"ENG-123\\\", input: { priority: 1 }) { success issue { identifier priority } } }\"}' | python3 -m json.tool\n```\n\n### Add a comment\n```bash\ncurl -s -X POST https:\u002F\u002Fapi.linear.app\u002Fgraphql \\\n  -H \"Authorization: $LINEAR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"query\": \"mutation { commentCreate(input: { issueId: \\\"ISSUE_UUID\\\", body: \\\"Investigated. Root cause is X.\\\" }) { success comment { id body } } }\"}' | python3 -m json.tool\n```\n\n### Set due date\n```bash\ncurl -s -X POST https:\u002F\u002Fapi.linear.app\u002Fgraphql \\\n  -H \"Authorization: $LINEAR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"query\": \"mutation { issueUpdate(id: \\\"ENG-123\\\", input: { dueDate: \\\"2026-04-01\\\" }) { success issue { identifier dueDate } } }\"}' | python3 -m json.tool\n```\n\n### Add labels to an issue\n```bash\ncurl -s -X POST https:\u002F\u002Fapi.linear.app\u002Fgraphql \\\n  -H \"Authorization: $LINEAR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"query\": \"mutation { issueUpdate(id: \\\"ENG-123\\\", input: { labelIds: [\\\"LABEL_UUID_1\\\", \\\"LABEL_UUID_2\\\"] }) { success issue { identifier labels { nodes { name } } } } }\"}' | python3 -m json.tool\n```\n\n### Add issue to a project\n```bash\ncurl -s -X POST https:\u002F\u002Fapi.linear.app\u002Fgraphql \\\n  -H \"Authorization: $LINEAR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"query\": \"mutation { issueUpdate(id: \\\"ENG-123\\\", input: { projectId: \\\"PROJECT_UUID\\\" }) { success issue { identifier project { name } } } }\"}' | python3 -m json.tool\n```\n\n### Create a project\n```bash\ncurl -s -X POST https:\u002F\u002Fapi.linear.app\u002Fgraphql \\\n  -H \"Authorization: $LINEAR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"query\": \"mutation($input: ProjectCreateInput!) { projectCreate(input: $input) { success project { id name url } } }\",\n    \"variables\": {\n      \"input\": {\n        \"name\": \"Q2 Auth Overhaul\",\n        \"description\": \"Replace legacy auth with OAuth2 and PKCE\",\n        \"teamIds\": [\"TEAM_UUID\"]\n      }\n    }\n  }' | python3 -m json.tool\n```\n\n## Documents\n\nLinear **Documents** are prose docs (RFCs, specs, notes) stored alongside issues. They have their own `documents` root query and `document(id:)` single-fetch.\n\n### Document URLs and `slugId`\n\nDocument URLs look like:\n```\nhttps:\u002F\u002Flinear.app\u002F\u003Cworkspace>\u002Fdocument\u002F\u003Cslug>-\u003ChexSlugId>\n```\n\nThe trailing hex segment is the `slugId`. Example: `https:\u002F\u002Flinear.app\u002Fnousresearch\u002Fdocument\u002Frfc-hermes-permission-gateway-discord-38359beef67c` → `slugId` is `38359beef67c`.\n\n**Important schema detail:** the Markdown body is in the `content` field. The ProseMirror JSON is in `contentState` (not `contentData` — that field does not exist and the API returns 400).\n\n### Fetch a document by slugId\n\n`document(id:)` only accepts UUIDs. To fetch by the URL's hex slug, filter the collection:\n\n```bash\ncurl -s -X POST https:\u002F\u002Fapi.linear.app\u002Fgraphql \\\n  -H \"Authorization: $LINEAR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"query\": \"query($s: String!) { documents(filter: { slugId: { eq: $s } }, first: 1) { nodes { id title content contentState slugId url creator { name } project { name } updatedAt } } }\", \"variables\": {\"s\": \"38359beef67c\"}}' \\\n  | python3 -m json.tool\n```\n\nOr via the Python helper:\n```bash\npython3 scripts\u002Flinear_api.py get-document 38359beef67c\n```\n\n### Fetch a document by UUID\n\n```bash\ncurl -s -X POST https:\u002F\u002Fapi.linear.app\u002Fgraphql \\\n  -H \"Authorization: $LINEAR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"query\": \"{ document(id: \\\"11700cff-b514-4db3-afcc-3ed1afacba1c\\\") { title content url } }\"}' \\\n  | python3 -m json.tool\n```\n\n### List recent documents\n\n```bash\ncurl -s -X POST https:\u002F\u002Fapi.linear.app\u002Fgraphql \\\n  -H \"Authorization: $LINEAR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"query\": \"{ documents(first: 25, orderBy: updatedAt) { nodes { id title slugId url updatedAt project { name } } } }\"}' \\\n  | python3 -m json.tool\n```\n\n### Search documents by title\n\nLinear's schema has no `searchDocuments` root. Use a title-substring filter instead:\n\n```bash\ncurl -s -X POST https:\u002F\u002Fapi.linear.app\u002Fgraphql \\\n  -H \"Authorization: $LINEAR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"query\": \"{ documents(filter: { title: { containsIgnoreCase: \\\"RFC\\\" } }, first: 25) { nodes { title slugId url } } }\"}' \\\n  | python3 -m json.tool\n```\n\n## Pagination\n\nLinear uses Relay-style cursor pagination:\n\n```bash\n# First page\ncurl -s -X POST https:\u002F\u002Fapi.linear.app\u002Fgraphql \\\n  -H \"Authorization: $LINEAR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"query\": \"{ issues(first: 20) { nodes { identifier title } pageInfo { hasNextPage endCursor } } }\"}' | python3 -m json.tool\n\n# Next page — use endCursor from previous response\ncurl -s -X POST https:\u002F\u002Fapi.linear.app\u002Fgraphql \\\n  -H \"Authorization: $LINEAR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"query\": \"{ issues(first: 20, after: \\\"CURSOR_FROM_PREVIOUS\\\") { nodes { identifier title } pageInfo { hasNextPage endCursor } } }\"}' | python3 -m json.tool\n```\n\nDefault page size: 50. Max: 250. Always use `first: N` to limit results.\n\n## Filtering Reference\n\nComparators: `eq`, `neq`, `in`, `nin`, `lt`, `lte`, `gt`, `gte`, `contains`, `startsWith`, `containsIgnoreCase`\n\nCombine filters with `or: [...]` for OR logic (default is AND within a filter object).\n\n## Typical Workflow\n\n1. **Query teams** to get team IDs and keys\n2. **Query workflow states** for target team to get state UUIDs\n3. **List or search issues** to find what needs work\n4. **Create issues** with team ID, title, description, priority\n5. **Update status** by setting `stateId` to the target workflow state\n6. **Add comments** to track progress\n7. **Mark complete** by setting `stateId` to the team's \"completed\" type state\n\n## Rate Limits\n\n- 5,000 requests\u002Fhour per API key\n- 3,000,000 complexity points\u002Fhour\n- Use `first: N` to limit results and reduce complexity cost\n- Monitor `X-RateLimit-Requests-Remaining` response header\n\n## Important Notes\n\n- Always use `terminal` tool with `curl` for API calls — do NOT use `web_extract` or `browser`\n- Always check the `errors` array in GraphQL responses — HTTP 200 can still contain errors\n- If `stateId` is omitted when creating issues, Linear defaults to the first backlog state\n- The `description` field supports Markdown\n- Use `python3 -m json.tool` or `jq` to format JSON responses for readability\n",{"name":5,"author":43,"license":15,"version":44,"metadata":45,"platforms":53,"description":7,"prerequisites":54},"Hermes Agent","1.2.0",{"hermes":46},{"tags":47},[48,49,50,51,52],"Linear","Project Management","Issues","ltui","Productivity",[36,29,35],{"commands":55},[51],"main","64e2fc9afa7bb3da1138eb73399144d0e7e73e9d","_hermes\u002Fdefault\u002Fskills\u002Fproductivity\u002Flinear",4,"https:\u002F\u002Fgithub.com\u002Fadnichols\u002Fai-configs","https:\u002F\u002Fgithub.com\u002Fadnichols","2026-11-06 00:28:38",{"source":8,"skillName":5,"commands":64,"prompt":74,"zipAvailable":75},[65,68,71],{"tool":66,"command":67},"npx","npx skills add adnichols\u002Fai-configs --skill linear",{"tool":69,"command":70},"bunx","bunx skills add adnichols\u002Fai-configs --skill linear",{"tool":72,"command":73},"pnpm","pnpm dlx skills add adnichols\u002Fai-configs --skill linear","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fadnichols\u002Fai-configs\u002Fblob\u002Fmain\u002F_hermes\u002Fdefault\u002Fskills\u002Fproductivity\u002Flinear\u002FSKILL.md",true,[77,83,87,91,95,99,103,107,111,115,119,123,127,131,135,141],{"path":78,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":81,"sourceHtmlUrl":82},"docs\u002Fanti-patterns-detection.md","REFERENCE","参考文档",16967,"https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fconfig_packs\u002Fgodot-dev\u002Fclaude\u002Fskills\u002Fgodot-refactor\u002Fdocs\u002Fanti-patterns-detection.md",{"path":84,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":85,"sourceHtmlUrl":86},"docs\u002Fconflicting-operations-detection.md",12022,"https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fconfig_packs\u002Fgodot-dev\u002Fclaude\u002Fskills\u002Fgodot-refactor\u002Fdocs\u002Fconflicting-operations-detection.md",{"path":88,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":89,"sourceHtmlUrl":90},"docs\u002Fgodot-best-practices.md",17099,"https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fconfig_packs\u002Fgodot-dev\u002Fclaude\u002Fskills\u002Fgodot-refactor\u002Fdocs\u002Fgodot-best-practices.md",{"path":92,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":93,"sourceHtmlUrl":94},"docs\u002Fgodot-node-reference.md",66806,"https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fconfig_packs\u002Fgodot-dev\u002Fclaude\u002Fskills\u002Fgodot-refactor\u002Fdocs\u002Fgodot-node-reference.md",{"path":96,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":97,"sourceHtmlUrl":98},"docs\u002Fnode-selection-guide.md",19472,"https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fconfig_packs\u002Fgodot-dev\u002Fclaude\u002Fskills\u002Fgodot-refactor\u002Fdocs\u002Fnode-selection-guide.md",{"path":100,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":101,"sourceHtmlUrl":102},"docs\u002Frefactoring-operations.md",37221,"https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fconfig_packs\u002Fgodot-dev\u002Fclaude\u002Fskills\u002Fgodot-refactor\u002Fdocs\u002Frefactoring-operations.md",{"path":104,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":105,"sourceHtmlUrl":106},"docs\u002Fscene-reusability-patterns.md",19300,"https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fconfig_packs\u002Fgodot-dev\u002Fclaude\u002Fskills\u002Fgodot-refactor\u002Fdocs\u002Fscene-reusability-patterns.md",{"path":108,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":109,"sourceHtmlUrl":110},"docs\u002Ftscn-generation-guide.md",17440,"https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fconfig_packs\u002Fgodot-dev\u002Fclaude\u002Fskills\u002Fgodot-refactor\u002Fdocs\u002Ftscn-generation-guide.md",{"path":112,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":113,"sourceHtmlUrl":114},"docs\u002Fverification-checklist.md",16771,"https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fconfig_packs\u002Fgodot-dev\u002Fclaude\u002Fskills\u002Fgodot-refactor\u002Fdocs\u002Fverification-checklist.md",{"path":116,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":117,"sourceHtmlUrl":118},"EXAMPLES.md",19035,"https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fconfig_packs\u002Fgodot-dev\u002Fclaude\u002Fskills\u002Fgodot-refactor\u002FEXAMPLES.md",{"path":120,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":121,"sourceHtmlUrl":122},"INDEX.md",17283,"https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fconfig_packs\u002Fgodot-dev\u002Fclaude\u002Fskills\u002Fgodot-refactor\u002FINDEX.md",{"path":124,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":125,"sourceHtmlUrl":126},"README.md",2652,"https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fconfig_packs\u002Fgodot-dev\u002Fclaude\u002Fskills\u002Fgodot-refactor\u002FREADME.md",{"path":128,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":129,"sourceHtmlUrl":130},"references\u002Fccore-identity-fragmentation-issue.md",3819,"https:\u002F\u002Fgithub.com\u002Fadnichols\u002Fai-configs\u002Fblob\u002Fmain\u002F_hermes\u002Fdefault\u002Fskills\u002Fproductivity\u002Flinear\u002Freferences\u002Fccore-identity-fragmentation-issue.md",{"path":132,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":133,"sourceHtmlUrl":134},"references\u002Fltui-nod-symphony-api-budget-audit.md",4520,"https:\u002F\u002Fgithub.com\u002Fadnichols\u002Fai-configs\u002Fblob\u002Fmain\u002F_hermes\u002Fdefault\u002Fskills\u002Fproductivity\u002Flinear\u002Freferences\u002Fltui-nod-symphony-api-budget-audit.md",{"path":136,"resourceType":137,"resourceTypeDesc":138,"sizeBytes":139,"sourceHtmlUrl":140},"scripts\u002Flinear_api.py","SCRIPT","脚本",15603,"https:\u002F\u002Fgithub.com\u002Fadnichols\u002Fai-configs\u002Fblob\u002Fmain\u002F_hermes\u002Fdefault\u002Fskills\u002Fproductivity\u002Flinear\u002Fscripts\u002Flinear_api.py",{"path":142,"resourceType":137,"resourceTypeDesc":138,"sizeBytes":143,"sourceHtmlUrl":144},"validate-skill.sh",2075,"https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fconfig_packs\u002Fgodot-dev\u002Fclaude\u002Fskills\u002Fgodot-refactor\u002Fvalidate-skill.sh",[146,161,195,220,231,247],{"skillNo":147,"name":148,"nameZh":6,"description":149,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":150,"categories":151,"keywords":152,"publishedAt":38},"01M6CB7RN791P5RRRCJWWC7DAR","blocked-page-recovery","Use when a fetch fails: 403\u002F429, paywall, WAF, bot wall.","https:\u002F\u002Fgithub.com\u002Fadnichols\u002Fai-configs\u002Fblob\u002Fmain\u002F_hermes\u002Fdefault\u002Fskills\u002Fweb\u002Fblocked-page-recovery\u002FSKILL.md",[],[153,154,155,156,20,22,157,24,25,158,159,35,160,36,29],"recovery","page","blocked page recovery","bot","fetch","Citations","waf","research",{"skillNo":162,"name":163,"nameZh":6,"description":164,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":165,"categories":166,"keywords":180,"publishedAt":38},"01M6CB7NQY2VVYCQJ1QBXACQF4","writing-plans","Use when creating or updating executable software plans. Keep plans as local files unless the user explicitly asks to register them in Doct.","https:\u002F\u002Fgithub.com\u002Fadnichols\u002Fai-configs\u002Fblob\u002Fmain\u002F_hermes\u002Fdefault\u002Fskills\u002Fsoftware-development\u002Fwriting-plans\u002FSKILL.md",[167,172,175],{"categoryNo":168,"categoryName":169,"taxonomyType":170,"taxonomyTypeDesc":171},"01JBSEEDCAT000000000000018","写作与文案","SCENARIO","使用场景",{"categoryNo":173,"categoryName":174,"taxonomyType":170,"taxonomyTypeDesc":171},"01JBSEEDCAT000000000000023","Skill与智能体开发",{"categoryNo":176,"categoryName":177,"taxonomyType":178,"taxonomyTypeDesc":179},"01JBSEEDCAT000000000000036","内容创作者","PROFESSION","适用职业",[181,182,183,184,185,186,187,188,189,190,191,192,22,193,24,25,194],"writing","writing plans","documentation","test","workflow","design","user","development","planning","files","implementation","html","ops","plan",{"skillNo":196,"name":197,"nameZh":6,"description":198,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":199,"categories":200,"keywords":210,"publishedAt":38},"01M6CB7JME246KZQHP73Z2STDF","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002Fadnichols\u002Fai-configs\u002Fblob\u002Fmain\u002F_hermes\u002Fdefault\u002Fskills\u002Fsoftware-development\u002Ftest-driven-development\u002FSKILL.md",[201,204,207],{"categoryNo":202,"categoryName":203,"taxonomyType":170,"taxonomyTypeDesc":171},"01JBSEEDCAT000000000000007","代码审查",{"categoryNo":205,"categoryName":206,"taxonomyType":170,"taxonomyTypeDesc":171},"01JBSEEDCAT000000000000008","测试与质量",{"categoryNo":208,"categoryName":209,"taxonomyType":178,"taxonomyTypeDesc":179},"01JBSEEDCAT000000000000037","律师与法务",[184,188,211,212,213,24,25,214,194,215,216,217,29,218,36,219,35],"test driven development","red-green-refactor","superpowers","quality","refactor","code","debugging","tdd","testing",{"skillNo":221,"name":222,"nameZh":6,"description":223,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":224,"categories":225,"keywords":227,"publishedAt":38},"01M6CB7FQ407KQTD4Z9VAWKY54","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002Fadnichols\u002Fai-configs\u002Fblob\u002Fmain\u002F_hermes\u002Fdefault\u002Fskills\u002Fsoftware-development\u002Fsystematic-debugging\u002FSKILL.md",[226],{"categoryNo":205,"categoryName":206,"taxonomyType":170,"taxonomyTypeDesc":171},[217,228,188,213,24,25,229,194,230,35,184,36,29],"systematic debugging","troubleshooting","investigation",{"skillNo":232,"name":233,"nameZh":6,"description":234,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":235,"categories":236,"keywords":240,"publishedAt":38},"01M6CB7D57MK88HE5YPZHKH68Q","spike","Throwaway experiments to validate an idea before build.","https:\u002F\u002Fgithub.com\u002Fadnichols\u002Fai-configs\u002Fblob\u002Fmain\u002F_hermes\u002Fdefault\u002Fskills\u002Fsoftware-development\u002Fspike\u002FSKILL.md",[237],{"categoryNo":238,"categoryName":239,"taxonomyType":170,"taxonomyTypeDesc":171},"01JBSEEDCAT000000000000021","资料检索与研究",[233,35,241,242,160,243,36,29,244,245,246,24,25,194,189],"validate","experiments","prototype","feasibility","sketch","experiment",{"skillNo":248,"name":249,"nameZh":6,"description":250,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":251,"categories":252,"keywords":257,"publishedAt":38},"01M6CB7APAQ37YE5YE1MAAFT42","simplify-code","Parallel 3-agent cleanup of recent code changes.","https:\u002F\u002Fgithub.com\u002Fadnichols\u002Fai-configs\u002Fblob\u002Fmain\u002F_hermes\u002Fdefault\u002Fskills\u002Fsoftware-development\u002Fsimplify-code\u002FSKILL.md",[253,254],{"categoryNo":173,"categoryName":174,"taxonomyType":170,"taxonomyTypeDesc":171},{"categoryNo":255,"categoryName":256,"taxonomyType":178,"taxonomyTypeDesc":179},"01JBSEEDCAT000000000000030","开发工程师",[258,259,216,260,24,25,261,194,215,262,263,264,188,35,184,36,265,29],"simplify code","simplify","subagent","parallel","code-review","delegation","cleanup","review"]