openlore-brainstorm
Transform a feature idea into an annotated story using a Domain Sketch or Constrained Option Tree. Use when asked to brainstorm,…
Run a full static OpenLore analysis and summarize architecture, call graph, refactoring issues, and duplicate code. Use when asked to analyze, map, or assess a codebase without LLM inference.
$ npx -y skills add clay-good/OpenLore --skill openlore-analyze-codebase --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/openlore-analyze-codebaseContext preview
The summary Claude sees to decide when to auto-load this skill.
Run a full static OpenLore analysis and summarize architecture, call graph, refactoring issues, and duplicate code. Use when asked to analyze, map, or assess a codebase without LLM inference.
name: openlore-analyze-codebase description: Run a full static OpenLore analysis and summarize architecture, call graph, refactoring issues, and duplicate code. Use when asked to analyze, map, or assess a codebase without LLM inference.
Trigger this skill whenever the user asks to **analyze a codebase** with openlore, with phrasings like:
This skill is **read-only** — it modifies no files. It produces a report and suggests next steps.
---
Ask the user which project to analyze, or confirm the current workspace root.
Which project directory should I analyze? Options: current workspace root | enter a different path
---
Call the openlore MCP tool `analyze_codebase` with `{"directory": "$DIRECTORY"}`.
---
Present a concise summary:
Also report stack inventory (read directly from `.openlore/analysis/` — no extra MCP call needed):
If none of these files exist, skip this section and suggest running `openlore analyze --force`.
---
Call the openlore MCP tool `get_call_graph` with `{"directory": "$DIRECTORY"}`.
Highlight:
---
Call the openlore MCP tool `get_duplicate_report` with `{"directory": "$DIRECTORY"}`.
Present a concise summary:
---
Based on the analysis, guide the user through the natural next actions in order:
1. Call `get_minimal_context` on the highest-priority function — returns callers, callees, body, and test coverage in one call (~300 tokens). Use instead of `get_subgraph` + `get_signatures` separately. 2. Call `get_cluster` on any function to see its full community (tightly coupled neighbors across directories). 3. Call `detect_changes` to rank recently changed functions by blast radius — spot riskiest commits before reviewing. 3. If significant duplication was found, suggest consolidating clone groups **before** refactoring 4. Suggest running `/openlore-plan-refactor` once the user has enough context to act, then `/openlore-execute-refactor` to apply the plan 5. If the project has OpenSpec specs, call `list_spec_domains` then `search_specs` to enable spec-first reasoning (question → requirements → linked source files). To activate `search_specs`, run `openlore analyze --embed` or `openlore analyze --reindex-specs`.
---
Deterministic, local-first memory and guardrails for AI coding agents with no LLM in the hot path.
Transform a feature idea into an annotated story using a Domain Sketch or Constrained Option Tree. Use when asked to brainstorm,…
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…
Author a new OpenSpec domain specification from deterministic OpenLore MCP evidence. Use when asked to reverse-engineer,…
Implement a brownfield story with OpenLore orientation, risk checks, spec validation, tests, and drift detection. Use when asked…
Retrieve relevant functions, callers, spec sections, and insertion points from OpenLore before reading source files. Use when…