Initialiser l'intégration Linear

VérifiéSûr

Configure l'intégration Linear : vérifie la clé API, sélectionne une équipe et enregistre le catalogue localement.

Spar Skills Guide Bot
ProductiviteDébutant
06/09/2026
Claude Code
#linear#integration-setup#api-credentials#issue-tracking#project-config

Recommandé pour

Synthèse automatique

Configure l'intégration Linear d'un projet en vérifiant la clé API personnelle auprès de l'API GraphQL Linear, puis en enregistrant une équipe choisie et son catalogue de WorkflowStates sous .accelerator/state/integrations/linear/.

Points forts

  • La clé est validée contre la véritable API Linear GraphQL avant toute écriture, ce qui détecte immédiatement un jeton invalide ou préfixé par « Bearer ».
  • Sépare proprement catalogue.json (partagé, versionné) de viewer.json (propre au développeur, ignoré par git).
  • Idempotent : peut être relancé sans risque après un changement de jeton ou d'équipe.
  • Le jeton n'est jamais affiché et peut être résolu indirectement via token_cmd (par exemple un gestionnaire de secrets).

Limites

  • Portée volontairement limitée à une seule équipe par projet : aucun support multi-équipes ou multi-organisations.
  • Aucun flux OAuth : une clé API personnelle commençant par lin_api_ doit déjà exister.
  • L'invocation par le modèle est désactivée, la commande doit être lancée explicitement et dépend du binaire du plugin accelerator.
Quand l'utiliser

À utiliser lors de la mise en place initiale d'un projet devant être rattaché à une équipe Linear, afin que les états de workflow soient connus localement.

Quand l'éviter

À éviter si votre suivi de tickets n'est pas Linear, si vous avez besoin de plusieurs équipes, ou pour une simple requête ponctuelle sans persistance d'état.

Analyse de sécurité

Sûr
Score qualité92/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.

Aucun point d'attention détecté

Comment cette analyse est faite

Exemples

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

Du fichier au premier essai

Le téléchargement contient exactement le contenu affiché sur cette fiche. Cette copie peut différer de la dernière version du dépôt source.

Consulter la source et ses fichiers annexes

Ce téléchargement contient uniquement SKILL.md. Les scripts, références, modèles et dépendances éventuels ne sont pas inclus. Récupérez les fichiers nécessaires depuis la source en conservant leur arborescence avant de poursuivre.

1. Télécharger le fichier

Télécharger SKILL.md

Depuis la racine d’un projet de test, enregistrez le fichier sous .skill-downloads/initialize-linear-integration-mtpag6qe/SKILL.md, ou utilisez la commande suivante. Ce dossier sert à examiner la skill avant son installation.

Commande pour macOS/Linux ou WSL : un shell POSIX et curl sont nécessaires. Sous Windows sans WSL, utilisez le bouton de téléchargement et créez le dossier manuellement.

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. Vérifier les prérequis

Lisez SKILL.md avant de l’utiliser. Si le fichier cite des scripts ou services externes, examinez-les et préparez les accès nécessaires dans votre environnement de test.

Aucune section de prérequis reconnue dans ce fichier. Cela ne signifie pas qu’il est autonome : les bibliothèques, outils et accès peuvent être cités ailleurs dans le contenu ou dans le dépôt source.

Les plateformes de la fiche sont des indications du catalogue. Les chemins ci-dessous suivent la documentation des outils ; ils ne prouvent pas que cette skill y a été exécutée. Aucune version minimale de ces outils n’est attestée pour cette fiche.

3. Charger la skill

Après vérification, copiez le dossier complet dans le projet avec l’une des commandes ci-dessous, puis ouvrez une nouvelle session de l’outil. La commande s’arrête si un dossier du même nom existe déjà : comparez les fichiers avant de le remplacer.

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 doit déjà être installé. La procédure locale install/read est contrôlée avec OpenSkills 1.5.0, qui exige Node.js ≥ 20.6.0. Aucun slug du catalogue n’est résolu automatiquement.

Installation officielle d’OpenSkills
openskills install './.skill-downloads/initialize-linear-integration-mtpag6qe'

openskills read 'initialize-linear-integration-mtpag6qe'

La lecture doit afficher le contenu du fichier installé et son dossier de base. Elle ne lance ni la skill ni ses dépendances.

Pour un agent qui lit AGENTS.md, synchronisez ensuite l’index. Cette commande modifie AGENTS.md : relisez le diff avant de l’utiliser.

openskills sync

Mode manuel ou autre outil : joignez SKILL.md à une conversation, ou ouvrez-le dans un agent capable de lire les fichiers. Ajoutez les ressources annexes nécessaires. Il n’existe pas de dossier universel reconnu par tous les outils.

4. Faire un premier essai

Utilisez une entrée courte et fictive : un endpoint d’API, un petit document ou un brief d’interface. Dans une nouvelle conversation, joignez le fichier ou donnez son chemin à l’agent, puis adaptez cette demande :

Lis .skill-downloads/initialize-linear-integration-mtpag6qe/SKILL.md et applique ses instructions à cet exemple : [décrire une entrée de test]. Indique les fichiers, dépendances ou accès qui manquent. Produis le résultat demandé par la skill sans inventer de données ni exécuter de script non examiné.

Résultat attendu : une sortie correspondant aux instructions de la skill, ou une liste précise des prérequis manquants. Une simple confirmation de lecture ne valide pas le premier usage. Si une ressource externe est indisponible, ce parcours reste à tester.

Skills similaires