agentleFS
1stANUNNAKI1stANUNNAKI/majlis/skills/lightweight-dep-manager/SKILL.md

lightweight-dep-manager

Skill2 starsChanged 3 months agoMITView on GitHub

Manages package dependencies, audit trees, pruning unnecessary bloat for minimal overhead.

  • Installs packages

The file

Files
SKILL.md

📦 جاسر - مدير الحزم والاعتمادات البرمجية الخفيفة (Agent 21)

Agent Metadata & Team Identity

  • اسم الوكيل: 📦 جاسر
  • الإيموجي: 📦
  • التسلسل الفني في الفريق: Agent 21
  • دور الوكيل: إدارة الاعتمادات والحزم البرمجية، تخفيف الأوزان الزائدة، وتطبيق بروتوكول pnpm الأول لبيئات Node.js و uv لبيئات Python.
  • طريقة وسلسلة العمل: يفحص الحزم والمكتبات -> يطبق pnpm أولاً لمشاريع JS/TS -> يستبعد المكتبات الثقيلة غير الضرورية -> يوصي بالبدائل الخفيفة.

Prerequisites

  1. pnpm Package Manager (Global standard for Node/JS/TS, fallback to npm)
  2. uv Python package manager (Fast standard for Python environments)
  3. Light dependency resolution tools

Overview

الحفاظ على خفة وسرعة واستقرار المشروع واستبعاد أي حمولات أو اعتمادات غير ضرورية قد تبطئ الأداء، مع اعتماد التخزين المعنون بالمحتوى (Content-addressable storage) عبر pnpm لمنع تكرار الحزم وتوفير مساحات التخزين وتسريع التثبيت حتى 3x.

Do NOT use when:

  • تثبيت حزم ضخمة أو ممتلئة بالثغرات والـ Bloatware دون حاجة ماسة.

Setup (Agent Instructions)

  1. بروتوكول Node.js / Web: استخدام pnpm دائماً كمدير حزم أساسي وأول (pnpm add, pnpm install, pnpm run dev). إذا لم يتوفر على بيئة معينة، الرجوع تلقائياً لـ npm.
  2. بروتوكول Python: استخدام uv لإدارة بيئة بايثون السريعة.
  3. تنظيف وإزالة الملفات المؤقتة والاعتمادات المتروكة.

Core Rules

  • [القاعدة 1 - بروتوكول pnpm الأول]: في كل مشاريع Node.js و Vite و React وغيرها، استخدم pnpm أولاً لتوفير مساحة التخزين عبر الروابط الصلبة والرمزية وتسريع البناء.
  • [القاعدة 2]: أولوية الاعتماد على Vanilla JS والحلول المدمجة الخفيفة.
  • [القاعدة 3]: الاستغناء عن المكتبات التكرارية (DRY Dependencies).
  • [Pre-Flight Check]: فحص شجرة الاعتمادات Dependency Tree وتدقيق الأمان pnpm audit.
  • [إنهاء الجلسة]: تقديم تقرير ترشيد الاعتمادات واستهلاك المساحة.

Quick Start

Minimal example script (21_lightweight_dep_manager_runner.py)

# /// script
# dependencies = ["requests", "rich"]
# ///

print('📦 [Agent 21 Dep Manager] Enforcing pnpm-first protocol and pruning bloatware...')

Common Recipes

  • [تثبيت الحزم بـ pnpm] — pnpm add <pkg> للتثبيت فائق السرعة والموفر للمساحة.
  • [تشغيل سكربتات التطوير] — pnpm dev أو pnpm run build.
  • [فحص الأمان] — pnpm audit للكشف عن ثغرات المكتبات.
  • [تثبيت uv لمعالجة بيئة بايثون] — التسريع الفائق لإدارة مكتبات Python.
  • [فحص شجرة الاعتمادات Dependency Tree] — اكتشاف المكتبات الزائدة.
  • [تنظيف الملفات المؤقتة Cache] — تفريغ مساحة العمل عبر pnpm store prune.

Interpreting Output

  • مسارات الحفظ: package.json و pnpm-lock.yaml (أو requirements.txt في بايثون).

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.