similar-code
/similar-code
Find similar implementations and prior art for a code pattern across internal repositories — use when checking whether something already exists internally before building it, or looking for reference implementations to follow.
- Author
- gleanwork ↗
- Repository
- claude-plugins ↗
- Licence
- MIT
- Last repository change
- 29.09.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 29.09.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Find similar implementations and prior art for a code pattern across internal repositories — use when checking whether something already exists internally before building it, or looking for reference implementations to follow.
Original author description
Find similar implementations and prior art for a code pattern across internal repositories — use when checking whether something already exists internally before building it, or looking for reference implementations to follow.
How it works
- Core Principles
- Process
- If No Good Implementations Found
SKILL.md preview
--- name: similar-code description: Find similar implementations and prior art for a code pattern across internal repositories — use when checking whether something already exists internally before building it, or looking for reference implementations to follow. --- # Similar Code Search for similar implementations across the organization to find prior art, alternative approaches, or shared solutions. Determine the pattern or feature from the user's request. If not specified, ask before proceeding. ## Core Principles - **Find the blessed path**: Look for official/platform solutions first - **Compare approaches**: Different solutions have different tradeoffs - **Be skeptical**: Not every implementation is worth following - **Quality over quantity**: 3 vetted implementations beats 10 random matches ## Process ### Phase 1: Search for Direct Implementations Look for the pattern/feature across all repos: ``` code_search "[topic] implementation" code_search "[topic] handler OR service" code_search "[topic] util OR helper" ``` ### Phase 2: Search for Alternative Terms The same concept might be named differently: ``` code_search "[synonym] implementation" code_search "[synonym] service" ``` For example, "rate limiting" might also be called "throttling", "quota", "backpressure". ### Phase 3: Find Shared Libraries Look for centralized implementations: ``` code_search "[topic] package OR library" search "[topic] shared library OR common" ``` ### Phase 4: Find Related Discussions Search for design discussions about this pattern: ``` search "[topic] design doc OR RFC" search "[topic] best practices OR guidelines" ``` ### Phase 5: Vet Each Implementation For each implementation found, evaluate: | Test | ✅ Recommended | ⚠️ Acceptable | ❌ Reject | |------|--------------|-------------|---------| | **Quality** | Clean, tested, well-maintained, follows best practices | Works but has caveats | Hacky, untested, deprecated | | **Maintenance** | Commits in past 3 months | Last commit 3-12 months ago | No activity in 12+ months | | **Adoption** | Deployed, actively used | Small usage, may have issues | Experiments, abandoned PRs | | **Ownership** | Clear maintainer, responds to issues | Works but no clear owner | Orphaned, no maintenance | **Anti-Pattern Signals — reject or warn:** - In `/deprecated/`, `/old/`, `/legacy/` paths - Large commented-out sections - TODOs indicating known issues - Skipped tests, no tests at all - Copy-pasted boilerplate ### Phase 6: Present Vetted Comparison ```markdown # Similar Implementations: [Pattern] ## Vetting Summary | Found | Recommended | Acceptable | Rejected | |-------|-------------|------------|----------| | [X] | [Y] | [Z] | [W] | ## Recommended Solution - **Library**: [name] ([link]) - **Maintained by**: [team/person] - **Status**: Active, [X] commits in past month - **Recommendation**: ⭐ Use this instead of building your own ## Vetted Implementations ### ⭐ [Repo Name] — RECOMMENDED **Quality**: High **Location:** [path] ([link]) **Last Updated**: [date] **Maintainer**: [person/team] **Approach:** [brief description] **Why recommended:** - [specific positive pattern] ### [Repo Name] — ACCEPTABLE **Quality**: Good with caveats **Location:** [path] ([link]) **Last Updated**: [date] **Pros:** [advantage] **Cons:** [limitation] ## Rejected Implementations | Repo | Reason | |------|--------| | [repo] | No commits in 18 months, likely outdated | | [repo] | Prototype code, never production-ready | ## Pattern Analysis | Pattern | Used By | Quality | Recommendation | |---------|---------|---------|----------------| | [Pattern A] | [X] repos | Good | Follow this approach | | [Pattern B] | [Y] repos | Mixed | Avoid unless [condition] | ## Recommendations 1. **Best option**: Use [recommended implementation] because [reason] 2. **If that doesn't fit**: Consider [alternative] for [use case] 3. **Avoid**: Don't follow [anti-pattern] approach ``` ## If No Good Implementations Found ```markdown # Similar Implementations: [Pattern] ## No Recommended Implementations Found The assistant searched for implementations of [pattern] but didn't find any worth recommending. **What was found:** [X] matches, but all were [outdated/low quality/abandoned] **Suggested next steps:** 1. Check for external libraries: [suggestions] 2. Ask in [relevant Slack channel] about approaches 3. If building new, consider making it a shared library ```
Versions
The database has no other skills named similar-code.
Identical content appears in 1 other GitHub folders. We show one copy with the highest score.
Database snapshot: 13.11.2026 · package version 2c2731ef8ed5 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100find-examples
Find usage examples of an API, library, or code pattern across internal repositories — use when looking for how other teams use an internal API, library, or pattern before implementing something new. - 90find-similar-code
Find code similar to a given snippet or description using semantic vector search. Use to discover existing implementations, patterns, reference code, or potential duplication. - 100using-glean-code
Search and analyze internal source code across the organization's repositories — use when asked how something is implemented, where the code for a system lives, who has been working on a codebase, or to find similar patterns across teams. Trigger phrases include how is X… - 90prior-art
Use when researching prior art — implementations, papers, post-mortems, or benchmarks — to build an evidence base for a design or decision. Mines, ranks, and synthesizes what already exists, including what failed. - 100code-search-assistant
Search code repositories for code related to a given code snippet, ranking results by call chain similarity, textual similarity, and functional similarity. Use when finding related code, locating similar implementations, discovering code dependencies, or identifying code that… - 100code-search
Searches GitHub for existing implementations, libraries, or patterns. Use when finding code examples or prior art on a topic during a research session.