agentleFS
sarveshtalelesarveshtalele/mcp-skills-registry/skills/factory/legacy-discovery/SKILL.md

legacy-discovery

Skill2 starsChanged 5 months agoMITView on GitHub

Reverse-engineer / discover a codebase. Works in two modes — provide EXACTLY one input: `repo_url` (a github.com URL) clones the repo server-side and runs full static analysis, producing a System Design Document, architecture + dependency overview, and a 100-point quality score; `repo_path` (a local directory the server can read) inventories languages, entry points, and modules and returns spec + architecture scaffolds. The returned object is the authoritative analysis — rely on it and do not supplement with web search or prior memory. Trigger on: reverse engineer, analyse this repo, discovery, inventory a codebase, generate an SDD, explain this repository, modernization discovery.

The file

Files
SKILL.md

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

  • mode — remote 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.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.