Token导航 LogoToken导航

Agent Skill · 前端设计

modernize(modernize 命令行)

用于辅助安全审计、权限检查、凭据风险、认证流程和常见漏洞排查。它适合让 Agent 梳理敏感配置、检查依赖风险、分析鉴权逻辑或生成安全复核清单。使用时不能把工具输出直接当最终结论,涉及密钥、令牌、用户数据或生产系统时,应先确认最小权限、脱敏方式和操作边界。

modernize 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证为 MIT,第三方扫描有提醒项,按安装量在前端设计类的 10,216 个 Skill 里排第 6,944。

总安装 441周安装 18GitHub Stars 1下载 143核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:modernize(modernize 命令行)
来源仓库:https://github.com/jschulte/claude-plugins
仓库路径:skills/modernize
安装命令:
npx skills add https://github.com/jschulte/claude-plugins --skill modernize
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/jschulte/claude-plugins --skill modernize

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

用于辅助安全审计、权限检查和常见漏洞排查。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。适合梳理敏感配置、分析鉴权逻辑或生成安全复核清单。不能把工具输出直接当最终结论,需确认最小权限和操作边界。涉及密钥、令牌或生产系统时应先脱敏并控制操作范围。

modernize 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/modernize

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/jschulte/claude-plugins --skill modernize;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

modernize 怎么安装?

在终端执行 npx skills add https://github.com/jschulte/claude-plugins --skill modernize。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

modernize 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

modernize 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

modernize 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

modernize 用的人多吗?

公开数据是累计安装 441 次,近一周安装 18 次,下载 143 次,GitHub 1 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

modernize 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。

先想清楚的地方

  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
modernize

modernize 命令行 · 本页

4411需要联网MIT有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Modernize (Brownfield Dependency Upgrade)

Runs after Gear 6 for brownfield projects with modernize: true in .stackshift-state.json.

Prerequisites: Gears 1-6 complete, 100% spec coverage established Output: Modern dependency versions, updated tests, synchronized specs, upgrade report Scope: Node.js/TypeScript projects only


Constraints

  • Do NOT upgrade to pre-release, beta, or canary versions. Use only stable releases.
  • Do NOT delete lockfiles (package-lock.json, yarn.lock, pnpm-lock.yaml).
  • Do NOT run npm audit fix --force. Use npm audit fix only.
  • Do NOT proceed to the next phase until the current phase passes its gate check.
  • Execute phases sequentially. No phases run in parallel.
  • If /speckit.analyze is unavailable, manually compare spec acceptance criteria against test results as a fallback.

Trigger Conditions

Read .stackshift-state.json in the project root. Verify ALL of:

  1. path is "brownfield"
  2. modernize is true
  3. Gear 6 (implement) is complete

If any condition is false, stop and report which condition failed.

If path is "greenfield", stop. This skill is for brownfield projects only.


State Management

State file: .stackshift-state.json (project root) Working directory: .modernize/

On start, update .stackshift-state.json:

{ "modernize": true, "modernizeStatus": "in-progress", "modernizeStarted": "<ISO timestamp>" }

On success, update:

{ "modernizeStatus": "complete", "modernizeCompleted": "<ISO timestamp>" }

On failure, update:

{ "modernizeStatus": "failed", "modernizeError": "<summary of failure>" }

Rollback Procedure

If any phase fails and cannot be recovered:

  1. Copy .modernize/baseline-package.json back to package.json.
  2. Copy .modernize/baseline-lockfile back to the original lockfile location (if saved).
  3. Run npm install.
  4. Run npm test to verify baseline is restored.
  5. If baseline tests pass, log "Rolled back to baseline successfully."
  6. If baseline tests fail, stop and ask the user for guidance.
  7. Update .stackshift-state.json with modernizeStatus: "failed".

Phase 1: Pre-Upgrade Baseline

Create the working directory and capture baseline state.

mkdir -p .modernize

cp package.json .modernize/baseline-package.json

# Save lockfile if present
if [ -f package-lock.json ]; then cp package-lock.json .modernize/baseline-lockfile; fi
if [ -f yarn.lock ]; then cp yarn.lock .modernize/baseline-lockfile; fi
if [ -f pnpm-lock.yaml ]; then cp pnpm-lock.yaml .modernize/baseline-lockfile; fi

