Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Update?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/melodic-software-update)
---
description: "Maintainer drift check (--check, read-only) and gated upstream/npm sync (bare) for firecrawl; working-tree checkout only."
argument-hint: "[--check]"
user-invocable: true
disable-model-invocation: true
allowed-tools: Bash(grep -m1 *upstream.md*)
shell: bash
---
# Update
## 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:
- Single-line YAML `description` with `Use when:` and skip guidance phrase lists
- Frontmatter fields: `description`, `argument-hint`, `user-invocable: true`, `disable-model-invocation: false` (no `name`; how a skill is named without it: the `name` row of [Frontmatter reference](https://code.claude.com/docs/en/skills#frontmatter-reference))
- Pre-computed context block at top, using `firecrawl --status` for the health line
- "Core pattern. Write to disk, Read selectively" rule: every non-trivial example writes to a `mktemp`-created spill file with `-o`, `Read`s selectively, and the spill file is removed after the Read (kept only when the user asked for the file itself)
- "When NOT to use this skill" section with the doc-site-reader-first and synthesis-tool escalation ordering
- The pointer to this maintainer update skill (`/firecrawl:update`), the wrapper skill delegates its update/drift concern here rather than carrying it inline
- Gotchas section with the "don't run `firecrawl init`, don't run `firecrawl login`" prohibitions
- Imperative tone, no marketing language
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.
2. **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.
3. **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.
4. **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
- **Does not run against an installed marketplace copy**. Maintainer-facing; the apply path writes
`upstream.md` in this skill directory. Consumers update via `/plugin marketplace update`.
- **Does not auto-rewrite the wrapper SKILL.md**. `update.sh` owns only the deterministic record
(`upstream.md`); skill-content integration is Claude's step behind Gate 2, governed by the
Preservation rules above.
- **Does not run `firecrawl init` or `firecrawl login`**. Those install a parallel shadow copy /
second auth source of truth. This plugin is the maintained integration.
## Related
- The user-facing wrapper skill this maintains: `/firecrawl:firecrawl`.
## See also
- `upstream.md` (this skill root). Sync-state anchor (last sync date, upstream SHA, CLI version,
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.
- `scripts/update.sh`. Deterministic helper invoked by the update flow (npm version lookup, install,
upstream fetch + SHA, the `upstream.md` record). Regression tests: `scripts/update.test.sh`.
- `context/update-flow.md`, when to invoke, the modes, and the full pipeline.
- Firecrawl docs: <https://docs.firecrawl.dev/sdks/cli>. Upstream skill source: <https://www.firecrawl.dev/agent-onboarding/SKILL.md>.