بنقرة واحدة
cli-usage
使用 FastGPT plugin CLI 时启用,适用于创建插件项目、构建 dist 产物、校验构建输出、打包 .pkg 文件,以及指导用户选择 create/build/check/pack 命令和参数。
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
使用 FastGPT plugin CLI 时启用,适用于创建插件项目、构建 dist 产物、校验构建输出、打包 .pkg 文件,以及指导用户选择 create/build/check/pack 命令和参数。
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Use when creating, reviewing, or modifying FastGPT Tool Plugins with the @fastgpt-plugin/sdk-factory TypeScript SDK, including defineTool, defineToolSet, createToolHandler, Zod input/output schemas, secretSchema, ctx.invoke host calls, and streaming tool responses.
Use when writing a FastGPT system tool plugin with @fastgpt-plugin/sdk-factory and @fastgpt-plugin/cli, including tool structure, SDK writing rules, required files, avatar/logo naming, and build/check/pack tooling.
Update FastGPT plugin static model provider presets by auditing packages/infrastructure/src/static-data/models/provider entries against official provider model catalogs. Use when asked to refresh, add, remove, or verify FastGPT model provider presets, check for new models, remove deprecated models, or keep provider files aligned with official model docs.
Use as the entry skill when a user wants to develop a FastGPT plugin. Identify the plugin category, then route to the matching specialized skill such as fastgpt-system-tool-development.
| name | cli-usage |
| description | 使用 FastGPT plugin CLI 时启用,适用于创建插件项目、构建 dist 产物、校验构建输出、打包 .pkg 文件,以及指导用户选择 create/build/check/pack 命令和参数。 |
在需要使用 FastGPT plugin CLI 完成插件创建、构建、检查或打包时使用这个技能。
dist 产物dist 下的构建结果是否符合约定.pkgcreate、build、check 还是 pack推荐两种调用方式:
npx @fastgpt-plugin/cli <command>
pnpm fastgpt-plugin <command>
创建单工具:
npx @fastgpt-plugin/cli create my-tool --type tool
创建工具集:
npx @fastgpt-plugin/cli create my-suite --type tool-suite
常用参数:
--cwd <path>: 指定项目创建目录--description <desc>: 指定插件描述说明:
tool 会生成单工具模板tool-suite 会生成工具集模板npx @fastgpt-plugin/cli build --entry ./path/to/plugin --output ./dist
常用参数:
--entry <path>: 插件源码根目录--output <path>: 构建输出目录,默认 ./dist--minify: 是否压缩--format esm|cjs: 输出格式适用时机:
dist/index.js、dist/manifest.json 等产物pack 前先单独确认构建结果npx @fastgpt-plugin/cli check --entry ./path/to/plugin --output ./dist
它会检查构建产物是否包含并满足约定:
manifest.jsonindex.js适用时机:
npx @fastgpt-plugin/cli pack --entry ./path/to/plugin --dist ./dist --output ./out
常用参数:
--entry <path>: 插件源码根目录--dist <path>: 构建产物目录,默认 ./dist--output <path>: .pkg 输出目录--name <name>: 包名,默认取入口目录名说明:
pack 会先执行构建,再把构建产物打成 .pkg.pkg 里按约定包含 index.js、manifest.json、logo、可选 README.md 和 assets/**createbuilddist,想校验格式:用 check.pkg:用 packnpx @fastgpt-plugin/clinpx @fastgpt-plugin/cli <command> --helpmanifest.jsonbuild 和 check,确认 dist 产物符合约定npx @fastgpt-plugin/cli --help
如果项目中已经配置了 pnpm fastgpt-plugin:
pnpm fastgpt-plugin --help