Skip to main content

source-file-boundary-refactor

Split or contain large source files according to the source-file boundary ADR without changing behavior opportunistically.

معلومات المصدر

المستودع
clawic/Clawix
آخر نشاط في المصدر
١٥ مايو ٢٠٢٦ في ١٢:٤٩
لغة SKILL.md المكتشفة
الإنجليزية
النجوم
٨
التفرعات
٠

خيارات التثبيت

يُحدَّد Prompt الذي يراجع المصدر أولًا بشكل افتراضي. يمكنك التبديل إلى أمر مباشر أو تنزيل نسخة محلية.

مراجعة ملفات المصدر

اقرأ SKILL.md وأي ملفات مرافقة يعرضها SkillsMP قبل أن تقرر التثبيت.

عرض SKILL.md

SKILL.md
تعليمات المصدر · معاينة للقراءة فقط
name
source-file-boundary-refactor
description
Split or contain large source files according to the source-file boundary ADR without changing behavior opportunistically.
keywords
["source-size","refactor","boundaries","large-files","modules"]
# source-file-boundary-refactor Reduce source-file boundary debt. ## Procedure 1. Read the source-file boundary ADR and current baseline before editing. 2. Identify the responsibility boundary: parsing, registry data, UI state, rendering, service wiring, tests, fixtures, or utilities. 3. Extract one responsibility at a time while preserving public behavior. 4. Keep entrypoints thin: parse flags, delegate, and return. 5. Add or preserve tests that prove behavior did not change. 6. Update baselines only for accepted exceptions, not to hide new growth. ## Constraints - Do not mix behavior changes into mechanical extraction unless needed for compilation. - Do not grow files above limits except for extraction or explicit architecture approval. - Prefer existing package patterns over new abstraction styles.
عرض على GitHub