principle-build-the-lever
ما الذي تفعله
تمنح هذه المهارة وكيلك قاعدة لأتمتة الأعمال المتكررة بأداة يستطيع المراجع إعادة تشغيلها. وهي لمهندسين أمام تغييرات كبيرة ومتكررة أو يصعب التحقق منها.
متى تستخدمها
- ✓عندما يمسّ التغيير ملفات كثيرة بالطريقة نفسها.
- ✓عندما تريد تحليلًا أو فحوصات يستطيع المراجع إعادة تشغيلها.
- ✓عندما يوشك عمل على أن يُنفَّذ يدويًا بينما يستطيع سكربت أن ينفذه بموثوقية.
رابط المهارة
https://github.com/cursor/plugins/blob/main/harness/pstack/claude-code/skills/principle-build-the-lever/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“نحتاج إلى إعادة تسمية هذه الواجهة البرمجية في 200 ملف. ابنِ لنا سكربتًا نعيد تشغيله، بدل تعديلها ملفًا ملفًا.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
ينفذ وكيلك الوحدة الأولى يدويًا ليتعلم النمط، ثم يبني أداة قابلة لإعادة التشغيل مثل أداة تحويل الكود (codemod). ويُثبت صحة الأداة بإعادة تشغيلها على الوحدة نفسها ومقارنة النتيجة بالعمل اليدوي.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
Build the Lever
When the work isn't trivial, build the tool that does it instead of doing it by hand.
A codemod, generator, or script does the work the same way every time and reruns for free. The tool is one artifact a reviewer can read and rerun to check the work. Hand-done changes can only be re-verified by redoing them. A deterministic script turns "trust me" into "run this".
Default to building the lever. Skip it only when the task is trivial, a couple of obvious edits you can see at a glance.
- Do the first unit by hand to learn the recipe, then build the tool. Prove it by rerunning it on that unit and diffing against your hand-done version. Make the lever safe to rerun.
- Codemod or script for edits, generator for repetitive files, a dump-to-sqlite query for analysis, a rerunnable check for verification.
- A deterministic lever beats fan-out. If the tool can process every unit in one pass, run it yourself. Don't fan out delegates to hand-apply what a script can do.
- When you fan work out to subagents, write the lever as a skill they all read: the recipe, the verification contract, and the do-not-touch fences in one artifact. Keep it outside the delegates' write scope so they can't quietly edit the contract.
- Applying this principle produces a file. If you cited it and there is no codemod, script, generator, or delegate skill in the diff, you didn't apply it.
- Commit the lever when the work outlives the session.
The bar is triviality, not repetition. A one-off still earns a lever when the lever is what makes the work checkable. Per the Laziness Protocol, build the smallest script that does or proves the job, never a framework.
Distinct from Encode Lessons in Structure, which makes a recurring instruction a durable guardrail. This is throughput and reviewability on the work in front of you. For scripting the verification itself, see Prove It Works.
الأسئلة الشائعة
متى يمكن أن يتخطى بناء الأداة؟
في الأعمال البسيطة، مثل تعديلين واضحين، يكون العمل اليدوي مقبولًا.
لماذا السكربت أفضل من العمل اليدوي؟
لأنه يكرر الطريقة نفسها في كل مرة، ويستطيع المراجع تشغيله للتحقق من العمل.
ماذا عن وكلاء المساعدة؟
إذا كان السكربت يستطيع إنجاز العمل كله في مرور واحد، فيجب أن يفعل ذلك بدلًا من توزيع العمل على مساعدين.
التفاصيل
الوصف الأصلي من المؤلف
Apply to any non-trivial work, not just bulk work: edits, migrations, analyses, checks. Build the tool that does it or proves it (codemod, script, generator, or a skill your subagents follow) instead of working by hand. The tool is the artifact a reviewer can rerun.
repo: cursor/plugins
الشعبية
- نجوم GitHub
- 15k
- الترتيب
- #10975
- الترخيص
- —
- آخر تحديث
- 31/10/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
advisor
15kيتيح لوكيلك استشارة نموذج ثانٍ أقوى عند نقاط مفصلية، مثل قبل قرار كبير أو عند تعثره في خطأ، إذا فعّلت ذلك.
check-agent-compatibility
15kيُجري فحصاً شاملاً لمدى قدرة وكلاء البرمجة بالذكاء الاصطناعي على تشغيل المستودع والتحقق منه وتوثيقه، ويعيد درجة توافق واحدة مع أهم المشكلات.
cli-for-agents
15kيعلّم وكيلك تصميم أدوات سطر الأوامر أو مراجعتها، حتى يستطيع وكلاء الذكاء الاصطناعي تشغيلها دون مطالبات، مع نصوص مساعدة واضحة وأمثلة.
continual-learning
15kيحافظ على ملاحظاتك في AGENTS.md محدّثة، بتسليم مهمة مراجعة المحادثات السابقة إلى مُحدِّث ذاكرة مخصص.
مهارات مشابهة
diffs
394kيتيح لوكيلك إنتاج فرق تعديلات حقيقي يمكن مشاركته، كرابط عرض أو ملف صورة، بدلاً من ملخص مكتوب يدوياً.
coding-agent
394kيساعد وكيلك على تسليم مهمة برمجة كبيرة إلى Codex أو Claude Code أو OpenCode كعامل في الخلفية، ثم متابعة تقدمها.
gh-issues
394kيساعد وكيلك على إيجاد مشكلات GitHub واختيار ما ستعمل عليه، وفتح طلبات سحب بالإصلاحات، ومتابعة تعليقات المراجعة.