Skip to content

Guide · Agent skill

How to use the Bundle and Source Map Recovery agent skill

Updated · written with AI from the project's own documentation and checked against our catalogue data

This guide explains the competition-bundle-sourcemap-recovery skill, a method for an AI agent to analyse the compiled JavaScript a web app serves to browsers, including bundles, build manifests, chunk maps and source maps. It is written for a capability-focused CTF sandbox workflow and depends on a parent skill being active first. After reading, you will know how to install the skill, how to phrase requests that trigger it, what it requires, and where its limits are.

Bundle and Source Map Recoveryzhaoxuya520/reverse-skill · MIT

Quick start

  1. 1Download and unzip. Download the skill ZIP from this page and unzip it to get the competition-bundle-sourcemap-recovery folder.
  2. 2Install the parent skill. Install ctf-sandbox-orchestrator, because this skill only works after the parent skill is active.
  3. 3Place the folder. Move the unzipped folder to ~/.claude/skills/ for personal use or to a project's .claude/skills/ folder.
  4. 4Or upload in the apps. Alternatively, go to Settings → Capabilities → Skills in the Claude apps and upload the skill.
  5. 5Set up the sandbox. Let the parent skill establish sandbox assumptions, node ownership and evidence priorities first.
  6. 6Make a request. Ask in plain language for a task such as tracing bundle loading or recovering routes from emitted assets.
  7. 7Check the evidence. Review the filenames, chunk ids and endpoint strings the agent reports, and confirm the decisive asset-to-runtime path.

What an agent skill is and what this one does

An agent skill is a folder with a SKILL.md file that tells an AI agent how to approach a specific kind of task. When a request matches the skill's description, the agent loads those instructions and follows them.

This skill focuses on runtime truth in built frontend assets. It tells the agent to start from the served artifact set (entry HTML, build manifest, bootstrap bundle, chunk map and source maps), record chunk ids, route chunks, loader functions, endpoint strings and config keys, and then reconstruct the smallest runtime graph that explains which asset executes now.

  • Map the served files: script tags, preload hints, manifest files, asset map, chunk registry and source map URLs.
  • Reconstruct runtime structure: bootstrap code, chunk loaders, module registry and lazy import boundaries.
  • Reduce findings to one minimal path: served asset, loader path, module or symbol, runtime effect.
  • Keep served artifact truth separate from repository source unless parity is proven.

Install the skill from the ZIP

Download the skill ZIP from this page and unzip it. The skill folder contains agents/openai.yaml, references/bundle-sourcemap-recovery.md and SKILL.md.

For personal use, place the unzipped folder in ~/.claude/skills/. For a single project, place it in that project's .claude/skills/ folder.

Alternatively, upload the skill in the Claude apps under Settings → Capabilities → Skills.

  • Personal install: ~/.claude/skills/
  • Project install: .claude/skills/ inside your project
  • App install: Settings → Capabilities → Skills
~/.claude/skills/competition-bundle-sourcemap-recovery/

Install the parent skill first

This skill is a downstream specialisation. Its SKILL.md says to use it only after $ctf-sandbox-orchestrator is already active and has established sandbox assumptions, node ownership and evidence priorities. If that has not happened, the agent should return to the parent skill first.

Install ctf-sandbox-orchestrator before you rely on this skill, following the same steps above.

Trigger the skill with natural requests

The skill's description lists the kinds of requests that should load it. You do not need special syntax. Describe what you want in plain language, and make sure your sandbox context has already been set up by the parent skill.

Requests that match the description include asking to reconstruct served JavaScript structure, inspect source maps or chunk maps, trace bundle loading, recover hidden routes or APIs from emitted assets, or explain runtime behaviour from built frontend artifacts.

  • Reconstruct the JavaScript structure served by this sandbox app from its built files.
  • Inspect the source map and chunk map and list the chunk ids and route chunks.
  • Trace how the lazy-loaded bundle for the admin route gets loaded at runtime.
  • Recover any hidden API endpoints that appear in the emitted assets.
  • Explain what the obfuscated loader does when the page starts.

