okr-align
Skill2 starsChanged 5 months agoMITView on GitHub
Check that a spec or initiative aligns with a current-quarter OKR. Run automatically during /specify (Phase 2) and /initiative create. Flags work that has no KR backing.
In this repository60 other files it gives its agents.
- .claude/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- analyzeSkill
- animation-disciplineSkill
- api-versioningSkill
- autopilotSkill
- browser-e2eSkill
- characterizeSkill
- clarifySkill
- codemodSkill
- constitution-compactSkill
- constitutionSkill
- context-budgetSkill
- creative-webSkill
- db-migrationSkill
- debugSkill
- detect-stackSkill
- dispatch-criteriaSkill
- dreamSkill
- experimentSkill
- fastapiSkill
- flag-cleanupSkill
- flag-rolloutSkill
- flask-realtimeSkill
- framework-detectorSkill
- front-end-designSkill
- grill-meSkill
- handoffSkill
- image-generationSkill
- implementSkill
- initiativeSkill
- instinctSkill
- loopSkill
- nextjsSkill
- observabilitySkill
- parallel-swarmSkill
- pivotSkill
- planSkill
- pr-bodySkill
- prime-disciplineSkill
- prod-observabilitySkill
- react-nodeSkill
- react-viteSkill
- release-trainSkill
- researchSkill
- reviewSkill
- security-guardSkill
- self-healSkill
- shipSkill
- skill-creatorSkill
- specifySkill
- tailwind-disciplineSkill
- tasksSkill
- tdd-loopSkill
- token-budgetSkill
- typographySkill
- verify-loopSkill
- verifySkill
- wip-checkpointSkill
- <kebab-case-skill-name>Skill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 4 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
Every spec and initiative must declare which KR it serves.
- Very specific: line 17
Read the target artifact (specs/active/<id>.md or initiatives/active/<id>.md).
- Very specific: line 18
Read OKRs.md to enumerate current-quarter KRs.
- Distinctive: line 19
Check the artifact's frontmatter:
- Distinctive: line 66
Don't auto-assign a KR: Always surface for human confirmation.
- Distinctive: line 68
Closed-KR alignment is invalid: If a spec aligned to KR-2026Q2-* that's now closed, prompt the user to either close the spec or re-align.
≈ “Common” is an estimate: at least 1 in 5 of the 364,980 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
OKR Align
Every spec and initiative must declare which KR it serves. This skill is the alignment gate.
Process
- Read the target artifact (
specs/active/<id>.mdorinitiatives/active/<id>.md). - Read
OKRs.mdto enumerate current-quarter KRs. - Check the artifact's frontmatter:
- Spec:
objective: KR-<QYYYY>-<NN>(required for non-trivial specs) - Initiative: KR linked in
## Strategic context
- Spec:
- Surface mismatches:
- Missing field
- KR ID doesn't exist in current quarter
- KR is closed/superseded
- Recommend next action:
- "Add
objective: KR-2026Q3-04to spec frontmatter" - "Propose a new KR in next quarter's cut" (if work is opportunistic but valid)
- "Defer this spec until aligned with a future KR"
- "Add
What's exempt
- Bug fixes ≤ 20 LOC (per CLAUDE.md §VIII)
- Security patches (always urgent; KR-tagged retroactively)
- Compliance-driven work (use
KR-COMPLIANCEsynthetic tag) - Platform / infra work that serves multiple KRs (use
KR-PLATFORMsynthetic tag)
Output
OKR alignment check — spec 042
- objective: KR-2026Q3-04 ✓ (matches "Checkout failure rate 2.1% → 0.5%")
- KR owner: @alex (matches initiative 037 sponsor)
- KR status: active
- Verdict: ALIGNED
Initiative 042
- KR: KR-2026Q3-01 ✓
- KR-2026Q3-02 ✓
- KR-2026Q3-03 ✓
- Verdict: ALIGNED (3 KRs)Mismatch example:
OKR alignment check — spec 058
- objective: missing
- Suggested KRs based on spec body:
- KR-2026Q3-06 (tech debt) — confidence 70%
- Verdict: NEEDS-ALIGNMENT
Recommend: edit specs/active/058-foo.md frontmatter → `objective: KR-2026Q3-06`Hard rules
- Don't auto-assign a KR. Always surface for human confirmation.
- Synthetic tags (
KR-COMPLIANCE,KR-PLATFORM) require a one-line rationale in the spec. - Closed-KR alignment is invalid. If a spec aligned to KR-2026Q2-* that's now closed, prompt the user to either close the spec or re-align.
Hook
This skill is invoked automatically by:
/specify(Phase 2 of 8-phase workflow) — gates spec approval/initiative create(gates initiative activation)/roadmap cut(validates all NOW items)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

