frontend-query-mutation — TanStack Query implementation frontend-query-mutation, dify, langgenius, official, TanStack Query implementation, ai agent skill, mcp server, agent automation, oRPC contract management, Dify frontend query patterns, conditional query handling, cache invalidation strategies

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 skill for implementing efficient contract query and mutation patterns using TanStack Query and oRPC.

Features

Implements Dify frontend query patterns with TanStack Query
Handles conditional queries and cache invalidation with oRPC
Supports migration of legacy service calls to contract-first query helpers
Optimizes router composition and client helpers for contract-shaped queryOptions
Provides mutation error handling and flow knowledge in the service layer
Utilizes TypeScript inference for minimal abstractions

# Core Topics

langgenius langgenius
[133.0k]
[20717]
Updated: 3/16/2026

Quality Score

Top 5%
61
Excellent
Based on code quality & docs
Installation
SYS Universal Install (Auto-Detect)
> npx killer-skills add langgenius/dify/frontend-query-mutation
Supports 18+ Platforms
Cursor
Windsurf
VS Code
Trae
Claude
OpenClaw
+12 more

Agent Capability Analysis

The frontend-query-mutation MCP Server by langgenius is an open-source official integration for Claude and other AI agents, enabling seamless task automation and capability expansion. Optimized for TanStack Query implementation, oRPC contract management, Dify frontend query patterns.

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 implement efficient contract-first query and mutation patterns, utilizing TanStack Query for data fetching and oRPC for remote procedure calls, while maintaining a single source of truth in contract files and minimizing abstractions to preserve TypeScript inference.

Capabilities Granted for frontend-query-mutation MCP Server

Implementing contract-shaped queryOptions() and mutationOptions() for optimized data fetching
Handling conditional queries and cache invalidation in the service layer
Migrating legacy service calls to contract-first query and mutation helpers with TanStack Query and oRPC

! Prerequisites & Limits

  • Requires knowledge of TanStack Query and oRPC
  • Limited to frontend development with contract-first approach
  • Needs TypeScript for optimal type inference
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 skill for implementing efficient contract query and mutation patterns using 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 15+ other IDEs.

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

Key use cases include: Implementing contract-shaped queryOptions() and mutationOptions() for optimized data fetching, Handling conditional queries and cache invalidation in the service layer, Migrating legacy service calls to contract-first query and mutation helpers with TanStack Query and oRPC.

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 knowledge of TanStack Query and oRPC. Limited to frontend development with contract-first approach. Needs TypeScript for optimal type inference.

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 building a official AI Agent? Explore these related open-source MCP Servers.

View All

flags

Logo of facebook
facebook

flags is a feature flag management tool that enables developers to check flag states, compare channels, and debug issues across different release channels.

244.0k
0
Design

extract-errors

Logo of facebook
facebook

The extract-errors skill is a React tool that extracts error codes and updates them for frontend development.

244.0k
0
Design

fix

Logo of facebook
facebook

fix is a skill that resolves lint errors and formatting issues in JavaScript code using yarn prettier and yarn linc.

244.0k
0
Design

flow

Logo of facebook
facebook

Flow is a type checking system for JavaScript, enabling developers to catch type errors in their React code.

244.0k
0
Design