One-time setup for the patent creator system - downloads MPEP, builds search index, configures BigQuery
Sets up complete patent creator system with MPEP, search indexes, and BigQuery integration.
/plugin marketplace add RobThePCGuy/Claude-Patent-Creator/plugin install robthepcguy-claude-patent-creator-standalone@RobThePCGuy/Claude-Patent-CreatorComplete one-time setup for all patent creator capabilities.
Sets up the complete patent creator system:
Total Time: 30-90 minutes (most time is index building)
Before running:
I'll check:
python --version # Must be 3.9-3.12
pip --version
If Python not found or wrong version, I'll provide install instructions.
I'll install required packages:
cd ${CLAUDE_PLUGIN_ROOT}
pip install -e .
Dependencies installed:
GPU Detection:
I'll download USPTO examination manual:
cd ${CLAUDE_PLUGIN_ROOT}
python mcp_server/server.py --download-mpep
What downloads:
${CLAUDE_PLUGIN_ROOT}/pdfs\Time: 5-10 minutes depending on connection
I'll download supplementary sources:
python mcp_server/server.py --download-all
Downloads:
Time: 2-3 minutes
I'll build the hybrid search index:
python mcp_server/server.py --rebuild-index
What happens:
Time:
Index location: ${CLAUDE_PLUGIN_ROOT}/python\index\
Disk space: ~1-2 GB for complete index
For access to 76M+ patents, I'll help configure Google Cloud:
Prerequisites:
Setup steps:
# Install Google Cloud SDK
# (I'll provide OS-specific instructions)
# Authenticate
gcloud auth application-default login
# Set project ID
export GOOGLE_CLOUD_PROJECT=your-project-id
Configuration file:
I'll create/update .env file:
GOOGLE_CLOUD_PROJECT=your-project-id
PATENT_LOG_LEVEL=WARNING
Cost: BigQuery is FREE for first 1TB/month (>20,000 patent searches)
For patent diagram generation:
Windows:
choco install graphviz
pip install graphviz
Linux:
sudo apt install graphviz
pip install graphviz
Mac:
brew install graphviz
pip install graphviz
I'll run the test suite:
cd ${CLAUDE_PLUGIN_ROOT}
python scripts/test_install.py
Tests:
After setup completes, you'll see:
PATENT CREATOR SYSTEM - SETUP COMPLETE
======================================
Core Components:
[OK] MPEP Search Index (12,543 chunks indexed)
[OK] GPU Acceleration (NVIDIA CUDA 12.1)
[OK] Embedding Model (BGE-base-en-v1.5)
[OK] Hybrid Search (FAISS + BM25)
Optional Components:
[OK] BigQuery Patent Search (76M+ patents)
[OK] Diagram Generation (Graphviz)
[X] USPTO API (not configured)
[X] Local Patent Corpus (not downloaded)
System Ready!
Available Commands:
/create-patent - Create complete patent application
/search-prior-art - Search 76M+ patents for prior art
/review-claims - Analyze claims for 112(b) compliance
/research-mpep - Search MPEP/USC/CFR
Available Skills:
- mpep-search - MPEP/USC/CFR research
- patent-claims-analyzer - Claims compliance checking
- bigquery-patent-search - Patent search across 76M+ patents
- patent-diagram-generator - Technical diagrams
- prior-art-search - 7-step search methodology
- patent-application-creator - Complete patent creation
Available Agents:
- patent-researcher - Prior art search specialist
- patent-drafter - Claims and specification drafting
- mpep-expert - USPTO law and regulations
- patent-illustrator - Technical diagram creation
Try it:
/search-prior-art
[Describe your invention]
Problem: Download timeout or connection error
Solution 1: Retry with longer timeout
python mcp_server/server.py --download-mpep
Solution 2: Manual download
${CLAUDE_PLUGIN_ROOT}/pdfs\Problem: Out of memory during index building
Solution 1: Close other applications Solution 2: Increase system memory Solution 3: Use CPU-only mode (slower but less memory)
PATENT_MPEP_DEVICE=cpu python mcp_server/server.py --rebuild-index
Problem: Have GPU but using CPU
Solution 1: Check CUDA installation
nvidia-smi # Should show GPU
Solution 2: Reinstall PyTorch with CUDA
pip uninstall torch
pip install torch --index-url https://download.pytorch.org/whl/cu121
Problem: BigQuery searches fail
Solution 1: Check authentication
gcloud auth application-default login
Solution 2: Verify project ID
echo $GOOGLE_CLOUD_PROJECT # Should show your project ID
Solution 3: Check API enabled Visit: https://console.cloud.google.com/apis/library/bigquery.googleapis.com
Create .env file in ${CLAUDE_PLUGIN_ROOT}\:
# Google Cloud (for BigQuery patent search)
GOOGLE_CLOUD_PROJECT=your-project-id
# USPTO API (optional)
PATENT_USPTO_API_KEY=your-api-key-from-data.uspto.gov
# Search Configuration
PATENT_MPEP_USE_HYDE=true # Use HyDE query expansion
PATENT_MPEP_DEVICE=cuda # cuda, mps, or cpu
PATENT_LOG_LEVEL=WARNING # DEBUG, INFO, WARNING, ERROR
# Performance
PATENT_MPEP_BATCH_SIZE=32 # Embedding batch size
PATENT_MPEP_MAX_LENGTH=512 # Max token length
Directory Structure:
${CLAUDE_PLUGIN_ROOT}\
├── pdfs/ # Source documents
│ ├── mpep-0100.pdf
│ ├── mpep-0200.pdf
│ ├── ...
│ ├── mpep-2900.pdf
│ ├── consolidated_laws.pdf # 35 USC
│ ├── consolidated_rules.pdf # 37 CFR
│ └── subsequent_publications.pdf # Updates
├── mcp_server/
│ ├── index/ # Search indexes
│ │ ├── mpep_index.faiss # Vector index
│ │ └── mpep_metadata.json # Metadata + BM25
│ ├── server.py # Main server
│ ├── mpep_search.py # Search implementation
│ ├── claims_analyzer.py # Claims checker
│ ├── bigquery_search.py # BigQuery integration
│ └── diagram_generator.py # Diagram creation
└── .env # Configuration
You're ready to:
/research-mpep or MPEP Search skill/search-prior-art command/review-claims command/create-patent commandTry it out:
/research-mpep
> Search MPEP for claim definiteness requirements
---
/search-prior-art
> I have a blockchain-based authentication system...
---
/review-claims
> [Paste your claims]
---
/create-patent
> I'll create a complete patent application...
Safe to run multiple times:
Force rebuild:
python mcp_server/server.py --rebuild-index
To remove:
# Remove downloaded files
rm -rf ${CLAUDE_PLUGIN_ROOT}/pdfs\
rm -rf ${CLAUDE_PLUGIN_ROOT}/python\index\
# Remove package
pip uninstall claude-patent-creator