Repository navigation
docs: pin npx package versions to mitigate rug-pull risk (RP1) - #15
Conversation
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
|
No actionable comments were generated in the recent review.
|
| 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_TOKENsecret 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,skillsArchitecture 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 addtonpx skills@1 add. - observed — Modified behavior in README_EN.md: The login, KV namespace creation, and deployment commands now invoke
wrangler@4instead of unversionedwrangler.
-
Pre-merge checks: 
5
-
Full details: Linked Issues check
-
Explanation
Issue
#14requires 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.
- README.md: 3 Wrangler commands (login, kv namespace create, deploy) and 1
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
@4or@1version 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
docs: pin npx package versions to mitigate rug-pull risk (RP1)
Closes #14
Summary
All 17 documented
npxcommands acrossREADME.md,README_EN.md,and
skills/cf-email-api-setup/SKILL.mdnow 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 thewrangler@^4.81.0devDependency major;npm execreuses a local install that satisfies the range, so theproject's own wrangler still wins after
npm install.skills@1— current latest is 1.7.4.Evidence
grep -n "npx wrangler \|npx skills add"matched 17unpinned commands; SkillSpector RP1 warnings on PR fix: harden email pipeline and align setup docs with behavior #11 review.
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
skills@1.