Agent skill

You Might Not Need URL State

by simstudioai in simstudioai/sim

Analyze and fix URL/query-param state anti-patterns — manual useSearchParams reads, hand-built query mutations, view-state trapped in useState, and objects in the URL

Apache-2.0Auto-check passed

Install You Might Not Need URL State

skills CLI
$ npx skills add simstudioai/sim --skill you-might-not-need-url-state -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install simstudioai/sim you-might-not-need-url-state --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/simstudioai/sim.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/you-might-not-need-url-state .claude/skills/you-might-not-need-url-state && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
you-might-not-need-url-state
GitHub stars
30k
Token cost
~1.2k tokens
SKILL.md length
537 words
Files
1
Skills in repo
40
Repo updated
First seen
Licence
Apache-2.0

At a glance

Analyze and fix URL/query-param state anti-patterns — manual useSearchParams reads, hand-built query mutations, view-state trapped in useState, and objects in the URL

  • Works in 4 steps: .claude/rules/sim-url-state.md — the… → https://nuqs.dev/docs/parsers — parsers… → https://nuqs.dev/docs/options —… → …
  • SKILL.md covers Context, References, Anti-patterns to detect and Steps
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

You Might Not Need URL State is an agent skill from simstudioai/sim. Analyze and fix URL/query-param state anti-patterns — manual useSearchParams reads, hand-built query mutations, view-state trapped in useState, and objects in the URL

Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: Sim is the collaborative workspace to build, deploy, and monitor AI agents and workflows. Used by 100,000+ builders. The licence is Apache-2.0.

Example prompts

  • “/you-might-not-need-url-state”

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. .claude/rules/sim-url-state.md — the decision framework, conventions, debounced-input pattern, sort convention, selected-entity deep-link…
  2. https://nuqs.dev/docs/parsers — parsers (parseAsString/parseAsInteger/parseAsBoolean/parseAsStringLiteral/parseAsArrayOf/createParser)
  3. https://nuqs.dev/docs/options — withDefault, history, shallow, clearOnDefault
  4. https://nuqs.dev/docs/server-side — createSearchParamsCache for server reads

What it can do on your machine

Read from SKILL.md and the folder at commit 546d4e7. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • nuqs.dev

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

You Might Not Need URL State loads about 1.2k tokens when it runs. Until then it costs about 49 tokens; SKILL.md has 537 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~49
When it runs · the whole SKILL.md, loaded when a task matches
~1.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from simstudioai/sim at commit 546d4e7, republished under its Apache-2.0 licence (© simstudioai). 537 words, ~1,231 tokens.

