action-validator
FreePre-action boundary checking — validates agent tool calls against declared capabilities and task contracts
The English summary is being prepared. Showing the original description.
Neo4j best practices for Cypher query optimization, graph data modeling, indexing, and safe execution of LLM-generated Cypher
The English summary is being prepared. Showing the original description.
Review the instructions the agent will receive before you install.
EXPLAIN to validate a query plan without executing it — the mandatory pre-execution gate for any generated CypherPROFILE to see actual DB hits, rows, and time per operator when a query is already known-safeNodeByLabelScan/AllNodesScan where an index seek (NodeIndexSeek) was expected — usually a missing index or non-sargable predicateCartesianProduct — almost always an unintended disconnected pattern; add a relationship or WHERE join conditionEager operators — they materialize the whole intermediate result and block streaming; common with MERGE combined with earlier writes/reads in the same queryMATCH, not after a chain of traversalsWHERE on indexed properties, not on computed/derived expressions (kills index usage)-[:FOLLOWS]->) over untyped/undirected ones — undirected patterns force the planner to consider both directions[:LINKS*1..3]) — unbounded (*) traversals on non-trivial graphs risk combinatorial blowupLIMIT with ORDER BY early in multi-part queries (WITH ... LIMIT ...) to avoid sorting the full result setEntity nodes with a type property — this collapses the type system into runtime string comparisons and defeats label-based indexing:PURCHASED, :AUTHORED) — do not reuse one generic relationship type (:RELATED_TO) with a property to distinguish meaning<-[]- rather than modeling both directionssince, until) or intermediate event nodes when a fact changes over time, rather than overwriting node properties and losing historyWHERE/MERGE matching at scaleCONTAINS/ENDS WITH queries on string properties (range indexes only accelerate prefix/exact matches)point() property queriesdb.index.fulltext.queryNodes)MERGE — without it, concurrent MERGE can create duplicate nodesneo4j.DriverWithContext per process; open short-lived Sessions per unit of work, never share a session across goroutinesExecuteRead/ExecuteWrite (managed transactions) instead of manual BeginTransaction — they provide automatic retry on transient errors (leader switch, deadlock)fmt.Sprintf with user data — always pass a map[string]any of parameters as the second argument to Run/ExecuteReadcontext.WithTimeout) on every session/transaction to bound worst-case latencyneo4j.Config.MaxConnectionPoolSize and ConnectionAcquisitionTimeout for the expected concurrency; do not leave pool size unboundedresult.Collect(ctx) for small bounded results, streaming iteration (result.Next(ctx)) for large results — avoid materializing unbounded result sets in memoryThis is the primary safety layer for any natural-language-to-Cypher feature.
reader role (or neo4j.AccessModeRead on the transaction), never a writer-capable session$param placeholders — this also defends against Cypher injection from upstream LLM outputEXPLAIN gate: run EXPLAIN <query> first; reject on syntax/semantic errors before touching real data, and inspect the plan for scan operators that indicate a missing index or runaway cardinalityDETACH DELETE, DELETE, REMOVE, SET, CREATE, MERGE, CALL { ... } IN TRANSACTIONS, LOAD CSV, or any apoc.* write/refactor procedure — a read-only-role session is defense-in-depth, not a substitute for this checkLIMIT, and set a server-side query timeout for LLM-originated queries specifically (dbms.transaction.timeout or a per-query neo4j.WithTxTimeout)MERGE statements) alongside schema migrations so the graph can always be regenerated deterministicallyNo reviews yet. Tell others what you thought.
No login needed. Share how it worked for you, ask a question, or note where it did not run.
No comments yet. Be the first to write one.
Pre-action boundary checking — validates agent tool calls against declared capabilities and task contracts
The English summary is being prepared. Showing the original description.
Auto-detect project context and optimize harness — deactivate unused agents/skills, suggest missing experts, generate project profile
The English summary is being prepared. Showing the original description.
Adversarial code review using attacker mindset — trust boundary, attack surface, business logic, and defense evaluation
The English summary is being prepared. Showing the original description.
Apache Airflow best practices for DAG authoring, testing, and production deployment
The English summary is being prepared. Showing the original description.
Alembic migration patterns for naming conventions, safety checks, expand-contract, env.py configuration, and CI integration
The English summary is being prepared. Showing the original description.
Pre-routing ambiguity analysis — scores request clarity and asks clarifying questions when needed (inspired by ouroboros)
The English summary is being prepared. Showing the original description.