vue-router-best-practices
80提升 Vue Router 守衛可靠性
Vue Router 的錯誤可能導致過期資料、被略過的檢查,以及重新導向迴圈。此技能提供安全守衛、路由更新、清理與生產環境路由的聚焦模式。
以可靠指引管理 pnpm 專案
pnpm 專案需要精確的命令、嚴格的相依性處理,以及安全的設定選擇。此技能針對安裝、workspaces、CI、patches 和遷移任務提供聚焦指引。
安裝前請停止並請求確認。
請審查安裝計畫,並在變更檔案前取得使用者明確同意。
將此請求複製給你的智慧代理,其中包含權威 Skill 頁面和清單。
Review the Skillstore skill "pnpm" from https://skillstore.io/skills/antfu-pnpm.md and its manifest at https://skillstore.io/api/skills/antfu-pnpm/manifest. Verify the artifact. Stop and obtain explicit user consent before installing or changing files.你的智慧代理仍應顯示其計畫,並依安全政策請求必要確認。
當 AI Agent、爬蟲或腳本需要乾淨脈絡、而不是讀取完整頁面時,請使用這些連結。
正在使用「pnpm」。 為什麼 npm 可以成功安裝這個套件樹,但 pnpm 會失敗?
預期結果:
此技能會說明 phantom dependency 行為,識別缺少的直接相依性,並建議加入已宣告的相依性,而不是依賴 transitive packages。
正在使用「pnpm」。 我們的儲存庫應該如何在 CI 中快取 pnpm 安裝?
預期結果:
此技能建議使用穩定的 pnpm 版本、frozen lockfiles、以鎖定檔為 key 的 store caching,以及針對已變更 workspaces 的獨立驗證。
正在使用「pnpm」。 在 upstream fix 發布前,我們需要 patch 一個相依性。
預期結果:
此技能會概述 patch 工作流程,提醒你記錄原因,並建議在相依性升級時重新檢視該 patch。
The audit found no prompt injection or data-exfiltration intent. Most static alerts are Markdown syntax, example paths, placeholders, or safe configuration guidance. Confirmed concerns include credential-file inspection, recursive permission changes, third-party registry use, blanket build approval, unpinned execution, and destructive cleanup.
這些是真實的本機能力,對此技能而言可能是預期行為,因此需要複核,但不會按已確認的惡意行為計分。
分享版本化評估報告、中性徽章、嵌入卡片與引用。Skillstore 只報告證據,不判斷該 Skill 是否安全。
https://skillstore.io/skills/antfu-pnpm/audits/5?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_report[](https://skillstore.io/skills/antfu-pnpm?utm_source=security_passport_badge)<a href="https://skillstore.io/skills/antfu-pnpm?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/antfu-pnpm/security.svg" alt="Skillstore security assessment" loading="lazy"></a><iframe src="https://skillstore.io/embed/skills/antfu-pnpm.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>antfu. (2026). pnpm security audit report (audit version 5) [Author version 2026.6.22]. Skillstore. https://skillstore.io/skills/antfu-pnpm/audits/5@techreport{antfu-antfu-pnpm-2026,
author = {antfu},
title = {pnpm security audit report (audit version 5)},
institution = {Skillstore},
year = {2026},
number = {5},
url = {https://skillstore.io/skills/antfu-pnpm/audits/5},
note = {Author version 2026.6.22}
}cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "pnpm security audit report (audit version 5)"
version: "2026.6.22"
type: report
authors:
- name: "antfu"
date-released: "2026-07-23"
url: "https://skillstore.io/skills/antfu-pnpm/audits/5"
identifiers:
- type: other
value: "skillstore:antfu-pnpm:audit:5"
description: "Skillstore immutable audit report identifier"
為多套件儲存庫規劃 workspace 套件、共享相依性版本、filters 和鎖定檔行為。
選擇 frozen lockfile 設定、Corepack 設定、cache keys 和 store paths,以獲得更快且可靠的建置。
診斷 peer dependency 警告、phantom dependency 失敗、overrides、patches 和遷移問題。
檢視我的 pnpm 專案版面配置。在變更相依性之前,說明 workspace 結構、重要設定檔案,以及安全的下一步。
協助我診斷這個 pnpm dependency 或 peer dependency 問題。說明可能原因、設定選項,以及最安全的修正方式。
為此儲存庫設計 pnpm CI 安裝策略。涵蓋 Corepack、frozen lockfiles、caching、workspace filters 和 failure modes。
建立從 npm 或 Yarn 遷移到 pnpm 的計畫。包含相依性清理、workspace 轉換、鎖定檔變更,以及驗證步驟。
作者
antfu授權
MIT
作者版本
v2026.6.22
Skillstore 修訂
r2
引用
89edfdc710d0846129dcee6a929477b04f08052c
維護新鮮度
2026/7/24
使用量
6 次下載 · 219 次瀏覽
提升 Vue Router 守衛可靠性
Vue Router 的錯誤可能導致過期資料、被略過的檢查,以及重新導向迴圈。此技能提供安全守衛、路由更新、清理與生產環境路由的聚焦模式。
提升 Vue 測試品質
Vue 測試經常因非同步時序、脆弱的內部實作依賴,以及薄弱的快照而失敗。此技能會引導 Claude、Codex 和 Claude Code 採用可靠的 Vitest、Vue Test Utils 與 Playwright 模式。
提升 Vue 3 型別安全性
Vue 專案經常遇到 template、Volar、router 和 TypeScript 的邊界案例,拖慢審查速度。此技能提供聚焦於 Vue 3 的規則,協助建立更安全的元件、設定與測試。
自信地建構 Vue 3 元件
Vue 團隊需要關於元件、反應性和 TypeScript 模式的最新指引。此 skill 為 Claude、Codex 和 Claude Code 提供聚焦的 Vue 3.5 參考資料。
更快速建置 Vite 應用程式
Vite 專案需要在開發、建置、外掛與部署之間進行謹慎設定。此技能針對常見 Vite 工作流程提供精簡指引。
建置可靠的 Vitest 測試套件
現代 JavaScript 專案需要符合 Vite 工作流程的快速測試。此技能會引導 Claude、Codex 和 Claude Code 完成 Vitest 設定、mock、覆蓋率、fixtures、篩選、snapshots 和 CI 使用方式。
使用 Turborepo 和 Nx 管理 Monorepo
由 sickn33
大型儲存庫會變得難以在團隊之間建置、測試和共享。此 skill 可指引 monorepo 設定、快取、依賴項、CI 和套件發布。
自動化 DevOps 管線與部署
由 alirezarezvani
DevOps 工作通常需要可重複的管線、基礎架構與部署模式。此技能提供 CI/CD、IaC、部署與營運審查的腳本和參考指南。
協調雲端 DevOps 工作流程
由 sickn33
雲端交付工作通常橫跨許多工具與階段。此技能會將基礎架構、CI/CD、Kubernetes、監控、安全性、成本與復原工作整理成清晰的提示。
協調 DevOps 交付
由 Brownbull
DevOps 工作通常橫跨管線、基礎架構、監控與部署決策。此技能會將這些任務整理成檢查清單、交接事項與推出計畫。
協調 CI 與 PR 工作流程
由 ANcpLua
多步驟開發工作流程很容易遺漏或錯誤重複。此技能會依序安排驗證、審查、提交、CI 復原與 PR 委派,並加入證據檢查點。
設計安全的部署管線
由 wshobson
當核准、測試、部署策略和復原路徑被分開設計時,發布管線經常會失敗。這項技能可協助 Claude、Codex 和 Claude Code 產生具備關卡、驗證與復原計畫的結構化 CI/CD 設計。