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.
git clone --depth 1 https://github.com/freshworks-developers/fw-dev-toolsWrote 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.
[](https://agentmods.dev/rules/freshworks-developers/fw-dev-tools/smart-prerequisites-check)<a href="https://agentmods.dev/rules/freshworks-developers/fw-dev-tools/smart-prerequisites-check"><img src="https://agentmods.dev/badge/rules/freshworks-developers/fw-dev-tools/smart-prerequisites-check/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/rules/freshworks-developers/fw-dev-tools/smart-prerequisites-check"><img src="https://agentmods.dev/badge/rules/freshworks-developers/fw-dev-tools/smart-prerequisites-check.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00019 | $0.02691 |
| Opus 5.5 | $0.00008 | $0.01076 |
| Sonnet 5.5 | $0.00004 | $0.00538 |
| Haiku 4.5 | $0.00002 | $0.00269 |
Grade C, and why
smart-prerequisites-check scanned grade C with 1 finding 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 3mo 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.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
rm -rf node_modules coverage .fdk How it starts
The opening of the file, as written. The whole thing — 320 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Smart Prerequisites Check — Migration-Aware
CRITICAL: Run this check BEFORE generating apps, fixing errors, migrating, refactoring, or reviewing.
Check Order
- Check current toolchain (Node + FDK versions)
- Check manifest.json (platform-version + engines) if present
- Apply smart routing logic based on the combination
Step 1: Check Toolchain
node --version 2>&1
fdk version 2>&1
Parse output:
NODE_MAJOR= extract major version (24, 18, etc.)FDK_MAJOR= extract major version (10, 9, etc.)NODE_FOUND= true ifnode --versionsucceedsFDK_FOUND= true iffdk versionsucceeds
Step 2: Check Manifest (if present)
If working directory or user-specified directory contains manifest.json:
# Read manifest.json
cat manifest.json | grep -E '"platform-version"|"engines"' -A 2
Parse:
MANIFEST_PLATFORM= value ofplatform-versionfield ("2.3", "3.0", etc.)MANIFEST_FDK= value ofengines.fdkfieldMANIFEST_NODE= value ofengines.nodefield
Step 3: Smart Routing Logic
AUTOMATIC ROUTING - NO USER PROMPT: The skill automatically detects the state and takes the appropriate action. Three main scenarios:
| Scenario | Installed Toolchain | Manifest State | Automatic Action |
|---|---|---|---|
| A | FDK 9.x or not found | Platform 2.x | Upgrade toolchain → Migrate → Validate |
| B | FDK 10.x + Node 24.x | Platform 2.x | Migrate → Validate |
| C | FDK 10.x + Node 24.x | Platform 3.0 (engines match) | Validate directly |
| D | FDK 10.x + Node 24.x | Platform 3.0 (engines mismatch) | Update engines → Clean deps → Validate |
| E | FDK 9.x or not found | Platform 3.0 | Upgrade toolchain → Validate |
Detailed scenario logic:
Scenario A: Latest FDK NOT installed + Platform 2.x manifest
Conditions:
FDK_MAJOR!= 10 (either 9 or not found)MANIFEST_PLATFORMin ["2.3", "2.2", "2.1", missing, or < "3.0"]MANIFEST_FDKstarts with "9." orMANIFEST_NODEstarts with "18."
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.
- 3mo ago First seen · 320 lines · 19 tokens per session scan C 321920266970
smart-prerequisites-check is a cursor rule published in the GitHub repository freshworks-developers/fw-dev-tools (6 stars, last pushed 2mo ago), licensed MIT. It adds 19 tokens to every session and 2,691 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
smart-prerequisites-check compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| smart-prerequisites-checkfreshworks-developers/fw-dev-tools | Cursor rule | 6 | 2mo ago | MIT | C | 19 | Cursor |
| ponytailDietrichGebert/ponytail | Cursor rule | 201k | 8d ago | MIT | A | 604 | Cursor |
| angular-20angular/angular | Cursor rule | 102k | 5d ago | MIT | A | 0 | Cursor |
| dev-standardapache/superset | Cursor rule | 76k | today | Apache-2.0 | A | 1,147 | Cursor |
| prefer-assertions-over-defensive-checksprisma/orm | Cursor rule | 48k | today | Apache-2.0 | A | 0 | Cursor |
| prefer-direct-imports-over-module-mocksprisma/orm | Cursor rule | 48k | today | Apache-2.0 | A | 0 | Cursor |
| shared-plane-packagesprisma/orm | Cursor rule | 48k | today | Apache-2.0 | A | 0 | Cursor |