fw-setup-troubleshoot

fw-setup-troubleshoot is a command for Claude Code from freshworks-developers/fw-dev-tools. It costs 36 tokens per session (3,188 once invoked), scanned E, original, MIT.

A command for diagnosing and repairing Freshworks Development Kit (FDK) setup problems involving Node.js, nvm, or the shell’s PATH.

In plain words
What is it for?
Use it to check FDK installation, nvm and shell configuration, or repair the setup by aligning Node.js 24.11 and FDK 10.
Why use it?
It finds configuration errors that make the FDK command unavailable or use the wrong Node.js version, and can guide or automate repairs.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: positional $N argument.

Part of the fw-setup plugin — 1 skill, 7 commands 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/fw-setup-troubleshoot
Clone the repo
git clone --depth 1 https://github.com/freshworks-developers/fw-dev-tools

Made for: Claude Code.

Or install fw-setup, the plugin that ships this one along with the rest of its 1 skill, 7 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for fw-setup-troubleshoot

README.md
[![agentmods](https://agentmods.dev/badge/commands/freshworks-developers/fw-dev-tools/fw-setup-troubleshoot.svg)](https://agentmods.dev/commands/freshworks-developers/fw-dev-tools/fw-setup-troubleshoot)
Your own site
<a href="https://agentmods.dev/commands/freshworks-developers/fw-dev-tools/fw-setup-troubleshoot"><img src="https://agentmods.dev/badge/commands/freshworks-developers/fw-dev-tools/fw-setup-troubleshoot.svg" alt="Measured on agentmods" height="20"></a>
Per session 36 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,188 The whole file, excluding the scripts and references it only reads on demand.
Security scan E 3 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.1 $0.00036 $0.03188
Opus 5 $0.00018 $0.01594
Sonnet 5 $0.00007 $0.00638
Haiku 4.5 $0.00004 $0.00319

Measured 5d ago against content hash 2b1d2764c869, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade E, and why

fw-setup-troubleshoot scanned grade E with 3 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 5d 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.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf ~/.fdk

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
skills/fw-setup/commands/fw-setup-troubleshoot.md · 345 lines

How it starts

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

FDK setup — troubleshoot (/fw-setup-troubleshoot)

Universal FDK troubleshooter: Automated fix → Interactive manual SOP fallback. No retry loops, no support escalation.

Behaviour

Intent Execution On Failure
/fw-setup-troubleshoot Inline diagnostics — identify issues, suggest --fix or manual path N/A (diagnostic only)
/fw-setup-troubleshoot --fix Automated repair Task — backup rc files, fix nvm/PATH/FDK → Interactive SOP Mode

Three-Phase Flow

Phase 1: Inline Diagnostics (No --fix)

Run diagnostics and interpret:

  • Wrong Node active vs where npm install -g put fdk (load references/error-command-not-found.md)
  • nvm missing from ~/.zshrc / ~/.bashrc or NVM_DIR wrong
  • nvm alias default / fdk pointing at bare 24 instead of 24.11

Output: Diagnosis + recommendation (suggest --fix or manual steps based on complexity)

Phase 2: Automated Fix (With --fix)

Run Task (see below) that:

  1. Backs up dotfiles with timestamp
  2. Ensures nvm is loaded
  3. Installs/aligns Node 24.11 + FDK 10
  4. Verifies in clean shell

Success: Report completion, ask user to verify in NEW terminal
Failure: Automatically enter Phase 3 (Interactive SOP Mode)

Phase 3: Interactive SOP Mode (When --fix Fails)

Entry conditions:

  • --fix Task exits with error
  • User reports automation didn't work
  • User explicitly asks for manual steps

Protocol:

  1. ✅ Load references/interactive-troubleshooting-guide.md
  2. ✅ Provide ONE diagnostic command at a time
  3. ✅ Wait for human to paste output
  4. ✅ Interpret output and provide NEXT specific command
  5. ✅ Adapt path based on actual results
  6. ❌ NEVER retry --fix Task in loop
  7. ❌ NEVER suggest "try again" without new information
  8. ❌ NEVER ask for diagnostic bundle or support escalation

Example transition to Phase 3:

⚠️ The automated fix encountered an issue:
  FAILED: nvm not found at $HOME/.nvm/nvm.sh

Let's troubleshoot this manually step-by-step.

I'll guide you through diagnostic commands. Run each command and paste the output back.

**Step 1: Check if nvm is installed on your system**

Run:
  ls -la ~/.nvm

Paste the output here.

Read the full file on GitHub · 345 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. 5d ago First seen · 345 lines · 36 tokens per session scan E 2b1d2764c869

Subscribe to this mod's changes

fw-setup-troubleshoot is a command published in the GitHub repository freshworks-developers/fw-dev-tools (5 stars, last pushed 3d ago), licensed MIT. It adds 36 tokens to every session and 3,188 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it E with 3 findings (downloads and executes remote code, recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.