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.
npx skills add asmyshlyaev177/state-in-url --skill react-router-remix-setupgit clone --depth 1 https://github.com/asmyshlyaev177/state-in-urlWrote 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.
[](https://agentmods.dev/skills/asmyshlyaev177/state-in-url/react-router-remix-setup)<a href="https://agentmods.dev/skills/asmyshlyaev177/state-in-url/react-router-remix-setup"><img src="https://agentmods.dev/badge/skills/asmyshlyaev177/state-in-url/react-router-remix-setup/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.
<a href="https://agentmods.dev/skills/asmyshlyaev177/state-in-url/react-router-remix-setup"><img src="https://agentmods.dev/badge/skills/asmyshlyaev177/state-in-url/react-router-remix-setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00110 | $0.02638 |
| Opus 5.5 | $0.00044 | $0.01055 |
| Sonnet 5.5 | $0.00022 | $0.00528 |
| Haiku 4.5 | $0.00011 | $0.00264 |
Grade A, and why
react-router-remix-setup 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 1mo ago.
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.
How it starts
The opening of the file, as written. The whole thing — 257 lines — stays where its author put it; the contents beside it link to each section on GitHub.
This skill builds on state-in-url/feature-state-hook. Read it first for the module-scoped default-state rule.
state-in-url — React Router and Remix
The hook signature, return shape, and behavior of useUrlState are identical across React Router v6, v7, and Remix v2. Three things differ:
| Aspect | Difference |
|---|---|
| Import path | state-in-url/react-router (v7), state-in-url/react-router6 (v6), state-in-url/remix (Remix v2) |
setUrl per-call options |
Accepts NavigateOptions from react-router (e.g. preventScrollReset, state, replace) |
| SSR | Remix v2 routes can hydrate from loader data; React Router CSR-only by default |
Setup
React Router v7
import { useUrlState } from 'state-in-url/react-router';
type FiltersState = { sort: 'name' | 'date'; page: number };
const FILTERS_STATE: FiltersState = { sort: 'name', page: 1 };
export function FiltersBar() {
const { urlState, setUrl } = useUrlState(FILTERS_STATE);
return <button onClick={() => setUrl({ page: urlState.page + 1 })}>Next</button>;
}
React Router v6 (since state-in-url 6.0.0)
// Note the /react-router6 subpath
import { useUrlState } from 'state-in-url/react-router6';
type FiltersState = { sort: 'name' | 'date'; page: number };
const FILTERS_STATE: FiltersState = { sort: 'name', page: 1 };
export function FiltersBar() {
const { urlState, setUrl } = useUrlState(FILTERS_STATE);
return <button onClick={() => setUrl({ page: urlState.page + 1 })}>Next</button>;
}
Remix v2
import { useUrlState } from 'state-in-url/remix';
type FiltersState = { sort: 'name' | 'date'; page: number };
const FILTERS_STATE: FiltersState = { sort: 'name', page: 1 };
export default function Route() {
const { urlState, setUrl } = useUrlState(FILTERS_STATE);
return <button onClick={() => setUrl({ page: urlState.page + 1 })}>Next</button>;
}
Core Patterns
Pass NavigateOptions per call
setUrl({ tab: 'b' }, { replace: false, preventScrollReset: true });
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.
- 1mo ago Changed 45032dad1bd1
- 1mo ago Changed 82d0b5b12475
- 2mo ago First seen · 257 lines · 110 tokens per session scan A ddcac2017674
react-router-remix-setup is a skill published in the GitHub repository asmyshlyaev177/state-in-url (419 stars, last pushed 1mo ago), licensed MIT. It adds 110 tokens to every session and 2,638 once invoked, about $0.0004 per session on Opus 5.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-22.
react-router-remix-setup compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| react-router-remix-setupasmyshlyaev177/state-in-url | Skill | 419 | 1mo ago | MIT | A | 110 | Claude Code, Codex |
| reskinCopilotKit/CopilotKit | Skill | 39k | today | MIT | A | 154 | Claude Code |
| copilotkit-channelsCopilotKit/CopilotKit | Skill | 39k | today | MIT | A | 112 | Claude Code |
| setup-slack-channelCopilotKit/CopilotKit | Skill | 39k | today | MIT | A | 206 | Claude Code |
| a2ui-catalogCopilotKit/CopilotKit | Skill | 39k | today | MIT | A | 190 | Claude Code |
| copilotkit-cliCopilotKit/CopilotKit | Skill | 39k | today | MIT | A | 87 | Claude Code |
| a2ui-coreCopilotKit/CopilotKit | Skill | 39k | today | MIT | A | 18 | Claude Code |