ring:exploring-codebases

ring:exploring-codebases is a skill for Cursor from LerianStudio/ring. It costs 91 tokens per session (2,308 once invoked), scanned A, original, Apache-2.0.

A skill for systematically understanding an unfamiliar codebase. It maps the project's architecture, components, layers, and organization before producing guidance with file-and-line evidence.

In plain words
What is it for?
Use it before planning a complex feature, investigating how a system works, or exploring changes that span multiple components or layers.
Why use it?
It reduces the risk of planning changes without understanding how the relevant parts of the code work together.

Skill for Cursor

Written for Cursor: shipped in a Cursor plugin. Also seen: mentions Claude Code.

Part of the ring-default plugin — 23 skills, 2 agents, 1 hook shipped together

Good fit Use it before planning a complex feature, investigating how a system works, or exploring changes that span multiple components or layers.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lerianstudio/ring/exploring-codebases
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add LerianStudio/ring --skill exploring-codebases
Clone the repo
git clone --depth 1 https://github.com/LerianStudio/ring

Made for: Cursor.

Or install ring-default, the plugin that ships this one along with the rest of its 23 skills, 2 agents, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ring:exploring-codebases

README.md
[![agentmods](https://agentmods.dev/badge/skills/lerianstudio/ring/exploring-codebases/github.svg)](https://agentmods.dev/skills/lerianstudio/ring/exploring-codebases)
Your own site
<a href="https://agentmods.dev/skills/lerianstudio/ring/exploring-codebases"><img src="https://agentmods.dev/badge/skills/lerianstudio/ring/exploring-codebases/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ring:exploring-codebases

Your own site · 80×15
<a href="https://agentmods.dev/skills/lerianstudio/ring/exploring-codebases"><img src="https://agentmods.dev/badge/skills/lerianstudio/ring/exploring-codebases.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 91 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,308 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00091 $0.02308
Opus 5.5 $0.00036 $0.00923
Sonnet 5.5 $0.00018 $0.00462
Haiku 4.5 $0.00009 $0.00231

Measured 1mo ago against content hash 76f9e03b64e8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ring:exploring-codebases scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

default/skills/exploring-codebases/SKILL.md · 248 lines

How it starts

The opening of the file, as written. The whole thing — 248 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Autonomous Multi-Phase Codebase Exploration

When to use

  • Need to understand how a feature/system works across the codebase
  • Starting work on unfamiliar codebase or component
  • Planning changes that span multiple layers/components
  • User asks "how does X work?" for non-trivial X
  • Need architecture understanding before implementation

Skip when

  • Pure reference lookup (function signature, type definition)
  • Checking if specific file exists (yes/no question)
  • Reading error message from known file location

Sequence

Runs before: ring:writing-plans

Similar: dispatching-parallel-agents

Multi-phase approach: Phase 0 scopes the target, Phase 1 discovers the natural structure of the codebase, Phase 2 deep-dives into each discovered area in parallel, Phase 3 collects results, and Phase 4 synthesizes findings.

Announce at start: "Using ring:exploring-codebases for multi-phase autonomous exploration."

How It Works

Phase 1: Discovery (3-4 parallel agents)
  → Architecture, Components, Layers, Organization

Phase 2: Deep Dive (N adaptive agents, one per discovered perspective)
  → Target implementation in each area

Phase 3: Synthesis → Actionable guidance with file:line evidence

Phase 0: Scope Definition

Extract from user request: core subject, context/intent, depth needed. Set exploration boundaries (include/exclude directories).

Phase 1: Discovery Pass

⛔ STOP-CHECK BEFORE DISPATCH

Before emitting any Task call, count the discovery agents you intend to launch in this turn.

  • Count MUST equal the number of discovery perspectives you scoped (typically 3-4: Architecture, Components, Layers, Organization).
  • If your dispatch count diverges from your scoped count → STOP and reconcile.
  • No substitutions, no omissions.

⛔ MUST NOT trickle-dispatch

All discovery agents leave in the SAME TURN, before reading any agent output.

Forbidden sequences:

  • Dispatch agent 1 → read result → dispatch agent 2
  • Dispatch a subset → wait → dispatch the rest
  • Dispatch follow-up agents conditioned on partial output
  • Loop sequentially over the discovery angles

Read the full file on GitHub · 248 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 248 lines · 91 tokens per session scan A 76f9e03b64e8

Subscribe to this mod's changes

ring:exploring-codebases is a skill published in the GitHub repository LerianStudio/ring (217 stars, last pushed 3d ago), licensed Apache-2.0. It adds 91 tokens to every session and 2,308 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

antidote

Stop AI agents from patching symptoms. Use this skill when coding, reviewing, refactoring, auditing, committing fixes, or adding guards, validation, workarounds, or 20+ lines without deleting code.

Avtr99/antidote · 47 tokens

review

Structured code review with parallel audit agents, confidence-scored triage, and optional auto-fix. Examines uncommitted changes, staged diffs, commit ranges, or specific paths. Produces a tiered report (MUST-FIX / RECOMMENDED / NIT) backed by evidence, then optionally applies fixes with verification.

greglas75/zuvo · 70 tokens

write-tests

Write tests for existing production code. Processes ONE file at a time through a full pipeline: analyze, inventory (frozen BEFORE writing), write, executable coverage gate, verify, blind coverage audit, adversarial review, log. Uses CodeSift for discovery and analysis when available. Modes: [path] (specific target)…

greglas75/zuvo · 87 tokens

db-audit

Database performance and safety audit. 70+ checks across 13 dimensions (DB1-DB13): query patterns, indexes, schema design, connections, transactions, migrations, caching, query optimization, ORM anti-patterns, observability, data lifecycle, DB security, and migration deployment safety. Code-level checks for all ORMs.…

greglas75/zuvo · 115 tokens

brainstorm

Explores a codebase, researches the problem space, and produces an approved design specification before any code is written. Use when the user wants to create a new feature, add significant functionality, redesign a subsystem, or build something that touches multiple parts of the project.

greglas75/zuvo · 56 tokens

code-audit

Batch audit of production files against CQ1-CQ40 quality gates and CAP1-CAP29 anti-patterns. Tiered output (A/B/C/D), critical gate enforcement, evidence-backed scoring, cross-file pattern analysis, and prioritized execution plan. Flags: zuvo:code-audit all | [path] | [file] | --deep | --quick | --services |…

greglas75/zuvo · 83 tokens