Codebase Knowledge Graph Q&A
Egonex-AI/Understand-Anything
Answers questions about a codebase by searching a prebuilt knowledge graph of its files, functions, classes and dependencies, not by rereading every source file.
Workflow for safely renaming symbols (functions, types, classes, interfaces, constants, variables) across a codebase.
$ npx skills add ZaxbyHub/opencode-swarm --skill safe-rename -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install ZaxbyHub/opencode-swarm safe-rename --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/ZaxbyHub/opencode-swarm.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.opencode/skills/generated/safe-rename .claude/skills/safe-rename && 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 "safe-rename" agent skill from https://github.com/ZaxbyHub/opencode-swarm/tree/main/.opencode/skills/generated/safe-rename into .claude/skills/safe-rename/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "safe-rename", 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/ZaxbyHub/opencode-swarm/tree/main/.opencode/skills/generated/safe-renameType 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 ZaxbyHub/opencode-swarm --skill safe-rename -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install ZaxbyHub/opencode-swarm safe-rename --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ZaxbyHub/opencode-swarm.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.opencode/skills/generated/safe-rename .agents/skills/safe-rename && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "safe-rename" agent skill from https://github.com/ZaxbyHub/opencode-swarm/tree/main/.opencode/skills/generated/safe-rename into .agents/skills/safe-rename/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "safe-rename", 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 ZaxbyHub/opencode-swarm --skill safe-rename -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install ZaxbyHub/opencode-swarm safe-rename --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ZaxbyHub/opencode-swarm.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.opencode/skills/generated/safe-rename .cursor/skills/safe-rename && 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 "safe-rename" agent skill from https://github.com/ZaxbyHub/opencode-swarm/tree/main/.opencode/skills/generated/safe-rename into .cursor/skills/safe-rename/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "safe-rename", 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/ZaxbyHub/opencode-swarm.git --path .opencode/skills/generated/safe-rename--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 ZaxbyHub/opencode-swarm --skill safe-rename -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install ZaxbyHub/opencode-swarm safe-rename --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ZaxbyHub/opencode-swarm.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.opencode/skills/generated/safe-rename .gemini/skills/safe-rename && 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 "safe-rename" agent skill from https://github.com/ZaxbyHub/opencode-swarm/tree/main/.opencode/skills/generated/safe-rename into .gemini/skills/safe-rename/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "safe-rename", 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 ZaxbyHub/opencode-swarm safe-renameInstalls 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 ZaxbyHub/opencode-swarm --skill safe-rename -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/ZaxbyHub/opencode-swarm.git skills-src && mkdir -p .github/skills && cp -r skills-src/.opencode/skills/generated/safe-rename .github/skills/safe-rename && 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 "safe-rename" agent skill from https://github.com/ZaxbyHub/opencode-swarm/tree/main/.opencode/skills/generated/safe-rename into .github/skills/safe-rename/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "safe-rename", 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 ZaxbyHub/opencode-swarm --skill safe-rename -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install ZaxbyHub/opencode-swarm safe-rename --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ZaxbyHub/opencode-swarm.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.opencode/skills/generated/safe-rename .opencode/skills/safe-rename && 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 "safe-rename" agent skill from https://github.com/ZaxbyHub/opencode-swarm/tree/main/.opencode/skills/generated/safe-rename into .opencode/skills/safe-rename/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "safe-rename", 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.
safe-renameWorkflow for safely renaming symbols (functions, types, classes, interfaces, constants, variables) across a codebase.
Safe Rename is an agent skill from ZaxbyHub/opencode-swarm. Workflow for safely renaming symbols (functions, types, classes, interfaces, constants, variables) across a codebase. Uses repomap, batchsymbols, and buildcheck to ensure every consumer is updated and nothing breaks.
Its SKILL.md is about 2.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file.
It sits in Development, covering Codebase onboarding. The repository describes itself as: Architect-centric agentic swarm plugin for OpenCode. Hub-and-spoke orchestration with SME consultation, code generation, and QA review. The licence is MIT.
7 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit b63a4bd. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript).
From 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.
Safe Rename loads about 2.4k tokens when it runs. Until then it costs about 58 tokens; SKILL.md has 1,177 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 found no risky patterns in SKILL.md.
Automated 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 ZaxbyHub/opencode-swarm at commit b63a4bd, republished under its MIT licence (© ZaxbyHub). 1,177 words, ~2,384 tokens.
.claude/skills/safe-rename/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.Guides a systematic, tool-augmented workflow for renaming exported symbols across a codebase without silently breaking consumers, tests, or downstream builds.
Do NOT use for:
| Tool | Purpose |
|---|---|
repo_map (action: importers) | Find every file that imports from the target file |
repo_map (action: blast_radius) | Find transitive dependents for high-risk renames |
symbols | List the full exported API surface of the target file |
batch_symbols | Bulk symbol extraction across multiple affected files |
search | Find literal occurrences of the old symbol name across the codebase |
suggest_patch | Preview changes before applying (dry-run) |
apply_patch | Apply rename patches to consumer files |
edit | Fallback for one-at-a-time rename edits when apply_patch is not suitable |
build_check (mode: typecheck) | Verify the rename does not break compilation |
test_runner | Run tests on affected files after rename |
repo_map with action importers and file set to the target file path.
This returns every file that imports from the target, with line numbers and
import metadata.repo_map with action blast_radius to understand
transitive dependents.symbols on the target file (with exported_only: true) to see every
exported symbol. This helps confirm the exact name, signature, and whether
the symbol is re-exported.batch_symbols on the consumer files identified in Step 2 to understand
how they import and use the symbol.import { OldName } from './target'import * as ns from './target' then ns.OldNameobj['OldName'] (see Limitations)edit.apply_patch:suggest_patch to preview the rename changes for the consumer file,
then apply the patch with apply_patch.Before considering the rename complete:
suggest_patch to preview any remaining rename changes before applying
with apply_patch, ensuring the patch set is correct.build_check with mode: "typecheck" and scope: "changed".build_check with mode: "both" if the project uses a build step
(compilation + typecheck).test_runner with scope: "impact" or scope: "graph" on the changed
files to verify no tests break.search for the old symbol name across the entire codebase to
confirm zero remaining references (excluding comments, changelogs, and
docs/releases/ history fragments).When consolidating types from sibling files (e.g., extracting a shared type
from evidence.ts and runner.ts into a new types.ts in the same
directory), verify import direction before creating the shared module.
If the new module imports anything from either sibling, you create a circular
dependency that silently breaks the module graph.
Example of the trap:
// types.ts — imports from a sibling
import { SomeClass } from './runner'; // ← runner.ts will import from types.ts
export interface MyType { handler: SomeClass }; // circular!Verification steps:
repo_map (action: dependencies)
on each sibling file to understand what it imports.repo_map (action: importers) on the new shared
module to verify it has no import edges pointing back to the siblings.build_check (mode: typecheck) to confirm no circular dependency
errors._types.ts that has no imports
from the directory).Why this matters: During PR #1702, consolidating types from sibling files
in src/turbo/lean/ created a circular dependency between evidence.ts,
runner.ts, and the extracted types module. The typecheck caught it, but the
fix required restructuring the extraction.
This workflow has the following known gaps:
repo_map importers and search find imports by file path, but they do not
resolve renamed imports:
import { X as Y } from './target'; // Y is an alias for XIf you rename X to Z, the search will not find the Y alias. You must
manually check for aliased imports by searching for { X as patterns.
This workflow is text-based, not AST-based. In TypeScript, structural typing means
a variable typed as { name: string } satisfies any interface with that shape,
regardless of the interface name. Renaming the interface name does not require
updating these structural usages, but the workflow may flag them as "missed
references" in Step 7.
References via string literals, reflection, or computed property access are invisible to static search:
obj['oldName'] // string-based property access
Reflect.get(target, 'oldName') // reflectionIf the renamed symbol is accessed dynamically anywhere, those references will
not be found by search or repo_map. Use grep for the string form of the old
name to catch these cases.
If a symbol is re-exported through an index file (export { X } from './X'),
the re-export line and all downstream consumers of the re-export must also be
updated. The repo_map blast_radius action helps here, but you must manually
verify re-export chains.
The old symbol name may appear in:
These are outside the scope of this workflow but should be considered for high-impact renames.
Before marking a rename complete, verify every item:
build_check typecheck passes with no errorssearch for old name returns zero stale code references© ZaxbyHub, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 1 other file in .opencode/skills/generated/safe-rename of ZaxbyHub/opencode-swarm.
Open the folder on GitHubat commit b63a4bd
Safe Rename 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 |
|---|---|---|---|---|---|---|
| Safe Rename this skillZaxbyHub/opencode-swarm | 494 | — | ~2.4k | Automated safety check: Pass | MIT | |
| Codebase Knowledge Graph Q&AEgonex-AI/Understand-Anything | 86k | — | ~1.2k | Automated safety check: Pass | MIT | |
| Understand ExplainEgonex-AI/Understand-Anything | 86k | — | ~1.3k | Automated safety check: Pass | MIT | |
| Project Onboarding Guide from Knowledge GraphEgonex-AI/Understand-Anything | 86k | — | ~1.2k | Automated safety check: Pass | MIT | |
| GitDiagram Repository Overviewahmedkhaleel2004/gitdiagram | 18k | — | ~427 | Automated safety check: Pass | MIT | |
| Deepwiki Rssopaco/deepwiki-rs | 3.1k | — | ~748 | Automated safety check: Pass | MIT |
Egonex-AI/Understand-Anything
Answers questions about a codebase by searching a prebuilt knowledge graph of its files, functions, classes and dependencies, not by rereading every source file.
Egonex-AI/Understand-Anything
Gives an in-depth explanation of one file, function or module by reading the project's knowledge graph and checking that the graph is still fresh.
Egonex-AI/Understand-Anything
Writes an onboarding guide for new team members from a project's existing knowledge graph, after checking that the graph still matches the current commit.
ahmedkhaleel2004/gitdiagram
Explains the architecture of a public GitHub repository through GitDiagram: how the code is organized, the main components with paths, and a Mermaid diagram.
sopaco/deepwiki-rs
AI-powered Rust documentation generation engine for comprehensive codebase analysis, C4 architecture diagrams, and automated technical documentation.
tirth8205/code-review-graph
Navigates a codebase through the code-review-graph MCP tools: architecture overview, symbol search, caller and callee tracing, flows and oversized functions.
ZaxbyHub/opencode-swarm
Runs an evidence-gated, quote-grounded audit of a codebase for security, QA, accessibility, performance and more, and writes a verified report without changing source files.
ZaxbyHub/opencode-swarm
Drives a bug report from validation and root-cause tracing through a critic-reviewed plan, an approved minimal fix and a PR-ready closure, never merging without recorded human approval.
ZaxbyHub/opencode-swarm
Codex adapter for opencode-swarm that governs commits, pushes, draft PRs, PR body updates and CI closeout, deferring to the repo's canonical commit-pr protocol.
ZaxbyHub/opencode-swarm
Keeps plans, decisions, evidence and reviewer verdicts in small files so long multi-phase tasks survive context compaction and session resumes.
ZaxbyHub/opencode-swarm
Ingests existing pull request feedback such as review comments and CI failures, verifies each claim, fixes confirmed issues and reports closure status for every item.
ZaxbyHub/opencode-swarm
Monitor a pull request after creation and act autonomously on pushed PR activity.
Categories
Workflow for safely renaming symbols (functions, types, classes, interfaces, constants, variables) across a codebase. Safe Rename is an agent skill from ZaxbyHub/opencode-swarm. Workflow for safely renaming symbols (functions, types, classes, interfaces, constants, variables) across a codebase.
Safe Rename fits situations like: tasks that involve Codebase onboarding.
Run `npx skills add ZaxbyHub/opencode-swarm --skill safe-rename -a claude-code`. Or copy the skill folder (.opencode/skills/generated/safe-rename in ZaxbyHub/opencode-swarm) into .claude/skills/safe-rename in your project. Claude Code loads it when a task matches its description.
Run `npx skills add ZaxbyHub/opencode-swarm --skill safe-rename -a codex`. Or copy the skill folder (.opencode/skills/generated/safe-rename in ZaxbyHub/opencode-swarm) into .agents/skills/safe-rename 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 ZaxbyHub/opencode-swarm --skill safe-rename -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/safe-rename, .gemini/skills/safe-rename, .github/skills/safe-rename and .opencode/skills/safe-rename in your project.
SKILL.md names no scripts, command-line tools or credentials: Safe Rename is instructions for the agent only.
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 no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Safe Rename is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.4k tokens (SKILL.md is roughly 9.5k 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 Safe Rename: Codebase Knowledge Graph Q&A (Egonex-AI/Understand-Anything, 86k stars), Understand Explain (Egonex-AI/Understand-Anything, 86k stars), Project Onboarding Guide from Knowledge Graph (Egonex-AI/Understand-Anything, 86k stars) and GitDiagram Repository Overview (ahmedkhaleel2004/gitdiagram, 18k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
ZaxbyHub (a GitHub organization) maintains it in ZaxbyHub/opencode-swarm, which has 494 GitHub stars. The repository holds 91 skills in this directory. The repository was last updated on October 10, 2026.
Source: ZaxbyHub/opencode-swarm on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.