Update

From melodic-software/claude-code-plugins · View interactive version

Update is an AI agent skill from the GitHub repository melodic-software/claude-code-plugins. Maintainer-facing drift-check and upstream sync for the firecrawl plugin's wrapper skill. Tracks the firecrawl-cli npm release and the upstream SKILL.md source. Run only from a working-tree checkout. Actions: --check (read-only drift report) and a bare invocation (the full gated update: npm upgrade

How to use this skill

Skill file

Pre-computed context

Last upstream sync: !grep -m1 '^- Last sync:' "${CLAUDE_SKILL_DIR}/upstream.md" >/dev/null 2>&1 && grep -m1 -o 'Last sync:.*' "${CLAUDE_SKILL_DIR}/upstream.md" 2>/dev/null || echo "never — run this skill with --check"

Purpose

Keep the /firecrawl:firecrawl wrapper skill in sync with its two upstream dependencies: the

firecrawl-cli npm package and the upstream canonical skill at

https://www.firecrawl.dev/agent-onboarding/SKILL.md. The wrapper skill

owns its content. Upstream is a source, not a parallel install.

Maintainer-facing: run this in a working-tree checkout of this plugin (the marketplace clone, or a

directory loaded via --plugin-dir), never against an installed marketplace copy, the apply path

rewrites upstream.md inside this skill directory, and consumers receive updates through

/plugin marketplace update. Drift detection uses the sidecar upstream.md (SHA tracking): upstream

SKILL.md is fetched fresh on --check and hashed; the sidecar records the prior hash for diff. No

vendored snapshot is kept. The action is advisory, the two approval gates in Safety below keep every

mutation behind an explicit yes.

Invocation

| Invocation | Effect |

|---|---|

| /firecrawl:update --check | Read-only drift report. Fetches upstream + npm metadata, compares against upstream.md. No mutations. |

| /firecrawl:update | Full update pipeline with two approval gates |

When to invoke, the modes, and the full update pipeline: read context/update-flow.md. The

preservation invariants and safety guarantees below stay inline.

Preservation rules (for any skill-content integration)

These are the invariants an integration run must keep in the /firecrawl:firecrawl wrapper skill,

in this exact form:

The helper at scripts/update.sh does the deterministic parts (fetch, SHA, diff); this skill body

does the Claude-facing decisions (integration and approval). For a non-trivial content delta, the

skill-creator skill of the skill-creator plugin (Anthropic's claude-plugins-official

marketplace, not this one), when enabled, can drive the rewrite under the preservation rules

above; otherwise inline-edit.

Safety

Nothing destructive happens without explicit approval. Four guarantees:

  1. Two approval gates. The update action never runs npm install -g or rewrites SKILL.md

without asking first. Gate 1 covers the binary install; Gate 2 covers the skill content. A No

at Gate 1 skips the install and still reaches Gate 2. A No at Gate 2 records nothing, so

--check keeps reporting the drift.

  1. Atomic fetching. update.sh --check completes all network I/O (npm metadata + upstream

fetch) before printing anything. A mid-run 404 or DNS failure leaves state untouched. No partial

write.

  1. Rollback path. upstream.md records the previous CLI version before each upgrade. If a new

version breaks something, the rollback is one line: npm install -g firecrawl-cli@<previous-version>;

when something else owns the firecrawl command, update that owner's pin instead. Run

firecrawl update --disable-auto first so the CLI does not update itself back. Revert the

plugin PR for skill-content changes.

  1. Post-install verification. After npm install -g, the flow re-runs firecrawl --status and

diffs firecrawl --help against the pre-install snapshot. A removed command or auth failure is

flagged before the skill-content integration step begins.

Network requirement. The update path needs registry.npmjs.org and www.firecrawl.dev

reachable. When a sandboxed or cloud egress proxy answers a fetch with an intermittent 503, retry

after ~30s, or run the update from an unrestricted session.

Idempotency. Running the update action with --check twice with no upstream change: "no drift,

current." Running a full update when already at latest: reports "no drift" and exits before Gate 1.

Safe to schedule or re-run.

What this skill does not do

upstream.md in this skill directory. Consumers update via /plugin marketplace update.

(upstream.md); skill-content integration is Claude's step behind Gate 2, governed by the

Preservation rules above.

second auth source of truth. This plugin is the maintained integration.

Related

previous CLI version for rollback). Updated only by the update action: --apply writes the CLI

version and rollback target, --record-upstream writes the upstream SHA and sync date after Gate 2.

upstream fetch + SHA, the upstream.md record). Regression tests: scripts/update.test.sh.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.