/neoize:neoize-refreshfrom neoize
Keep the neoize graph current with the code and the lessons. Use after changing the codebase structure, after authoring or editing lessons, or when closing a ticket whose fix makes an existing lesson stale. Rebuilds the structural projection, reloads lessons, and reconciles lessons that describe now-fixed behaviour.
Ships in neoize. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are bringing the graph back into agreement with the code and the authored lessons. The graph is a
projection: it is always safe to rebuild, never hand-edit it in the Neo4j browser, because a reload
loses the edit. Run this against a running graph (neoize status; neoize up if it is down).
The fastest path, when you just want EVERYTHING current, is apply (neoize apply): it regenerates and
loads the structure, runs the project's symbol-layer refresh, loads the project lessons pruned and the
shared layer, in one pass and the right order. Reach for it after a working session (it is what
neoize-wrap ends with). The piecemeal steps below are for when you want to reload ONE layer on its own,
or need to understand or debug what apply runs.
Every neoize operation runs as a plugin MCP tool, so drive it by calling the tool, with nothing on
PATH and no script for the human to run. The neoize ... commands named below are the exact CLI the
tools wrap, kept as an optional terminal fallback. The map:
graph_status / graph_up / graph_down: is the graph up, start it, stop it.load_lessons: load the authored lessons (neoize load-lessons).load_graph: load the structural .cypher (neoize load-graph).rebuild_structure: regenerate the structure from the code (runs .neoize/collect.py).check_lessons / check_graph: the offline validations (neoize check / neoize check-graph).load_shared: reload the universal store into product=shared (neoize shared load).apply: do all of the above in one pass (structure, symbols, lessons, shared) (neoize apply).sync_queries: re-sync .neoize/queries from the plugin templates, queries only (neoize sync-queries).read_neo4j_cypher / get_neo4j_schema: query the graph (scope reads with WHERE n.product IN $products, the pre-bound shared+project union) and read its shape.Authored lessons changed (edited, added, retired, moved between files):
neoize check .neoize/lessons first, to catch a bad file before it reaches the graph.neoize load-lessons .neoize/lessons. It is additive by id. Read the resolved-anchor denominator.neoize load-lessons --prune .neoize/lessons to drop graph lessons absent from the files, but only
against the FULL lessons directory, and diff the ids first: dump the graph lesson ids and the file
lesson ids and confirm the graph-minus-files set is EXACTLY the lesson you meant to remove. If it
lists anything else, the loaded set is incomplete and prune would delete a real lesson.This reloads THIS project's space only. If a shared (universal) lesson changed, reload that space too
with neoize shared load (add --prune to drop shared lessons absent from ~/.neoize/shared/lessons).
Each space prunes only its own, so the two never disturb each other.
The code's structure changed (a new module, a renamed entity, a changed dependency):
python3 .neoize/collect.py writes a fresh .neoize/graph.json and
.neoize/graph.cypher. Diff graph.json against the committed one and sanity-check the delta. The
graph.cypher must key every node on {product:$product, id:...}; neoize load-graph refuses one
that does not, because a product-less node would orphan and could collide with another product. If an
old collector still emits {id:...} alone, fix its emit (add product:$product to every MERGE key)
before loading.neoize load-lessons .neoize/lessons immediately after, then confirm the resolved-anchor count comes
back to where it was. A structural reload that is not followed by a lesson reload leaves the graph
under-anchored and nothing errors, so do not skip it.A project's .neoize/queries/*.cypher were copied from the plugin templates at init, so a plugin that
improves them (for example the shared+project union scoping) leaves the project's copies behind. Bring
them forward with sync_queries. It is QUERIES ONLY: it never touches lessons, the collector, triggers,
project.json or anything else authored.
diff to see the unified diff of each changed file.changed file before applying. "Changed" means the project's copy differs from
the template, which is usually just the old unscoped form, but it is also how a query YOU customised
(a real topic id written in, a project-specific traversal) shows up. Keep a genuine customisation
rather than overwriting it; apply the rest.write. Then confirm the saved queries now carry WHERE n.product IN $products so they are
not refused by the read tool and do not bleed across products.A fixed bug leaves its description behind. A lesson that states a now-fixed mechanism in the PRESENT tense goes false the day the fix merges, and nothing errors: it still reads as current and gets cited with confidence. So when a fix lands:
MATCH (l:Lesson) WHERE l.product IN $products AND l.body CONTAINS '<ticket-or-symbol>' RETURN l.product, l.id, l.title, l.prov_date.supersedes: ["<old-id>"]), mark it
status: historical if it is worth keeping as a postmortem, or set status: retired to tombstone
it. A lesson citing the ticket as the ORIGIN of current behaviour is fine and stays.Report what you reloaded or rebuilt, the before/after node and lesson counts, the resolved-anchor denominator, and any lesson you reconciled with the reason. If you pruned, show the diff you checked first. Name anything you left for the user to judge.
What SKILL.md sets; muted values are Claude Code's defaults
The user asks to "refresh the graph", "reload lessons", "rebuild the structure", or has just finished work and wants the graph to reflect it. Also when a lesson may have gone stale.
Other plugins' skills for the same job
npx claudepluginhub foobar-beer/claude-neoize --plugin neoize6 skills in this plugin
/cypher-helpPrint a cheat-sheet of ready-to-paste Cypher queries TAILORED to this project's actual graph, for the user to run in the Neo4j Browser. Walks the live model (the labels, relationships and properties that are really there) and emits example queries with a one-line explanation each, so a human can explore the graph for their own needs without knowing Cypher./neoize-initSet up the neoize knowledge graph for the current project. Use once per project to bring up the local Neo4j, scaffold .neoize/, propose a project-specific structural collector, and wire the "query the graph first" reflex. Run before neoize-migrate or neoize-refresh./neoize-migrateMigrate a project's existing written knowledge (a large CLAUDE.md, docs, a notes directory, agent memory) into neoize lessons anchored to topics and operations. Use after neoize-init, when there is a body of hard-won knowledge to move into the graph./neoize-promoteMove a project's universal lessons UP into the shared neoize layer, so knowledge that holds for all work with Claude (git discipline, PR flow, verification, writing voice) stops being one project's secret and is read by every session. Product-specific knowledge (a symbol, a structural node, this product's domain) stays in the project and never travels./neoize-wrapEnd-of-session capture. Decide what this session learned, route each fact to its one home (a lesson in the graph, where an always-on rule is a scope:always lesson materialised into the rules file, the changelog, or agent memory), author and load the new lessons, and reconcile any that went stale. Use at the end of a working session, or when asked to "wrap", "write up what we learned", or "capture this before I close".