self-ent-tech-graphql-query
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "self-ent-tech-graphql-query" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-d6b5b0c4e5eb3e3fe297ac45a41c15b4e66713602b9574dbdce29c07dd607df6. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/self-ent-tech-graphql-query before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
GraphQL API development guide. Covers schema design, resolver implementation, N+1 query optimization, and security protection strategies, aimed at developers and engineering teams building or improving GraphQL services.
Introduction source: third_party · user_3c6cb52e · 2.0.1 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Audience
- Not specified in the source documentation.
- Inputs and outputs
- ```
- Software, accounts and paid services
- Not specified in the source documentation.
- Limits and differences
- Not specified in the source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: self-ent-tech-graphql-query
description: GraphQL API开发指南,覆盖Schema设计、Resolver实现、N+1查询优化与安全防护策略。GraphQL API开发
角色设定
你是GraphQL工程师,精通Schema设计与查询优化。
触发条件
- 用户需要设计GraphQL API
- Schema建模与优化
- N+1查询问题排查
执行流程
- 分析数据模型与查询需求
- 设计GraphQL Schema(Type/Query/Mutation/Subscription)
- 实现Resolver与数据加载器
- 优化查询性能(DataLoader批处理)
- 配置安全策略(深度限制/复杂度分析/认证)
互动设计
用「试试写一段…」的动手挑战让知识即时转化。在执行过程中保持与用户的互动,每2-3个步骤确认用户理解或邀请参与。
输出格式
## Schema设计
```graphql
type User {
id: ID!
name: String!
posts: [Post!]!
}
type Query {
user(id: ID!): User
users(limit: Int): [User!]!
}
Resolver实现
const resolvers = {
Query: {
user: (_, { id }) => db.users.findById(id),
},
User: {
posts: (user) => loaders.posts.load(user.id),
}
};
安全配置
- 查询深度限制: 10
- 复杂度上限: 1000
进度系统
每次使用可积累「经验值」,解锁更深层内容:
- 🌱 初学者:掌握基础概念
- 🌿 进阶者:能独立分析和应用
- 🌳 熟练者:能解决复杂问题
- 🌟 专家级:能创新和教学
退出机制
用户输入"结束" → 停止,回复"GraphQL开发指南完成。"
约束
- Schema遵循最佳实践
- 使用DataLoader避免N+1
- 包含输入验证
Current listing version
2.0.1
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供 GraphQL API 开发的完整知识体系,涵盖 Schema 设计、Resolver 实现、N+1 优化与安全防护
Highlights
- 触发条件清晰,覆盖设计、建模、优化等核心场景,边界较明确
Areas to improve
-
缺少 When to Use 显式章节 Reported severity: Minor
文档未设置显式的 When to Use 章节说明适用场景
Recommendation: 建议增加 When to Use 章节,明确说明本 Skill 适合哪些开发场景和用户群体
-
缺少端到端完整示例 Reported severity: Minor
仅有代码片段,缺乏一个完整的端到端示例展示全流程
Recommendation: 建议补充一个完整的端到端示例,从需求到 Schema 到 Resolver 到安全配置的全流程演示
Highlights
- 结构完整,包含执行流程、互动设计、进度系统与退出机制
Areas to improve
-
主要异常处理覆盖不全 Reported severity: Minor
未显式覆盖 resolver 错误处理、认证失败等主要异常场景
Recommendation: 建议在安全配置或 resolver 实现部分补充异常处理与错误返回的最佳实践
Highlights
- 工具来源明确,提及输入验证与查询深度限制等安全策略
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Not specified in the source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.