competition-browser-persistence
What it does
This tool helps understand how websites store information in your browser (like saved logins or preferences) and how this affects what you see or do online. It allows you to investigate and reproduce website behaviors based on this stored information.
When to use it
- ✓When a website behaves differently after loading.
- ✓To see how stored information (like logins) affects the experience.
- ✓When investigating how a site works offline or stores data in the browser.
Skill link
https://github.com/zhaoxuya520/reverse-skill/blob/main/CTF-Sandbox-Orchestrator/competition-browser-persistence/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“How does website X store my login and how does that affect what I see?”
5 new skills a week. 1 minute to read.
competition-browser-persistence: full guide
Some website behavior cannot be explained by the page's HTML or the server code. The cause sits inside your browser: a cookie, a value in localStorage, a cached response, or a service worker that answers requests before they reach the network. This skill gives your agent a method for finding that stored state and linking it to one visible effect.
It is a downstream skill meant for CTF (capture-the-flag) sandbox work. It only runs after the parent skill, ctf-sandbox-orchestrator, has set up the sandbox and routed the task here. It suits people debugging or analysing a web challenge where the page acts differently after load, after login, or offline. The reply language defaults to Simplified Chinese unless you ask for English.
Use cases
A page changes after login
A challenge page shows an admin panel only after you sign in once and reload. The agent lists the cookies and storage keys, changes one at a time, and finds which stored value switches the panel on and whether the backend accepts it.
Offline behavior is strange
A web app still shows old data when the network is off. The agent checks service worker scope and Cache Storage entries, records the cache keys, and shows which request is answered from the cache and which one reaches the server.
Replaying a cached session
You have a saved cookie and localStorage dump from an earlier run. The agent replays them in a clean browser state, notes origin, path and expiry for each item, and reports the smallest set that still reaches the same page.
Step by step
- 1Install the skill, for example in ~/.claude/skills/competition-browser-persistence/. Also install ctf-sandbox-orchestrator, because this skill must be reached through it.
- 2Start the parent skill first so sandbox assumptions and evidence priorities are set. If they are not, the SKILL.md says to go back there.
- 3Tell the agent which page or route behaves oddly and what you expect to see. Name the origin if you know it.
- 4Ask for an inventory first: cookies, localStorage, sessionStorage, IndexedDB, Cache Storage and service workers, each with origin, scope and expiry.
- 5Ask the agent to compare a clean-state run with a changed-state run, one variable at a time, and to write the shortest chain from stored state to the effect.
Example
What to ask
“After I log in to the challenge page and reload, a hidden /admin link appears. Find which stored browser state causes it and give the shortest steps to reproduce it from a clean browser.”
What you get
The agent lists the cookie jar and storage with origins and expiry. It finds one localStorage key that sets a role value at boot, shows that removing it hides the link, and writes the chain: login, key stored, reload, link rendered. It also states whether the server accepts the role.
Tips
- ✓Record origin, domain, path and expiry before you change anything. Without them you cannot tell whether a stored item applies to the page you are testing.
- ✓Do not assume that a UI change means the server agrees. The skill asks the agent to separate UI-only state from state the backend actually accepts.
- ✓Do not use this skill for general web routing or worker problems outside browser storage. The SKILL.md says to switch to the broader web-runtime skill in that case.
Alternatives
- web-artifacts-builder
Pick it when you want to build a web interface with state management, not analyse state that a site already stores in the browser.
- frontend-ui-engineering
Pick it when your task is building or improving the look and usability of an interface, not tracing stored cookies and caches.
- vercel-react-best-practices
Pick it when your problem is slow loading or extra re-rendering in a React or Next.js app instead of persistent browser state.
Questions and answers
Can I use this skill without ctf-sandbox-orchestrator?
The SKILL.md says to use it only after ctf-sandbox-orchestrator is active and has routed the task here. If that has not happened, the agent should go back to the parent skill first.
Which browser storage types does it look at?
It covers cookies, localStorage, sessionStorage, IndexedDB, Cache Storage, service workers and offline caches. It also checks transient globals exposed during page boot, and records each item's origin and scope.
In what language will the agent answer?
By default the agent replies in Simplified Chinese. If you want another language, ask for English explicitly. The SKILL.md names only these two options, so other languages are not guaranteed.
How it works
It examines where the site stores data (cookies, local storage, etc.) and how that data is used to change what the site shows or allows you to do. Then, it tries to recreate the exact path leading to a specific outcome.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Competition Browser Persistence
Use this skill only as a downstream specialization after $ctf-sandbox-orchestrator is already active and has established sandbox assumptions, node ownership, and evidence priorities. If that has not happened yet, return to $ctf-sandbox-orchestrator first.
Use this skill when the decisive branch lives in browser-held state rather than only in visible HTML or backend source.
Reply in Simplified Chinese unless the user explicitly requests English.
Quick Start
- Identify the active persistence surface first: cookie jar, localStorage, sessionStorage, IndexedDB, Cache Storage, or service worker.
- Record origin, scope, domain, path, expiry, and key names before mutating state.
- Tie stored state to one concrete effect: request header, rendered branch, cached response, offline behavior, or hidden route access.
- Separate boot-time state from runtime-mutated state.
- Reproduce the smallest stateful sequence that reaches the decisive branch.
Workflow
1. Map Browser State Surfaces
- Inspect cookies, storage buckets, service worker registrations, cache entries, and transient globals exposed during boot.
- Record which origin, host, route, or feature flag each state item actually applies to.
- Keep auth tokens, refresh material, CSRF state, cached responses, and feature toggles in separate evidence blocks.
2. Tie State To Runtime Behavior
- Show how stored state becomes request headers, role derivation, route visibility, cached API data, or offline fallback behavior.
- Compare clean-state and mutated-state runs with one variable changed at a time.
- Distinguish UI-only state from backend-accepted state.
3. Reduce To The Decisive Persistence Chain
- Compress the result to the smallest chain: initial page or login -> state persisted -> subsequent request or render branch -> resulting capability.
- Keep extracted storage, service worker scripts, and replay steps tied to the same origin and route.
- If the problem broadens into general web routing or worker behavior outside browser persistence, switch back to the broader web-runtime skill.
Read This Reference
- Load
references/browser-persistence.mdfor the browser-state checklist, service-worker checklist, and evidence packaging.
What To Preserve
- Cookie attributes, storage keys, database names, cache keys, service worker scopes, and origin boundaries
- The exact request or render effect caused by each decisive state item
- Clean-state vs mutated-state reproduction steps for the smallest working path
FAQ
What are 'persistence surfaces'?
These are the places where the browser stores information for a website, such as cookies, local storage, session storage, and the IndexedDB database.
Why separate 'boot-time state' from 'runtime-mutated state'?
To better understand what causes a change: whether it was something already there when the page loaded or something the site changed while you were using it.
What does 'reduce to the decisive persistence chain' mean?
It means finding the smallest set of steps and stored information that explains a specific website behavior, to make analysis easier.
Details
Original description by the author
Internal downstream skill for ctf-sandbox-orchestrator. CTF-sandbox workflow for browser cookies, localStorage, sessionStorage, IndexedDB, Cache Storage, service workers, offline caches, and client-side session persistence. Use when the user asks to inspect browser state, replay cached auth or session behavior, explain why a page behaves differently after load, or trace how stored client state cha
Popularity
- GitHub stars
- 42k
- Ranking position
- #6420
- License
- MIT
- Updated
- 9/22/2026
Comments
- …
More skills from this repository
competition-ad-certificate-abuse
42kHelps your agent analyze attacks on digital certificate systems. It investigates how certificates can be misused to gain access.
competition-agent-cloud
42kHelps your agent analyze security challenges in AI and cloud systems. It investigates how prompts, tools, and the cloud can be exploited.
competition-android-hooking
42kHelps your agent investigate Android applications. It analyzes how apps work internally and how they might be modified or exploited.
competition-bundle-sourcemap-recovery
42kHelps your agent reconstruct website code. It analyzes files and code maps to understand how a site was built and how it functions.
Similar skills
angular-developer
280kHelps your agent create Angular code and give project structure advice. Useful for starting new projects, creating code parts, or improving performance and accessibility.
frontend-a11y
280kHelps your agent make web interfaces accessible to everyone. It ensures websites and apps work well with screen readers and keyboard navigation.
frontend-patterns
280kHas your agent apply modern patterns in frontend development. It optimizes performance, manages state, and follows best practices in React and Next.js.