refactor-dead-code
Remove unused or unreachable code with safe reference checks.
معلومات المصدر
- المستودع
- sunpar/agentic_development
- آخر نشاط في المصدر
- ٢٢ مايو ٢٠٢٦ في ١٥:٥٦
- لغة SKILL.md المكتشفة
- الإنجليزية
- النجوم
- ٠
- التفرعات
- ٠
خيارات التثبيت
يُحدَّد Prompt الذي يراجع المصدر أولًا بشكل افتراضي. يمكنك التبديل إلى أمر مباشر أو تنزيل نسخة محلية.
مراجعة ملفات المصدر
اقرأ SKILL.md وأي ملفات مرافقة يعرضها SkillsMP قبل أن تقرر التثبيت.
عرض SKILL.md
SKILL.md
تعليمات المصدر · معاينة للقراءة فقط- name
- refactor-dead-code
- description
- Remove unused or unreachable code with safe reference checks.
# Refactor Dead Code
## Trigger
Use when code appears unused and safe to delete.
## Inputs
- Static search results or lints indicating dead symbols.
## Outputs
- Deletions of obsolete symbols and updated references.
## Procedure
1. Confirm usage across repository.
2. Remove dead symbols and imports.
3. Run tests and targeted checks.
## Guardrails
- Do not remove extension points without explicit confirmation.
- Keep public API surfaces unless user approves.
## Success criteria
- No remaining references and tests pass.
## Prefer Superpowers
- Use `test-driven-development` for added safety checks.
## Avoid scope creep
- Keep deletion scope tied to explicit task write set.
عرض على GitHub