Agent skill

Query Layer

by EpicenterHQ in EpicenterHQ/epicenter

Query boundaries with TanStack Query and Wellcrafted Results.

Custom licenceAuto-check passedFrontend & Design

Install Query Layer

skills CLI
$ npx skills add EpicenterHQ/epicenter --skill query-layer -a claude-code

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

GitHub CLI
$ gh skill install EpicenterHQ/epicenter query-layer --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/EpicenterHQ/epicenter.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/query-layer .claude/skills/query-layer && 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
query-layer
GitHub stars
4.8k
Token cost
~2.5k tokens
SKILL.md length
873 words
Files
4 (incl. references)
Skills in repo
64
Repo updated
First seen
Licence
Custom licence

At a glance

Query boundaries with TanStack Query and Wellcrafted Results.

  • Works in 6 steps: Use defineKeys for shared cache identity… → Use .options (no parentheses) - It's a… → Do not translate tagged errors by… → …
  • Editing createQuery
  • SKILL.md covers Reference Repositories, Upstream Grounding, Core Architecture and Wellcrafted Query API Shape, plus 7 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Query Layer is an agent skill from EpicenterHQ/epicenter. Query boundaries with TanStack Query and Wellcrafted Results. Use when editing createQuery, createMutation, resultQueryOptions, resultMutationOptions, defineQuery, defineMutation, defineKeys, shared cache identity, mutation lifecycle, or service-to-TanStack adapters.

Its SKILL.md is about 2.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including reference files (for example `references/advanced-query-patterns.md`, `references/error-transformation-patterns.md` and `references/runtime-dependency-injection.md`).

It sits in Frontend & Design. It works with TanStack and Svelte. The repository describes itself as: Open-source, local-first apps.

When your agent uses it

  • Editing createQuery
  • ResultQueryOptions
  • ResultMutationOptions
  • Shared cache identity

Example prompts

  • “/query-layer”

Workflow steps

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

  1. Use defineKeys for shared cache identity - Export the key map beside the owner
  2. Use .options (no parentheses) - It's a static object, wrap in accessor for Svelte
  3. Do not translate tagged errors by default - Pass service/operation errors through to the report boundary
  4. Services receive explicit app inputs - The consuming edge injects settings and device config
  5. Keep component lifecycle policy in svelte - This skill owns shared adapter shape and cache behavior
  6. Update cache deliberately - Use optimistic writes only when the cache owner and rollback path are explicit; otherwise invalidate or refetch

What it can do on your machine

Read from SKILL.md and the folder at commit f9441c8. 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 (its code samples are typescript and svelte).

    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):

    • github.com

    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

Query Layer loads about 2.5k tokens when it runs, and up to ~3.9k if it reads all its reference files. Until then it costs about 70 tokens; SKILL.md has 873 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~70
When it runs · the whole SKILL.md, loaded when a task matches
~2.5k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~3.9k

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

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 873 words (~2,475 tokens).

“When TanStack Query behavior, Svelte adapter types, cache invalidation semantics, optimistic updates, or mutation lifecycle callbacks affect correctness, ask DeepWiki a narrow question against TanStack/query before relying on memory. Use it to orient, then verify decisive details against local installed…”

— opening of SKILL.md by EpicenterHQ, Custom licence
name
query-layer
metadata.author
epicenter
metadata.version
3.0

Read the full SKILL.md on GitHub

Files

SKILL.md and 3 other files (references) in .agents/skills/query-layer of EpicenterHQ/epicenter.

  • SKILL.md
  • references/advanced-query-patterns.md
  • references/error-transformation-patterns.md
  • references/runtime-dependency-injection.md

Open the folder on GitHubat commit f9441c8

Compare with similar skills

Query Layer 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.

Query Layer compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Query Layer this skillEpicenterHQ/epicenter4.8k—~2.5kAutomated safety check: PassCustom licence
Frontend Guidelightly-ai/lightly-studio896—~2.9kAutomated safety check: PassApache-2.0
Tanstack Formexceptionless/Exceptionless2.5k—~544Automated safety check: PassApache-2.0
Tanstack Querybskimball/tanstack-hono1191 repos~5.4kAutomated safety check: PassMIT
Frontend Architectureexceptionless/Exceptionless2.5k—~964Automated safety check: PassApache-2.0
Tanstack Virtualudecode/plate17k—~2.8kAutomated safety check: PassCustom licence

