Staleness eval
Skill AlexGeControl/Neo4J-Graph-Academy-Fundamentals/.claude/skills/staleness-eval
Audit a compiled Neo4j course's Cypher and tooling for staleness and produce a modernization report. Use when you need to know whether the course's Cypher syntax, schema DDL, procedures (APOC / full-text / GenAI), and Neo4j tooling (Browser vs Workspace, Aura, drivers) are current — before drafting notes or designing assignments. Reads the canonical raw/code + raw/transcripts layout; first analysis step of the pipeline (runs right after compile).From its SKILL.md
npx -y skills add AlexGeControl/Neo4J-Graph-Academy-Fundamentals --skill staleness-evalAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
7.0 KB, as published. Nobody here has run it
staleness-eval
The pain point this solves: GraphAcademy lessons are excellent, but Cypher and the Neo4j tooling around it move fast. Content authored against Neo4j 3.x/4.x freezes on syntax that 5.x / 2025.x either deprecates (warns) or removed outright (the query errors). Before you build notes or design assignments, you need to know what has rotted and exactly how the syntax changed — otherwise you teach a dead API and the autograder runs queries that the current engine rejects.
This is the first analysis step in the pipeline
(courseware-compile → staleness-eval → course-notes / assignment-*). Its report
feeds the others: notes get "⚠️ this changed" callouts with the modern form;
assignment design gets an explicit modernization target so solutions and the
autograder are written against current Cypher. After this step, flip each topic's
status.stalenessEvaluated to true in course_manifest.json.
Scope
- In scope: Cypher syntax & built-in functions, schema DDL (index/constraint),
removed clauses (
START,USING PERIODIC COMMIT), procedure currency (apoc.*,db.index.fulltext.*,db.indexes/db.constraints),LOAD CSVtransaction semantics, parameter syntax, and tooling (Neo4j Browser vs Workspace, Aura, GenAI/vector-index + GraphRAG features, theneo4jPython driver). - Out of scope (do not do here): rewriting any Cypher or notes. This step only
diagnoses and prescribes. Execution lives in
course-notesand theassignment-*skills.
Procedure
-
Mechanical scan — deterministic, no judgment:
python .claude/skills/staleness-eval/scan_cypher.py <course-dir> \ --out <course-dir>/reports/cypher-scan.jsonRecursively scans
raw/code/**/*.cypherandraw/transcripts/**/*.mdfor known stale patterns. Each hit is{file, line, snippet, rule_id, severity, migration}whereseverity ∈ {removed, deprecated, version-sensitive, cosmetic}. The printed summary gives counts by severity and the top rules. Rules cover at minimum: legacyCREATE INDEX ON :Label(prop)/CREATE CONSTRAINT ... ON ... ASSERT ..., the removedSTARTclause,exists(n.prop), pattern-existenceexists((a)-->(b)), degree-via-size((n)--()),USING PERIODIC COMMIT,extract()/filter()/reduce(),{param}braces,rels(),toInt()/lower()/upper()/str()/has(),length()on strings/lists,apoc.*,db.index.fulltext.*renames,:auto-requiredIN TRANSACTIONS, and Browser:play/:paramcommands.Note: an empty
raw/tree yields zero hits — that is "nothing to scan yet," not "nothing is stale." If the scan finds 0 files, say so explicitly and base the vintage judgment on the source-course provenance until raw content lands. -
Establish the baseline vintage — from the scan hits (and the source GraphAcademy course slugs in
course_manifest.json:neo4j-fundamentals,cypher-fundamentals,modeling-fundamentals,importing-fundamentals) infer the Neo4j/Cypher version the courses assume. Legacy DDL orSTART/exists(n.prop)hits point to a 3.x/4.x authoring vintage even if the prose says "latest." -
Check current state — WebSearch/WebFetch the CURRENT Neo4j landscape and the breaking changes between baseline and now. Authoritative sources:
neo4j.com/docs(Cypher manual, deprecations & removals page), GraphAcademy, theneo4jPyPI page, and Neo4j release notes. Pin down:- Engine / Cypher version — Neo4j calendar versioning (e.g. 2025.x) and the Cypher 25 language version vs the older Cypher 5; which forms are removed vs deprecated-with-warning now.
- Schema DDL — current named
CREATE INDEX ... FOR ... ON .../CREATE CONSTRAINT ... FOR ... REQUIRE ...syntax andSHOW INDEXES/CONSTRAINTS. - Tooling — Neo4j Browser deprecation in favor of Neo4j Workspace
(Query / Explore / Import); what
:play/:parammap to now. - Aura — current free-tier / AuraDB state and how it changes import (Importer,
LOAD CSVfrom cloud) and connection (neo4j+s://). - GenAI — current vector index syntax (
CREATE VECTOR INDEX ...), vector search procedures, thegenai.*functions, and GraphRAG features (neo4j-graphragpackage, retrievers) relevant to capstone topic 09. - Driver — current
neo4jPython driver major version, thedriver.execute_query(...)API, and any sync/async orResult.consume()changes.
-
Classify each finding by learner impact:
current·minor-drift·major-drift·deprecated·removed. Rank by impact = does following the content as-written break or teach a wrong pattern?removed(query errors) anddeprecated(teaches dead API) outrank cosmetic version drift. APOC and tooling notes are usuallyversion-sensitive. -
Write
<course-dir>/reports/modernization.md:- Verdict (one line: modernize? how urgently?) + the inferred course vintage and the current target vintage (Neo4j 2025.x / Cypher 25).
- Severity-ranked table: rule/area · baseline form · current form · status · learner impact · where it appears (file:line from the scan).
- Per-item migration — old → new Cypher with a concrete code block for each finding (DDL, predicate, function, transaction, parameter, procedure, tooling).
- Prioritized modernization plan the
course-notesandassignment-*skills consume: an ordered checklist (removed-first) of what to fix and where. - Sources — cite every "current version / removed-in" claim with a link.
Principles
- Distinguish cosmetic drift (form changed, behaviour stable) from teaching hazards (the content runs a now-removed clause, or teaches a deprecated pattern). Only hazards are urgent.
- Be concrete: every "deprecated/removed" claim gets a replacement and a code-level migration the next skill can paste in.
apoc.*and:browsercommands are version-sensitive, not automatically wrong — verify against the target Neo4j version + installed plugins before condemning them.- For topic 09 (Knowledge Graphs & GraphRAG, synthesized), treat GenAI/vector/driver currency as first-class: that content is authored now and must target current APIs.
- Don't refactor here — only diagnose and prescribe. Execution is downstream.