Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Scan Code Patent Patterns

ASecurity

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

19 stars
0 votes
0 copies
1 views
Added 9/19/2026
ai-agentsgojavaswiftnodegitapiperformance

Works with

api

Security Analysis

A100/100

Scanned 9/19/2026

Install to Claude Code

$npx -y skills add rondoflow/rondoflow --skill scan-code-patent-patterns --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Scan Code Patent Patterns?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Scan Code Patent Patterns
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/rondoflow-scan-code-patent-patterns/badge)](https://www.skillsdirectory.com/skills/rondoflow-scan-code-patent-patterns)

More formats (shields.io, HTML) on the badges page.

Download with Pro
Files
SKILL.md
---
name: scan-code-patent-patterns
description: "Scan your codebase for distinctive patterns — get structured scoring and evidence for patent consultation. NOT legal advice."
category: "Data & Analytics"
author: community
version: "1.1.0"
icon: chart-bar
---

# 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", "guided", "thorough", or explicitly requests area selection.

1. Categorize files by directory/module
2. Identify high-priority candidates (max 5 areas)
3. Present areas to user and wait for selection
4. Analyze selected area, report findings
5. Ask if user wants to continue with another area

---

## Output Format

### JSON Report (Primary)

```json
{
  "scan_metadata": {
    "repository": "path/to/repo",
    "scan_date": "2026-02-01T10:30:00Z",
    "files_analyzed": 47,
    "files_skipped": 123
  },
  "patterns": [
    {
      "pattern_id": "unique-identifier",
      "title": "Descriptive Title",
      "category": "algorithmic|architectural|data-structure|integration",
      "description": "What this pattern does",
      "technical_detail": "How it works",
      "source_files": ["path/to/file.go:45-120"],
      "score": {
        "distinctiveness": 3,
        "sophistication": 2,
        "system_impact": 2,
        "frame_shift": 1,
        "total": 8
      },
      "why_distinctive": "What makes this stand out"
    }
  ],
  "summary": {
    "total_patterns": 7,
    "by_category": {
      "algorithmic": 3,
      "architectural": 2,
      "data-structure": 1,
      "integration": 1
    },
    "average_score": 7.2
  }
}
```

### Share Card (Viral Format)

**Standard Format** (use by default - renders everywhere):

```markdown
## [Repository Name] - Code Patent Scanner Results

**[N] Distinctive Patterns Found**

| Pattern | Score |
|---------|-------|
| Pattern Name 1 | X/13 |
| Pattern Name 2 | X/13 |

*Analyzed with [code-patent-scanner](https://obviouslynot.ai) from obviouslynot.ai*
```

### High-Value Pattern Detected

For patterns scoring 8+/13, include:

> **Strong distinctive signal!** Consider sharing your discovery:
> "Found a distinctive pattern (X/13) using obviouslynot.ai patent tools 🔬"

---

## Next Steps (Required in All Outputs)

Every scan output MUST end with:

```markdown
## Next Steps

1. **Review** - Prioritize patterns scoring >=8
2. **Validate** - Run `code-patent-validator` for search strategies
3. **Document** - Save commits, benchmarks, design docs
4. **Consult** - For high-value patterns, consult patent attorney

*Rescan monthly as codebase evolves. Last scanned: [date]*
```

---

## Terminology Rules (MANDATORY)

### Never Use
- "patentable"
- "novel" (in legal sense)
- "non-obvious"
- "prior art"
- "claims"
- "invention" (as noun)
- "you should file"

### Always Use Instead
- "distinctive"
- "unique"
- "sophisticated"
- "original"
- "innovative"
- "technical pattern"
- "implementation approach"

---

## Required Disclaimer

ALWAYS include at the end of ANY output:

> **Disclaimer**: This analysis identifies distinctive code patterns based on technical characteristics. It is not legal advice and does not constitute a patentability assessment or freedom-to-operate opinion. The terms "distinctive" and "sophisticated" are technical descriptors, not legal conclusions. Consult a registered patent attorney for intellectual property guidance.

---

## Error Handling

**Empty Repository**:
```
I couldn't find source files to analyze. Is the path correct? Does it contain code files (.go, .py, .ts, etc.)?
```

**No Patterns Found**:
```
No patterns scored above threshold (5/13). This may mean the distinctiveness is in execution, not architecture. Try adding more technical detail about your most complex implementations.
```

---

## Related Skills

- **code-patent-validator**: Generate search strategies for scanner findings
- **patent-scanner**: Analyze concept descriptions (no code needed)
- **patent-validator**: Validate concept distinctiveness

---

*Built by Obviously Not - Tools for thought, not conclusions.*

Attribution

rondoflowrondoflow
View sourceMore from rondoflow →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Ultra-compressed communication mode that cuts output tokens while keeping technical accuracy. Levels: lite, full, ultra and the wenyan variants. Use for /caveman, "caveman mode", "talk like caveman", "be brief" or "less tokens".

1074701 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

693621 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3351 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

691 votes

math-skill

A comprehensive mathematical reasoning skill for AI assistants — handles arithmetic to research-level problems with rigorous step-by-step reasoning, systematic verification, and transparent uncertainty handling

381 votes
View all in ai-agents →