discovery

discovery is a skill for Claude Code, Codex from griddynamics/rosetta. It costs 20 tokens per session (888 once invoked), scanned A, original, Apache-2.0.

An evidence-gathering process for understanding a codebase, its current behavior, dependencies, and affected areas.

In plain words
What is it for?
It helps investigate existing code, behavior, prior attempts, integration points, and gaps in a request.
Why use it?
It reduces guesses by separating verified facts from unknowns before design or implementation begins.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/griddynamics/rosetta/discovery
Any agent
npx skills add griddynamics/rosetta --skill discovery
Clone the repo
git clone --depth 1 https://github.com/griddynamics/rosetta

Made for: Claude Code, Codex.

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 discovery

README.md
[![agentmods](https://agentmods.dev/badge/skills/griddynamics/rosetta/discovery.svg)](https://agentmods.dev/skills/griddynamics/rosetta/discovery)
Your own site
<a href="https://agentmods.dev/skills/griddynamics/rosetta/discovery"><img src="https://agentmods.dev/badge/skills/griddynamics/rosetta/discovery.svg" alt="Measured on agentmods" height="20"></a>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 888 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00020 $0.00888
Opus 5 $0.00010 $0.00444
Sonnet 5 $0.00004 $0.00178
Haiku 4.5 $0.00002 $0.00089

Measured yesterday against content hash 76d7281233e7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

discovery 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 yesterday.

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.

instructions/r3/core/skills/discovery/SKILL.md · 92 lines

What it actually says

Senior engineer establishing what actually exists — evidence first, guesses never.

<when_to_use_skill> What exists is unknown or unclear: affected areas, current behavior, prior attempts, dependencies, integration points, or the request itself has gaps. Output: what exists, cited; what remains unknown; whether that is enough to act on. </when_to_use_skill>

<core_concepts>

  • All Rosetta prep steps MUST be FULLY completed
  • Discovery establishes facts. It does not decide, spec, break down, or change anything
  • Cite or drop: path:line-range, command output, or source. Unverified is an unknown, not a finding
  • Not-examined and examined-and-absent read identically in a report — always say which; for absent, the search that came back empty
  • The request may have been attempted before, and wrongly. A wrong existing solution is the most expensive thing to miss
  • Internal knowledge of libraries and versions is stale; verify externally (web, DeepWiki, Context7)

</core_concepts>

<where_to_look>

First name what the request turns on — that sets which areas carry the answer, and in what order; say what was left alone:

  • Behavior as it runs today, and where it is actually defined — not where it appears to be
  • Entry points: APIs, CLIs, jobs, events, schedules, UI routes
  • Callers and consumers a change would reach, including other repos and teams — named, never "may affect others"
  • Prior attempts at the same thing: related commits, reverts, TODO/FIXME, tickets — with a verdict: absent, partial, or present-but-incorrect
  • Dependencies direct and transitive: versions, conflicts, EOL, known vulnerabilities
  • Patterns and conventions established here; the nearest analog to the request
  • Configuration and per-environment divergence: flags, settings, where secrets come from
  • Runtime signal: logs, traces, metrics, error rates, actual usage
  • Data: schemas, stores, volumes, retention, where sensitive fields live — presence and location, never values
  • Tests and what they actually cover; contracts, fixtures
  • Requirements and specs in force, and where the code contradicts them
  • History: churn, incidents, dead code, why it ended up this way
  • Nothing built yet: the substrate is the ecosystem — libraries, versions, adjacent systems, conventions to adopt — same discipline

</where_to_look>

  • Follow to where things are defined AND used — both directions; the first match is rarely the answer
  • grep and header-scan before bulk reads; line ranges over whole files
  • Enough: what the request turns on is established or named unknown, and another pass would change nothing
  • Confidence honest, weakest link named. Low confidence is a finding, not a failure
  • Blocking unknowns: batched questions, each with what it blocks and a safe default
  • No scope given: ask; sweeping everything is not a substitute

Compressed, terse, terms over prose. Carries: what the request turns on · what exists, cited · prior-attempt verdict · examined vs left alone · unknowns and what each blocks · patterns in use · confidence and its weakest link. Written so the consumer needs no second sweep.

<validation_checklist>

  • Every finding carries its basis: cited evidence, marked inference, or named unknown
  • Prior-attempt verdict present, even when "absent"
  • Not-examined areas stated, not silently omitted
  • Claims the request turns on: established or named unknown

</validation_checklist>

  • Restating the request as a finding
  • First matching file taken for the answer
  • Silent gaps: an area dropped without saying so
  • Reading broadly, reporting thinly
  • Sweeping the codebase instead of asking for scope
  • History unavailable (shallow clone, squashed): mark the evidence degraded, not silently skipped
Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. yesterday First seen · 92 lines · 20 tokens per session scan A 76d7281233e7

Subscribe to this mod's changes

discovery is a skill published in the GitHub repository griddynamics/rosetta (342 stars, last pushed yesterday), licensed Apache-2.0. It adds 20 tokens to every session and 888 once invoked, about $0.0001 per session on Opus 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-09-03.