[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75K5Q3X7P4D3CBFAZMEW6XC":3,"skill-same:01M75K5Q3X7P4D3CBFAZMEW6XC":74},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":30,"commitSha":31,"skillDirectory":32,"forksCount":33,"repositoryHtmlUrl":34,"repositoryHomepageUrl":6,"ownerHtmlUrl":35,"ownerBlogUrl":36,"ownerDescription":6,"updatedAt":37,"install":38,"resources":51},"01M75K5Q3X7P4D3CBFAZMEW6XC","graphql-operations",null,"Guide for writing GraphQL operations (queries, mutations, fragments) following best practices. Use this skill when: (1) writing GraphQL queries or mutations, (2) organizing operations with fragments, (3) optimizing data fetching patterns, (4) setting up type generation or linting, (5) reviewing operations for efficiency.","stanfish06\u002Fskillquarium","stanfish06","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F93099613?v=4","01M75F1CK4ZW109ZK3T26VN52F","Zhiyuan","01M75F1CM53VH6F79DZ8GXKKES",12,"MIT","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fgraphql-operations\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: graphql-operations\ndescription: >\n  Guide for writing GraphQL operations (queries, mutations, fragments) following best practices. Use this skill when:\n  (1) writing GraphQL queries or mutations,\n  (2) organizing operations with fragments,\n  (3) optimizing data fetching patterns,\n  (4) setting up type generation or linting,\n  (5) reviewing operations for efficiency.\nlicense: MIT\ncompatibility: Any GraphQL client (Apollo Client, urql, Relay, etc.)\nmetadata:\n  author: apollographql\n  version: \"1.0.1\"\nallowed-tools: Bash(npm:*) Bash(npx:*) Read Write Edit Glob Grep\n---\n\n# GraphQL Operations Guide\n\nThis guide covers best practices for writing GraphQL operations (queries, mutations, subscriptions) as a client developer. Well-written operations are efficient, type-safe, and maintainable.\n\n## Start From the Schema\n\nWrite every operation against the project's schema, not against the examples in this guide.\n\n1. Find the schema before you write anything. Check the `schema` entry in `codegen.ts`, `graphql.config.*`, or `apollo.config.*`, then look for `*.graphql` SDL files.\n2. Use only the fields, arguments, and enum values that the schema defines. Field names in this guide, such as `updatedAt` or `orderBy: { field: CREATED_AT, direction: DESC }`, are illustrations.\n3. Save the operation as a document next to the client's existing operations. Leave the server schema unchanged unless the user asks for a schema change.\n\n## Operation Basics\n\n### Query Structure\n\n```graphql\nquery GetUser($id: ID!) {\n  user(id: $id) {\n    id\n    name\n    email\n  }\n}\n```\n\n### Mutation Structure\n\n```graphql\nmutation CreatePost($input: CreatePostInput!) {\n  createPost(input: $input) {\n    id\n    title\n    createdAt\n  }\n}\n```\n\n### Subscription Structure\n\n```graphql\nsubscription OnMessageReceived($channelId: ID!) {\n  messageReceived(channelId: $channelId) {\n    id\n    content\n    sender {\n      id\n      name\n    }\n  }\n}\n```\n\n## Quick Reference\n\n### Operation Naming\n\n| Pattern      | Example                                     |\n| ------------ | ------------------------------------------- |\n| Query        | `GetUser`, `ListPosts`, `SearchProducts`    |\n| Mutation     | `CreateUser`, `UpdatePost`, `DeleteComment` |\n| Subscription | `OnMessageReceived`, `OnUserStatusChanged`  |\n\n### Variable Syntax\n\n```graphql\n# Required variable\nquery GetUser($id: ID!) { ... }\n\n# Optional variable with default\nquery ListPosts($first: Int = 20) { ... }\n\n# Multiple variables\nquery SearchPosts($query: String!, $status: PostStatus, $first: Int = 10) { ... }\n```\n\n### Fragment Syntax\n\n```graphql\n# Define fragment\nfragment UserBasicInfo on User {\n  id\n  name\n  avatarUrl\n}\n\n# Use fragment\nquery GetUser($id: ID!) {\n  user(id: $id) {\n    ...UserBasicInfo\n    email\n  }\n}\n```\n\n### Directives\n\n```graphql\nquery GetUser($id: ID!, $includeEmail: Boolean!) {\n  user(id: $id) {\n    id\n    name\n    email @include(if: $includeEmail)\n  }\n}\n\nquery GetPosts($skipDrafts: Boolean!) {\n  posts {\n    id\n    title\n    draft @skip(if: $skipDrafts)\n  }\n}\n```\n\n## Key Principles\n\n### 1. Request Only What You Need\n\n```graphql\n# Good: Specific fields\nquery GetUserName($id: ID!) {\n  user(id: $id) {\n    id\n    name\n  }\n}\n\n# Avoid: Over-fetching\nquery GetUser($id: ID!) {\n  user(id: $id) {\n    id\n    name\n    email\n    bio\n    posts {\n      id\n      title\n      content\n      comments {\n        id\n      }\n    }\n    followers {\n      id\n      name\n    }\n    # ... many unused fields\n  }\n}\n```\n\n### 2. Name All Operations\n\n```graphql\n# Good: Named operation\nquery GetUserPosts($userId: ID!) {\n  user(id: $userId) {\n    posts {\n      id\n      title\n    }\n  }\n}\n\n# Avoid: Anonymous operation\nquery {\n  user(id: \"123\") {\n    posts {\n      id\n      title\n    }\n  }\n}\n```\n\n### 3. Use Variables, Not Inline Values\n\n```graphql\n# Good: Variables\nquery GetUser($id: ID!) {\n  user(id: $id) {\n    id\n    name\n  }\n}\n\n# Avoid: Hardcoded values\nquery {\n  user(id: \"123\") {\n    id\n    name\n  }\n}\n```\n\n### 4. Colocate Fragments with Components\n\n```tsx\n\u002F\u002F UserAvatar.tsx\nexport const USER_AVATAR_FRAGMENT = gql`\n  fragment UserAvatar on User {\n    id\n    name\n    avatarUrl\n  }\n`;\n\nfunction UserAvatar({ user }) {\n  return \u003Cimg src={user.avatarUrl} alt={user.name} \u002F>;\n}\n```\n\n## Reference Files\n\nDetailed documentation for specific topics:\n\n- [Queries](references\u002Fqueries.md) - Query patterns and optimization\n- [Mutations](references\u002Fmutations.md) - Mutation patterns and error handling\n- [Fragments](references\u002Ffragments.md) - Fragment organization and reuse\n- [Variables](references\u002Fvariables.md) - Variable usage and types\n- [Tooling](references\u002Ftooling.md) - Code generation and linting\n\n## Ground Rules\n\n- ALWAYS read the project's schema first, and use only the fields, arguments, and enum values it defines\n- ALWAYS name your operations (no anonymous queries\u002Fmutations)\n- ALWAYS use variables for dynamic values\n- ALWAYS request only the fields you need\n- ALWAYS include `id` field for cacheable types\n- NEVER hardcode values in operations\n- NEVER duplicate field selections across files\n- PREFER fragments for reusable field selections\n- PREFER colocating fragments with components\n- USE descriptive operation names that reflect purpose\n- USE `@include`\u002F`@skip` for conditional fields\n","# GraphQL Operations Guide\n\nThis guide covers best practices for writing GraphQL operations (queries, mutations, subscriptions) as a client developer. Well-written operations are efficient, type-safe, and maintainable.\n\n## Start From the Schema\n\nWrite every operation against the project's schema, not against the examples in this guide.\n\n1. Find the schema before you write anything. Check the `schema` entry in `codegen.ts`, `graphql.config.*`, or `apollo.config.*`, then look for `*.graphql` SDL files.\n2. Use only the fields, arguments, and enum values that the schema defines. Field names in this guide, such as `updatedAt` or `orderBy: { field: CREATED_AT, direction: DESC }`, are illustrations.\n3. Save the operation as a document next to the client's existing operations. Leave the server schema unchanged unless the user asks for a schema change.\n\n## Operation Basics\n\n### Query Structure\n\n```graphql\nquery GetUser($id: ID!) {\n  user(id: $id) {\n    id\n    name\n    email\n  }\n}\n```\n\n### Mutation Structure\n\n```graphql\nmutation CreatePost($input: CreatePostInput!) {\n  createPost(input: $input) {\n    id\n    title\n    createdAt\n  }\n}\n```\n\n### Subscription Structure\n\n```graphql\nsubscription OnMessageReceived($channelId: ID!) {\n  messageReceived(channelId: $channelId) {\n    id\n    content\n    sender {\n      id\n      name\n    }\n  }\n}\n```\n\n## Quick Reference\n\n### Operation Naming\n\n| Pattern      | Example                                     |\n| ------------ | ------------------------------------------- |\n| Query        | `GetUser`, `ListPosts`, `SearchProducts`    |\n| Mutation     | `CreateUser`, `UpdatePost`, `DeleteComment` |\n| Subscription | `OnMessageReceived`, `OnUserStatusChanged`  |\n\n### Variable Syntax\n\n```graphql\n# Required variable\nquery GetUser($id: ID!) { ... }\n\n# Optional variable with default\nquery ListPosts($first: Int = 20) { ... }\n\n# Multiple variables\nquery SearchPosts($query: String!, $status: PostStatus, $first: Int = 10) { ... }\n```\n\n### Fragment Syntax\n\n```graphql\n# Define fragment\nfragment UserBasicInfo on User {\n  id\n  name\n  avatarUrl\n}\n\n# Use fragment\nquery GetUser($id: ID!) {\n  user(id: $id) {\n    ...UserBasicInfo\n    email\n  }\n}\n```\n\n### Directives\n\n```graphql\nquery GetUser($id: ID!, $includeEmail: Boolean!) {\n  user(id: $id) {\n    id\n    name\n    email @include(if: $includeEmail)\n  }\n}\n\nquery GetPosts($skipDrafts: Boolean!) {\n  posts {\n    id\n    title\n    draft @skip(if: $skipDrafts)\n  }\n}\n```\n\n## Key Principles\n\n### 1. Request Only What You Need\n\n```graphql\n# Good: Specific fields\nquery GetUserName($id: ID!) {\n  user(id: $id) {\n    id\n    name\n  }\n}\n\n# Avoid: Over-fetching\nquery GetUser($id: ID!) {\n  user(id: $id) {\n    id\n    name\n    email\n    bio\n    posts {\n      id\n      title\n      content\n      comments {\n        id\n      }\n    }\n    followers {\n      id\n      name\n    }\n    # ... many unused fields\n  }\n}\n```\n\n### 2. Name All Operations\n\n```graphql\n# Good: Named operation\nquery GetUserPosts($userId: ID!) {\n  user(id: $userId) {\n    posts {\n      id\n      title\n    }\n  }\n}\n\n# Avoid: Anonymous operation\nquery {\n  user(id: \"123\") {\n    posts {\n      id\n      title\n    }\n  }\n}\n```\n\n### 3. Use Variables, Not Inline Values\n\n```graphql\n# Good: Variables\nquery GetUser($id: ID!) {\n  user(id: $id) {\n    id\n    name\n  }\n}\n\n# Avoid: Hardcoded values\nquery {\n  user(id: \"123\") {\n    id\n    name\n  }\n}\n```\n\n### 4. Colocate Fragments with Components\n\n```tsx\n\u002F\u002F UserAvatar.tsx\nexport const USER_AVATAR_FRAGMENT = gql`\n  fragment UserAvatar on User {\n    id\n    name\n    avatarUrl\n  }\n`;\n\nfunction UserAvatar({ user }) {\n  return \u003Cimg src={user.avatarUrl} alt={user.name} \u002F>;\n}\n```\n\n## Reference Files\n\nDetailed documentation for specific topics:\n\n- [Queries](references\u002Fqueries.md) - Query patterns and optimization\n- [Mutations](references\u002Fmutations.md) - Mutation patterns and error handling\n- [Fragments](references\u002Ffragments.md) - Fragment organization and reuse\n- [Variables](references\u002Fvariables.md) - Variable usage and types\n- [Tooling](references\u002Ftooling.md) - Code generation and linting\n\n## Ground Rules\n\n- ALWAYS read the project's schema first, and use only the fields, arguments, and enum values it defines\n- ALWAYS name your operations (no anonymous queries\u002Fmutations)\n- ALWAYS use variables for dynamic values\n- ALWAYS request only the fields you need\n- ALWAYS include `id` field for cacheable types\n- NEVER hardcode values in operations\n- NEVER duplicate field selections across files\n- PREFER fragments for reusable field selections\n- PREFER colocating fragments with components\n- USE descriptive operation names that reflect purpose\n- USE `@include`\u002F`@skip` for conditional fields\n",{"name":5,"license":15,"metadata":24,"description":27,"allowed-tools":28,"compatibility":29},{"author":25,"version":26},"apollographql","1.0.1","Guide for writing GraphQL operations (queries, mutations, fragments) following best practices. Use this skill when: (1) writing GraphQL queries or mutations, (2) organizing operations with fragments, (3) optimizing data fetching patterns, (4) setting up type generation or linting, (5) reviewing operations for efficiency.\n","Bash(npm:*) Bash(npx:*) Read Write Edit Glob Grep","Any GraphQL client (Apollo Client, urql, Relay, etc.)","master","49e49abf2f670d429e0b7e2c0349739c3fdd5cbe","skills\u002Fgraphql-operations",5,"https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium","https:\u002F\u002Fgithub.com\u002Fstanfish06","https:\u002F\u002Fwww.stanfish.dev\u002F","2026-11-14 21:31:37",{"source":8,"skillName":5,"commands":39,"prompt":49,"zipAvailable":50},[40,43,46],{"tool":41,"command":42},"npx","npx skills add stanfish06\u002Fskillquarium --skill graphql-operations",{"tool":44,"command":45},"bunx","bunx skills add stanfish06\u002Fskillquarium --skill graphql-operations",{"tool":47,"command":48},"pnpm","pnpm dlx skills add stanfish06\u002Fskillquarium --skill graphql-operations","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fgraphql-operations\u002FSKILL.md",true,[52,58,62,66,70],{"path":53,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":56,"sourceHtmlUrl":57},"references\u002Ffragments.md","REFERENCE","参考文档",7653,"https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fgraphql-operations\u002Freferences\u002Ffragments.md",{"path":59,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":60,"sourceHtmlUrl":61},"references\u002Fmutations.md",7840,"https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fgraphql-operations\u002Freferences\u002Fmutations.md",{"path":63,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":64,"sourceHtmlUrl":65},"references\u002Fqueries.md",7846,"https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fgraphql-operations\u002Freferences\u002Fqueries.md",{"path":67,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":68,"sourceHtmlUrl":69},"references\u002Ftooling.md",8537,"https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fgraphql-operations\u002Freferences\u002Ftooling.md",{"path":71,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":72,"sourceHtmlUrl":73},"references\u002Fvariables.md",6574,"https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fgraphql-operations\u002Freferences\u002Fvariables.md",[75,82,91,98,105,112],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M76ZJTRVA456GD7K8Y3EP82H","zarr-python","Stores and queries chunked N-D scientific arrays with Zarr-Python 3, including codecs, sharding, S3\u002FGCS storage, and NumPy\u002FDask\u002FXarray integration. Use for array layout, bounded I\u002FO, format migration, or scientific metadata preservation.","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fzarr-python\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":86,"licenseFileUrl":87,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M76ZJQZ15Q1HKC5V85NHE325","yeet","Publish local changes to GitHub by confirming scope, committing intentionally, pushing the branch, and opening a draft PR through the GitHub app from this plugin, with `gh` used only as a fallback where connector coverage is insufficient.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fyeet\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fyeet\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":86,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":19},"01M76ZJ8ASZ4QYQ70Y6SBA4Z4S","xarray","N-dimensional labeled arrays and datasets in Python. Built on top of NumPy and Dask. It introduces labels in the form of dimensions, coordinates, and attributes on top of raw NumPy-like arrays, making data analysis in physical sciences more intuitive and less error-prone. Use for working with multi-dimensional scientific data, NetCDF\u002FGRIB\u002FZarr files, climate\u002Fweather\u002Foceanographic datasets, remote sensing, geospatial imaging, large out-of-memory datasets with Dask, and labeled array operations.","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fxarray\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":19},"01M76ZHFBXD6VXPQ02VCEG202B","writing-mstest-tests","Use when asked to fix, rewrite, update, improve, modernize, show corrected code for, or explain existing MSTest tests or MSTest-specific configuration. Use for \"review\" when corrected code or edits are wanted, even for one pasted assertion or passing tests with bad failure output. Covers expected\u002Factual labels; generic Boolean, collection, string, numeric, null, identity, exception, hard-cast, and object[] checks; TestContext\u002Flifecycle; timeout\u002Fcancellation; OS\u002FCI conditions, retry, cleanup, parallelization, MSTest.Sdk project setup, and MSTESTxxxx. Honor the installed MSTest version. DO NOT USE to design new test cases (code-testing), perform report-only audits, create project files rather than explain MSTest setup, run tests, migrate frameworks, or handle non-MSTest\u002Fnon-.NET code.","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fwriting-mstest-tests\u002FSKILL.md",[],[],{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":19},"01M76ZDFDF4N88RH6HSYGS7GP2","wgs-prs","End-to-end WGS to polygenic risk score pipeline. Takes paired-end FASTQ files (or a pre-existing VCF) through nf-core\u002Fsarek for variant calling, applies VCF QC (normalisation, hard filtering, Ti\u002FTv and Het\u002FHom checks), then computes polygenic risk scores via the PGS Catalog. Fills the FASTQ to VCF gap upstream of the gwas-prs skill.","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fwgs-prs\u002FSKILL.md",[],[],{"skillNo":113,"name":114,"nameZh":6,"description":115,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":86,"licenseFileUrl":116,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":19},"01M76ZCC1SC68J42QK4MDC8RCG","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fwebapp-testing\u002FSKILL.md",[],[]]