Coding & Development✨gemini🌐universal
check-duplication
.opencode/skills/check-duplication/SKILL.md
Use when checking for or pruning duplicate code blocks across source files.
Quick Start
Install this SKILL.md
npx skills add https://github.com/dealfluence/adeu/tree/main/.opencode/skills/check-duplication--- 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`
Repository
168stars
26forks
Details
Related Skills
More coding & development skills you might like
Reticle
Coding & DevelopmentAI agents can generate code, but still struggle to understand what they build. Reticle brings Jev-style machine-native runtime perception to web & desktop applications.
🤖claude🌐universal
1.2k
190
View
agentscope-java
Coding & DevelopmentExpert Java developer skill for AgentScope Java framework - a reactive, message-driven multi-agent system built on Project Reactor. Use when working with reactive programming, LLM integration, agent orchestration, multi-agent systems, or when the user mentions AgentScope, ReActAgent, Mono/Flux, Project Reactor, or Java agent development. Specializes in non-blocking code, tool integration, hooks, pipelines, and production-ready agent applications.
🌐universal
6.0k
1.5k
View
ospec
Coding & DevelopmentDocument-driven OSpec workflow for initialization, change/goal routing, validation, archiving, and durable project knowledge.
✨gemini🤖claude💬gpt🌐universal
524
34
View
misakanet-failure-memory
Coding & Development📚 A zero-dependency, git-backed micro-lesson library for AI Agents to asynchronously share and search verified debugging experience. Python stdlib only. | https://misakanet.org
🤖claude⌨️cursor🌐universal
424
158
View