tech-debt
ما الذي تفعله
تفحص هذه المهارة قاعدة الشيفرة بحثاً عن علامات الدين التقني، وتصنف كل نتيجة في فئة، وتحتفظ بقائمة لأهم العناصر. وهي موجهة للمطورين وقادة الفرق الذين يريدون تخطيط أعمال التنظيف.
متى تستخدمها
- ✓عندما يريد الفريق فحص الشيفرة بحثاً عن مواضع فوضوية أو خطرة.
- ✓عندما يحتاج المطور إلى إضافة عنصر دين معروف إلى السجل يدوياً.
- ✓عندما يحتاج القائد إلى ملخص لحالة الدين وأولوياته للتخطيط.
رابط المهارة
https://github.com/Donchitos/Claude-Code-Game-Studios/blob/main/.claude/skills/tech-debt/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“افحص قاعدة الشيفرة بحثاً عن الدين التقني، وأخبرني بالعناصر التي يجب إصلاحها أولاً.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
تبحث المهارة في الشيفرة عن علامات مثل TODO وFIXME وHACK، وتعلّم الملفات والدوال الطويلة جداً، وتصنف كل نتيجة في فئة دين. تحتفظ بالسجل، ويمكنها إعادة ترتيبه أو إنتاج تقرير.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
!bash "${CLAUDE_SKILL_DIR}/../../hooks/yaml-helper.sh" resolve_config --keys automation,workflow
Tech Debt
Every AskUserQuestion call follows .claude/docs/automation-modes.md
(collaborative asks always · guided major-only · autonomous logs and proceeds;
automation_always_ask categories always prompt).
Phase 1: Parse Subcommand
Determine the mode from the argument:
scan— Scan the codebase for tech debt indicatorsadd— Add a new tech debt entry manuallyprioritize— Re-prioritize the existing debt registerreport— Generate a summary report of current debt status
If no subcommand is provided, output usage and stop. Verdict: FAIL — missing required subcommand.
Phase 2A: Scan Mode
Search the code root (resolve per .claude/docs/code-root-resolution.md:
src/, Assets/ or Source/ by engine) for debt indicators:
TODOcomments (count and categorize)FIXMEcomments (these are bugs disguised as debt)HACKcomments (workarounds that need proper solutions)@deprecatedmarkers- Duplicated code blocks (similar patterns in multiple files)
- Files over 500 lines (potential god objects)
- Functions over 50 lines (potential complexity)
Categorize each finding:
- Architecture Debt: Wrong abstractions, missing patterns, coupling issues
- Code Quality Debt: Duplication, complexity, naming, missing types
- Test Debt: Missing tests, flaky tests, untested edge cases
- Documentation Debt: Missing docs, outdated docs, undocumented APIs
- Dependency Debt: Outdated packages, deprecated APIs, version conflicts
- Performance Debt: Known slow paths, unoptimized queries, memory issues
Before presenting anything, establish that there was something to scan.
Count the source files the scan actually covered. If the code root is
unresolved, report NOT ASSESSED — code root unresolved and stop as below. If
that count is zero — the code root is absent, or holds no source files — report:
NOT ASSESSED — no source files to scan. The code root contains no code, so "no debt indicators found" would be a statement about an empty search, not about the codebase. Run this once implementation is under way.
and stop. Do not write to the register and do not emit a COMPLETE verdict.
The distinction is the whole point of the scan: zero findings over 400 files is a clean codebase; zero findings over zero files is no information at all. Rendering both as "COMPLETE — scan findings written to register" reads as the first. State the denominator whenever findings are reported, including when it is large and the count is genuinely zero.
Present the findings to the user.
Ask: "May I write these findings to docs/tech-debt-register.md?"
If yes, update the register, never overwriting it. Match before appending: a
finding with the same file and the same kind of debt as an existing Open entry
updates that entry instead of adding a duplicate. An existing Open entry whose
pattern is no longer in its file is proposed as Resolved [date] — list those and
include them in the same approval. Verdict: COMPLETE — scan findings written to register.
If no, stop here. Verdict: BLOCKED — user declined write.
Phase 2B: Add Mode
Ask the user for the description and affected files (plain text prompts).
Run as a subagent? lead-programmer preloads this skill, and a subagent has
no AskUserQuestion. Return the three questions below (category, effort,
impact) in one reply, each as a short list of its options, and stop: whoever
called you asks the user. Nothing goes into the register until the answers
come back.
Then use AskUserQuestion to collect the category:
- Prompt: "What category does this tech debt belong to?"
- Options:
[A] Architecture Debt — wrong abstractions, missing patterns, coupling issues[B] Code Quality Debt — duplication, complexity, naming, missing types[C] Test Debt — missing tests, flaky tests, untested edge cases[D] Documentation Debt — missing/outdated docs, undocumented APIs[E] Dependency Debt — outdated packages, deprecated APIs, version conflicts[F] Performance Debt — known slow paths, memory issues, unoptimized queries
Then use AskUserQuestion to collect the estimated fix effort:
- Prompt: "What is the estimated effort to fix this item?"
- Options:
[A] S — Small (under 1 day)[B] M — Medium (1–3 days)[C] L — Large (3–7 days)- `[D
الأسئلة الشائعة
ماذا تبحث عنه؟
تبحث عن تعليقات TODO وFIXME وHACK، والعلامات المهجورة، والشيفرة المكررة، والملفات والدوال الطويلة جداً.
لماذا تُعامل علامة FIXME بشكل مختلف؟
علامة FIXME تشير إلى شيفرة معروف أنها معطلة، لذا تعاملها المهارة كخطأ متخفٍّ في شكل دين.
هل أستطيع إضافة عناصر الدين بنفسي؟
نعم. وضع الإضافة يتيح لك إدخال عنصر دين يدوياً.
التفاصيل
الوصف الأصلي من المؤلف
Track, categorize and prioritize technical debt across the codebase — scans for debt indicators, maintains a register.
الشعبية
- نجوم GitHub
- 33k
- الترتيب
- #8500
- الترخيص
- MIT
- آخر تحديث
- 18/10/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
adopt
33kيتحقق من أن وثائق مشروع لعبة قائم تتبع صيغ قالب الاستوديو، ثم يكتب خطة ترحيل مرقمة لسد أي فجوات.
architecture-decision
33kيكتب سجل قرار معماري لاختيار تقني، يغطي السياق والبدائل والعواقب، ويراجعه الأدوار التقنية المناسبة.
architecture-review
33kيتحقق من أن قراراتك التقنية تغطي كل متطلبات التصميم، ولا تتعارض، وتناسب إصدار المحرك، مع حكم واضح بالنجاح أو الملاحظة.
art-bible
33kيكتب كتاب الفن الذي يحدد الهوية البصرية للعبة، حتى تتبع إنتاج الأصول قواعد أسلوب واحدة واضحة.
مهارات مشابهة
diffs
394kيتيح لوكيلك إنتاج فرق تعديلات حقيقي يمكن مشاركته، كرابط عرض أو ملف صورة، بدلاً من ملخص مكتوب يدوياً.
coding-agent
394kيساعد وكيلك على تسليم مهمة برمجة كبيرة إلى Codex أو Claude Code أو OpenCode كعامل في الخلفية، ثم متابعة تقدمها.
gh-issues
394kيساعد وكيلك على إيجاد مشكلات GitHub واختيار ما ستعمل عليه، وفتح طلبات سحب بالإصلاحات، ومتابعة تعليقات المراجعة.