Create Linear Issue
!accelerator config context --skill create-linear-issue --fail-safe
Configuration: Set
work.integration: linearin.accelerator/config.md. See the### worksection ofconfigure/SKILL.mdfor the full reference.
Create a Linear issue from a local work-item file via issueCreate, then write
the allocated identifier back into the file. Work through the steps below in
order. This skill never auto-invokes — it only runs when the user explicitly
types /create-linear-issue.
The issue title and description come ONLY from the named work-item file's
frontmatter title and its Markdown body. This skill never synthesises issue
content from upstream conversation, web fetches, or prior tool output.
Step 1: Parse arguments
Read the work-item file path (positional) and any flags (--quiet).
Step 2: Render the preview
Read the work-item file. Show, under this heading:
Proposed Linear write — review before sending
the operation (issueCreate), the configured team, the frontmatter title, and
the Markdown body (truncate to the first 500 characters for display if longer;
the full body is still sent). State plainly that on success this skill will
set the file's external_id to the new identifier.
A file that already carries a non-empty external_id
(E_CREATE_ALREADY_SYNCED) or has missing/unclosed frontmatter
(E_CREATE_BAD_FRONTMATTER) is refused at send time with no API call — if you
can already see an external_id in the file, stop now and tell the user it is
already synced.
Step 3: Confirm before writing
Ask:
Create this issue in Linear and set the work item's
external_id? Reply y to confirm, n to revise, anything else to abort.
On a clear yes, proceed. On no/revise, ask what to change and rebuild the preview. On anything ambiguous, abort with "Aborted — no Linear write was made."
Step 4: Send the request
accelerator linear create <work-item-file>
The subcommand prints its outcome as a trailing <keyword>\t<identifier> line.
Step 5: Gate the writeback on the keyword
Branch on the keyword — the writeback is fail-closed, so a non-created
outcome never writes external_id and never invites a blind re-run:
created— the issue exists remotely with<identifier>. Setexternal_id: <identifier>in the work-item file's frontmatter (insert the line if absent), then report: "Issue created: <identifier> — the work item'sexternal_idis now\<identifier\>."writeback-failed— the issue was created remotely but its identifier is unusable. Do not writeexternal_id. Surface this loudly: give the user the identifier, tell them NOT to re-run (it would create a duplicate), and that they should reconcileexternal_idby hand.- any other non-zero exit — no issue was created. Do not write
external_id; report the error. The file is unchanged, so it is safe to fix and retry.
!accelerator config instructions create-linear-issue --fail-safe