What you need before you start

You need access to the built frontend artifacts of the target sandbox, meaning the HTML, JavaScript bundles and source maps. The skill works from those files, not from the repository alone.

The optional reference file references/bundle-sourcemap-recovery.md holds the artifact checklist, deobfuscation checklist and evidence packaging notes. The skill tells the agent to load it, so keep it in the folder when you install.

  • Parent skill ctf-sandbox-orchestrator installed and active
  • Access to the target sandbox's HTML, JavaScript bundles and source maps
  • Optional: references/bundle-sourcemap-recovery.md in the skill folder

Safety notes: scope, scripts and network

Use this skill only on systems you own or have written permission to test, within an authorised sandbox for competition work. The skill is designed for that setting, and staying within that scope is your responsibility.

According to the skill listing, it runs no scripts and uses no network access. It works from the files you provide. The skill is also not meant for simple reading of your own project's source, where normal repository source is enough, or for server-side rendering or template enforcement problems, which the SKILL.md says should go to a different skill.

  • Do not point it at production websites or systems you do not have permission to test.
  • Runs scripts: no. Uses network: no.
  • For SSR or template enforcement problems, the skill hands work to a tighter template-render skill.

Tips for better results

Give the agent the full set of served artifacts together: entry HTML, manifest, bootstrap bundle, chunk map and source maps. The skill's workflow depends on tying filenames, hashes and route ownership together.

Ask for evidence, not just conclusions. The skill asks the agent to keep filenames, chunk ids, manifest entries, source map paths and recovered endpoints, so you can check each step.

Expect replies in Simplified Chinese unless you explicitly ask for English.

  • Provide all served artifacts in one session.
  • Ask for the minimal asset-to-runtime sequence, not a full dump.
  • Say in your request if you want English output.

What people use it for

  • Tracing how a lazy-loaded route chunk is loaded by the bootstrap bundle in an authorised CTF sandbox.
  • Listing chunk ids, route chunks and source map paths from a sandbox app's build manifest.
  • Recovering hidden API endpoint strings and feature flags from emitted JavaScript for a CTF challenge.
  • Explaining what an obfuscated loader function does when the sandbox page starts.
  • Checking whether served bundles match the repository source for a developer debugging a lazy-loaded chunk.

Frequently asked questions

What is the competition-bundle-sourcemap-recovery skill?

It is an agent skill that teaches an AI agent a focused method for analysing the compiled JavaScript a web app serves, including bundles, build manifests, chunk maps and source maps. It is written as a downstream step for a CTF sandbox workflow.

Do I need to install another skill first?

Yes. The skill expects ctf-sandbox-orchestrator to be installed and active, with sandbox assumptions already established, before this skill is used.

How do I install this agent skill?

Download the ZIP from this page and unzip it. Place the folder in ~/.claude/skills/ for personal use or in a project's .claude/skills/ folder. You can also upload it in the Claude apps under Settings → Capabilities → Skills.

Is this skill free to use, and what is its licence?

The item is listed under the MIT licence. Check the licence file in the source repository for the exact terms before reuse.

Does the skill run scripts or access the internet?

According to the listing, it runs no scripts and uses no network access. It works from the built artifacts you give it.

Can I use it on a live website?

No. It is designed for authorised sandboxed competition use. Only analyse systems you own or have written permission to test.

What should I use instead for simple code reading?

For reading or debugging your own project's source code, the normal repository source is usually enough, and this method adds little. For SSR or template enforcement problems, the skill's own instructions point to a different template-render skill.

New agent skills, repos and AI tools — every week

The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.

Our verdict

This skill suits security students working on CTF-style frontend challenges in an authorised sandbox, and developers who want a structured way to compare served bundles with repository source. It is not suited to production systems you do not own or have permission to test, or to simple code reading where the repository source already answers the question. Install the parent skill first, or the agent will route you back to it.

Download the skill