pp-linear
Linear project-management CLI for the terminal. Manage issues, projects, cycles, teams, initiatives, roadmaps, and customer records via the Linear GraphQL API with offline-capable SQLite sync. Use when the user asks about their Linear issues, wants today's queue, sprint velocity, team workload, bottlenecks, duplicate / stale / orphaned issues, release pipelines, or wants to create, update, or search Linear items from the terminal. Offline search and analytics work without an API round-trip after a one-time sync.
- License 许可
- Apache-2.0
- 最近更新
- 2026-05-22
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- pp-linear
- author
- Matt Van Horn
- license
- Apache-2.0
- metadata
- { "openclaw": { "install": [ { "bins": [ "linear-pp-cli" ], "kind": "go", "module": "github.com/mvanhorn/printing-press-library/library/project-management/linear/cmd/linear-pp-cli" } ], "requires": { "bins": [ "linear-pp-cli" ] } } }
- description
- Linear project-management CLI for the terminal. Manage issues, projects, cycles, teams, initiatives, roadmaps, and customer records via the Linear GraphQL API with offline-capable SQLite sync. Use when the user asks about their Linear issues, wants today's queue, sprint velocity, team workload, bottlenecks, duplicate / stale / orphaned issues, release pipelines, or wants to create, update, or search Linear items from the terminal. Offline search and analytics work without an API round-trip after a one-time sync.
- allowed-tools
- Read Bash
- argument-hint
- <command> [args] | install cli|mcp
02 资源文件 114
- 参考文档AGENTS.md2.9 KB
- 脚本cmd/linear-pp-cli/main.go431 B
- 脚本cmd/linear-pp-mcp/main.go606 B
- 参考文档CURSOR.md2.2 KB
- 参考文档dogfood-results.json2.0 KB
- 其他go.mod1009 B
- 其他go.sum7.0 KB
- 脚本internal/cache/cache.go1.7 KB
- 脚本internal/cli/analytics.go2.8 KB
- 脚本internal/cli/api_discovery.go2.4 KB
- 脚本internal/cli/auth.go3.9 KB
- 脚本internal/cli/blocking.go6.5 KB
- 脚本internal/cli/bottleneck.go3.2 KB
- 脚本internal/cli/channel_workflow.go5.2 KB
- 脚本internal/cli/cycles_compare.go8.7 KB
- 脚本internal/cli/data_source.go9.0 KB
- 脚本internal/cli/deliver.go3.5 KB
- 脚本internal/cli/doctor.go4.9 KB
- 脚本internal/cli/export.go2.8 KB
- 脚本internal/cli/feedback.go6.3 KB
- 脚本internal/cli/helpers_test.go2.1 KB
- 脚本internal/cli/helpers.go31.4 KB
- 脚本internal/cli/import.go2.6 KB
- 脚本internal/cli/initiatives_health.go6.0 KB
- 脚本internal/cli/integrations_create.go3.2 KB
- 脚本internal/cli/integrations_delete.go2.7 KB
- 脚本internal/cli/issues_create.go7.0 KB
- 脚本internal/cli/issues_test.go8.6 KB
- 脚本internal/cli/issues.go13.8 KB
- 脚本internal/cli/me.go1.5 KB
- 脚本internal/cli/pm_load.go4.7 KB
- 脚本internal/cli/pm_orphans.go4.6 KB
- 脚本internal/cli/pp_cleanup.go6.3 KB
- 脚本internal/cli/pp_test_cmd.go3.9 KB
- 脚本internal/cli/profile.go9.4 KB
- 脚本internal/cli/projects_burndown.go7.5 KB
- 脚本internal/cli/promoted_attachments.go2.7 KB
- 脚本internal/cli/promoted_audit-entry-types.go2.7 KB
- 脚本internal/cli/promoted_auth-resolver-responses.go2.6 KB
- 脚本internal/cli/promoted_authentication-session-responses.go2.7 KB
- 脚本internal/cli/promoted_custom-views.go2.6 KB
- 脚本internal/cli/promoted_customer-statuses.go2.6 KB
- 脚本internal/cli/promoted_customer-tiers.go2.6 KB
- 脚本internal/cli/promoted_customers.go2.7 KB
- 脚本internal/cli/promoted_cycles.go2.6 KB
- 脚本internal/cli/promoted_documents.go2.6 KB
- 脚本internal/cli/promoted_email-intake-addresses.go2.8 KB
- 脚本internal/cli/promoted_entity-external-links.go2.7 KB
- 脚本internal/cli/promoted_favorites.go2.7 KB
- 脚本internal/cli/promoted_initiative-to-projects.go2.9 KB
- 脚本internal/cli/promoted_initiatives.go2.8 KB
- 脚本internal/cli/promoted_integration-templates.go2.7 KB
- 脚本internal/cli/promoted_integrations-settingses.go2.7 KB
- 脚本internal/cli/promoted_integrations.go2.7 KB
- 脚本internal/cli/promoted_issue-labels.go2.6 KB
- 脚本internal/cli/promoted_issue-priority-values.go2.7 KB
- 脚本internal/cli/promoted_issue-relations.go2.6 KB
- 脚本internal/cli/promoted_issue-to-releases.go2.6 KB
- 脚本internal/cli/promoted_organization-invites.go2.7 KB
- 脚本internal/cli/promoted_organization-metas.go2.9 KB
- 脚本internal/cli/promoted_organizations.go2.6 KB
- 脚本internal/cli/promoted_project-labels.go2.8 KB
- 脚本internal/cli/promoted_project-milestones.go2.8 KB
- 脚本internal/cli/promoted_project-relations.go2.8 KB
- 脚本internal/cli/promoted_project-statuses.go2.8 KB
- 脚本internal/cli/promoted_projects.go2.8 KB
- 脚本internal/cli/promoted_release-pipelines.go2.7 KB
- 脚本internal/cli/promoted_release-stages.go2.8 KB
- 脚本internal/cli/promoted_releases.go2.7 KB
- 脚本internal/cli/promoted_roadmap-to-projects.go2.8 KB
- 脚本internal/cli/promoted_roadmaps.go2.7 KB
- 脚本internal/cli/promoted_team-memberships.go2.6 KB
- 脚本internal/cli/promoted_teams.go2.8 KB
- 脚本internal/cli/promoted_templates.go2.5 KB
- 脚本internal/cli/promoted_user-settingses.go2.6 KB
- 脚本internal/cli/promoted_users.go2.5 KB
- 脚本internal/cli/promoted_workflow-states.go2.6 KB
- 脚本internal/cli/root.go11.0 KB
- 脚本internal/cli/similar.go2.7 KB
- 脚本internal/cli/slipped.go5.7 KB
- 脚本internal/cli/sqlcmd.go1.3 KB
- 脚本internal/cli/stale_custom.go3.3 KB
- 脚本internal/cli/sync.go6.0 KB
- 脚本internal/cli/tail.go3.1 KB
- 脚本internal/cli/today.go3.2 KB
- 脚本internal/cli/velocity.go3.1 KB
- 脚本internal/client/client.go14.2 KB
- 脚本internal/client/graphql.go4.0 KB
- 脚本internal/client/queries.go4.4 KB
- 脚本internal/cliutil/fanout.go6.2 KB
- 脚本internal/cliutil/probe.go4.6 KB
- 脚本internal/cliutil/ratelimit.go4.7 KB
- 脚本internal/cliutil/text.go2.5 KB
- 脚本internal/cliutil/verifyenv.go1.2 KB
- 脚本internal/config/config_test.go3.4 KB
- 脚本internal/config/config.go3.5 KB
- 脚本internal/mcp/cobratree/classify.go3.5 KB
- 脚本internal/mcp/cobratree/cli_path.go705 B
- 脚本internal/mcp/cobratree/names.go644 B
- 脚本internal/mcp/cobratree/shellout.go2.6 KB
- 脚本internal/mcp/cobratree/typemap.go2.1 KB
- 脚本internal/mcp/cobratree/walker.go2.0 KB
- 脚本internal/mcp/tools.go32.7 KB
- 脚本internal/store/pp_fixtures.go3.0 KB
- 脚本internal/store/store.go28.7 KB
- 脚本internal/types/types.go175.6 KB
- 许可证LICENSE10.5 KB
- 其他Makefile345 B
- 参考文档manifest.json858 B
- 参考文档mcp-descriptions.json3.3 KB
- 其他NOTICE388 B
- 参考文档README.md18.1 KB
- 参考文档tools-manifest.json10.8 KB
- 参考文档workflow-verify-report.json171 B
03 SKILL.md 正文
Linear - Printing Press CLI
Prerequisites: Install the CLI
This skill drives the linear-pp-cli binary. You must verify the CLI is installed before invoking any command from this skill. If it is missing, install it first:
- Install via the Printing Press installer (use the
cli-onlyflag to skip the MCP component): <!-- npx -y @mvanhorn/printing-press install linear cli-only -->npx -y @mvanhorn/printing-press install linear cli-only - Verify:
linear-pp-cli --version - Ensure
$GOPATH/bin(or$HOME/go/bin) is on$PATH.
If the npx install fails (no Node, offline, etc.), fall back to a direct Go install (requires Go 1.26.3 or newer):
go install github.com/mvanhorn/printing-press-library/library/project-management/linear/cmd/linear-pp-cli@latest
If --version reports "command not found" after install, the install step did not put the binary on $PATH. Do not proceed with skill commands until verification succeeds.
Cursor
Personal API keys are created under Account → Security & access in Linear, not under Integrations. For step-by-step Cursor setup (keys, auth set-api-key, optional MCP tradeoffs), see CURSOR.md in the Linear module.
When to Use This CLI
Reach for this when the user wants:
- a fast "what's on my plate today" view across teams (
today,me) - find or look up a specific issue by identifier (
issues ESP-1155) - list issues assigned to them or a teammate, filtered by team / state (
issues list --assignee me --state started) - sprint velocity / team workload / bottleneck analysis (
velocity,workload,load,bottleneck) - find stale issues, duplicates, or orphaned items (
stale,similar,orphans) - search across issues, projects, and cycles offline (
synconce, thensimilarhits SQLite) - list or inspect projects, cycles, milestones, roadmaps, initiatives, releases
- create / update issues, projects, or cycles (via the typed subcommands and
workflow) - export Linear data to JSONL for backup or migration
- stream live changes without polling the web UI (
tail) - run read-only SQL against the synced store (
sqlfor power users)
Trigger phrases: "what's assigned to me", "look up issue ABC-123", "find my Linear tickets", "what's on my plate", "show me my Linear queue".
Skip it when the user wants to configure team settings, integrations, or OAuth apps; those admin surfaces live in the Linear web admin.
Argument Parsing
Parse $ARGUMENTS:
- Empty,
help, or--help-> showlinear-pp-cli --help - Starts with
install-> ends withmcp-> MCP installation; otherwise -> CLI installation - Anything else -> Direct Use (map to the best command and run it)
MCP Server Installation
The CLI ships an MCP server at linear-pp-mcp:
go install github.com/mvanhorn/printing-press-library/library/project-management/linear/cmd/linear-pp-mcp@latest
claude mcp add -e LINEAR_API_KEY=lin_api_... linear-pp-mcp -- linear-pp-mcp
Ask the user for the actual key value before running.
Direct Use
- Check installed:
which linear-pp-cli. If missing, offer CLI installation. - Ensure auth:
export LINEAR_API_KEY=...orlinear-pp-cli auth set-api-key lin_api_...(notauth set-token, which is for OAuth access tokens). Runlinear-pp-cli doctorto confirm. - Run
linear-pp-cli synconce (or when data is stale) to populate the local SQLite store. Analytics and search commands then run offline. - Discover commands:
linear-pp-cli --help; drill intolinear-pp-cli <cmd> --help. - Execute with
--agentfor structured output:linear-pp-cli <command> [args] --agent --data-source auto(default) hits the local store first with live fallback; use--data-source liveto force a live call (e.g. for time-sensitive queries on unsynced fields).
Notable Commands
| Command | What it does |
|---|---|
today |
Your issues across all teams, triaged to today's queue |
me |
Current authenticated user plus a snapshot of your open work |
issues <ID> |
Get a single issue by identifier (e.g. issues ESP-1155) |
issues list |
List issues from the local store with filters (--assignee, --state, --team, --project, --limit) |
projects |
Get/list projects with milestones and health status |
cycles |
Get/list sprint cycles for any team |
velocity |
Sprint velocity trends across recent cycles |
workload / load |
Issue + estimate distribution per team member |
bottleneck |
Overloaded assignees and blocked issues |
stale |
Issues not updated in N days |
similar <text> |
Fuzzy-find potential duplicate issues |
orphans |
Items missing assignee, project, or estimate |
sync |
Populate local SQLite from the GraphQL API |
tail |
Stream live changes by polling at an interval |
export / import |
JSONL round-trip for backup and migration |
sql |
Read-only SQL against the local store (power users) |
Run any command with --help for full flag documentation.
Finding Issues
Three patterns cover the common cases:
# Look up a specific issue by identifier
linear-pp-cli issues ESP-1155
# List all issues assigned to the authenticated user, excluding completed/canceled
linear-pp-cli issues list --assignee me
# Narrow to a team and state (also accepts --project, --limit, --json)
linear-pp-cli issues list --team ESP --state started --json
issues list reads from the local store, so run linear-pp-cli sync first. issues <ID> tries the local store, then falls back to a live GraphQL query, and works without sync.
--state matches on state.type so it works across teams with customized state names: started, backlog, unstarted, completed, canceled, triage, or all. The default active excludes completed and canceled.
--assignee accepts me, a user UUID, a display name, or an email. --team and --project accept either a key (e.g. ESP) or a UUID.
Agent Mode
Add --agent to any command. Expands to: --json --compact --no-input --no-color --yes.
- Pipeable — JSON on stdout, errors on stderr
- Filterable —
--selectkeeps a subset of fields, with dotted-path support (see below) - Previewable —
--dry-runshows the request without sending - Cacheable — GET responses cached for 5 minutes, bypass with
--no-cache - Non-interactive — never prompts, every input is a flag
Filtering output
--select accepts dotted paths to descend into nested responses; arrays traverse element-wise:
linear-pp-cli <command> --agent --select id,name
linear-pp-cli <command> --agent --select items.id,items.owner.name
Use this to narrow huge payloads to the fields you actually need — critical for deeply nested API responses.
Response envelope
Data-layer commands wrap output in {"meta": {...}, "results": <data>}. Parse .results for data and .meta.source to know whether it's live or local. The N results (live) summary is printed to stderr only when stdout is a TTY; piped/agent consumers see pure JSON on stdout.
Exit Codes
| Code | Meaning |
|---|---|
| 0 | Success |
| 2 | Usage error (wrong arguments) |
| 3 | Resource not found (issue, project, team) |
| 4 | Authentication required (LINEAR_API_KEY missing or invalid) |
| 5 | API error (Linear upstream, including GraphQL errors) |
| 7 | Rate limited (Linear enforces per-key complexity budgets) |
Unique Capabilities
These capabilities aren't available in any other tool for this API.
Local state that compounds
-
today— See all your issues for today across every team, ranked by priority and cycle deadline.When an agent is asked 'what should I work on right now?', this returns the ranked list in one call instead of N team-scoped list queries.
linear-pp-cli today --json --select identifier,title,priority,cycle.endsAt -
bottleneck— See which team members are overloaded and which issues are blocked before sprint planning.Pre-sprint-planning question 'who is overloaded right now' becomes a single agent call instead of scrolling N tabs.
linear-pp-cli bottleneck --team ENG --json -
projects burndown— Project a project's landing date by linear-regressing remaining estimate against the team's measured velocity.Replaces static project target-dates with a velocity-driven projection an agent can compare against the milestone date.
linear-pp-cli projects burndown PROJ-42 --json -
cycles compare— Side-by-side metrics between any two cycles: completion %, scope added, scope cut, carryover, average cycle time.Friday-update ritual: 'how does this cycle compare to last cycle?' becomes one call.
linear-pp-cli cycles compare 42 43 --json -
stale— Find issues that haven't been touched in N days, grouped by team and project.Backlog-grooming workflow: surface zombie issues without paying API complexity for a full scan.
linear-pp-cli stale --days 30 --team ENG --json -
slipped— Show what carried over from last cycle into this cycle, grouped by team and reason heuristic.Maya's Friday update needs 'what slipped' as a structured list, not a manual count.
linear-pp-cli slipped --team ENG --json -
blocking— Show issues you are blocking — sorted by impact (downstream count and priority).Daily ritual: 'what's blocked because of me' becomes one call instead of clicking through every assigned issue.
linear-pp-cli blocking --json -
similar— Find issues that look like duplicates of a query string using offline FTS5 fuzzy matching.Triage and grooming: catch dupes before filing or while sweeping the inbox.
linear-pp-cli similar "login button broken" --json -
velocity— Track sprint completion rates over the last N cycles to spot productivity trends.Multi-cycle trend lines feed the burndown projection and the weekly stakeholder update.
linear-pp-cli velocity --weeks 8 --team ENG --json -
initiatives health— Rolled-up portfolio view per initiative: child project progress, milestone target-vs-projected dates, slippage flags.Portfolio review: 'which milestone in my portfolio is most at risk this month' becomes one ranked answer.
linear-pp-cli initiatives health --json
Agent-native plumbing
-
pp-test list— List Linear issues this CLI created in the current or named session, then archive them with pp-cleanup.Lets agents create test issues during a session and clean up only their own fixtures, never touching pre-existing tickets.
linear-pp-cli pp-test list --session current && linear-pp-cli pp-cleanup --session current --dry-run -
issues create— Refuse mutations on Linear issues not in the local pp_created ledger when --trust-mode strict is set; works on the create command and any future mutation surfaces.When an agent runs against a real workspace, this is the safety net that prevents silent damage to non-test data.
linear-pp-cli issues create --title "test" --team ENG --trust-mode strict --session demo
04 同仓库更多 Skills
pp-wikipedia
Printing Press CLI for Wikipedia. Wikipedia REST API. Get article summaries, search, browse related topics, and access on-this-day events. No...
pp-trigger-dev
Every Trigger.dev management endpoint, plus offline FTS over runs, span-cost rollups, and zombie-schedule detection no other tool gives you. Trigger phrases: `trigger.dev failed runs`, `trigger.dev cost rollup`, `trigger.dev schedule health`, `audit trigger.dev env vars`, `watch trigger.dev failures`, `use trigger-dev`, `run trigger-dev`.
pp-substack
Run your Substack growth loop from the command line — publish, schedule, engage, and measure with cross-table... Trigger phrases: `post a substack note`, `schedule a week of substack notes`, `find substack swap partners`, `which of my notes drove subs`, `what's my engagement reciprocity`, `voice-match a substack note`, `best time to post on substack`, `use substack`, `run substack`.
pp-slack
Slack workspace CLI for the terminal. Send messages, search channels and DMs, list conversations, get user/bot/emoji info, analyze channel health, find stale threads, and sync the workspace locally for fast offline queries. Two auth surfaces coexist: SLACK_BOT_TOKEN (xoxb-, for workspace-wide read + post) and SLACK_USER_TOKEN (xoxp-, for user-scoped actions like DM history or search). Use when the user asks to send a Slack message, search Slack, check channel activity, summarize a digest, find who's on a team, find stale threads, analyze channel health, list users / emoji / reminders / pinned items, or wants offline-capable Slack queries.
pp-scrape-creators
Every Scrape Creators endpoint, plus offline search, cross-platform compounding, and a local store no other Scrape Creators tool ships with. Trigger phrases: `scrape creators`, `tiktok profile`, `instagram profile`, `youtube channel`, `facebook ad library`, `creator on every platform`, `social media transcript search`, `use scrape-creators`, `run scrape-creators`.
pp-postman-explore
The CLI for the public API directory at postman.com/explore — search, rank, and watch community-contributed Postman Collections, agent-native and offline. Trigger phrases: `find a postman collection for`, `what postman collection should i fork for`, `is there a postman collection for`, `browse postman api network`, `compare postman publishers`, `what changed on the postman network`, `use postman-explore`, `run postman-explore`.