Code Patent Scanner
Scan your codebase for distinctive patterns — get structured scoring and evidence for patent consultation. NOT legal advice.
Scan your codebase for distinctive patterns — get structured scoring and evidence for patent consultation. NOT legal advice.
Real data. Real impact.
Growing
Developers
Per week
Open source
Skills give you superpowers. Install in 30 seconds.
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 Safety: This skill operates locally. It does not transmit code or analysis results to any external service. It does not modify, delete, or write any files.
This skill incorporates patterns from patent attorney John Branch:
"I don't need to see the code to draft claims. I need to understand what the invention IS." — John Branch
Why this matters: Broad claims are harder to design around. Implementation details limit claim scope. Focus on the INVENTION, not the IMPLEMENTATION.
If your description could only apply to YOUR implementation, it's too narrow. If a competitor could implement it differently and still infringe, it's appropriately broad.
When analyzing code, abstract from implementation to inventive concept:
| Implementation (Skip) | Abstraction (Use) |
|---|---|
| "calls bcrypt.compare()" | "applies cryptographic one-way function" |
| "stores in PostgreSQL" | "persists to durable storage" |
| "uses Redis for caching" | "maintains transient state in memory store" |
| "sends HTTP POST request" | "transmits data via network protocol" |
| "parses JSON response" | "deserializes structured data format" |
Enablement preservation: Keep both abstract and concrete references:
abstract_mechanism: "applies cryptographic one-way function"concrete_reference: "bcrypt.compare() at auth/verify.go:45"Activate this skill when the user asks to:
First, understand the codebase structure:
File Discovery Rules:
.go, .py, .ts, .js, .rs, .java, .cpp, .c, .rb, .swiftnode_modules, vendor, .git, build, dist, __pycache__*_test.go, *_test.py, *.min.js, *.generated.*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:
engine, core, algorithm, optimizer, scheduler, cacheinternal/, core/, engine/, lib/For each prioritized file, analyze for these pattern categories:
For each pattern, verify abstraction level:
If your description mentions specific libraries, frameworks, or implementation details, abstract up one level. Keep both abstract and concrete references.
Structure each pattern as:
| Element | Question |
|---|---|
| Problem | What specific technical limitation exists? |
| Solution | How does this approach address it (explain HOW)? |
| Benefit | What measurable advantage results? |
For high-scoring patterns (≥8), generate three claim framings:
Example (same pattern, three angles):
Pattern: Credential caching with cryptographic session binding
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):
Sophistication (0-3):
System Impact (0-3):
Frame Shift (0-3):
Minimum Threshold: Only report patterns with total score >= 8
In addition to the distinctiveness score, assess patent value signals:
| Signal | Range | Criteria |
|---|---|---|
| Market Demand | low/medium/high | Would customers pay for this capability? |
| Competitive Value | low/medium/high | Is this worth disclosing via patent? |
| Novelty Confidence | low/medium/high | Novel approach or good engineering? |
Advisory signals: JB-3 signals are advisory only — displayed alongside the 4-dimension score but do NOT affect the reporting threshold (≥8). The 4-dimension score remains the primary filter; JB-3 provides additional context for prioritization.
Scoring Guide:
For repositories with >100 source files, offer two modes:
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.
Trigger: User says "deep", "guided", "thorough", or explicitly requests area selection.
{ "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", "problem_solution_benefit": { "problem": "Specific technical limitation (e.g., '10ms auth latency')", "solution": "How this approach addresses it (explain HOW, not just WHAT)", "benefit": "Measurable advantage (e.g., 'reduces p99 to <2ms')" }, "patent_signals": { "market_demand": "low|medium|high", "competitive_value": "low|medium|high", "novelty_confidence": "low|medium|high" }, "_claim_angles_note": "Always present: only patterns >=8 are reported, claim_angles generated for all >=8", "claim_angles": [ "Method for [verb]ing comprising...", "System comprising [component] configured to...", "Apparatus for [function] including..." ], "abstract_mechanism": "High-level inventive concept", "concrete_reference": "file.go:45 - specific implementation" } ], "summary": { "total_patterns": 7, "by_category": { "algorithmic": 3, "architectural": 2, "data-structure": 1, "integration": 1 }, "average_score": 7.2 } }
Warning: The generated shareable text may contain sensitive information derived from your source code. Review it carefully before sharing.
Standard Format (use by default - renders everywhere):
## [Repository Name] - Code Patent Scanner Results[N] Distinctive Patterns Found
Pattern Score Signals Pattern Name 1 X/13 🟢 Market 🟡 Competitive 🟢 Novelty Pattern Name 2 X/13 🟡 Market 🟢 Competitive 🟡 Novelty Analyzed with code-patent-scanner from obviouslynot.ai
Signal indicators: 🟢 = high, 🟡 = medium, ⚪ = low
For patterns scoring 8+/13, include:
Strong distinctive signal! Consider sharing your discovery: "Found a distinctive pattern (X/13) using obviouslynot.ai patent tools 🔬"
Every scan output MUST end with:
## Next Steps
- Review - Prioritize patterns scoring >=8
- Validate - Run
for search strategiescode-patent-validator- Document - Save commits, benchmarks, design docs
- Consult - For high-value patterns, consult patent attorney
Rescan monthly as codebase evolves. Last scanned: [date]
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.
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 (8/13). This may mean the distinctiveness is in execution, not architecture. Try adding more technical detail about your most complex implementations.
Built by Obviously Not - Tools for thought, not conclusions.
No automatic installation available. Please visit the source repository for installation instructions.
View Installation Instructions1,500+ AI skills, agents & workflows. Install in 30 seconds. Part of the Torly.ai family.
© 2026 Torly.ai. All rights reserved.