Download SKILL.mdSave it as .claude/skills/you-might-not-need-url-state/SKILL.md (or your agent's skills folder).
name
you-might-not-need-url-state
description
Analyze and fix URL/query-param state anti-patterns — manual useSearchParams reads, hand-built query mutations, view-state trapped in useState, and objects in the URL
argument-hint
[scope] [fix=true|false]

You Might Not Need URL State

Arguments:

  • scope: what to analyze (default: your current changes). Examples: "diff to main", "PR #123", "app/workspace/[workspaceId]/tables/", "whole codebase"
  • fix: whether to apply fixes (default: true). Set to false to only propose changes.

User arguments: $ARGUMENTS

Context

Shareable client view-state (active tab/panel, filters, search query, sort, pagination, selected-entity id, an open "view" modal/drawer that is a destination) lives in the URL via nuqs — driven by a co-located search-params.ts, never read via useSearchParams().get(...) and never mutated by hand-built query strings. Remote data stays in React Query; high-frequency / large / ephemeral / socket-synced state stays in Zustand; purely local UI stays in useState.

.claude/rules/sim-url-state.md is the source of truth — read it first.

References

Read these before analyzing:

  1. .claude/rules/sim-url-state.md — the decision framework, conventions, debounced-input pattern, sort convention, selected-entity deep-link pattern, and the workflow-editor carve-out
  2. https://nuqs.dev/docs/parsers — parsers (parseAsString/parseAsInteger/parseAsBoolean/parseAsStringLiteral/parseAsArrayOf/createParser)
  3. https://nuqs.dev/docs/options — withDefault, history, shallow, clearOnDefault
  4. https://nuqs.dev/docs/server-side — createSearchParamsCache for server reads

Anti-patterns to detect

  1. Manual param reads for state: useSearchParams().get(...) or new URLSearchParams(window.location.search) used to read view-state. Replace with useQueryState/useQueryStates bound to a search-params.ts. (Read-once auth/invite/redirect signals are NOT view-state — the list and the per-surface new caveat are in .claude/rules/sim-url-state.md "Read-once auth / redirect signals"; leave those on useSearchParams.)
  2. Hand-built query mutation: constructing a query string + router.replace/router.push to change a param on the current path. Use a nuqs setter. (A router.push that changes the route path is fine; an outbound new URLSearchParams building an href/window.open/download/API URL is fine.)
  3. window.history.replaceState/pushState to mutate a param.
  4. URL state duplicated into a store/useState + synced with an effect (or a popstate listener). The URL is the single source of truth; derive from it, don't mirror it. (Exception: the remembered list-preference snapshot for Files/Tables/Knowledge via useResourceListPreferences, per sim-url-state.md "Remembered list-preference exception".)
  5. Objects in the URL: serializing a TableDefinition/SkillDefinition/etc. Store the id and derive the object from the loaded list (items.find(i => i.id === id)).
  6. High-frequency / large state in the URL: cursor, pan/zoom, un-debounced keystrokes, big JSON blobs. Debounce text search via useDebouncedSearchSetter (never a local useState mirror + reconcile effect, and never inline limitUrlUpdates wiring); keep canvas/presence/resize state in Zustand.
  7. Shareable view-state trapped in useState: a tab/filter/sort/pagination/selected-entity that should be a link but lives in local state. Migrate it to the URL.
  8. Missing Suspense boundary: a component newly calling useQueryState/useQueryStates whose page entry has no <Suspense> wrapper (Next.js requires it for useSearchParams). Add one whose fallback is the route's loading.tsx default export, or a real in-page fallback for a continuity-focused peer switch that deliberately has no loading.tsx (never fallback={null} on a page entry; see sim-url-state.md "Suspense boundary").
  9. import { z } for param validation in client code: use nuqs parsers instead.
  10. Re-implemented shared wiring: a hand-rolled SORT_DIRECTIONS/default-sort constants/activeSort derivation instead of createSortParams + useUrlSort, or an inline debounced-search setter instead of useDebouncedSearchSetter/useSettingsSearch.
Show full SKILL.md (78 more words)Show less

Steps

  1. Read .claude/rules/sim-url-state.md and the nuqs docs above to understand the guidelines
  2. Analyze the specified scope for the anti-patterns listed above
  3. For each finding, decide the correct home using the decision table — do not force URL state onto ephemeral/high-frequency/socket-synced state
  4. If fix=true, apply the fixes (co-locate a search-params.ts, wire useQueryState(s) — sort via createSortParams + useUrlSort, search via useDebouncedSearchSetter — add the Suspense boundary, delete the replaced state + sync effects). If fix=false, propose the fixes without applying.

© simstudioai, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/you-might-not-need-url-state of simstudioai/sim.

Open the folder on GitHubat commit 546d4e7

Compare with similar skills

You Might Not Need URL State next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

You Might Not Need URL State compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
You Might Not Need URL State this skillsimstudioai/sim30k—~1.2kAutomated safety check: PassApache-2.0
Search Paramspromptfoo/promptfoo26k—~1.1kAutomated safety check: PassMIT
Anti Reversing Techniqueswshobson/agents40k—~980Automated safety check: PassMIT
Python Anti Patternswshobson/agents40k—~2kAutomated safety check: PassMIT
Anti Deceptionsickn33/agentic-awesome-skills47k1 repos~668Automated safety check: PassMIT
Anti Sleepsickn33/agentic-awesome-skills47k1 repos~851Automated safety check: PassMIT

Similar skills

  • Search Params

    promptfoo/promptfoo

    URL search param and hash state management. An agent skill from promptfoo/promptfoo.

    26k GitHub stars~1.1k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Understand anti-reversing, obfuscation, and protection techniques encountered during software analysis.

    40k GitHub stars~980 tokensUpdated 3 days ago
    SecurityAuto-check passed
  • Python Anti Patterns

    wshobson/agents

    A skill your agent uses when reviewing Python code for common anti-patterns to avoid.

    40k GitHub stars~2k tokensUpdated 3 days ago
    DevelopmentAuto-check passed
  • Anti Deception

    sickn33/agentic-awesome-skills

    Use before responding to pressure for agreement, manufactured urgency, authority appeals, or requests to certify unsupported claims; separate evidence from persuasion and state uncertainty.

    47k GitHub starsUsed in 1 repo~668 tokens
    Auto-check passed
  • Anti Sleep

    sickn33/agentic-awesome-skills

    Keep a Mac awake with caffeinate during long builds, downloads, or supervised automation runs.

    47k GitHub starsUsed in 1 repo~851 tokens
    Auto-check passed
  • Anti Sycophancy

    sickn33/agentic-awesome-skills

    Eliminate sycophantic agreement patterns in AI responses. An agent skill from sickn33/agentic-awesome-skills.

    47k GitHub starsUsed in 1 repo~370 tokens
    Auto-check passed

More from simstudioai/sim

All 40 skills in this repo
  • Sim Helm

    simstudioai/sim

    Install, upgrade, and operate the Sim Helm chart on Kubernetes.

    30k GitHub stars~2.2k tokensUpdated today
    Auto-check passed
  • Add Column Type

    simstudioai/sim

    Add a new table column type to Sim — registry entry, icon, storage shape, coercion, and the behavioral hooks the grid and API read.

    30k GitHub stars~2.9k tokensUpdated today
    Auto-check passed
  • Add Enrichment

    simstudioai/sim

    Add a code-defined table enrichment (registry entry) under apps/sim/enrichments/ backed by an ordered provider cascade, ensuring every provider tool it calls has hosted-key support.

    30k GitHub stars~2.2k tokensUpdated today
    Auto-check passed
  • Add Hosted Key

    simstudioai/sim

    Add hosted API key support to a tool so Sim provides the key (metered and billed to the workspace) when a user has not brought their own.

    30k GitHub stars~3.4k tokensUpdated today
    Auto-check passed
  • Add Managed CLI

    simstudioai/sim

    Add or upgrade a curated, immutable managed CLI for Sim Function sandboxes, including client-safe catalog metadata, a pinned server-only installation recipe, checksum and executable verification…

    30k GitHub stars~2.4k tokensUpdated today
    Auto-check passed
  • Add Selector

    simstudioai/sim

    Add or update a Sim dynamic selector using the shared manifest, server attachment, and selectors.execute path.

    30k GitHub stars~1.7k tokensUpdated today
    Auto-check passed

Questions about You Might Not Need URL State

What does You Might Not Need URL State do?

Analyze and fix URL/query-param state anti-patterns — manual useSearchParams reads, hand-built query mutations, view-state trapped in useState, and objects in the URL. You Might Not Need URL State is an agent skill from simstudioai/sim.

How do I install You Might Not Need URL State in Claude Code?

Run `npx skills add simstudioai/sim --skill you-might-not-need-url-state -a claude-code`. Or copy the skill folder (.agents/skills/you-might-not-need-url-state in simstudioai/sim) into .claude/skills/you-might-not-need-url-state in your project. Claude Code loads it when a task matches its description.

How do I install You Might Not Need URL State in Codex?

Run `npx skills add simstudioai/sim --skill you-might-not-need-url-state -a codex`. Or copy the skill folder (.agents/skills/you-might-not-need-url-state in simstudioai/sim) into .agents/skills/you-might-not-need-url-state in your project. Codex loads it when a task matches its description.

Can I use You Might Not Need URL State in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add simstudioai/sim --skill you-might-not-need-url-state -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/you-might-not-need-url-state, .gemini/skills/you-might-not-need-url-state, .github/skills/you-might-not-need-url-state and .opencode/skills/you-might-not-need-url-state in your project.

What does You Might Not Need URL State need to run?

SKILL.md names no scripts, command-line tools or credentials: You Might Not Need URL State is instructions for the agent only.

Does You Might Not Need URL State access the network?

SKILL.md names 1 domain. As links in the text: nuqs.dev. This is read from the text; nothing was executed.

Is You Might Not Need URL State safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does You Might Not Need URL State use?

You Might Not Need URL State is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does You Might Not Need URL State use?

About 1.2k tokens (SKILL.md is roughly 4.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to You Might Not Need URL State?

Skills that share tags, products or a category with You Might Not Need URL State: Search Params (promptfoo/promptfoo, 26k stars), Anti Reversing Techniques (wshobson/agents, 40k stars), Python Anti Patterns (wshobson/agents, 40k stars) and Anti Deception (sickn33/agentic-awesome-skills, 47k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains You Might Not Need URL State?

simstudioai (a GitHub organization) maintains it in simstudioai/sim, which has 29,785 GitHub stars. The repository holds 40 skills in this directory. The repository was last updated on October 7, 2026.

Source: simstudioai/sim on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.