PR Design Doc
OpenHands/OpenHands
For a non-trivial pull request, write a self-contained HTML design doc under the temporary .pr/ directory and link a visibility-appropriate preview in the PR description, so maintainers grasp the…
Rebuilds the ADR pattern and edge indexes from the files on disk, clearing stale rows left behind after an ADR file or relation line is deleted.
$ npx skills add ruvnet/ruflo --skill adr-reindex -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install ruvnet/ruflo adr-reindex --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/ruvnet/ruflo.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/ruflo-adr/skills/adr-reindex .claude/skills/adr-reindex && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "adr-reindex" agent skill from https://github.com/ruvnet/ruflo/tree/main/plugins/ruflo-adr/skills/adr-reindex into .claude/skills/adr-reindex/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "adr-reindex", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/ruvnet/ruflo/tree/main/plugins/ruflo-adr/skills/adr-reindexType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add ruvnet/ruflo --skill adr-reindex -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install ruvnet/ruflo adr-reindex --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ruvnet/ruflo.git skills-src && mkdir -p .agents/skills && cp -r skills-src/plugins/ruflo-adr/skills/adr-reindex .agents/skills/adr-reindex && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "adr-reindex" agent skill from https://github.com/ruvnet/ruflo/tree/main/plugins/ruflo-adr/skills/adr-reindex into .agents/skills/adr-reindex/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "adr-reindex", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ruvnet/ruflo --skill adr-reindex -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install ruvnet/ruflo adr-reindex --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ruvnet/ruflo.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/plugins/ruflo-adr/skills/adr-reindex .cursor/skills/adr-reindex && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "adr-reindex" agent skill from https://github.com/ruvnet/ruflo/tree/main/plugins/ruflo-adr/skills/adr-reindex into .cursor/skills/adr-reindex/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "adr-reindex", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/ruvnet/ruflo.git --path plugins/ruflo-adr/skills/adr-reindex--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add ruvnet/ruflo --skill adr-reindex -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install ruvnet/ruflo adr-reindex --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ruvnet/ruflo.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/plugins/ruflo-adr/skills/adr-reindex .gemini/skills/adr-reindex && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "adr-reindex" agent skill from https://github.com/ruvnet/ruflo/tree/main/plugins/ruflo-adr/skills/adr-reindex into .gemini/skills/adr-reindex/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "adr-reindex", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install ruvnet/ruflo adr-reindexInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add ruvnet/ruflo --skill adr-reindex -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/ruvnet/ruflo.git skills-src && mkdir -p .github/skills && cp -r skills-src/plugins/ruflo-adr/skills/adr-reindex .github/skills/adr-reindex && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "adr-reindex" agent skill from https://github.com/ruvnet/ruflo/tree/main/plugins/ruflo-adr/skills/adr-reindex into .github/skills/adr-reindex/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "adr-reindex", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ruvnet/ruflo --skill adr-reindex -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install ruvnet/ruflo adr-reindex --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ruvnet/ruflo.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/plugins/ruflo-adr/skills/adr-reindex .opencode/skills/adr-reindex && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "adr-reindex" agent skill from https://github.com/ruvnet/ruflo/tree/main/plugins/ruflo-adr/skills/adr-reindex into .opencode/skills/adr-reindex/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "adr-reindex", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
adr-reindexRebuilds the ADR pattern and edge indexes from the files on disk, clearing stale rows left behind after an ADR file or relation line is deleted.
The companion `adr-index` skill only adds or updates rows, so deleting an ADR file, or one relation line inside it, leaves its row behind indefinitely. `adr-verify` does not notice, because an orphan row with no edges is invisible to its checks. This skill handles that case by treating the files on disk as the source of truth and rebuilding the derived records from them.
Running `node plugins/ruflo-adr/scripts/reindex.mjs` hard-deletes every row in the `adr-patterns` and `adr-edges` namespaces with `memory purge`, rescans the ADRs on disk and stores them fresh. It then recounts `adr-patterns` and exits non-zero if the count differs from the files scanned. Environment variables switch output to JSON (`REINDEX_FORMAT=json`), preview without changes (`REINDEX_DRY_RUN=1`) or set the scan root (`ADR_ROOT`), which must match the root last used with `adr-index`.
3 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 72255a2. It shows what the files ask for, not the result of running them.
Pre-approves these tools, so the agent can use them without asking each time:
Bashmcp__plugin_ruflo-core_ruflo__memory_listFrom allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
nodeFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
ADR Reindex loads about 1.1k tokens when it runs. Until then it costs about 55 tokens; SKILL.md has 619 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check noted patterns worth knowing about, such as sudo or a known installer.
allowed-tools: Bash, mcp__plugin_ruflo-core_ruflo__memory_listAutomated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from ruvnet/ruflo at commit 72255a2, republished under its MIT licence (© ruvnet). 619 words, ~1,146 tokens.
.claude/skills/adr-reindex/SKILL.md (or your agent's skills folder).adr-index only ever adds or upserts rows — it has no way to remove one. Delete an ADR file (or a single relation line from a surviving file) and the row adr-index wrote for it survives every future adr-index run, forever, with no dangling-ref or cycle ever pointing at it. adr-verify then certifies the resulting graph as healthy, because an orphan row with zero edges in or out is invisible to both its checks. See issue #2666.
This is a different failure mode from staleness (an ADR that changed but whose stored record didn't) — that's convergence, adr-index's job. This is reaping — the source of truth (the ADR file) is gone, so the derived cache row for it must be gone too. The only reliable way to reap is to drop both namespaces and rebuild from what's actually on disk right now.
adr-verify can't catch what adr-reindex catches — see below)adr-verify's ADR count looks higher than find docs/adr -name '*.md' | wc -lnode plugins/ruflo-adr/scripts/reindex.mjsOptional env:
REINDEX_FORMAT=json — JSON instead of markdownREINDEX_DRY_RUN=1 — report what would happen, purge/write nothingADR_ROOT=/path — scan root and the root the underlying memory purge/memory store subprocesses run from (must match whatever root adr-index was last run with, or you'll reconcile the wrong repo's namespace)adr-patterns and adr-edges via memory purge --namespace <ns> --force (the CLI's real DELETE FROM memory_entries, not memory delete's soft tombstone that still blocks a same-key re-store — see "Why not adr-index + memory delete" below).adr-index uses) and stores it fresh.adr-patterns and asserts the count equals the number of ADR files just scanned. This is stronger than adr-index's "N stored, 0 errors" tally: if a concurrent memory.db writer clobbered the purge (see Caveats), the store loop would still report success on every call — only a fresh recount catches that.Exits non-zero if the post-condition fails.
adr-index + memory deletememory delete is a soft delete (UPDATE ... SET status='deleted') — the row keeps occupying its UNIQUE(namespace, key) slot, so a later non-upsert memory store for that same key still fails. memory cleanup only reaps entries by age/TTL/quality, not by "does its source file still exist" — it has no orphan concept. Neither gets you back to a clean graph; only a real namespace-scoped DELETE FROM does, which is what memory purge (and this skill) uses.
memory purge directly against adr-patterns/adr-edges outside this flow.memory.db, but not against every writer — a daemon or MCP server mid a read-modify-write cycle on the sql.js fallback path can still flush an older image afterward and resurrect what this just purged. The post-condition check exists specifically to surface this; re-run the skill if it fails.related/depends-on edges pointing at an ADR that was never scanned in this root (a legitimate sibling-repo reference, not an orphan) are dropped by the rebuild the same as everything else in adr-edges — they only come back if the sibling repo's ADRs are indexed in the same run. This matches adr-verify's own documented "dangling ref, common cause: sibling repo" caveat; it isn't new drift introduced by this skill.adr-index — convergence (add/upsert); this skill is reaping (remove what's gone)adr-verify — read-back integrity check; run after reindex to confirm adrCount matches diskscripts/reindex.mjs — implementationdocs/adrs/) — the decision record for this skill© ruvnet, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in plugins/ruflo-adr/skills/adr-reindex of ruvnet/ruflo.
Open the folder on GitHubat commit 72255a2
ADR Reindex next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| ADR Reindex this skillruvnet/ruflo | 74k | — | ~1.1k | Automated safety check: Notes | MIT | |
| PR Design DocOpenHands/OpenHands | 91k | — | ~2.4k | Automated safety check: Pass | MIT | |
| Cto AdvisorIbrahim-3d/orchestrator-supaconductor | 381 | 4 repos | ~2.4k | Automated safety check: Pass | MIT | |
| Domain Modelingbrim-borium/spotify_sdk | 166 | 7 repos | ~806 | Automated safety check: Pass | Apache-2.0 | |
| Architecture DecisionDonchitos/Claude-Code-Game-Studios | 26k | — | ~1.7k | Automated safety check: Pass | MIT | |
| Improve Codebase Architectureywwynm/EverythingDone | 144 | 15 repos | ~1.3k | Automated safety check: Pass | GPL-3.0 |
OpenHands/OpenHands
For a non-trivial pull request, write a self-contained HTML design doc under the temporary .pr/ directory and link a visibility-appropriate preview in the PR description, so maintainers grasp the…
Ibrahim-3d/orchestrator-supaconductor
Technical leadership guidance for engineering teams, architecture decisions, and technology strategy.
brim-borium/spotify_sdk
Build and sharpen a project's domain model. An agent skill from brim-borium/spotify_sdk.
Donchitos/Claude-Code-Game-Studios
Create an ADR documenting a technical decision: context, alternatives considered, consequences.
ywwynm/EverythingDone
Find deepening opportunities in a codebase, informed by the domain language in CONTEXT.md and the decisions in docs/adr/.
SpillwaveSolutions/design-doc-mermaid
Create Mermaid diagrams (flowchart, sequence, class, ER, state, C4, architecture) from text or source code.
ruvnet/ruflo
Stores, searches, and retrieves successful patterns with HNSW-indexed semantic search so agents can reuse past solutions instead of relearning them.
ruvnet/ruflo
Sets up and drives Ruflo, an npm-installed orchestration layer for multi-agent swarms, persistent memory, routing, hooks and its MCP tool catalog.
ruvnet/ruflo
Runs claude-flow CLI security scans for input validation, path traversal, SQL injection, XSS, hardcoded secrets and known CVEs, and writes an audit report.
ruvnet/ruflo
Applies the SPARC method (specification, pseudocode, architecture, refinement, completion) with 17 specialized modes and multi-agent orchestration, from research to deployment.
ruvnet/ruflo
Coordinates a hierarchical swarm of specialized agents through the claude-flow CLI for work that spans several files or modules at once.
ruvnet/ruflo
Finds models on the Hugging Face router that lack descriptions in chat-ui's prod.yaml and dev.yaml, researches each one and adds short descriptions.
Categories
Rebuilds the ADR pattern and edge indexes from the files on disk, clearing stale rows left behind after an ADR file or relation line is deleted. The companion `adr-index` skill only adds or updates rows, so deleting an ADR file, or one relation line inside it, leaves its row behind indefinitely. `adr-verify` does not notice, because an orphan row with no edges is invisible to its checks.
ADR Reindex fits situations like: after deleting an ADR file or a relation line from one; running a periodic reconcile of the ADR index; adr-verify reports more ADRs than exist under docs/adr.
Run `npx skills add ruvnet/ruflo --skill adr-reindex -a claude-code`. Or copy the skill folder (plugins/ruflo-adr/skills/adr-reindex in ruvnet/ruflo) into .claude/skills/adr-reindex in your project. Claude Code loads it when a task matches its description.
Run `npx skills add ruvnet/ruflo --skill adr-reindex -a codex`. Or copy the skill folder (plugins/ruflo-adr/skills/adr-reindex in ruvnet/ruflo) into .agents/skills/adr-reindex in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ruvnet/ruflo --skill adr-reindex -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/adr-reindex, .gemini/skills/adr-reindex, .github/skills/adr-reindex and .opencode/skills/adr-reindex in your project.
Going by SKILL.md and its folder, ADR Reindex needs the command-line tools its instructions call (node). Our summary lists: Node.js to run `reindex.mjs`; The ruflo-adr plugin with its memory CLI. Its frontmatter pre-approves these tools: Bash, mcp__plugin_ruflo-core_ruflo__memory_list.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.
ADR Reindex is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.1k tokens (SKILL.md is roughly 4.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with ADR Reindex: PR Design Doc (OpenHands/OpenHands, 91k stars), Cto Advisor (Ibrahim-3d/orchestrator-supaconductor, 381 stars), Domain Modeling (brim-borium/spotify_sdk, 166 stars) and Architecture Decision (Donchitos/Claude-Code-Game-Studios, 26k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
ruvnet (a GitHub user) maintains it in ruvnet/ruflo, which has 74,309 GitHub stars. The repository holds 265 skills in this directory. The repository was last updated on October 11, 2026.
Source: ruvnet/ruflo on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.