ruflo-migrations

Reviewed at commit 13af5f1

Caution: Its skills pre-approve Bash and have Claude run the unpinned npm package @claude-flow/cli@latest through npx, so each new version runs without asking.

Schema migration management — generate, validate, dry-run, and rollback database migrations. As a mod (ADR-445): a tighten-only guard on its tools…

Made by
ruvnet
What we checked

Refuses memory writes (Ruflo memory and pattern tools) that hold a secret or a database URL with a password, and adds a /migrations-mod command that checks pasted SQL for destructive statements. Writes counters to a small status file in your project. Its hook makes no network calls and runs no programs; the migrate commands can run SQL against a database after you confirm.

Review details

Static review of the source at the pinned commit; not run. Delta review of the changes since 87d8687; the rest carries over from the review at that commit. The only change is a new "repository" field in plugin.json, so the code and prompt files are identical to the previous review. The module registers session.start (registers /migrations-mod, reads the project root, writes the status file), tool.call (only when the guard option is on) and command.run for /migrations-mod. tool.call screens memory_store, agentdb_pattern-store, agentdb_hierarchical-store and agentdb_batch inputs with regex secret rules and a database-URL-with-password rule, and returns a deny with a rule-only message; it also screens memory_store calls that belong to other plugins' namespaces and says so in a neutral refusal without naming the owner or content. Oversized or deeply nested input is refused (fails closed). The status file .claude-flow/migrations-mod/status.json holds counters and the last rule name; write errors are swallowed. /migrations-mod scan runs local regexes (DROP TABLE, TRUNCATE, DROP COLUMN, DELETE without WHERE, secrets) and answers without a model turn. No fetch, process or model calls in the hook code. The prompt files add: /migrate commands whose up and down steps execute SQL files against a real database, with instructions to name the target, default to dry-run and ask for explicit confirmation, a production target needing fresh confirmation; skills migrate-create and migrate-validate pre-approve Bash (among Read, Write, Glob) and list npx @claude-flow/cli@latest as a CLI alternative, and the agent suggests npx @claude-flow/cli@latest hooks and neural train. The ruflo-core MCP server that provides the memory tools and the @claude-flow/cli package were not reviewed.

What it uses
  • Reads your prompts: no
  • Sees tool calls: yes
  • Blocks or changes tool calls: yes
  • Reads or writes files: yes
  • Runs programs on your machine: yes
  • Calls the model (uses tokens): no
  • Sends data over the network: no
  • Stores data: yes
  • Shows something on screen: yes
Hooked events

Schema migration management — generate, validate, dry-run, and rollback database migrations. As a mod (ADR-445): a tighten-only guard on its tools, /migrations-mod, and a status file the console shows

Made this mod? Add a badge to your README

modsforClaude badge for ruflo-migrations

Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.

[![Listed on modsforClaude](https://modsforclaude.com/badge/ruflo-migrations.svg)](https://modsforclaude.com/mods/ruflo-migrations/)

← All mods