Agent skill
deps-npm
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/deps-npm
SKILL.md
📦 Deps NPM
npm dependency management ve best practices.
📋 package.json Best Practices
{
"name": "my-app",
"version": "1.0.0",
"engines": { "node": ">=20.0.0" },
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"lint": "eslint .",
"test": "vitest"
}
}
🔒 Version Control
| Prefix | Anlamı | Örnek |
|---|---|---|
^1.2.3 |
Minor updates OK | 1.x.x |
~1.2.3 |
Patch only | 1.2.x |
1.2.3 |
Exact version | 1.2.3 |
# Lock file ZORUNLU
npm ci # package-lock.json kullan
📊 Dependency Types
{
"dependencies": {}, // Production
"devDependencies": {}, // Development only
"peerDependencies": {} // Consumer provides
}
Deps NPM v1.1 - Enhanced
🔄 Workflow
Kaynak: NPM Security Best Practices
Aşama 1: Audit & Analysis
- Lockfile:
package-lock.jsonvar ve güncel mi? - Security:
npm auditçalıştır ve kritik açıkları gider. - Licenses: Production bağımlılıklarının lisanslarını kontrol et.
Aşama 2: Update Strategy
- Minor/Patch:
npm outdatedile güvenli güncellemeleri yap. - Major: Breaking change'leri release note'lardan oku ve tek tek güncelle.
- Clean: Kullanılmayan paketleri
depcheckile bul ve sil.
Aşama 3: CI/CD Protection
- Immutable: CI'da mutlaka
npm cikullan (aslanpm installdeğil). - Vulnerability: Pipeline'a audit step ekle (
npm audit --audit-level=high).
Kontrol Noktaları
| Aşama | Doğrulama |
|---|---|
| 1 | node_modules silinip npm ci yapılınca proje çalışıyor mu? |
| 2 | Production build, devDependencies olmadan çalışıyor mu? |
| 3 | Tüm versiyonlar 'Exact' veya 'Tilde/Caret' stratejisine uygun mu? |
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?