pnpm

โดย sanity-io

ตัวจัดการแพ็กเกจ Node.js ที่มีการแก้ไขการพึ่งพาอย่างเข้มงวด ใช้เมื่อรันคำสั่งเฉพาะของ pnpm, กำหนดค่า workspaces, หรือจัดการการพึ่งพาด้วย…

npx skills add https://github.com/sanity-io/next-sanity --skill pnpm

pnpm is a fast, disk space efficient package manager. It uses a content-addressable store to deduplicate packages across all projects on a machine, saving significant disk space. pnpm enforces strict dependency resolution by default, preventing phantom dependencies. Configuration should preferably be placed in pnpm-workspace.yaml for pnpm-specific settings.

Important: When working with pnpm projects, agents should check for pnpm-workspace.yaml and .npmrc files to understand workspace structure and configuration. Always use --frozen-lockfile in CI environments.

The skill is based on pnpm 10.x, generated at 2026-01-28.

Core

TopicDescriptionReference
CLI CommandsInstall, add, remove, update, run, exec, dlx, and workspace commandscore-cli
Configurationpnpm-workspace.yaml, .npmrc settings, and package.json fieldscore-config
WorkspacesMonorepo support with filtering, workspace protocol, and shared lockfilecore-workspaces
StoreContent-addressable storage, hard links, and disk efficiencycore-store

Features

TopicDescriptionReference
CatalogsCentralized dependency version management for workspacesfeatures-catalogs
OverridesForce specific versions of dependencies including transitivefeatures-overrides
PatchesModify third-party packages with custom fixesfeatures-patches
AliasesInstall packages under custom names using npm: protocolfeatures-aliases
HooksCustomize resolution with .pnpmfile.cjs hooksfeatures-hooks
Peer DependenciesAuto-install, strict mode, and dependency rulesfeatures-peer-deps

Best Practices

TopicDescriptionReference
CI/CD SetupGitHub Actions, GitLab CI, Docker, and caching strategiesbest-practices-ci
MigrationMigrating from npm/Yarn, handling phantom deps, monorepo migrationbest-practices-migration
PerformanceInstall optimizations, store caching, workspace parallelizationbest-practices-performance

Skills เพิ่มเติมจาก sanity-io

Agent Development
sanity-io
ทักษะนี้ควรใช้เมื่อผู้ใช้ขอให้ "สร้างเอเจนต์", "เพิ่มเอเจนต์", "เขียนซับเอเจนต์", "ส่วนนำของเอเจนต์", "เมื่อใดควรใช้คำอธิบาย", "เอเจนต์…
code-review-and-quality
sanity-io
ดำเนินการตรวจสอบโค้ดแบบหลายมิติ ใช้ก่อนการรวมการเปลี่ยนแปลงใดๆ ใช้เมื่อตรวจสอบโค้ดที่เขียนโดยตนเอง เอเจนต์อื่น หรือมนุษย์ ใช้เมื่อคุณต้องการ...
code-simplification
sanity-io
ทำให้โค้ดง่ายขึ้นเพื่อความชัดเจน ใช้เมื่อปรับโครงสร้างโค้ดเพื่อความชัดเจนโดยไม่เปลี่ยนพฤติกรรม ใช้เมื่อโค้ดทำงานได้แต่ยากต่อการอ่าน บำรุงรักษา หรือขยายความ…
Command Development
sanity-io
ทักษะนี้ควรใช้เมื่อผู้ใช้ขอให้ "สร้างคำสั่งแบบ slash", "เพิ่มคำสั่ง", "เขียนคำสั่งที่กำหนดเอง", "กำหนดอาร์กิวเมนต์ของคำสั่ง", "ใช้คำสั่ง…
content-experimentation-best-practices
sanity-io
แนวทางที่มีโครงสร้างสำหรับการออกแบบ ดำเนินการ และวิเคราะห์การทดสอบเนื้อหาเพื่อปรับปรุงอัตราการแปลงและการมีส่วนร่วม ครอบคลุมกรอบสมมติฐาน การเลือกเมตริก การคำนวณขนาดตัวอย่าง และการทดสอบนัยสำคัญทางสถิติสำหรับการทดสอบแบบ A/B และหลายตัวแปร รวมถึงแหล่งข้อมูลโดยละเอียดเกี่ยวกับค่า p ช่วงความเชื่อมั่น การวิเคราะห์กำลัง และวิธีแบบเบย์สำหรับการตีความผลลัพธ์ มีรูปแบบการบูรณาการ CMS สำหรับจัดการตัวแปรในระดับฟิลด์และการเชื่อมต่อภายนอก...
content-modeling-best-practices
sanity-io
แนวทางการสร้างแบบจำลองเนื้อหาที่มีโครงสร้างสำหรับการออกแบบสคีมา ความสามารถในการนำกลับมาใช้ใหม่ และการส่งมอบเนื้อหาหลายช่องทาง ครอบคลุมหลักการสำคัญ: การจัดการเนื้อหาในฐานะข้อมูลมากกว่าหน้าเว็บ การรักษาแหล่งข้อมูลเดียวที่เชื่อถือได้ การออกแบบสำหรับช่องทางในอนาคต และการปรับปรุงขั้นตอนการทำงานของผู้เขียน รวมถึงกรอบการตัดสินใจสำหรับการอ้างอิงเทียบกับวัตถุที่ฝังตัว การแยกส่วนความรับผิดชอบ และรูปแบบการนำเนื้อหากลับมาใช้ใหม่ ให้คำแนะนำด้านอนุกรมวิธานและการจำแนกประเภทสำหรับแนวทางแบบราบ ลำดับชั้น และแบบแง่มุม ใช้ได้กับ...
create-agent-with-sanity-context
sanity-io
สร้างเอเจนต์ AI ที่สามารถเข้าถึงเนื้อหา Sanity อย่างมีโครงสร้างผ่าน Sanity Context ใช้เมื่อตั้งค่าแชทบอทที่ขับเคลื่อนด้วย Sanity หรือเชื่อมต่อผู้ช่วย AI เข้ากับ Sanity…
dial-your-context
sanity-io
เซสชันแบบโต้ตอบเพื่อสร้างเนื้อหาฟิลด์คำแนะนำสำหรับเซิร์ฟเวอร์ Sanity Context MCP ใช้ทักษะนี้เมื่อผู้ใช้พูดถึงการปรับแต่งบริบทของเอเจนต์…