Initialize Linear Integration

VerifiedSafe

Sets up Linear integration: verifies API key, selects a team, and persists workflow state locally.

Sby Skills Guide Bot
ProductivityBeginner
9/6/2026
Claude Code
#linear#integration-setup#api-credentials#issue-tracking#project-config

Recommended for

Automated summary

Sets up a project's Linear integration by validating a personal API key against the Linear GraphQL API, then persisting a chosen team and its WorkflowState catalogue under .accelerator/state/integrations/linear/.

Strengths

  • Validates the key against the real Linear GraphQL API before writing anything, surfacing invalid or Bearer-prefixed tokens immediately.
  • Cleanly separates catalogue.json (shared, version-controlled) from viewer.json (per-developer, gitignored).
  • Idempotent: safe to re-run after credential or team changes.
  • Never prints the token and supports indirect resolution via token_cmd (e.g. a secrets manager).

Limitations

  • Deliberately single-team per project: no multi-team or multi-org support.
  • No OAuth flow; a personal API key starting with lin_api_ must already exist.
  • Model invocation is disabled, so it must be triggered explicitly and depends on the accelerator plugin binary.
When to use it

Use it when first wiring a project to a Linear team so the team's workflow states are available locally.

When not to use it

Avoid it if your issue tracker is not Linear, if you need several teams, or for a one-off query that does not require persisted state.

Security analysis

Safe
Quality score92/100

The skill is limited to a specific accelerator binary via allowed-tools and only runs its config and linear subcommands. It verifies credentials against the legitimate Linear API, never prints the token, and persists local integration state. No destructive, exfiltrating, or obfuscated actions are present; network use is for the intended integration purpose.

No concerns found

How this analysis is made

Examples

Fresh project setup
/init-linear
Preselect the team
/init-linear --team-id 8f3c1d2e-4a5b-6789-abcd-ef0123456789
Re-run after rotating the API key
I updated the Linear token in .accelerator/config.local.md — re-run /init-linear to verify it and refresh the catalogue.

name: init-linear description: > Set up the Linear integration for this project. Verifies a Linear personal API key against the real Linear GraphQL API, lets you pick one team, and persists that team plus its WorkflowState catalogue under <paths.integrations>/linear/ (default .accelerator/state/integrations/linear/). catalogue.json is team-shared and version-controlled; viewer.json is per-developer and gitignored. Idempotent: safe to re-run after credential or team changes. argument-hint: "[--team-id <uuid>]" disable-model-invocation: true allowed-tools:

  • Bash(${CLAUDE_PLUGIN_ROOT}/bin/accelerator config *)
  • Bash(${CLAUDE_PLUGIN_ROOT}/bin/accelerator linear *)

Init Linear

!${CLAUDE_PLUGIN_ROOT}/bin/accelerator config context --skill init-linear --fail-safe

Configuration: Set work.integration: linear in .accelerator/config.md to enable auto-scoping. See the ### work section of configure/SKILL.md for the full reference.

You are setting up the Linear integration for this project. Work through the steps below in order, stopping to prompt the user only when a value is missing and cannot be derived from existing configuration.

Step 1: Verify credentials

Run:

${CLAUDE_PLUGIN_ROOT}/bin/accelerator linear init verify

Run the bare launcher directly as an executable; never prefix it with bash/sh/env (a wrapper prefix escapes the skill's allowed-tools permission and forces an unnecessary prompt). Credential resolution and verification fold into this one call; the token is never printed.

If it fails naming E_NO_TOKEN (no token found), tell the user:

No Linear API token found. Generate a personal API key at https://linear.app/settings/account/security (the value starts with lin_api_), then add it to .accelerator/config.local.md (which is gitignored):

---
linear:
  token_cmd: "op read op://Work/Linear/credential"
---

The key must be stored and sent without a Bearer prefix.

Re-run /init-linear once the token is configured.

Then stop. Do not continue until the token is available.

On success the subcommand emits a JSON document with outcome: "verified" plus {id, name}, and writes .accelerator/state/integrations/linear/viewer.json. Print: "Verified as <name> (<id>)." On any other non-zero exit, show the error and stop — a Bearer-prefixed token or an invalid key surfaces here as an authentication failure.

Step 2: List teams

Run:

${CLAUDE_PLUGIN_ROOT}/bin/accelerator linear init list-teams

This emits a JSON document with outcome: "listed" and a .teams array of {id, name, key}. Present the teams to the user as a readable list (key + name) and ask which one to scope this project to. If the user passed --team-id <uuid>, skip the prompt and use it.

Step 3: Discover and persist the catalogue

Run, substituting the chosen team's UUID:

${CLAUDE_PLUGIN_ROOT}/bin/accelerator linear init discover --team-id <uuid>

On success (outcome: "discovered") the subcommand writes catalogue.json atomically, containing the chosen team's {id, key, name} and its WorkflowStates ({id, name, type, position}). Only the selected team's states are persisted (single-team scoping).

Step 4: Confirm completion

Print a summary:

Linear integration initialised:
  Team:   <key> — <name>
  States: <N> WorkflowStates cached (.accelerator/state/integrations/linear/catalogue.json)
  Viewer: <name> (.accelerator/state/integrations/linear/viewer.json — gitignored)

Remind the user to commit .accelerator/state/integrations/linear/catalogue.json so teammates pick up the shared team + state catalogue without re-running /init-linear. (viewer.json is gitignored — each developer runs /init-linear to record their own viewer identity and resolve their own credentials.)

!${CLAUDE_PLUGIN_ROOT}/bin/accelerator config instructions init-linear --fail-safe

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/initialize-linear-integration-mtpag6qe/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/initialize-linear-integration-mtpag6qe' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/initialize-linear-integration-mtpag6qe/download' --output '.skill-downloads/initialize-linear-integration-mtpag6qe/SKILL.md.part' && mv '.skill-downloads/initialize-linear-integration-mtpag6qe/SKILL.md.part' '.skill-downloads/initialize-linear-integration-mtpag6qe/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/initialize-linear-integration-mtpag6qe/SKILL.md' && test -s '.skill-downloads/initialize-linear-integration-mtpag6qe/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/init-linear' && cp -R '.skill-downloads/initialize-linear-integration-mtpag6qe' '.claude/skills/init-linear'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/initialize-linear-integration-mtpag6qe'

openskills read 'initialize-linear-integration-mtpag6qe'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/initialize-linear-integration-mtpag6qe/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills