Load only these knowledge files before executing:
- knowledge/linear-operations.md
Purpose: Sync repo workflow artifacts into Linear without changing the repo's canonical role.
This command mirrors the state already captured in repo files into the appropriate Linear project, issues, and comments.
Run /linear-sync after the repo artifact already exists.
Recommended checkpoints:
- After
/create-issue->/linear-sync issue - After
/create-plan->/linear-sync plan - After
/review,/peer-review,/qa-test->/linear-sync status - After
/deploy-check->/linear-sync release
Run as:
/linear-sync <issue|plan|status|release>
- Read
project-state.md - Read
experiments/ideas/<active_issue>.md - Read
experiments/exploration/exploration-<issue_number>.mdif it exists - Read
experiments/plans/plan-<issue_number>.mdif it exists - Read
experiments/plans/manifest-<issue_number>.jsonif it exists - Read relevant result artifacts from
experiments/results/based on sync mode - Read
experiments/linear-sync/issue-<NNN>.jsonif it exists
If linear_enabled is not true, stop and raise an explicit error instructing the PM to run /linear-bind first.
Activate agents/linear-agent.md.
Confirm the active issue has:
linear_enabled: truelinear_teamlinear_projectlinear_sync_map_path
Lookup order:
experiments/linear-sync/issue-<NNN>.jsonproject-state.md- live Linear query by exact team plus exact title
If any field is missing, fail explicitly.
Use these MCP tools as needed:
get_project,save_projectget_issue,list_issues,save_issuelist_comments,save_commentcreate_document,update_document
Sync the opportunity brief into Linear.
Expected behavior:
- update the root Linear issue title and description from the repo issue brief
- include local repo artifact paths as plain text in the description
- ensure
AI Product OS/Discoveryis applied - keep the root issue in
Backlog
Sync planning artifacts.
Expected behavior:
- create or update the Linear project
- set the project state to
planned - create or update a Linear document snapshot titled
issue-<NNN> Plan Snapshot - include plan summary, manifest summary, and local repo paths for the plan and manifest
- create or update child issues from
manifest-<issue_number>.json - child issue title format:
[issue-<NNN>][<task_id>] <task name> - child issue description must include phase id, phase name, assigned agent, files to create, files to modify, verification command, and test file
- child issues default to status
Todoand labelsFeatureplusAI Product OS/Execution - use manifest task IDs plus the sync map as stable identifiers to avoid duplicates
- if the manifest file is missing, raise an explicit error
Sync workflow status and blockers.
Expected behavior:
- map repo stage and status into Linear project status
- update the root issue stage label based on repo stage:
create-issue,explore->Discoverycreate-plan->Planningexecute-plan,deslop->Executionreview,peer-review,qa-test->Review
- add
Blockedif repo status is blocked - add
Release Readyafter successfuldeploy-check - add comments summarizing review, peer-review, or QA outcomes
- if blocked, include blocker details from
project-state.mdor the relevant result file - keep child issues unchanged in v1
Sync deployment readiness.
Expected behavior:
- attach PR URL and deployment links as real Linear links on the root issue
- add a release summary comment
- apply
AI Product OS/Release Ready - keep the root issue in
In Reviewuntil/linear-close
Write these fields back to project-state.md:
linear_last_synclinear_sync_status
Also update experiments/linear-sync/issue-<NNN>.json with:
- last sync mode
- last sync timestamp
- document ids created or updated
- task issue mappings created or updated
Do not alter repo stage progression.
create-issueandexplore->Backlogcreate-plan-> plannedexecute-plananddeslop->In Progress- blocked review stages ->
In ReviewplusBlocked - successful
deploy-check->In ReviewplusRelease Ready
- If a required repo artifact for the selected mode is missing, raise an explicit error
- If a Linear write fails, raise an explicit error with mode and target context
- If label or document creation conflicts, recover by lookup instead of duplicating objects
- Never create duplicates when an object with the same repo issue number or manifest task ID already exists
Mode
Repo Context
Linear Target
Objects Created
Objects Updated
Updated Sync Map
Sync Result