frontend-query-mutation — for Claude Code frontend-query-mutation, official, for Claude Code, ide skills, Dify frontend query, TanStack Query, contract-first workflow, conditional query handling, cache invalidation, mutation error handling, Claude Code

Verified
v1.0.0
GitHub

About this Skill

Perfect for Full Stack Agents needing advanced frontend query and mutation management with TanStack Query and oRPC. frontend-query-mutation is a Dify frontend skill for implementing contract-first query and mutation patterns with TanStack Query and oRPC.

Features

Implementing contract-shaped queryOptions() and mutationOptions()
Handling conditional queries and cache invalidation using oRPC helpers
Creating small shared query helpers for multiple call sites
Preserving Dify conventions for contract inputs and invalidation
Migrating legacy service calls to contract-first query and mutation helpers
Optimizing mutation error handling with mutate() and mutateAsync()

# Core Topics

langgenius langgenius
[135.1k]
[21035]
Updated: 3/31/2026

Agent Capability Analysis

The frontend-query-mutation skill by langgenius is an open-source official AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance. Optimized for for Claude Code, Dify frontend query, TanStack Query.

Ideal Agent Persona

Perfect for Full Stack Agents needing advanced frontend query and mutation management with TanStack Query and oRPC.

Core Value

Empowers agents to manage contract-shaped queryOptions and mutationOptions, handling conditional queries, cache invalidation, and mutation error handling with minimal abstractions, while preserving TypeScript inference and utilizing oRPC helpers for optimized data fetching and manipulation.

Capabilities Granted for frontend-query-mutation

Implementing contract-first query and mutation helpers for web applications
Optimizing data fetching and caching with TanStack Query and oRPC
Debugging and handling errors in frontend query and mutation workflows
Migrating legacy service calls to contract-first query and mutation patterns

! Prerequisites & Limits

  • Requires TanStack Query and oRPC setup
  • Limited to frontend query and mutation management
  • Needs contract files and router composition setup in web/contract/*
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

frontend-query-mutation

Boost development with Dify frontend query and mutation patterns using TanStack Query and oRPC. Discover how this AI agent skill helps developers optimize...

SKILL.md
Readonly

Frontend Query & Mutation

Intent

  • Keep contract as the single source of truth in web/contract/*.
  • Prefer contract-shaped queryOptions() and mutationOptions().
  • Keep invalidation and mutation flow knowledge in the service layer.
  • Keep abstractions minimal to preserve TypeScript inference.

Workflow

  1. Identify the change surface.
    • Read references/contract-patterns.md for contract files, router composition, client helpers, and query or mutation call-site shape.
    • Read references/runtime-rules.md for conditional queries, invalidation, error handling, and legacy migrations.
    • Read both references when a task spans contract shape and runtime behavior.
  2. Implement the smallest abstraction that fits the task.
    • Default to direct useQuery(...) or useMutation(...) calls with oRPC helpers at the call site.
    • Extract a small shared query helper only when multiple call sites share the same extra options.
    • Create web/service/use-{domain}.ts only for orchestration or shared domain behavior.
  3. Preserve Dify conventions.
    • Keep contract inputs in { params, query?, body? } shape.
    • Bind invalidation in the service-layer mutation definition.
    • Prefer mutate(...); use mutateAsync(...) only when Promise semantics are required.

Files Commonly Touched

  • web/contract/console/*.ts
  • web/contract/marketplace.ts
  • web/contract/router.ts
  • web/service/client.ts
  • web/service/use-*.ts
  • component and hook call sites using consoleQuery or marketplaceQuery

References

  • Use references/contract-patterns.md for contract shape, router registration, query and mutation helpers, and anti-patterns that degrade inference.
  • Use references/runtime-rules.md for conditional queries, invalidation, mutate versus mutateAsync, and legacy migration rules.

Treat this skill as the single query and mutation entry point for Dify frontend work. Keep detailed rules in the reference files instead of duplicating them in project docs.

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is frontend-query-mutation?

Perfect for Full Stack Agents needing advanced frontend query and mutation management with TanStack Query and oRPC. frontend-query-mutation is a Dify frontend skill for implementing contract-first query and mutation patterns with TanStack Query and oRPC.

How do I install frontend-query-mutation?

Run the command: npx killer-skills add langgenius/dify/frontend-query-mutation. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for frontend-query-mutation?

Key use cases include: Implementing contract-first query and mutation helpers for web applications, Optimizing data fetching and caching with TanStack Query and oRPC, Debugging and handling errors in frontend query and mutation workflows, Migrating legacy service calls to contract-first query and mutation patterns.

Which IDEs are compatible with frontend-query-mutation?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for frontend-query-mutation?

Requires TanStack Query and oRPC setup. Limited to frontend query and mutation management. Needs contract files and router composition setup in web/contract/*.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add langgenius/dify/frontend-query-mutation. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use frontend-query-mutation immediately in the current project.

Related Skills

Looking for an alternative to frontend-query-mutation or another official skill for your workflow? Explore these related open-source skills.

View All

flags

Logo of facebook
facebook

Use when you need to check feature flag states, compare channels, or debug why a feature behaves differently across release channels.

243.6k
0
Developer

extract-errors

Logo of facebook
facebook

Use when adding new error messages to React, or seeing unknown error code warnings.

243.6k
0
Developer

fix

Logo of facebook
facebook

Use when you have lint errors, formatting issues, or before committing code to ensure it passes CI.

243.6k
0
Developer

flow

Logo of facebook
facebook

Use when you need to run Flow type checking, or when seeing Flow type errors in React code.

243.6k
0
Developer