openlore-orient
Retrieve relevant functions, callers, spec sections, and insertion points from OpenLore before reading source files. Use when…
Review code changes using OpenLore risk, call, coverage, and cluster evidence without editing code. Use when asked for a change review, pre-PR safety check, or merge recommendation.
Claude Code
$ npx -y skills add clay-good/OpenLore --skill openlore-review-changes --agent claude-code
Codex
$ npx skills add clay-good/OpenLore --skill openlore-review-changes -a codex -y
Cursor
$ npx skills add clay-good/OpenLore --skill openlore-review-changes -a cursor -y
Gemini CLI
$ npx skills add clay-good/OpenLore --skill openlore-review-changes -a gemini-cli -y
GitHub Copilot
$ npx skills add clay-good/OpenLore --skill openlore-review-changes -a github-copilot -y
OpenCode
$ npx skills add clay-good/OpenLore --skill openlore-review-changes -a opencode -y
Windsurf
$ npx skills add clay-good/OpenLore --skill openlore-review-changes -a windsurf -y
name: openlore-review-changes description: Review code changes using OpenLore risk, call, coverage, and cluster evidence without editing code. Use when asked for a change review, pre-PR safety check, or merge recommendation.
Trigger this skill whenever the user asks to **review, audit, or check the safety of recent changes**, with phrasings like:
**No code is written.** Output is a risk-ranked review with a go/no-go recommendation.
---
Ask: which project? Diff against which base? (default: `main`)
Store as `$DIRECTORY` and `$BASE_REF`.
---
Call the openlore MCP tool `detect_changes` with:
{"directory": "$DIRECTORY", "base": "$BASE_REF"}The risk score is **multiplicative**: `likelihood × impact`.
A function with fanIn=0 calling nothing external scores 0 regardless of change size — correct; focus on non-zero scores.
Present a risk-ranked table:
| Rank | Function | File | riskScore | blastRadius | fanIn | testedBy | |---|---|---|---|---|---|---|
Flag:
---
For each function with `riskScore ≥ 5`, call `get_minimal_context`:
{"directory": "$DIRECTORY", "functionName": "$FUNCTION_NAME"}**What to read:**
For each HIGH function, state:
$FUNCTION_NAME ($FILE): Interface frozen? [yes — all callers await | no — mixed] External boundary? [yes: $CALLEES | no] Effective coverage: [strong (called) | weak (imported only) | none] Verdict: [safe | needs direct tests first | coordinate with callers before merge]
---
For any HIGH function whose verdict is not "safe":
{"directory": "$DIRECTORY", "functionName": "$FUNCTION_NAME"}
// get_clusterRead `stats.clusterDensity`:
| Density | Meaning | Action | |---|---|---| | < 0.05 | Sparse — shared utilities | Change isolated; safe to land independently | | 0.05–0.15 | Moderate coupling | Review `internalCallGraph` for transitively dependent functions | | > 0.15 | Dense — tightly interwoven | Coordinate whole cluster; consider feature flag or staged rollout |
---
For each HIGH or MEDIUM function with `testedBy` empty or all `"imported"`:
> "⚠️ `$FUNCTION_NAME` has no direct test coverage. Changes here are not caught by the test suite unless a test directly calls this function. Recommend adding a characterisation test before merging."
Suggest a concrete test scenario based on the function body from `get_minimal_context`.
---
(from Step 2)
(from Steps 3–4)
---
Deterministic, local-first code and contract intelligence for AI coding agents, with no LLM in the hot path.
Retrieve relevant functions, callers, spec sections, and insertion points from OpenLore before reading source files. Use when…
Run a full static OpenLore analysis and summarize architecture, call graph, refactoring issues, and duplicate code. Use when…
Transform a feature idea into an annotated story using a Domain Sketch or Constrained Option Tree. Use when asked to brainstorm,…
Configure OpenLore from bounded repository evidence, with reviewed plans and observed verification.
Debug with OpenLore structural context, an explicit root-cause hypothesis, and RED/GREEN verification. Use when a bug, failure,…
Apply a confirmed .openlore/refactor-plan.md with a test gate after each change. Use when asked to execute or continue an…
Believable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude…
Keep a durable record of work passed between Bots in the shared Hindsight memory bank. Use when handing work to another Bot, when…
Install, configure, and operate MemPalace, including a private local palace, a shared-brain hub, or a client joining an existing…
Install, configure, and operate MemPalace, including a private local palace, a shared-brain hub, or a client joining an existing…