Similar skills

  • Frontend Guide

    lightly-ai/lightly-studio

    Read before writing or reviewing any frontend code in lightlystudioview - Svelte, TypeScript, or SvelteKit files.

    896 GitHub stars~2.9k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Tanstack Form

    exceptionless/Exceptionless

    Build Svelte forms with TanStack Form, Zod validation, and API error mapping.

    2.5k GitHub stars~544 tokensUpdated yesterday
    Frontend & DesignAuto-check passed
  • Tanstack Query

    bskimball/tanstack-hono

    Powerful asynchronous state management, server-state utilities, and data fetching for TS/JS, React, Vue, Solid, Svelte & Angular.

    119 GitHub starsUsed in 1 repo~5.4k tokens
    Frontend & DesignAuto-check passed
  • Frontend Architecture

    exceptionless/Exceptionless

    Apply Exceptionless Svelte conventions when adding or restructuring frontend features.

    2.5k GitHub stars~964 tokensUpdated yesterday
    Frontend & DesignAuto-check passed
  • Tanstack Virtual

    udecode/plate

    Headless UI for virtualizing large element lists at 60FPS in TS/JS, React, Vue, Solid, Svelte, Lit & Angular.

    17k GitHub stars~2.8k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Local tanstack-store documentation reference (latest). An agent skill from olorehq/olore.

    103 GitHub stars~1.2k tokensUpdated yesterday
    Frontend & DesignAuto-check passed

More from EpicenterHQ/epicenter

All 64 skills in this repo
  • Agent Instructions

    EpicenterHQ/epicenter

    Write and maintain repository guidance across AGENTS.md, CLAUDE.md, and .agents/skills.

    4.8k GitHub stars~1.2k tokensUpdated today
    Auto-check passed
  • Consult Claude

    EpicenterHQ/epicenter

    Get Claude Code's second opinion on a proposal or implementation.

    4.8k GitHub stars~1.5k tokensUpdated today
    Auto-check passed
  • Better Auth security hardening: rate limits, secrets, CSRF, trusted origins, cookies, sessions, OAuth tokens, and audit logging.

    4.8k GitHub stars~896 tokensUpdated today
    Auto-check passed
  • Cohesion Over Testability

    EpicenterHQ/epicenter

    Collapse test-shaped production boundaries while preserving behavior and coverage.

    4.8k GitHub stars~2k tokensUpdated today
    Auto-check passed
  • Collapse Pass

    EpicenterHQ/epicenter

    Remove indirection that does not earn its boundary across a diff or package.

    4.8k GitHub stars~2k tokensUpdated today
    Auto-check passed
  • Error Handling

    EpicenterHQ/epicenter

    Apply Wellcrafted Result patterns to fallible operations and preserve failures at boundaries.

    4.8k GitHub stars~1.4k tokensUpdated today
    Auto-check passed

Works with

Questions about Query Layer

What does Query Layer do?

Query boundaries with TanStack Query and Wellcrafted Results. Query Layer is an agent skill from EpicenterHQ/epicenter. Query boundaries with TanStack Query and Wellcrafted Results.

When should I use Query Layer?

Query Layer fits situations like: editing createQuery; resultQueryOptions; resultMutationOptions; shared cache identity.

How do I install Query Layer in Claude Code?

Run `npx skills add EpicenterHQ/epicenter --skill query-layer -a claude-code`. Or copy the skill folder (.agents/skills/query-layer in EpicenterHQ/epicenter) into .claude/skills/query-layer in your project. Claude Code loads it when a task matches its description.

How do I install Query Layer in Codex?

Run `npx skills add EpicenterHQ/epicenter --skill query-layer -a codex`. Or copy the skill folder (.agents/skills/query-layer in EpicenterHQ/epicenter) into .agents/skills/query-layer in your project. Codex loads it when a task matches its description.

Can I use Query Layer 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 EpicenterHQ/epicenter --skill query-layer -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/query-layer, .gemini/skills/query-layer, .github/skills/query-layer and .opencode/skills/query-layer in your project.

What does Query Layer need to run?

SKILL.md names no scripts, command-line tools or credentials: Query Layer is instructions for the agent only.

Does Query Layer access the network?

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

Is Query Layer 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 Query Layer use?

Query Layer has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Query Layer use?

About 2.5k tokens (SKILL.md is roughly 9.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.4k tokens, read only when the agent opens those files.

What are the alternatives to Query Layer?

Skills that share tags, products or a category with Query Layer: Frontend Guide (lightly-ai/lightly-studio, 896 stars), Tanstack Form (exceptionless/Exceptionless, 2.5k stars), Tanstack Query (bskimball/tanstack-hono, 119 stars) and Frontend Architecture (exceptionless/Exceptionless, 2.5k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Query Layer?

EpicenterHQ (a GitHub organization) maintains it in EpicenterHQ/epicenter, which has 4,818 GitHub stars. The repository holds 64 skills in this directory. The repository was last updated on October 7, 2026.

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