Skip to content

docs: pin npx package versions to mitigate rug-pull risk (RP1) - #15

Merged
Xxx91n merged 1 commit into
mainfrom
docs/pin-npx-versions
Nov 1, 2026
Merged

Xxx91n merged 1 commit into
mainfrom
docs/pin-npx-versions

Conversation

@Xxx91n

@Xxx91n Xxx91n commented Nov 1, 2026 •

Copy link
Copy Markdown
Owner

docs: pin npx package versions to mitigate rug-pull risk (RP1)

Closes #14

Summary

- npx wrangler login
- npx wrangler kv namespace create EMAIL_KV
- npx wrangler deploy
- npx wrangler secret put AUTH_TOKEN
- npx skills add <repo>/skills/cf-email-api-setup
+ npx wrangler@4 ...
+ npx skills@1 add <repo>/skills/cf-email-api-setup

All 17 documented npx commands across README.md, README_EN.md,
and skills/cf-email-api-setup/SKILL.md now carry a major-version pin
(15 wrangler + 2 skills), so no doc follower executes whatever the
registry serves at run time — the rug-pull risk SkillSpector flagged as
RP1 on PR #11.

Pin choice:

  • wrangler@4 — matches the setup skill's compatibility floor
    (Wrangler: ">=4") and the wrangler@^4.81.0 devDependency major;
    npm exec reuses a local install that satisfies the range, so the
    project's own wrangler still wins after npm install.
  • skills@1 — current latest is 1.7.4.

Evidence

  • Before: grep -n "npx wrangler \|npx skills add" matched 17
    unpinned commands; SkillSpector RP1 warnings on PR fix: harden email pipeline and align setup docs with behavior #11 review.
  • After: same grep returns zero unpinned commands (exit 1); counts
    per file: npx wrangler@4 = 3/3/9 (README/README_EN/SKILL),
    npx skills@1 add = 1/1; CI checks pass on the branch.

Merge Danger

Door: two-way (docs-only)

Blast Radius: docs surface only. Major pins go stale when a new
major lands — that is the intended trade: a deliberate bump instead of
an automatic rug-pull.

Summary by CodeRabbit

  • Documentation
    • Updated installation instructions to use skills@1.
    • Updated deployment and setup commands to use Wrangler v4, including login, KV namespace creation, deployment, log tailing, and secret storage.

Every documented npx command ran without a version suffix, so anyone
following the docs (especially AI agents) executed whatever the
registry served at run time. Pin the major on all 18 commands across
README.md, README_EN.md, and the setup skill:

- npx wrangler@4 ... — matches the skill's compatibility floor
  (Wrangler >=4) and the wrangler@^4.81.0 devDependency major
- npx skills@1 add ... — current latest is skills 1.7.4

Major-only pins stay consistent with local installs (npm exec reuses a
local version that satisfies the range) and do not churn on every
minor release.

Closes #14
@coderabbitai

coderabbitai Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e24de762-3df3-4860-9527-e490e1017846
Commits

Reviewing files that changed from the base of the PR and between de144fb and eab8aaa.

Files selected for processing: 3
  • README.md
  • README_EN.md
  • skills/cf-email-api-setup/SKILL.md

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 2 remain after this review.

Walkthrough

The README files now use skills@1 for skill installation and wrangler@4 for deployment instructions. The setup guide uses wrangler@4 for login, namespace creation, deployment, log tailing, and storing AUTH_TOKEN as a secret.

Changes: Documented command version pins

Layer / File(s) Summary
Pin the skills installation command
README.md, README_EN.md
The skill installation command now uses npx skills@1 add.
Pin Wrangler commands
README.md, README_EN.md, skills/cf-email-api-setup/SKILL.md
Documented Wrangler commands now use npx wrangler@4 for login, namespace creation, deployment, log tailing, and storing AUTH_TOKEN as a secret.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Other

Possibly related PRs

  • Xxx91n/CF-Email-API#11: Both PRs change the AUTH_TOKEN secret command in the setup guide, and the documented command forms conflict over version pinning.
Merge Risk: Minimal · up to eab8a

The documentation-only version pin updates introduce no actionable merge risk.

Architecture risk: Low · up to eab8a

The change affects 3 systems.

Changed systems: README_EN.md, README.md, skills

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — README_EN.md (service) was modified; 1 changed file maps to changed impact.
  • observed — README.md (service) was modified; 1 changed file maps to changed impact.
  • observed — skills (service) was modified; 1 changed file maps to changed impact.

Before / after behavior

  • observed — Modified behavior in README.md: 安装技能的命令从 npx skills add 改为 npx skills@1 add。
  • observed — Modified behavior in README.md: 手动部署命令从未指定版本的 Wrangler 改为 npx wrangler@4,用于登录、创建 KV Namespace 和部署。
  • observed — Modified behavior in README_EN.md: The skill installation command changes from npx skills add to npx skills@1 add.
  • observed — Modified behavior in README_EN.md: The login, KV namespace creation, and deployment commands now invoke wrangler@4 instead of unversioned wrangler.
Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely describes pinning documented npx package versions to reduce rug-pull risk. It matches the main documentation changes.
Linked Issues check Passed Issue #14 requires major-version pins on documented npx commands: wrangler@4 for Wrangler and skills@1 for Skills. Head diffs against the merge base show these changes:
- README.md: 3 Wrangler command…
Out of Scope Changes check Passed All changed hunks in README.md, README_EN.md, and skills/cf-email-api-setup/SKILL.md only add the @4 or @1 version suffix to documented npx commands listed in #14. No code, configuration, or unrelated…
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Full details: Linked Issues check

Explanation

Issue #14 requires major-version pins on documented npx commands: wrangler@4 for Wrangler and skills@1 for Skills. Head diffs against the merge base show these changes:

  • README.md: 3 Wrangler commands (login, kv namespace create, deploy) and 1 npx skills@1 add.
  • README_EN.md: the same 3 Wrangler commands and 1 npx skills@1 add.
  • skills/cf-email-api-setup/SKILL.md: 9 Wrangler commands (login, kv namespace create, deploy, tail, and secret put in the table, Step 2, Step 3, Step 4, the config table, and the Auth Misconfiguration note).
    The total is 15 Wrangler plus 2 Skills commands, which matches the scope in #14. Every changed line keeps its original command and arguments, changing only the version suffix. The issue is documentation-only, so no coding requirement is unmet. Scope limit: the review covered only the diffs of the three named files. The PR's grep claim for other unpinned commands was not re-run, because the repository tools cannot run grep.
Full details: Out of Scope Changes check

Explanation

All changed hunks in README.md, README_EN.md, and skills/cf-email-api-setup/SKILL.md only add the @4 or @1 version suffix to documented npx commands listed in #14. No code, configuration, or unrelated documentation changed. The CI claim in the PR description is not code evidence and was not assessed.

Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files. (3 skipped: 3 unsupported.)

Finishing Touches
Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@Xxx91n
Xxx91n merged commit 9a90d10 into main Nov 1, 2026
5 checks passed
@Xxx91n
Xxx91n deleted the docs/pin-npx-versions branch November 1, 2026 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: pin npx package versions to mitigate rug-pull risk (RP1)

1 participant