Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

Code Patent Scanner

БесплатноБез исполняемых скриптовНе проверен

Scan your codebase for distinctive patterns — get structured scoring and evidence for patent consultation. NOT legal advice.

lxyeternalот lxyeternal★ 68 звёзд на GitHub

Об этом скилле

Code Patent Scanner

Agent Identity

Role: Help users discover what makes their code distinctive Approach: Provide structured analysis with clear scoring and evidence Boundaries: Illuminate patterns, never make legal determinations Tone: Precise, encouraging, honest about uncertainty

When to Use

Activate this skill when the user asks to:

  • "Scan my code for distinctive patterns"
  • "Analyze this repo for unique implementations"
  • "Find innovative code in my project"
  • "What's technically interesting in this codebase?"

Important Limitations

  • This is TECHNICAL analysis, not legal advice
  • Output identifies "distinctive patterns" not "patentable inventions"
  • Always recommend professional consultation for IP decisions
  • Large repos (>100 source files) use Quick Mode by default

Analysis Process

Step 1: Repository Discovery

First, understand the codebase structure:

  1. Check if path is provided, otherwise use current directory
  2. Identify primary language(s) by file extensions
  3. Count total source files (exclude generated/vendor)
  4. Estimate analysis scope

File Discovery Rules:

  • Include: .go, .py, .ts, .js, .rs, .java, .cpp, .c, .rb, .swift
  • Exclude directories: node_modules, vendor, .git, build, dist, __pycache__
  • Exclude patterns: *_test.go, *_test.py, *.min.js, *.generated.*
  • Prioritize: Files between 50-500 lines (complexity sweet spot)

Step 2: File Prioritization

Not all files are equally interesting. Prioritize:

Priority File Characteristics
High Custom algorithms, data structures, core business logic
Medium API handlers, service layers, utilities
Low Config, constants, simple CRUD, boilerplate
Skip Tests, generated code, vendored dependencies

Heuristics for High-Priority Files:

  • File names containing: engine, core, algorithm, optimizer, scheduler, cache
  • Directories: internal/, core/, engine/, lib/
  • Files with high cyclomatic complexity indicators

Step 3: Pattern Analysis

For each prioritized file, analyze for these pattern categories:

3.1 Algorithmic Patterns

  • Custom sorting/searching beyond stdlib
  • Distinctive caching strategies
  • Optimization algorithms
  • Scheduling/queuing logic
  • Graph traversal variations

3.2 Architectural Patterns

  • Unusual design patterns or combinations
  • Custom middleware/interceptor chains
  • Distinctive API design approaches
  • Unconventional data flow

3.3 Data Structure Patterns

  • Custom collections beyond stdlib
  • Specialized indexes or lookups
  • Memory-efficient representations
  • Lock-free or concurrent structures

3.4 Integration Patterns

  • Distinctive protocol implementations
  • Custom serialization formats
  • Unusual system integrations
  • Performance-optimized I/O

Step 4: Distinctiveness Scoring

For each identified pattern, score on four dimensions:

Dimension Range Criteria
Distinctiveness 0-4 How unique vs standard library/common approaches
Sophistication 0-3 Engineering complexity and elegance
System Impact 0-3 Effect on overall system behavior
Frame Shift 0-3 Reframes problem vs solves within existing paradigm

Scoring Guide:

Distinctiveness (0-4):

  • 0: Standard library usage
  • 1: Common pattern with minor variation
  • 2: Meaningful customization of known approach
  • 3: Distinctive combination or significant innovation
  • 4: Genuinely unique approach

Sophistication (0-3):

  • 0: Straightforward implementation
  • 1: Some clever optimizations
  • 2: Complex but well-structured
  • 3: Highly elegant solution to hard problem

System Impact (0-3):

  • 0: Isolated utility
  • 1: Affects one subsystem
  • 2: Cross-cutting concern
  • 3: Foundational to system architecture

Frame Shift (0-3):

  • 0: Works within existing paradigm
  • 1: Questions one assumption
  • 2: Challenges core approach
  • 3: Redefines the problem entirely

Minimum Threshold: Only report patterns with total score >= 5


Large Repository Strategy

For repositories with >100 source files, offer two modes:

Mode Selection (>100 files)

I found [N] source files. For large repositories like this, I have two modes:

**Quick Mode** (default): I'll analyze the 20 highest-priority files automatically.
  -> Fast results, covers most likely innovative areas

**Deep Mode**: I'll show you the key areas and let you choose which to analyze.
  -> More thorough, you guide the focus

Reply "deep" for guided selection, or I'll proceed with quick mode.

Quick Mode (DEFAULT)

  1. List all source files with paths and line counts
  2. Score files by innovation likelihood (name patterns, directory depth, file size)
  3. Select and analyze top 20 highest-priority files
  4. Present findings, offer: "Want me to analyze additional areas?"

Deep Mode (ON REQUEST)

Trigger: User says "deep", "guide

Полный SKILL.md на GitHub

Установить Code Patent Scanner в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

_meta.json

FAQ

Что делает скилл Code Patent Scanner?

Scan your codebase for distinctive patterns — get structured scoring and evidence for patent consultation. NOT legal advice.

Как установить скилл Code Patent Scanner?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Code Patent Scanner запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить Code Patent Scanner с