Token导航 LogoToken导航TokenDH.com
前端设计敏感数据github未标认证来源可访问许可证需确认审计通过

fw-publish固件发布

Agent Skill

fw-publish 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

220

周安装

9

GitHub Stars

3

下载量

71
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:fw-publish(固件发布)
来源仓库:https://github.com/freshworks-developers/fw-dev-tools
仓库路径:skills/fw-publish
安装命令:
npx skills add https://github.com/freshworks-developers/fw-dev-tools --skill fw-publish
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/freshworks-developers/fw-dev-tools --skill fw-publish

简介

fw-publish 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态、代码变更或协作事项进行整理。
  • 通过 npx skills add 命令从指定仓库安装,需确认权限和维护状态。
  • 使用前应核实是否会触发联网、命令执行或文件读写操作。
  • 建议结合原始 README 和项目实际情况验证具体用法。

SKILL.md

Publish (Platform 3.0 custom app)

MANDATORY PREREQUISITE: Run fw-review skill before publishing to ensure marketplace compliance. The review checks iparams, frontend files, security patterns, and generates a structured audit report. Do not proceed with publishing until review passes.

Goal: Take any Platform 3.0 app folder (with manifest.json), produce dist/*.zip, and publish it to the Freshworks Marketplace via MCP tools. Target state is test (default, installable for QA) or review (submit for marketplace listing).

Agent playbook (MCP tools)

1. Auth token preflight (MUST be step 1)

Before any MCP tool call, verify that the MCP publish tools are available and authenticated:

  • Attempt to call list_marketplace_apps
  • If tools are not available or the call returns an auth error, STOP and notify the user:
Publish requires a Marketplace API token configured in your MCP settings.

To set this up:
1. Go to https://developers.freshworks.com/developer/
2. **Developer API Key** → **Connect to Developer MCP server**
3. Click **Copy**
4. Configure it for your IDE:
   Claude Code:
     The freshworks plugin prompts for "MCP server URL" and
     "Marketplace API token (JWT)" at install time. If you skipped the
     prompts, run /config and update the plugin settings. The token is
     stored securely in the system keychain.

   Cursor:
     Add the server to ~/.cursor/mcp.json (global) or
     .cursor/mcp.json (project-level). The canonical template is
     **`.mcp.json`** at this repository’s root (same `mcpServers` shape);
     use **`Bearer <your-jwt-token>`** in place of Claude’s
     **`${user_config.mcp_auth_token}`** — Cursor does not expand
     **`user_config`**.
     {
       "mcpServers": {
         "fw-dev-mcp": {
           "url": "https://mcp.freshworks.dev/mcp",
           "headers": {
             "Authorization": "Bearer <your-jwt-token>"
           }
         }
       }
     }
     Replace <your-jwt-token> with your Developer Portal JWT, then
     restart Cursor.

5. Re-run the publish command

The JWT is a single credential — it authenticates to openai-server and is forwarded verbatim to MAPI. It contains developer_account_id and uuid claims. There is no separate MAPI token.

DO NOT proceed with any publish step until auth is confirmed.

2. Check Node.js and FDK versions (before pack)

  • Read engines.node and engines.fdk from manifest.json
  • Check active versions: node --version and fdk --version
  • If mismatch, STOP and inform user: Your app requires Node.js X.Y.Z and FDK A.B.C (from manifest.json engines). Current environment: Node vW.X.Y, FDK vP.Q.R Would you like me to install/switch to the required versions? (yes/no) If yes, I'll use the fw-setup skill to: - Install Node.js X.Y.Z (if not present) and switch to it - Install/upgrade to FDK A.B.C If no, you can manually run: - /fw-setup-use (in app directory) - switches Node version - /fw-setup-install --version A.B.C - installs FDK version - /fw-setup-upgrade --to A.B.C - upgrades FDK version
  • DO NOT proceed with fdk pack until versions match or user explicitly overrides

3. Resolve APP_DIR

Absolute path to the folder containing manifest.json.

4. fdk validate

Run fdk validate — zero platform errors and zero lint errors required. On failure, suggest using the fw-app-dev skill to fix issues.

5. fdk pack

printf 'Y\n' | fdk pack --skip-coverage --skip-lint

Produces dist/*.zip. Reuse an existing zip only if --force-pack is not needed (agent judgment).

6. Determine new vs update

  • Check .fdk/app-info.json for id
  • If id exists: this is an update — use update_marketplace_app_version
  • If no id: call list_marketplace_apps to see if the app already exists

- If found: ask user to pick the app, then use update_marketplace_app_version - If not found or user confirms new: use submit_marketplace_app

7. Create app-upload URL

Call create_app_upload_url — returns uploadId + uploadUrl + expiresInSeconds.

8. App-upload (PUT zip binary)

curl -X PUT --data-binary @dist/<app>.zip "<uploadUrl>"

Do not base64-encode the zip. Do not paste the app-upload URL into chat or tickets.

9. Read manifest.json

Extract:

  • platform-version (e.g. "3.0")
  • modules keys (e.g. ["common", "support_ticket"])
  • name (if present) for appName

10. Call the appropriate MCP tool

New appsubmit_marketplace_app:

ParameterSource
appNamemanifest name or directory name
appDescriptionask user or default
appOverviewask user or derive from description (max 150 chars)
supportEmailask user (required for new app; no separate on-disk token file)
alternateEmailoptional
platformVersionmanifest platform-version
modulesmanifest modules keys
uploadIdfrom step 7
targetState"test" (default) or "review" (ask user)
appType"custom" (default) unless user specifies
worksWithoptional; include "ai_actions" if AI Actions app

Existing appupdate_marketplace_app_version:

ParameterSource
appIdfrom .fdk/app-info.json id or list_marketplace_apps
platformVersionmanifest platform-version
modulesmanifest modules keys
uploadIdfrom step 7
targetState"test" (default) or "review"
worksWithoptional

11. Persist app identity

On success, write/update .fdk/app-info.json with id and version from the response so the next run routes to update.

12. Verify status

Call get_marketplace_app_status(appId) to confirm the version state.

13. Report to user

Tell the user: app id, version state, and where to install custom apps in their product (Admin -> Apps or equivalent).

MCP tools reference

ToolPurpose
list_marketplace_appsList all apps on the developer account
create_app_upload_urlGet app-upload URL for the zip binary
submit_marketplace_appCreate a new app + first version
update_marketplace_app_versionUpload a new version to an existing app
get_marketplace_app_statusCheck app state and latest version

Error handling

  • 401/403 from any MCP tool: STOP immediately and show the auth setup instructions from step 1. The token may be expired, misconfigured, or missing. Do not retry — prompt the user to fix their token and re-run.
  • Validation errors (400): Suggest manifest fixes or use fw-app-dev skill. Common: products vs modules mismatch.
  • Upload failures: Retry create_app_upload_url + re-upload.
  • fdk validate / fdk pack failures: Use fw-app-dev skill to fix; check Node/FDK version alignment.

Preconditions

RequirementNotes
manifest.jsonApp root; must be Platform 3.0 with modules.
fdk on PATHfdk validate + fdk pack.
MCP tools configuredClaude Code: from root .mcp.json when the marketplace plugin is installed (prompted at install via userConfig). Cursor: merge that file’s server block into ~/.cursor/mcp.json.
Support emailRequired for create (new app); updates reuse publisher metadata from the existing marketplace app.
App identity for updates.fdk/app-info.json with id after first successful publish.

Optional: list apps

Call list_marketplace_apps MCP tool (no parameters). Returns app id, name, type, products, and latest version for each app.

Links

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.79%
按下载量换算25

Claude

29.72%
按下载量换算21

Cursor

18.98%
按下载量换算13

Gemini CLI

9.81%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills