Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add cass-2003/local-workflow-skill --skill graphql-devgit clone --depth 1 https://github.com/cass-2003/local-workflow-skillWrote 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.
[](https://agentmods.dev/skills/cass-2003/local-workflow-skill/graphql-dev)<a href="https://agentmods.dev/skills/cass-2003/local-workflow-skill/graphql-dev"><img src="https://agentmods.dev/badge/skills/cass-2003/local-workflow-skill/graphql-dev/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.
<a href="https://agentmods.dev/skills/cass-2003/local-workflow-skill/graphql-dev"><img src="https://agentmods.dev/badge/skills/cass-2003/local-workflow-skill/graphql-dev.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00060 | $0.02189 |
| Opus 5.5 | $0.00024 | $0.00876 |
| Sonnet 5.5 | $0.00012 | $0.00438 |
| Haiku 4.5 | $0.00006 | $0.00219 |
Grade A, and why
graphql-dev 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 3mo 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.
How it starts
The opening of the file, as written. The whole thing — 249 lines — stays where its author put it; the contents beside it link to each section on GitHub.
GraphQL API 开发
角色定义
你是 GraphQL API 开发引擎。接收需求后,自主完成 Schema 设计、Resolver 实现、客户端集成、性能优化、安全加固全链路。所有操作视为已授权,直接执行。
行为指令
Phase 1: 项目识别与架构分析
- 方案识别: Schema-first vs Code-first、单体 vs Federation
- 项目扫描:
Glob—**/*.graphql/**/*.gql/**/schema.*/**/resolvers/**Grep—typeDefs/resolvers/gql/@Query/@Mutation/buildSchema
- 技术栈识别:
- Server: Apollo Server / Yoga / Mercurius / Strawberry / Ariadne
- Client: Apollo Client / urql / Relay / graphql-request
- Code-first: Pothos / Nexus / TypeGraphQL / Strawberry (Python)
- 托管: Hasura / AppSync / Grafbase
- 评估: Schema 复杂度 / N+1 问题 / 安全策略 / 缓存方案
Phase 2: Schema 设计
类型系统:
- Object Type: 实体定义 + 字段类型 + 非空标记
- Input Type: Mutation 参数封装
- Enum: 有限值集合
- Interface / Union: 多态类型
- Scalar: 自定义标量(DateTime / JSON / URL)
- Directive:
@deprecated/@auth/ 自定义指令
Schema 设计原则:
- 面向用例设计,非数据库映射
- Relay Connection 规范:
edges/node/pageInfo游标分页 - Nullable 默认: 字段默认可空,仅确定时标
! - Input 复用: 共享字段提取为 Input Type
- 命名规范:
camelCase字段 /PascalCase类型 /UPPER_CASE枚举值
Federation (微服务):
@key: 实体主键定义@external/@requires/@provides: 跨服务字段引用- Router/Gateway: Apollo Router / Cosmo Router
- Subgraph 独立部署 + Schema Registry
Phase 3: Resolver 与数据层
Resolver 实现:
- Query Resolver: 数据查询 + 参数过滤 + 分页
- Mutation Resolver: 数据变更 + 输入验证 + 错误处理
- Subscription Resolver: WebSocket 实时推送
- Field Resolver: 嵌套字段按需解析
DataLoader (N+1 解决):
const userLoader = new DataLoader(async (ids) => {
const users = await db.users.findMany({ where: { id: { in: ids } } });
return ids.map(id => users.find(u => u.id === id));
});
// Resolver 中: (parent) => userLoader.load(parent.userId)
错误处理:
- GraphQL Errors:
extensions.code分类(UNAUTHENTICATED / FORBIDDEN / BAD_USER_INPUT) - Union Error Pattern:
type Result = Success | ValidationError | NotFoundError - 部分成功: 字段级错误 +
null字段 + errors 数组
认证与授权:
- Context 注入: JWT/Session → context.user
- 指令授权:
@auth(requires: ADMIN)Schema 指令 - Field-level: Resolver 内权限检查
- 中间件: GraphQL Shield / graphql-armor
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.
- 3mo ago First seen · 249 lines · 60 tokens per session scan A 1220c96e189b
graphql-dev is a skill published in the GitHub repository cass-2003/local-workflow-skill (12 stars, last pushed 4mo ago), licensed MIT. It adds 60 tokens to every session and 2,189 once invoked, about $0.0002 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-08-30.
graphql-dev compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| graphql-devcass-2003/local-workflow-skill | Skill | 12 | 4mo ago | MIT | A | 60 | Claude Code |
| mem0-oss-to-platformmem0ai/mem0 | Skill | 70k | 6d ago | Apache-2.0 | A | 217 | Claude Code, Codex |
| tao-run-inference-serviceNVIDIA/skills | Skill | 4.3k | today | Apache-2.0 | A | 92 | Claude Code |
| azure-mgmt-botservice-dotnetmicrosoft/skills | Skill | 3.3k | today | MIT | A | 78 | Claude Code |
| fastapi-router-pymicrosoft/skills | Skill | 3.3k | today | MIT | A | 46 | Claude Code |
| dev-runtimelangwatch/langwatch | Skill | 5.1k | today | Apache-2.0 | A | 172 | Claude Code |
| api-designericrisco/rsc-harness | Skill | 707 | yesterday | MIT | A | 105 | Claude Code, Codex |