legacy-discovery

legacy-discovery is a skill for Claude Code, Codex from sarveshtalele/mcp-skills-registry. It costs 144 tokens per session (779 once invoked), scanned A, original, MIT.

A codebase analysis tool that examines either a GitHub repository or a readable local folder. It produces technical documentation, an overview of the software structure and dependencies, and an assessment of code quality.

In plain words
What is it for?
Use it to review a repository before taking ownership, document its system design, or inventory the technologies and entry points in a local checkout.
Why use it?
It helps you understand an unfamiliar codebase without manually cloning, tracing files, and documenting the architecture yourself.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to review a repository before taking ownership, document its system design, or inventory the technologies and entry points in a local checkout.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sarveshtalele/mcp-skills-registry/legacy-discovery
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 sarveshtalele/mcp-skills-registry --skill legacy-discovery
Clone the repo
git clone --depth 1 https://github.com/sarveshtalele/mcp-skills-registry

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 legacy-discovery

README.md
[![agentmods](https://agentmods.dev/badge/skills/sarveshtalele/mcp-skills-registry/legacy-discovery/github.svg)](https://agentmods.dev/skills/sarveshtalele/mcp-skills-registry/legacy-discovery)
Your own site
<a href="https://agentmods.dev/skills/sarveshtalele/mcp-skills-registry/legacy-discovery"><img src="https://agentmods.dev/badge/skills/sarveshtalele/mcp-skills-registry/legacy-discovery/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 legacy-discovery

Your own site · 80×15
<a href="https://agentmods.dev/skills/sarveshtalele/mcp-skills-registry/legacy-discovery"><img src="https://agentmods.dev/badge/skills/sarveshtalele/mcp-skills-registry/legacy-discovery.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 144 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 779 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.
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.00144 $0.00779
Opus 5 $0.00072 $0.00390
Sonnet 5 $0.00029 $0.00156
Haiku 4.5 $0.00014 $0.00078

Measured 12d ago against content hash cc7a33087874, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

legacy-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 12d ago.

The scan reads SKILL.md. This mod also ships 14 executable files (scripts/engine/__init__.py, scripts/engine/ai_analysis.py, scripts/engine/analyzer.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/factory/legacy-discovery/SKILL.md · 86 lines

What it actually says

legacy-discovery

Discover and reverse-engineer a codebase — one skill, two modes.

When to use

  • You have a github.com URL → pass repo_url (remote: clone + full SDD).
  • You have a local directory the server can read → pass repo_path (local scan).

Provide exactly one. Passing neither, or both, returns a clear error.

Outputs

  • moderemote or local.
  • Remote: manifest, report_markdown, sdd_available.
  • Local: spec_markdown, architecture_markdown, inventory.

Guardrails

The returned object is the complete analysis. Do not supplement it with web search, external fetches, or prior memory — report exactly what the skill returns.

User stories

  • As an architect, I point at a GitHub URL and get an SDD without cloning by hand.
  • As a maintainer, I scan a local checkout to inventory its stack and entry points.

Edge cases

  • Neither input → error asking for repo_url or repo_path.
  • Both inputs → error (ambiguous).
  • repo_path not a directory → clear error suggesting repo_url for remotes.

See the analysis engine/ under scripts/ for the remote-mode pipeline.

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. 12d ago First seen · 86 lines · 144 tokens per session scan A cc7a33087874

Subscribe to this mod's changes

legacy-discovery is a skill published in the GitHub repository sarveshtalele/mcp-skills-registry (2 stars, last pushed 11d ago), licensed MIT. It adds 144 tokens to every session and 779 once invoked, about $0.0007 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-08-31.

Related

Other skills, from other repositories

search

Search local or remote sources quickly, narrow results, and surface the highest-signal matches for the task.

nusabyte-my/jebat-core · 22 tokens

analyzing-malicious-pdf-with-peepdf

Perform static analysis of malicious PDF documents using peepdf, pdfid, and pdf-parser to extract embedded JavaScript, shellcode, and suspicious objects. Use when triaging a suspicious PDF attachment from a phishing email, analyzing a PDF-based exploit document, or building detection signatures for weaponized PDF…

mukul975/Anthropic-Cybersecurity-Skills · 73 tokens

llama-factory

Expert guidance for fine-tuning LLMs with LLaMA-Factory - WebUI no-code, 100+ models, 2/3/4/5/6/8-bit QLoRA, multimodal support.

davila7/claude-code-templates · 51 tokens

analyzing-android-malware-with-apktool

Perform static analysis of Android APK malware using apktool for resource decompilation, jadx for Java source recovery, and androguard for manifest inspection, dangerous permission-combination detection, and identification of obfuscated code, dynamic code loading, and reflection-based API calls. Use to statically…

mukul975/Anthropic-Cybersecurity-Skills · 84 tokens

bilibili_search

Search for videos on Bilibili using keyword queries generated from user interests.

whiteguo233/OpenBiliClaw · 20 tokens

frontend-feature

Build a new page, view, or data-driven feature in the Next.js frontend. Use when adding a route under the dashboard/marketing area, wiring UI to a backend endpoint, adding client state, or creating a localized page. Covers App Router, data fetching, Zustand stores, and i18n.

vstorm-co/full-stack-ai-agent-template · 64 tokens