agentic-fm: Skill for Cursor

.cursor/skills/script-refactor/SKILL.md

script-refactor is a skill for Cursor from petrowsky/agentic-fm. It costs 99 tokens per session (2,495 once invoked), scanned B, original, no licence file.

A FileMaker script improvement tool that analyses an existing script and produces a cleaner version while preserving its observable behaviour. It can improve error handling, variable names, and repeated logic.

In plain words
What is it for?
Use it to clean up an existing FileMaker script and prepare the revised version for manual pasting or deployment, depending on the setup tier.
Why use it?
It reduces maintenance problems caused by unclear names, duplicated steps, or weak error handling without changing what the script does from the user's perspective.

Skill for Cursor

Written for Cursor: installed under .cursor/.

This is petrowsky/agentic-fm's own configuration. It tells Cursor how to work on agentic-fm itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything agentic-fm configures →

Reuse

Borrowing it

Nothing to install: this file belongs to petrowsky/agentic-fm. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/petrowsky/agentic-fm/main/.cursor/skills/script-refactor/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/petrowsky/agentic-fm

Made for: Cursor.

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 script-refactor

README.md
[![agentmods](https://agentmods.dev/badge/skills/petrowsky/agentic-fm/script-refactor/github.svg)](https://agentmods.dev/skills/petrowsky/agentic-fm/script-refactor)
Your own site
<a href="https://agentmods.dev/skills/petrowsky/agentic-fm/script-refactor"><img src="https://agentmods.dev/badge/skills/petrowsky/agentic-fm/script-refactor/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.

agentmods 80×15 button for script-refactor

Your own site · 80×15
<a href="https://agentmods.dev/skills/petrowsky/agentic-fm/script-refactor"><img src="https://agentmods.dev/badge/skills/petrowsky/agentic-fm/script-refactor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 99 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,495 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown 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.00099 $0.02495
Opus 5.5 $0.00040 $0.00998
Sonnet 5.5 $0.00020 $0.00499
Haiku 4.5 $0.00010 $0.00249

Measured 2mo ago against content hash bddbf6a9ada5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

script-refactor scanned grade B with 2 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 2mo 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.

Sends data to an external URLmediumData exfiltration

A POST to an outside endpoint may be telemetry or may be exfiltration; either way the mod talks to somewhere, and you should know where.

| curl -s -X POST -H 'Content-Type: application/json' -d @- {companion_url}/webviewer/push

Makes network callslowCapability

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

curl -s --max-time 2 -o /dev/null -w "%{http_code}" {companion_url}/status
.cursor/skills/script-refactor/SKILL.md · 272 lines

The source is not reproduced here

A licence we could not identify

The repository carries a LICENSE file, but it is custom or dual enough that GitHub cannot name it and neither can this catalogue. Unknown terms are not permission, so the body is not copied here. Read the licence at the source and decide for yourself.

Read it on GitHub

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. 2mo ago First seen · 272 lines · 99 tokens per session scan B bddbf6a9ada5

Subscribe to this mod's changes

script-refactor is a skill published in the GitHub repository petrowsky/agentic-fm (97 stars, last pushed 22d ago), with no licence file. It adds 99 tokens to every session and 2,495 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it B with 2 findings (sends data to an external url, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

script-refactor compared with skills from other repositories

script-refactor next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
script-refactorpetrowsky/agentic-fmSkill9722d agononeB99Cursor
bug-reportDonchitos/Claude-Code-Game-StudiosSkill36k18d agoMITA23Claude Code
bug-triageDonchitos/Claude-Code-Game-StudiosSkill36k18d agoMITA30Claude Code
omh-live-incident-responserlaope/oh-my-hermesSkill5.2ktodayMITA87Claude Code, Codex
report-issue-localcyanheads/obsidian-mcp-serverSkill7026d agoApache-2.0A44Claude Code
debuggingWrongStack/WrongStackSkill404yesterdayMITA175Claude Code, Codex
unicli-repairolo-dot-io/Uni-CLISkill2283d agoApache-2.0A68Claude Code