ha-frontend-query-params
Skill by home-assistant
Guides developers on keeping Home Assistant frontend page state, such as filters, search, sorting and grouping, in the URL query string. It covers typed query params, QueryParamsController, data table URL sync and My Home Assistant redirects.
Install ha-frontend-query-params
Built from the published package, never by AI.
git clone --depth 1 https://github.com/home-assistant/frontend /tmp/frontend && mkdir -p ~/.claude/skills && cp -r /tmp/frontend/.agents/skills/ha-frontend-query-params ~/.claude/skills/ha-frontend-query-paramsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install ha-frontend-query-params in Claude Code
git clone --depth 1 https://github.com/home-assistant/frontend /tmp/frontend && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/frontend/.agents/skills/ha-frontend-query-params ~/.gemini/antigravity-cli/skills/ha-frontend-query-paramsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install ha-frontend-query-params in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill documents the URL query param patterns used in the Home Assistant frontend. It explains how typed param configs are read and written in src/common/url/query-params.ts, and how each feature gets its own params file. It also covers QueryParamsController, which syncs part of a page's state with the URL, including debounced writes, flushing, and handling navigation to a page that is already open.
The skill sets rules for URL state. Writes replace the current history entry, empty and default values are left out, and param names are kept stable for existing links. It also covers data table sync-url settings, column urlName values, the coverage check for new pages, and adding params to My Home Assistant redirects. It is written for Home Assistant frontend contributors who add or review this kind of page state.
Written from the project's SKILL.md and checked against it.
What it can do
- Typed query paramsReads and writes typed params (string, list, date and boolean) through src/common/url/query-params.ts.
- QueryParamsControllerKeeps part of a page's state in the URL, with debounced writes and navigation handling.
- Data table URL syncKeeps search, sort, direction and group in the URL when sync-url is set on the data table.
- URL rules for pagesSets rules for history replacement, default values, stored preferences and renamed params.
- Coverage checkLists the checks to run before a page with URL params is considered done.
- My Home Assistant redirectsExplains adding params to getMyRedirects() and the matching redirect.json change.
- Test guidancePoints to existing tests for query params and the controller and says what to cover.
What you need
- Home Assistant frontend codebase
- ha-frontend-lit skill for controller and lifecycle work
- ha-frontend-testing skill for running tests
- ha-frontend-review skill for reviews
Try asking
- Add a search and sort param to this page and keep them in the URL.
- Check that my new filter is written to the URL and read back from a link.
- Add the params for this page to its My Home Assistant redirect.
Good to know
- Pages opt in, so each page must be checked for params it already reads.
- Old param names are read for about six months and then removed, with a code comment naming the release.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/ha-frontend-query-params/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md12 KB
Alternatives to ha-frontend-query-params
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
ha-frontend-query-params: common questions
What is the QueryParamsController in Home Assistant?
It is a controller in src/common/controllers/query-params-controller.ts that keeps part of a page's state in the URL. It reads params on navigation and writes state back with replaceCurrentUrl.
Why does a Home Assistant frontend URL write replace history?
The source says writes replace the current history entry, so Back leaves the page instead of undoing each change. Only deliberate navigations push a new entry.
How do I add URL params to a My Home Assistant link?
Add the params under params in the page's redirect in getMyRedirects() in src/panels/my/ha-panel-my.ts, and add the same params to redirect.json in the my.home-assistant.io repository.
How do I install ha-frontend-query-params?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is ha-frontend-query-params free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is ha-frontend-query-params safe to use?
It scores 83 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to ha-frontend-query-params?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