npm test 2>&1 | tee .modernize/baseline-test-results.txt
npm run test:coverage 2>&1 | tee .modernize/baseline-coverage.txt
npm outdated 2>&1 | tee .modernize/upgrade-plan.txt

If npm test fails at baseline: Stop. The project has pre-existing test failures. Ask the user whether to proceed or fix tests first.

Gate check: .modernize/baseline-package.json exists AND .modernize/baseline-test-results.txt exists.

Log: "Phase 1 complete -- baseline captured. X packages have available updates."


Phase 2: Dependency Upgrade

Upgrade all dependencies to latest stable versions.

npx npm-check-updates -u --target latest --reject '*alpha*,*beta*,*canary*,*rc*'
npm install 2>&1 | tee .modernize/install-output.txt

If npm install fails after ncu -u:

  1. Read the error output from .modernize/install-output.txt.
  2. Identify the failing package(s) from peer dependency or resolution errors.
  3. Revert those specific packages to their previous versions in package.json (read versions from .modernize/baseline-package.json).
  4. Run npm install again.
  5. Document skipped packages in .modernize/skipped-packages.txt.
  6. If install still fails after 3 attempts, execute the Rollback Procedure and ask the user.

Run security fixes:

npm audit fix 2>&1 | tee .modernize/audit-fix-output.txt

Gate check: node_modules directory exists AND npm install exited with code 0.

Log: "Phase 2 complete -- dependencies upgraded. X packages updated, Y skipped."


Phase 3: Breaking Change Detection

Run the full test suite against upgraded dependencies.

npm test 2>&1 | tee .modernize/post-upgrade-test-results.txt

Compare results to baseline:

diff .modernize/baseline-test-results.txt .modernize/post-upgrade-test-results.txt > .modernize/test-diff.txt 2>&1 || true

Classify failures:

  • Breaking change failures: Tests that were passing now fail with different assertion values or changed API signatures. These are expected and get fixed in Phase 4.
  • Infrastructure failures: Tests fail with import errors, module-not-found, syntax errors, or timeout errors unrelated to behavior changes. These indicate install problems.

If more than 50% of tests fail: Execute the Rollback Procedure. The upgrade scope is too broad. Ask the user whether to attempt incremental upgrades (major versions one at a time).

If infrastructure failures exist: Fix import/module resolution issues before proceeding. These are not breaking changes -- they indicate incomplete installation or missing peer dependencies.

Gate check: Test results captured AND failure rate is below 50%.

Log: "Phase 3 complete -- X tests passing, Y tests failing (Z breaking changes, W infrastructure issues)."


Phase 4: Fix Breaking Changes (Spec-Guided)

For each breaking change identified in Phase 3:

  1. Match the failing test to its feature spec in specs/.
  2. Read the spec's acceptance criteria to understand required behavior.
  3. Update the code to work with the new dependency version while preserving spec compliance.
  4. Update the test if the test itself used deprecated APIs.
  5. Run the specific test to verify the fix.

After fixing all breaking changes, run the full test suite:

npm test 2>&1 | tee .modernize/post-fix-test-results.txt

If tests still fail after fixing all identified breaking changes: Compare against baseline. If failures exist that were not in the baseline, investigate. If after 3 fix iterations tests still fail, ask the user for guidance.

Gate check: All tests that passed at baseline now pass. No regressions.

Log: "Phase 4 complete -- X breaking changes fixed. All baseline tests restored."


Phase 5: Spec Synchronization

Determine whether dependency upgrades changed observable behavior (not just implementation).

Detection method: Compare test output diffs from Phase 3. If tests that were passing now produce different output values (not errors), behavior changed. If tests only failed with import/syntax/API signature errors, only implementation changed.

If behavior changed:

  1. Update the relevant feature spec to document the new behavior.
  2. Update acceptance criteria if outputs or interfaces changed.
  3. Update technical requirements with new dependency versions.
  4. Run /speckit.analyze to validate spec-implementation alignment. If /speckit.analyze is unavailable, manually verify each spec's acceptance criteria against test results.

