Skip to main content
linear-core-workflow-b Project, cycle, and roadmap management workflows with Linear.
Use when implementing sprint planning, managing projects and milestones,
or organizing work into cycles.
Trigger: "linear project", "linear cycle", "linear sprint",
"linear roadmap", "linear planning", "linear milestone".
설치로 이동 Skills Marketplace 커뮤니티가 만든 AI 스킬을 발견하고 탐색하세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/jeremylongshore/claude-code-plugins-plus-skills --skill linear-core-workflow-b명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
Zip 다운로드 다운로드 중... 이 저장소의 다른 Skills Implement user sign-up and sign-in flows with Clerk.
Use when building authentication UI, customizing sign-in experience,
or implementing OAuth social login.
Trigger with phrases like "clerk sign-in", "clerk sign-up",
"clerk login flow", "clerk OAuth", "clerk social login".
Implement session management and middleware with Clerk.
Use when managing user sessions, configuring route protection,
or implementing token refresh and custom JWT templates.
Trigger with phrases like "clerk session", "clerk middleware",
"clerk route protection", "clerk token", "clerk JWT".
Configure enterprise SSO, role-based access control, and organization management.
Use when implementing SSO integration, configuring role-based permissions,
or setting up organization-level controls.
Trigger with phrases like "clerk SSO", "clerk RBAC",
"clerk enterprise", "clerk roles", "clerk permissions", "clerk organizations".
jeremylongshore
jeremylongshore/claude-code-plugins-plus-skills
GitHub 저장소 열기 name linear-core-workflow-b description Project, cycle, and roadmap management workflows with Linear.
Use when implementing sprint planning, managing projects and milestones,
or organizing work into cycles.
Trigger: "linear project", "linear cycle", "linear sprint",
"linear roadmap", "linear planning", "linear milestone".
allowed-tools Read, Write, Edit, Grep version 1.12.0 license MIT author Jeremy Longshore <jeremy@intentsolutions.io> tags ["saas","linear","workflow"] compatibility Designed for Claude Code, also compatible with Codex and OpenClaw
Linear Core Workflow B: Projects & Cycles
Overview
Manage projects, cycles (sprints), milestones, and roadmaps using the Linear API. Projects group issues across teams with states (planned, started, paused, completed, canceled), target dates, and progress tracking. Cycles are time-boxed iterations (sprints) owned by a single team. Initiatives group projects at the organizational level.
Prerequisites
Linear SDK configured with API key or OAuth token
Understanding of Linear's hierarchy: Organization > Team > Cycle/Project > Issue
Team access with project create permissions
Instructions
Step 1: Project CRUD
import { LinearClient } from "@linear/sdk" ;
const client = new LinearClient ({ apiKey : process.env .LINEAR_API_KEY ! });
const projects = await client.projects ({
filter : {
accessibleTeams : { some : { key : { eq : "ENG" } } },
state : { nin : ["completed" , "canceled" ] },
},
orderBy : "updatedAt" ,
first : 20 ,
});
for (const project of projects.nodes ) {
console .log (`${project.name} [ ] — progress: %` );
}
teams = client. ();
eng = teams. . ( t. === )!;
projectResult = client. ({
: ,
: ,
: [eng. ],
: ,
: ,
});
project = projectResult. ;
. ( );
client. (project!. , {
: ,
: ,
});
found = client. ({
: { : { : } },
});
${project.state}
${Math .round(project.progress * 100 )}
const
await
teams
const
nodes
find
t =>
key
"ENG"
const
await
createProject
name
"Authentication Overhaul"
description
"Modernize auth infrastructure with OAuth 2.0 + MFA."
teamIds
id
state
"planned"
targetDate
"2026-06-30"
const
await
project
console
log
`Created project: ${project?.name} (${project?.id} )`
await
updateProject
id
state
"started"
description
"Updated scope: includes SSO integration."
const
await
projects
filter
slugId
eq
"auth-overhaul"
Step 2: Project Milestones
await client.createProjectMilestone ({
projectId : project!.id ,
name : "OAuth 2.0 Implementation" ,
targetDate : "2026-04-15" ,
});
await client.createProjectMilestone ({
projectId : project!.id ,
name : "MFA Rollout" ,
targetDate : "2026-05-30" ,
});
const milestones = await project!.projectMilestones ();
for (const ms of milestones.nodes ) {
console .log (` Milestone: ${ms.name} — target: ${ms.targetDate} ` );
}
Step 3: Assign Issues to Projects
await client.createIssue ({
teamId : eng.id ,
title : "Implement OAuth 2.0 login flow" ,
projectId : project!.id ,
priority : 2 ,
});
await client.updateIssue ("existing-issue-id" , {
projectId : project!.id ,
});
const projectIssues = await project!.issues ({ first : 100 });
for (const issue of projectIssues.nodes ) {
const state = await issue.state ;
console .log (` ${issue.identifier} : ${issue.title} [${state?.name} ]` );
}
Step 4: Cycle (Sprint) Management
const now = new Date ().toISOString ();
const cycles = await eng.cycles ({
filter : { endsAt : { gte : now } },
orderBy : "startsAt" ,
});
for (const cycle of cycles.nodes ) {
console .log (`${cycle.name ?? "Unnamed" } : ${cycle.startsAt} → ${cycle.endsAt} ` );
}
const startsAt = new Date ();
const endsAt = new Date ();
endsAt.setDate (endsAt.getDate () + 14 );
const cycleResult = await client.createCycle ({
teamId : eng.id ,
name : "Sprint 42" ,
startsAt : startsAt.toISOString (),
endsAt : endsAt.toISOString (),
});
const cycle = await cycleResult.cycle ;
console .log (`Created cycle: ${cycle?.name} ` );
const issueIds = ["issue-id-1" , "issue-id-2" , "issue-id-3" ];
for (const issueId of issueIds) {
await client.updateIssue (issueId, { cycleId : cycle!.id });
}
Step 5: Cycle Metrics async function getCycleMetrics (cycleId : string ) {
const cycle = await client.cycle (cycleId);
const issues = await cycle.issues ();
const byState = new Map <string , number >();
let totalEstimate = 0 ;
let completedEstimate = 0 ;
for (const issue of issues.nodes ) {
const state = await issue.state ;
const name = state?.name ?? "Unknown" ;
byState.set (name, (byState.get (name) ?? 0 ) + 1 );
totalEstimate += issue.estimate ?? 0 ;
if (state?.type === "completed" ) {
completedEstimate += issue.estimate ?? 0 ;
}
}
return {
totalIssues : issues.nodes .length ,
stateBreakdown : Object .fromEntries (byState),
totalPoints : totalEstimate,
completedPoints : completedEstimate,
burndown : totalEstimate ? Math .round ((completedEstimate / totalEstimate) * 100 ) : 0 ,
};
}
const metrics = await getCycleMetrics (cycle!.id );
console .log (`Sprint progress: ${metrics.burndown} % (${metrics.completedPoints} /${metrics.totalPoints} pts)` );
Step 6: Sprint Rollover async function rolloverCycle (fromCycleId : string , toCycleId : string ) {
const fromCycle = await client.cycle (fromCycleId);
const unfinished = await fromCycle.issues ({
filter : { state : { type : { nin : ["completed" , "canceled" ] } } },
});
let moved = 0 ;
for (const issue of unfinished.nodes ) {
await client.updateIssue (issue.id , { cycleId : toCycleId });
moved++;
}
console .log (`Rolled over ${moved} unfinished issues` );
return moved;
}
Step 7: Team Velocity async function calculateVelocity (teamKey : string , sprintCount = 3 ) {
const teams = await client.teams ({ filter : { key : { eq : teamKey } } });
const team = teams.nodes [0 ];
const cycles = await team.cycles ({
filter : { completedAt : { neq : null } },
orderBy : "completedAt" ,
first : sprintCount,
});
const velocities = await Promise .all (
cycles.nodes .map (async (cycle) => {
const completed = await cycle.issues ({
filter : { state : { type : { eq : "completed" } } },
});
return completed.nodes .reduce ((sum, i ) => sum + (i.estimate ?? 0 ), 0 );
})
);
const avg = velocities.reduce ((a, b ) => a + b, 0 ) / velocities.length ;
return { velocities, average : Math .round (avg * 10 ) / 10 };
}
const velocity = await calculateVelocity ("ENG" );
console .log (`Average velocity: ${velocity.average} pts/sprint` );
Step 8: Roadmap View async function getRoadmap (monthsAhead = 6 ) {
const futureDate = new Date ();
futureDate.setMonth (futureDate.getMonth () + monthsAhead);
const projects = await client.projects ({
filter : {
state : { nin : ["completed" , "canceled" ] },
targetDate : { lte : futureDate.toISOString () },
},
orderBy : "targetDate" ,
});
return projects.nodes .map (p => ({
name : p.name ,
state : p.state ,
progress : `${Math .round(p.progress * 100 )} %` ,
targetDate : p.targetDate ,
}));
}
const roadmap = await getRoadmap ();
console .table (roadmap);
Error Handling Error Cause Solution Project not foundInvalid project ID or deleted Verify ID with client.projects() Cycle dates overlapDates conflict with existing cycle Check existing cycles: team.cycles() Permission deniedNo project access Verify team membership Invalid date rangeendsAt before startsAtValidate date ordering before API call Team not in projectIssue team not in project's team list Add team via updateProject first
Examples
Sprint Planning Flow async function planSprint (teamKey : string , durationDays : number , issueIds : string [] ) {
const teams = await client.teams ({ filter : { key : { eq : teamKey } } });
const team = teams.nodes [0 ];
const startsAt = new Date ();
const endsAt = new Date ();
endsAt.setDate (endsAt.getDate () + durationDays);
const cycleResult = await client.createCycle ({
teamId : team.id ,
name : `Sprint ${new Date ().toISOString().slice(0 , 10 )} ` ,
startsAt : startsAt.toISOString (),
endsAt : endsAt.toISOString (),
});
const cycle = await cycleResult.cycle ;
for (const id of issueIds) {
await client.updateIssue (id, { cycleId : cycle!.id });
}
console .log (`Sprint created: ${cycle?.name} (${issueIds.length} issues)` );
return cycle;
}
Resources