Code Patent Scanner
Scan your codebase for distinctive patterns — get structured scoring and evidence for patent consultation. NOT legal advice.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/leegitw/code-patent-scannerCode 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 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.
Patent Attorney Methodology (John Branch)
This skill incorporates patterns from patent attorney John Branch:
Key Insight: Lossy Abstraction is a Feature
"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.
The Abstraction Principle (JB-2)
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"
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:
- Check if path is provided, otherwise use current directory
- Identify primary language(s) by file extensions
- Count total source files (exclude generated/vendor)
- 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
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-leegitw-code-patent-scanner": {
"enabled": true,
"auto_update": true
}
}
}Tags
Related Skills
cherry-mcp
HTTP bridge that keeps MCP servers alive and exposes them via REST. Built for OpenClaw agents that need MCP tools without native MCP support.
purple-cow-content
Trigger this skill for ANY of these situations — writing OR conversation: WRITING: blog posts, articles, social media captions, LinkedIn, Twitter/X threads, Instagram, YouTube scripts, TikTok hooks, newsletters, ad copy, landing pages, pitch decks, email campaigns, product descriptions, taglines, or any content meant to attract attention. CONVERSATION: When the user is brainstorming ideas, discussing why content isn't performing, evaluating a marketing angle, planning a campaign, asking "what should I post about", comparing their idea to competitors, talking about engagement or virality, or thinking out loud about any creative or communication challenge. If a conversation touches on attention, differentiation, standing out, audiences, or messaging — this skill is relevant. Speak up proactively as a strategic advisor using the Purple Cow lens (Seth Godin + MrBeast framework), even if the user hasn't asked for content to be written yet. Never stay silent when a Purple Cow insight would sharpen the discussion.
system-monitor-pro
Real-time OpenClaw system monitoring with beautiful terminal UI. CPU, memory, disk, GPU, Gateway, cron jobs, model quota, and multi-machine support. Works on macOS and Linux.
git-changelog
Auto-generate beautiful changelogs from git history, grouped by conventional commit types
env-setup
Scan codebase for environment variables, generate .env.example, validate .env, and ensure .gitignore safety