·constructive-graphql-codegen
</>

constructive-graphql-codegen

使用 @constructive-io/graphql-codegen 从 GraphQL 端点、模式文件/目录、数据库或 PGPM 模块生成类型安全的 React Query 挂钩、类似 Prisma 的 ORM 客户端或基于查询器的 CLI。还生成文档(README、AGENTS.md、skills/、mcp.json)。当被要求“生成 GraphQL 挂钩”、“生成 ORM”、“生成 CLI”、“设置代码生成”、“生成文档”、“生成技能”、“导出架构”时,或者为 PostGraphile 后端实现数据获取时使用。

15安装·1热度·@constructive-io

安装

$npx skills add https://github.com/constructive-io/constructive-skills --skill constructive-graphql-codegen

如何安装 constructive-graphql-codegen

通过命令行快速安装 constructive-graphql-codegen AI 技能到你的开发环境

  1. 打开终端: 打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 运行安装命令: 复制并运行以下命令:npx skills add https://github.com/constructive-io/constructive-skills --skill constructive-graphql-codegen
  3. 验证安装: 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

来源:constructive-io/constructive-skills。

SKILL.md

查看原文

Generate type-safe React Query hooks, Prisma-like ORM client, or inquirerer-based CLI from GraphQL schema files, endpoints, databases, or PGPM modules. Also generates documentation in multiple formats.

Important: Always prefer generated code over raw GraphQL queries or SQL.

The recommended approach is a two-step workflow using schema export followed by schemaDir. This is the most deterministic and portable way to use codegen:

使用 @constructive-io/graphql-codegen 从 GraphQL 端点、模式文件/目录、数据库或 PGPM 模块生成类型安全的 React Query 挂钩、类似 Prisma 的 ORM 客户端或基于查询器的 CLI。还生成文档(README、AGENTS.md、skills/、mcp.json)。当被要求“生成 GraphQL 挂钩”、“生成 ORM”、“生成 CLI”、“设置代码生成”、“生成文档”、“生成技能”、“导出架构”时,或者为 PostGraphile 后端实现数据获取时使用。 来源:constructive-io/constructive-skills。

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/constructive-io/constructive-skills --skill constructive-graphql-codegen
分类
</>开发工具
认证
收录时间
2026-02-28
更新时间
2026-03-10

Browse more skills from constructive-io/constructive-skills

快速解答

什么是 constructive-graphql-codegen?

使用 @constructive-io/graphql-codegen 从 GraphQL 端点、模式文件/目录、数据库或 PGPM 模块生成类型安全的 React Query 挂钩、类似 Prisma 的 ORM 客户端或基于查询器的 CLI。还生成文档(README、AGENTS.md、skills/、mcp.json)。当被要求“生成 GraphQL 挂钩”、“生成 ORM”、“生成 CLI”、“设置代码生成”、“生成文档”、“生成技能”、“导出架构”时,或者为 PostGraphile 后端实现数据获取时使用。 来源:constructive-io/constructive-skills。

如何安装 constructive-graphql-codegen?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/constructive-io/constructive-skills --skill constructive-graphql-codegen 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

这个 Skill 的源码在哪?

https://github.com/constructive-io/constructive-skills