If only implementation changed:

  • Update version numbers in spec technical details only.
  • No functional spec changes needed.

Gate check: All specs in specs/ reflect current dependency versions AND /speckit.analyze (or manual check) shows no drift.

Log: "Phase 5 complete -- X specs updated. No spec drift detected."


Phase 6: Test Coverage Improvement

Run coverage and assess against the 85% threshold.

npm run test:coverage 2>&1 | tee .modernize/post-upgrade-coverage.txt

If all modules are already at 85%+: Skip to Phase 7. Log: "Phase 6 skipped -- all modules already at 85%+ coverage."

If any module is below 85%:

  1. Identify modules below threshold from coverage output.
  2. For each module, read its spec's acceptance criteria.
  3. Write tests covering each acceptance criterion that lacks a test.
  4. Re-run coverage after adding tests.

Gate check: npm run test:coverage shows all modules at 85%+.

Log: "Phase 6 complete -- coverage improved from X% to Y%. Z new tests added."


Phase 7: Final Validation

Run the complete validation suite. Every check must pass.

npm run build 2>&1 | tee .modernize/build-output.txt

If build fails: Read error output. Fix compilation errors. Re-run build. If build fails after 3 attempts, ask the user.

npm test 2>&1 | tee .modernize/final-test-results.txt

If any test fails: This is a regression. Do not proceed. Fix the failing test or execute Rollback Procedure.

npm run test:coverage 2>&1 | tee .modernize/final-coverage.txt

If any module is below 85%: Return to Phase 6.

Run /speckit.analyze (or manual spec check). If spec drift detected: Return to Phase 5.

npm audit 2>&1 | tee .modernize/final-audit.txt

If high or critical vulnerabilities remain: Run npm audit fix (not --force). If vulnerabilities persist, document them in the upgrade report and inform the user.

Gate check: Build passes AND all tests pass AND coverage >= 85% AND no spec drift AND no high/critical vulnerabilities.

Log: "Phase 7 complete -- all validations passed. Modernization successful."


Output: Upgrade Report

Write .modernize/UPGRADE_REPORT.md with the following structure:

# Dependency Modernization Report

**Date**: <ISO date>
**Project**: <project name from package.json>

## Summary

- **Dependencies upgraded**: X packages
- **Major version bumps**: X packages
- **Breaking changes fixed**: X
- **Tests fixed/added**: X tests
- **Coverage**: X% -> Y%
- **Specs updated**: X specs
- **Skipped packages**: X (see details below)

## Upgraded Dependencies

| Package | Old Version | New Version | Breaking? |
|---------|-------------|-------------|-----------|
| <name>  | <old>       | <new>       | Yes/No    |

## Skipped Packages

<List any packages that could not be upgraded and why>

## Breaking Changes Fixed

For each breaking change:
- **Package**: <name>
- **Affected feature**: <feature name>
- **Fix**: <what was changed>
- **Spec impact**: <behavior change or implementation only>

## Spec Updates

<List specs that were modified and why>

## Test Coverage

- Before: X%
- After: Y%
- New tests: Z

## Validation Results

- Build: pass/fail
- Tests: X passing, Y failing
- Coverage: X% (target: 85%+)
- Spec drift: none/details
- Vulnerabilities: X high, Y critical (or none)

After writing the report, update .stackshift-state.json with modernizeStatus: "complete".


Success Criteria

Modernization is complete when ALL of:

  • All dependencies updated to latest stable versions (or documented as skipped)
  • All tests passing (zero failures)
  • Test coverage >= 85% on all modules
  • Build successful
  • No spec drift (verified by /speckit.analyze or manual check)
  • No high/critical security vulnerabilities (or documented with user acknowledgment)
  • Specs updated where behavior changed
  • .modernize/UPGRADE_REPORT.md generated
  • .stackshift-state.json updated with modernizeStatus: "complete"

平台分布

Claude Code

28.33%
按下载量换算41

OpenCode

22.3%
按下载量换算32

Codex

17.73%
按下载量换算25

github-copilot

11.57%
按下载量换算17

Antigravity

7.43%
按下载量换算11

Gemini CLI

3.18%
按下载量换算5

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。

继续浏览同类 Skills