fdk-fix

A command workflow that finds and fixes validation and code-style errors in a Freshworks app. It repeatedly validates the app after applying fixes.

In plain words
What is it for?
Use it to validate a Freshworks app, repair manifest and lint problems, and recheck the result until the reported errors are resolved.
Why use it?
It removes the need to diagnose and correct each platform or lint error manually.

Command

Part of the fw-app-dev plugin — 1 skill, 5 commands, 3 agents shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/freshworks-developers/fw-dev-tools/fdk-fix
Clone the repo
git clone --depth 1 https://github.com/freshworks-developers/fw-dev-tools

Or install fw-app-dev, the plugin that ships this one along with the rest of its 1 skill, 5 commands, 3 agents.

Per session 46 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,142 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00046 $0.01142
Opus 5 $0.00023 $0.00571
Sonnet 5 $0.00009 $0.00228
Haiku 4.5 $0.00005 $0.00114

Measured 3d ago against content hash b775b7dee98d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

fdk-fix scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/fw-app-dev/commands/fdk-fix.md · 91 lines

How it starts

The opening of the file, as written. The whole thing — 91 lines — stays where its author put it; the contents beside it link to each section on GitHub.

FDK Fix Command

Usage: /fdk-fix

You are fixing all platform validation errors and lint errors in a Freshworks app. Follow these steps exactly.

Step 1: Determine app directory

  1. Search the workspace for manifest.json files.
  2. If multiple folders contain manifest.json: Ask the user which app to fix.
  3. If one folder: Use that directory.
  4. If none: Inform the user and stop.

Step 2: Manifest + toolchain gate (before fdk validate)

Mandatory: Follow SKILL.mdManifest + toolchain gate before any fdk validate.

  • Shell not Node 24.x + FDK 10.xfw-setup first; do not lower engines or switch to FDK 9 / Node 18 to match the app.
  • platform-version not 3.0 → run /fdk-migrate first, then continue this command at validation.
  • 3.0 but engines still 18 / 9.x → raise engines per /fdk-migrate Step 3, then validate.
  • [WARN] App engines major version mismatch with FDK 10 + Node 24 active → align manifest.jsonengines upward to the CLI (or accept FDK’s sync prompt Y); never downgrade the toolchain.

Step 3: Run fdk validate

Toolchain: fw-app-dev does not install fdk or Node. If the shell has no fdk, wrong Node major for FDK 10, or only FDK 9.x while fixing a Platform 3.0 tree, follow SKILL.md (FDK / Node.js toolchain — not provided by fw-app-dev): use fw-setup when available, or prompt the user to add it (npx @freshworks/fw-dev-tools install). Do not invent one-off global npm installs here.

Run: cd <app-directory> && fdk validate

Capture all output (fatal errors, lint errors, warnings).

Step 4: Fix iteratively (up to 2 iterations for fatal, then lint)

Priority 1: Fatal errors (Platform/validation)

Fix these first. Use references/errors/ and rules/validation-workflow.mdc:

  • JSON structure errors (multiple top-level objects, commas)
  • Missing required files (icon.svg, iparams.json)
  • Manifest structure (platform-version, modules, declarations)
  • Request template errors (FQDN, path, schema)
  • OAuth structure (integrations wrapper)

Read the full file on GitHub · 91 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 91 lines · 46 tokens per session scan A b775b7dee98d

Subscribe to this mod's changes

fdk-fix is a command published in the GitHub repository freshworks-developers/fw-dev-tools (5 stars, last pushed 8d ago), licensed MIT. It adds 46 tokens to every session and 1,142 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.