new-graphql-field

new-graphql-field is a skill for Claude Code, Codex from clidey/whodb. It costs 23 tokens per session (603 once invoked), scanned A, original, Apache-2.0.

A workflow for adding a GraphQL query or mutation from the schema through the server resolver to the frontend. GraphQL is a way for an app to request specific data through a defined API.

In plain words
What is it for?
Use it to expose a new read or write operation, connect it to a data-source plugin, and generate the related code.
Why use it?
It keeps the schema, generated code, authorization, backend logic, and frontend types in step with one another.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is cd core && go build ./cmd/whodb && go vet ./....

Good fit Use it to expose a new read or write operation, connect it to a data-source plugin, and generate the related code.

Compare 6 skills from other repositories ↓
About the project

WhoDB is a self-hosted workspace for exploring and managing databases through a browser, desktop app, or terminal interface. Developers and data teams use it to browse and edit data, run queries, inspect table relationships, move data, and optionally ask questions through an AI provider. The catalogue includes add-ons for operating WhoDB and working with its database tools.

clidey/whodb · 5,074 stars · on GitHub · whodb.com

Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/clidey/whodb
agentmods
npx agentmods add skills/clidey/whodb/new-graphql-field

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for new-graphql-field

README.md
[![agentmods](https://agentmods.dev/badge/skills/clidey/whodb/new-graphql-field/github.svg)](https://agentmods.dev/skills/clidey/whodb/new-graphql-field)
Your own site
<a href="https://agentmods.dev/skills/clidey/whodb/new-graphql-field"><img src="https://agentmods.dev/badge/skills/clidey/whodb/new-graphql-field/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for new-graphql-field

Your own site · 80×15
<a href="https://agentmods.dev/skills/clidey/whodb/new-graphql-field"><img src="https://agentmods.dev/badge/skills/clidey/whodb/new-graphql-field.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 603 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00023 $0.00603
Opus 5.5 $0.00009 $0.00241
Sonnet 5.5 $0.00005 $0.00121
Haiku 4.5 $0.00002 $0.00060

Measured 17d ago against content hash 24643543afbb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

new-graphql-field scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 17d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/new-graphql-field/SKILL.md · 73 lines

How it starts

The opening of the file, as written. The whole thing — 73 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Add a New GraphQL Field

Steps

1. Update Schema

Edit core/graph/schema.graphqls.

Use source-first naming for public queries:

type Query {
    SourceNewFeature(input: SourceObjectRefInput!): SourceNewFeatureResult!
}

Classify every new root field before implementing its resolver:

  • Protected is the default and requires no policy entry.
  • If unauthenticated access is an explicit requirement, add the actual root field name to the public-field policy in core/src/auth/graphql_authorization.go.
  • Never authorize by GraphQL operation name. See .agents/rules/graphql.md.

2. Run Codegen

The agent hook runs cd core && go generate . and cd frontend && pnpm run generate after a .graphqls edit. Without the hook, run both. Backend codegen creates the resolver stubs in *.resolvers.go; frontend codegen reads the schema file, so the backend does not need to be running.

3. Implement Resolver

Fill in the generated stub. Source-first resolvers should:

  • Look up the plugin via the source adapter
  • Call the appropriate PluginFunctions method
  • Return the source-typed result

4. Add Plugin Method (if new capability)

  1. Add to PluginFunctions interface in core/src/engine/plugin.go
  2. Add defaults in core/src/plugins/gorm/ and core/src/engine/base_plugin.go (return errors.ErrUnsupported if not universally applicable)
  3. Implement in relevant plugins
  4. If the capability is public, declare it in the source contract (core/src/sourcecatalog/catalog.go)

5. Create Frontend Operation

Add a .graphql file next to the component or in frontend/src/graphql/ (codegen reads src/**/*.graphql):

query SourceNewFeature($input: SourceObjectRefInput!) {
  SourceNewFeature(input: $input) {
    ...fields
  }
}

Then run cd frontend && pnpm run generate to get the typed hook (the hook does not run for .graphql operation files).

6. Use in Component

import { useSourceNewFeatureQuery } from '@graphql';

const { data, loading } = useSourceNewFeatureQuery({ variables: { input } });

Read the full file on GitHub · 73 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 17d ago First seen · 73 lines · 23 tokens per session scan A 24643543afbb

Subscribe to this mod's changes

new-graphql-field is a skill published in the GitHub repository clidey/whodb (5,074 stars, last pushed today), licensed Apache-2.0. It adds 23 tokens to every session and 603 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-13.

Related

new-graphql-field compared with skills from other repositories

new-graphql-field next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
new-graphql-fieldclidey/whodbSkill5.1ktodayApache-2.0A23Claude Code, Codex
drizzle-ormpledgeandgrow/pledge-skillsSkill114mo agoMITA28Claude Code, Codex
connector-buildingopen-metadata/OpenMetadataSkill16ktodayApache-2.0A45Claude Code
test-reviewdatahub-project/datahubSkill13ktodayApache-2.0A0Claude Code, Codex
datahub-test-taxonomydatahub-project/datahubSkill13ktodayApache-2.0A80Claude Code
graphjin-evaldosco/graphjinSkill3.2kyesterdayApache-2.0A27Claude Code, Codex
graphjin-env-workflowsdosco/graphjinSkill3.2kyesterdayApache-2.0A60Claude Code