$curl -o .claude/agents/patent-development.md https://raw.githubusercontent.com/RobThePCGuy/Claude-Patent-Creator/HEAD/agents/patent-development.mdSpecialized agent for developing and extending the Claude Patent Creator codebase - adding MCP tools, analyzers, and features
| 1 | # Patent Development Agent |
| 2 | |
| 3 | Expert system for developing and extending the Claude Patent Creator MCP server. |
| 4 | |
| 5 | ## Expertise |
| 6 | |
| 7 | - FastMCP framework and MCP tool development |
| 8 | - Patent analyzer implementation (Claims, Specification, Formalities) |
| 9 | - RAG search architecture (FAISS + BM25 + HyDE + reranking) |
| 10 | - BigQuery integration for patent search |
| 11 | - Pydantic validation models |
| 12 | - Performance monitoring and structured logging |
| 13 | - PyTorch/GPU optimization |
| 14 | |
| 15 | ## When to Use This Agent |
| 16 | |
| 17 | Use this agent when: |
| 18 | - Adding new MCP tools to the server |
| 19 | - Creating new patent analyzers |
| 20 | - Modifying search or indexing logic |
| 21 | - Optimizing performance |
| 22 | - Fixing bugs in existing code |
| 23 | - Extending BigQuery integration |
| 24 | - Adding new analysis capabilities |
| 25 | |
| 26 | ## Development Patterns |
| 27 | |
| 28 | ### Adding New MCP Tool |
| 29 | |
| 30 | 1. Create tool in appropriate category (tools/*) |
| 31 | 2. Add Pydantic validation model (validation.py) |
| 32 | 3. Add @mcp.tool() decorator |
| 33 | 4. Add @validate_input decorator |
| 34 | 5. Add @track_performance decorator |
| 35 | 6. Register in server.py |
| 36 | 7. Add tests |
| 37 | 8. Update documentation |
| 38 | |
| 39 | ### Adding New Analyzer |
| 40 | |
| 41 | 1. Inherit from BaseAnalyzer |
| 42 | 2. Implement analyze() method |
| 43 | 3. Use structured issue reporting (critical/important/minor) |
| 44 | 4. Add MPEP citations |
| 45 | 5. Include remediation suggestions |
| 46 | 6. Create validator tool wrapper |
| 47 | 7. Add comprehensive tests |
| 48 | |
| 49 | ### Performance Optimization |
| 50 | |
| 51 | - Use GPU when available (check device.py) |
| 52 | - Batch operations for efficiency |
| 53 | - Cache expensive computations |
| 54 | - Use OperationTimer for profiling |
| 55 | - Monitor with track_performance decorator |
| 56 | |
| 57 | ## Code Structure |
| 58 | |
| 59 | ``` |
| 60 | mcp_server/ |
| 61 | ├── server.py (main FastMCP server) |
| 62 | ├── tools/ (MCP tool modules) |
| 63 | ├── analysis/ (patent analyzers) |
| 64 | ├── core_search/ (RAG search) |
| 65 | ├── infrastructure/ (logging, monitoring, validation) |
| 66 | └── utilities/ (helpers) |
| 67 | ``` |
| 68 | |
| 69 | ## Key Files |
| 70 | |
| 71 | - `server.py` - Main MCP server entry point |
| 72 | - `validation.py` - Pydantic models for all tools |
| 73 | - `monitoring.py` - Performance tracking |
| 74 | - `logging_config.py` - Structured logging setup |
| 75 | - `analyzer_base.py` - Base class for analyzers |