Skip to main content

check-duplication

Use when checking for or pruning duplicate code blocks across source files.

소스 정보

저장소
dealfluence/adeu
최근 소스 활동
2026년 8월 22일 18:56
감지된 SKILL.md 언어
영어
스타
168
포크
25

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
check-duplication
description
Use when checking for or pruning duplicate code blocks across source files.
# Check Code Duplication Skill This skill provides a systematic approach to finding and pruning duplicate code blocks and repeated boilerplate across Python, TypeScript, and JavaScript source files. ## Workflow 1. **Run the Duplication Spotter**: Execute `python scripts/check_code_duplication.py` to identify duplicate code blocks: ```bash uv run python scripts/check_code_duplication.py -m 6 -n 20 ``` 2. **Target High-Score Duplications**: Focus on blocks with high duplication scores (lines $\times$ occurrences) in source modules. 3. **Prune & Deduplicate**: - Extract repeated boilerplate or constructor patterns into shared helper functions. - Collapse repeated dictionary/object constructions into helper functions. - Maintain 3+ call sites requirement for new abstractions. 4. **Verify Behavior**: Always run test suites to ensure zero functional regressions: - Python: `uv run pytest` & `uv run mypy src` - Node: `npm run build && npm test` - LangChain: `uv run pytest` in `langchain`
GitHub에서 보기