Skip to main content
ClaudeWave
Skill28.4k estrellas del repoactualizado today

add-permission

The add-permission Claude Code skill provides a structured workflow for integrating permission management into FastGPT's new resources such as AgentSkill and Plugin. It guides developers through a decision tree to determine whether resources require simple or hierarchical permission inheritance, then directs them to appropriate guides, implementation checklists, and reference documentation for completing the integration across key files in the permission system.

Instalar en Claude Code
Copiar
git clone --depth 1 https://github.com/labring/FastGPT /tmp/add-permission && cp -r /tmp/add-permission/.agents/skills/support/permission/add-permission ~/.claude/skills/add-permission
Después abre una sesión nueva de Claude Code; el skill carga automáticamente.

SKILL.md

# 新资源权限接入

## 你的资源是哪种类型?

```
资源有父子/文件夹结构吗?
     │
     ├─ 否 ──► 简单资源 ──► [快速入门](./guides/quick-start.md)
     │
     └─ 是 ──► 资源支持权限继承吗?
                    │
                    ├─ 否 ──► 简单资源 ──► [快速入门](./guides/quick-start.md)
                    │
                    └─ 是 ──► 继承型资源 ──► [完整接入](./guides/full-integration.md)
```

## 快速链接

| 我想... | 去看... |
|---------|---------|
| 5 步完成最小接入 | [快速入门](./guides/quick-start.md) |
| 接入继承型资源 | [完整接入](./guides/full-integration.md) |
| 检查遗漏项 | [实施清单](./checklist.md) |
| 理解权限系统原理 | [参考文档](./reference/README.md) |

## 关键代码位置

| 文件 | 用途 |
|------|------|
| `packages/global/support/permission/constant.ts` | 添加 `PerResourceTypeEnum` |
| `packages/global/support/permission/{resource}/` | 权限常量 + Permission 类 |
| `packages/service/support/permission/{resource}/auth.ts` | 鉴权函数 |
prompt-optimizeSkill

Expert prompt engineering skill that transforms Claude into "Alpha-Prompt" - a master prompt engineer who collaboratively crafts high-quality prompts through flexible dialogue. Activates when user asks to "optimize prompt", "improve system instruction", "enhance AI instruction", or mentions prompt engineering tasks.

deprecate-workflow-nodeSkill

当用户需要弃用一个工作流节点(保留向后兼容、隐藏出模板面板)时触发该 skill。FastGPT 工作流节点的弃用流程标准化封装,覆盖模板、Dispatcher、UI 引用等所有需要改动的位置。

doc-i18nSkill

将 FastGPT 文档从中文翻译为面向北美用户的英文。当用户提到翻译文档、i18n、国际化、translate docs、新增/修改了中文文档需要同步英文版时,使用此 skill。也适用于用户要求检查文档翻译缺失、批量翻译、或对比中英文文档差异的场景。

api-developmentSkill

FastGPT API 开发规范。重点强调使用 zod schema 定义入参和出参,在 API 文档中声明路由信息,编写对应的 OpenAPI 文档,以及在 API 路由中使用 schema.parse 进行验证。

pr-reviewSkill

仅当用户明确手动指定使用 pr-review skill 时触发;不要因为用户传入 PR 链接、要求 review 或要求代码审查而自动触发。

test-caseSkill

当用户需要编写一个单元测试时,触发该 skill,编写单元测试。

pr-change-analysisSkill

手动触发的 FastGPT PR 或本地分支变更梳理技能。仅当用户显式调用 $pr-change-analysis 时使用;用于 reviewer 分析一个 GitHub PR 或当前本地分支相对 upstream/main 的需求变更、影响范围、代码质量与代码风格,不用于自动审查触发。