跳到正文
cccskills
免费在 GitHub 公开

implement-change

Implement Verdaccio fixes, features, or refactoring after checking whether existing settings or plugins already solve the problem. Place changes in the responsible component, reuse helpers, add tests and release notes, and validate affected packages.

中文简介正在准备中。当前显示英语简介。

原文查看原文说明

Implement a verdaccio bug fix, feature, or refactor — establish the affected release lines, check whether existing configuration, package-access rules, plugins, or uplink options already solve it, put the change in the layer that owns it, reuse existing helpers, add tests and a changeset, and validate. Use when asked to implement a change in this repository.

查看安装方法

适用场景

  • Implementing a bug fix with a regression test
  • Checking existing settings before adding a feature
  • Refactoring code within a defined change
  • Checking affected release branches and dependent packages

包含的文件(1)

  • SKILL.md5.3 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Implement a change

Apply AGENTS.md. Keep repository policy there; this skill connects implementation to the testing-changes, review-code, and pull-requests workflows.

Understand the problem before adding code

Establish the intended behaviour and concrete success criteria from the request, the issue, or the reproduction. For a bug, reproduce it first when practical: pnpm build, start a registry (pnpm start, or node packages/verdaccio/bin/verdaccio --config <yaml> --listen 4873), and run the client command from the report against it. A reporter's npm install symptom is a registry route plus a client expectation; find both.

Decide which release lines the work concerns:

  • A feature lands on master only.
  • A bug fix lands on every supported line that has the bug: master first, then a port to 6.x (binary) and/or 8.x (internal modules 6.x consumes). Check whether the code path exists there before promising a port, and say in the PR when it is pending.

Check whether Verdaccio can already do it. Configuration (packages/config/src/conf/default.yaml documents the keys), package-access rules (access/publish/unpublish with groups), uplink options (maxage, timeout, fail_timeout, cache, auth), bundled plugins, middleware and filter plugins, and the web UI settings cover a lot. If an existing capability fully solves the request, the deliverable is an explanation and possibly a documentation change; if it partly solves it, extend the owning feature rather than adding a parallel one. Respect an explicitly requested behaviour that nothing existing provides.

Anything a package manager observes is a contract. Before changing a status code, header, packument field, tarball URL, or auth flow, check what registry.npmjs.org and the npm CLI (npm/cli) do, and remember the e2e matrix runs npm, pnpm, yarn modern (3 and 4), bun, and deno.

Put it in the owning layer

Trace the request through the layers before editing: api/web (routing, status, response shape) → store (local versus uplink merge, filters, stage) → local-storage or the storage plugin (files) and proxy (uplink HTTP); auth for identity and access; config for parsing and defaults; core for pure helpers.

Ask where the behaviour belongs, which abstraction it extends, and what else observes it: a validation added only in an api route leaves the web UI and every plugin exposed; a change in store affects every storage plugin. Changes to interfaces in @verdaccio/types break third-party plugins and are major. Prefer a coherent extension over a local workaround, and keep refactoring bounded to the change.

Reuse before you write

Search packages/core/core/src/*-utils.ts, @verdaccio/config, the store lib helpers, and @verdaccio/test-helper before writing a helper. If the logic exists but is not exported, export or move it and update the callers. Preserve meaningful differences; do not force unrelated behaviour into one generic function because it looks similar. Prefer a maintained package to a hand-rolled parser or escaper, added to the narrowest package that needs it (and older than the workspace's seven-day release-age rule).

Implement and validate

Implement the smallest cohesive change that meets the success criteria. Follow the conventions in AGENTS.md: errorUtils and HTTP_STATUS for errors, the package logger instead of console, streams for tarballs, import.meta.dirname, minimal comments, no swallowed errors.

Add tests that prove the observable contract at the right level: a unit test for a helper, a packages/api integration test for a route, a nocked uplink for store and proxy behaviour, and an e2e scenario only for client wiring. A bug fix ships with a regression test that fails without it.

Add one changeset for the PR, naming every published package it touches (patch for fixes, minor for features, major for breaking config, plugin, or HTTP contract changes), written as a release note without exploit detail. Update docs/migrations-guide.md for breaking changes and docs/warnings.md for a new warning code.

Rebuild the packages you touched, then use testing-changes to run their tests, their dependents' tests, and the client-facing suites the change can affect. Investigate every failure. Then review the complete diff with review-code, fix the verified findings, and rerun the checks the fixes touch.

Report what changed, what existing capability was considered and why it was not enough, the reuse or extraction chosen, the release lines covered and the ports still pending, and exactly what was validated. Commit, push, or open a PR only when the user or the calling workflow authorises it; use pull-requests when taking the change through a PR.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

plugins

免费

Maintain Verdaccio’s bundled plugins and investigate loading failures using checks that identify resolution, export, construction, or interface problems. Review shared plugin interfaces for compatibility, update affected plugins, and validate fixes with plugin and integration tests.

中文简介正在准备中。当前显示英语简介。

  • Diagnosing why a plugin fails to load
  • Fixing bundled authentication or storage plugins
  • Checking compatibility when changing plugin interfaces
verdaccio/verdaccio1.8万2026年10月19日 更新

pr-labels

免费

Select existing labels for Verdaccio pull requests based on the target release line and the substance of the change. Apply them when authorized, or report exact recommendations when reviewing someone else's PR or lacking permission.

中文简介正在准备中。当前显示英语简介。

  • Adding labels immediately after creating a PR
  • Reviewing missing or incorrect PR labels
  • Choosing labels for a release-line port
verdaccio/verdaccio1.8万2026年10月19日 更新

Guide a Verdaccio change through a pull request, from branch preparation and checks to changelog entries, labels, CI results, and review responses. Track separate pull requests when the fix also belongs on other release lines.

中文简介正在准备中。当前显示英语简介。

  • Preparing and opening a pull request
  • Investigating failed CI checks after a push
  • Addressing review comments and updating the PR
verdaccio/verdaccio1.8万2026年10月19日 更新

Review Verdaccio code changes for security, package manager compatibility, performance, and maintainability. Verify concerns against surrounding code and relevant tests, then report actionable issues with their location, trigger, impact, and supporting evidence.

中文简介正在准备中。当前显示英语简介。

  • Reviewing local changes before opening a pull request
  • Checking security and package manager compatibility
  • Tracing error handling and performance concerns
verdaccio/verdaccio1.8万2026年10月19日 更新

review-pr

免费

Assess an existing Verdaccio pull request by checking code changes, automated checks, review feedback, release notes, and supported release branches. Receive a verified report explaining whether it is ready to merge and what needs attention.

中文简介正在准备中。当前显示英语简介。

  • Reviewing a pull request before merging
  • Rechecking human and automated review feedback
  • Checking release notes and release branch coverage
verdaccio/verdaccio1.8万2026年10月19日 更新

Choose and run checks that cover a Verdaccio change, including affected packages, dependent packages, API tests, and relevant client or UI flows. Rebuild first and report coverage limits so passing results reflect the edited code.

中文简介正在准备中。当前显示英语简介。

  • Verifying changes before committing or pushing
  • Selecting tests for affected packages and their dependents
  • Checking package manager or UI behavior
verdaccio/verdaccio1.8万2026年10月19日 更新

查看 verdaccio 的全部技能

报告此技能的问题