development-assistant
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "development-assistant" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-b6ebd67eebd08b8a4243a5c8bbdfb346761c22f8d1812ddbe737579c0a150d6b. Verify the upstream source and version against https://github.com/RobThePCGuy/Claude-Patent-Creator before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Guides development of new features and tool extensions: provides advice and process guidance for adding new features, MCP tools, analyzers, and extending a patent-creation system.
Introduction source: third_party · RobThePCGuy · 0.0.1 Reference
SkillPi interpretation
- Tasks
- Guides through adding new features, MCP tools, analyzers, and extending the patent creator system.
- Audience
- Activate when adding MCP tools, analyzers, configuration options, BigQuery queries, slash commands, or implementing performance optimizations.
- Testing
- Not tested
Browse files
Frontmatter
name: development-assistant
description: Guides through adding new features, MCP tools, analyzers, and extending the patent creator system.Development Assistant Skill
Expert system for developing and extending the Claude Patent Creator. Guides through adding new MCP tools, analyzers, configuration options, and features while following best practices and existing patterns.
When to Use This Skill
Activate when adding MCP tools, analyzers, configuration options, BigQuery queries, slash commands, or implementing performance optimizations.
Development Workflow
Feature Request -> Planning -> Implementation (Code + Validation + Monitoring + Tests) -> Testing -> Documentation -> Integration
Adding New MCP Tools
Quick Start:
- Define inputs, outputs, dependencies
- Create Pydantic model in
mcp_server/validation.py - Add tool function in
mcp_server/server.pywith decorators - Create test script in
scripts/ - Update CLAUDE.md
Key Decorators:
@mcp.tool() # Register as MCP tool
@validate_input(YourInput) # Pydantic validation
@track_performance # Performance monitoring
Template:
def your_tool(param: str, optional: int = 10) -> dict:
"""Comprehensive docstring (Claude sees this).
Args:
param: Description
optional: Description with default
Returns:
Dictionary containing: key1, key2, key3
"""
# Implementation
return {"result": "data"}
Adding New Analyzers
Overview: Analyzers inherit from BaseAnalyzer and check USPTO compliance.
Minimal Example:
from mcp_server.analyzer_base import BaseAnalyzer
class YourAnalyzer(BaseAnalyzer):
def __init__(self):
super().__init__()
self.mpep_sections = ["608", "2173"]
def analyze(self, content: str) -> dict:
issues = []
if violation:
issues.append({
"type": "violation_name",
"severity": "critical",
"mpep_citation": "MPEP 608",
"recommendation": "Fix description"
})
return {"compliant": len(issues) == 0, "issues": issues}
Adding Configuration Options
Use Pydantic settings in mcp_server/config.py:
# In config.py
class AppSettings(BaseSettings):
enable_feature_x: bool = Field(default=False, description="Enable X")
# In your code
from mcp_server.config import get_settings
if get_settings().enable_feature_x:
# Feature enabled
Adding Performance Monitoring
@track_performance
def your_function(data):
with OperationTimer("step1"):
result1 = step1(data)
with OperationTimer("step2"):
result2 = step2(result1)
return result2
Modifying RAG Search Pipeline
Pipeline: Query -> HyDE -> Vector+BM25 -> RRF -> Reranking -> Results
Customization Points: Query expansion, custom scoring, filtering, reranking strategies
Adding New Slash Commands
- Create
.claude/commands/your-command.md - Add frontmatter:
description,model - Write workflow instructions
- Restart Claude Code
Template:
---
description: Brief command description
model: claude-sonnet-4-5-20250929
---
# Command Name
## When to Use
- Use case 1
## How It Works
Step 1: ...
Development Best Practices
- Follow existing patterns
- Use type hints
- Write docstrings (Google style)
- Handle errors gracefully
- Validate inputs (Pydantic)
- Log operations
- Monitor performance
Common Development Tasks
Add BigQuery Query: Add method in mcp_server/bigquery_search.py
Add Validation Rule:
class YourInput(BaseModel):
field: str
@field_validator("field")
@classmethod
def validate_field(cls, v):
if not meets_requirement(v):
raise ValueError("Error message")
return v
Add Logging:
from mcp_server.logging_config import get_logger
logger = get_logger()
logger.info("event_name", extra={"context": "data"})
Quick Reference: File Locations
| Task | Primary File | Related Files |
|---|---|---|
| Add MCP tool | mcp_server/server.py |
mcp_server/validation.py |
| Add analyzer | mcp_server/your_analyzer.py |
mcp_server/analyzer_base.py |
| Add config | mcp_server/config.py |
.env, CLAUDE.md |
| Add BigQuery query | mcp_server/bigquery_search.py |
- |
| Add test | scripts/test_your_feature.py |
- |
Key Patterns
MCP Tool Pattern:
@mcp.tool()
@validate_input(InputModel)
@track_performance
def tool_name(param: type) -> dict:
"""Docstring visible to Claude."""
from module import Component
if invalid:
return {"error": "message"}
result = process(param)
return {"key": "value"}
Analyzer Pattern:
class YourAnalyzer(BaseAnalyzer):
def analyze(self, content: str) -> dict:
issues = []
issues.extend(self._check_x(content))
return {
"compliant": len(issues) == 0,
"issues": issues,
"recommendations": self._generate_recommendations(issues)
}Version history
-
v0.3.3
GitHub ↗
Original release notes
### Changed - EPO OPS is a patent-search fallback when Google Patents (SerpApi) is not ready: `search_epo_patents` covers worldwide titles and abstracts (CQL `ta=`) and classes (`cpc=`, `ic=`), and `get_epo_patent` reads claims and description where OPS holds full text (EP, WO and selected national publications). The campaign, search skills, agents and commands check `check_epo_api_status` and count EPO as a searched patent outlet. A free SerpApi plan ran out mid-campaign, and the instructions offered only BigQuery, where a keyword search uses about a third of the free month. - `search_uspto_api` is described as US application metadata search and used as a supplement only, never as the patent outlet. - EPO tool descriptions no longer claim EP-only search or full text for every result, and drop the unsupported `cl=` example.
-
v0.3.2
GitHub ↗
Original release notes
### Fixed - Patent-class (CPC) searches no longer need BigQuery. `search_patents_google` accepts `CPC=<code>` (child classes included), verified live; `cpc:` is matched as plain text through SerpApi and finds almost nothing, so the tool says so. The BigQuery CPC tool points to this route when BigQuery is not set up, and the campaign, prior-art skill, searcher agent and command no longer say class searches need BigQuery. A real sweep had run 24 keyword searches and no class search, reporting class search unavailable. - Query guidance: 2-5 terms per query, since every word must match.
-
v0.3.1
GitHub ↗
Original release notes
### Added - `check_web_history`: when a web page was first public, from the Internet Archive's capture index. Disclosure audits can date the inventor's own pages without a manual Wayback Machine lookup; web fetch tools are often refused by web.archive.org. ### Changed - The campaign skill's intake finds facts in the material before asking the inventor for them.
-
v0.3.0
GitHub ↗
Original release notes
This version collects everything merged since 0.2.0. From here on, every change to the installed tools raises the version (CI enforces it) and each version gets a release tag, so an installed copy can tell whether it is current: `patent-creator --version`, `mcp_server.__version__` and the MCP handshake's server version all report it, from `pyproject.toml` alone. ### Fixed (since #126) - Google Patents readiness counts extra SerpApi credits, not only the monthly plan (#127). - Diagram labels: subscripts, zero offsets, kerning, Graphviz styled runs and table cells read as drawn, so reference numbers land (#127). - Multiple-dependent claims ("any one of claims 1 or 2") check every parent for support and antecedent basis; measurements and counts after a claim reference are not read as claim numbers (#127). ### Added - `search_non_patent_literature`: papers and preprints as prior art, from OpenAlex, arXiv and Semantic Scholar at once, free with no key. Filters by publication date (set `published_before` to the priority date), folds the same paper found by several sources into one result, and reports per source whether it was searched, so a busy source never reads as "no prior art". Optional free keys `OPENALEX_API_KEY` and `SEMANTIC_SCHOLAR_API_KEY`. The gap was pointed out by @JuampiHernandez in #104. - Paper dates are cross-checked with Crossref (free, no key) whenever a priority-date cutoff is set. Indexes sometimes list the wrong year (seen live: a 2026 paper listed as 2016); a result whose DOI was registered after the cutoff and long after its listed date, or whose publisher gives a later date, now carries a `date_check` telling the user to confirm it. Papers from before 2000 are not flagged for late DOIs (DOIs did not exist yet), and the earliest publisher date counts, since online-first is public. Every result says where its date came from (`date_source`), and the note counts dates that could not be cross-checked. Also flagged: 1970-01-01 (a missing date in disguise, caught on 2020-2021 papers), publisher dates years apart including the journal issue's, a year inside the DOI later than the listed date, and sources that disagree on a merged paper's date. Older papers whose DOI came after the cutoff, and whose age rests only on the publisher's print date, get a `date_note` saying so. - Optional stdio handshake workaround and troubleshooting guidance for the Claude Code `-32022` negotiation error (#102, reported by @DanielTillett). - Consolidated utility-patent-reviewer into Claude-Patent-Creator - GitHub issue templates (bug report, feature request, question) and PR template - Code quality tooling config (Ruff lint rules, isort, mypy, pytest, coverage, bandit) - Spell checking config (`.typos.toml`) - CONTRIBUTING.md and SECURITY.md ### Changed - MPEP search results now cite the exact section, for example `mpep_section: "2173.02"` with its title, instead of only the chapter ("MPEP 2100"). The section comes from the heading and revision tag the USPTO prints above each section, including headings split across a page break; checked against the section marker on every page of all 29 chapters, it matches on 2,864 of 2,912 pages, and the rest are pages whose marker names an empty "[Reserved]" section. Indexes built before this version keep chapter-only labels until `patent-creator setup --rebuild`. `get_mpep_section` now also accepts deeper numbers such as `2106.04(a)(2)`, and finds headings whose titles wrap onto a line starting with a number ("112(f) ...", "2012 [R-...]"), which it used to miss. ### Removed - `/setup-patent-creator`, a second name for `/setup-patent-system`. One setup command is easier to find. ### Fixed - The patent tools now connect in about 0.4 seconds instead of 3.7. Startup had loaded the AI search libraries and run a full health check (both models plus calls to HuggingFace) before answering Claude Code, so a question asked right after opening Claude Code was answered without the patent tools. The libraries now load on first use, the server runs only the two checks it reports in the background, and an installed-but-broken library gives the install steps instead of a raw error. Apple Silicon is no longer told to install CUDA; it reports that CPU is the faster default there. - With no SerpApi key and no BigQuery, prior-art workflows no longer stop dead. They point at the free key and meanwhile run a web first screen (Google Patents pages found by web search, then read in full), labelled as a first screen that cannot show an absence of prior art. - The plugin listing no longer says no MCP server is needed; search and checks come from the companion tool. - The settings window's "Tkinter not installed" message now gives the `brew install [email protected]` fix on Homebrew Python. - Setup no longer crashes with `EOFError` on Windows when stdin is NUL (#85). - Docs, agents and skills no longer name APIs that don't exist (#86). - `get_patent_bigquery` finds patents again and no longer scans about 1.4 TiB per lookup (#87). - `PATENT_MPEP_USE_HYDE` is honored and HyDE is off by default, saving about 3.5 s per search (#88). - PyMuPDF is imported as `pymupdf`, so its deprecation warning no longer corrupts the server's stdio (#89). Reports for #85–#89 by @eoffermann. - Plugin docs no longer promise checks the tools don't run (antecedent basis, corresponding structure, description support, best mode, physical page checks), and analyzer result fields are documented as returned. - EPO and PCT guidance corrected against the EPC, EPO Guidelines and PCT Regulations: abstract length is a preference, two-part claims are "where appropriate", deleted EPC Rule 46 is no longer cited, the PCT abstract figure is chosen on the request form, and legal-reference maps point to the right rules. Static fee tables now point to the official fee schedules. - European patent search docs say what the integration returns: OPS results are worldwide unless filtered, and register and in-force status must be checked in the European Patent Register. - BigQuery searches keep OR as OR, honour every prior-art filter, and read saved settings; cost guidance reflects real scan sizes. - Setup and the download commands report a failed required download as a failure. An optional supplement that fails is named as missing. - Diagnostic scripts test what they claim; diagram labels that don't match are reported; the settings window reads yes/on/1 and an empty batch size correctly; health-check commands work in PowerShell and with spaces in paths. - Workflows use SerpApi first and treat BigQuery as optional; Windows commands are valid PowerShell; docs name files and commands that exist. - The old installers (`install.py`, `scripts/install-gpu.*`) are removed; the pip install and `patent-creator setup` replace them. - Mac output no longer starts with PyTorch's "Redirects" note, and an unavailable EPO Guidelines PDF is no longer shown as an error when the website copy downloads instead. - Public unmerged code is no longer treated as undisclosed; history mining requires public-access and date evidence, with unknowns preserved. - PCT calendars use the priority date, put US/JP entry at 30 months and EP at 31, and state the alternative Chapter II demand deadline, with WIPO sources. - Agents that need MCP tools inherit the connected session's tools instead of excluding them through built-in-only allowlists. - EPO/PCT formalities now expose checks run/skipped and scoped verdicts like the US checker. Missing inputs, failed checks, and PCT's unverified physical requirements cannot produce readiness; unavailable checkers report no checks. - US/EPO specification review checks dependent claims and includes them in support coverage instead of reporting only independent-claim coverage. - Claims-review scores no longer authorize filing. Enabling antecedent basis requires a server/Claude Code restart and an actual claims result naming `antecedent_basis` in `checks_run` before the workflow can proceed. - EPO drafting uses Article 54(5) purpose-limited product claims for new second-medical-use filings, with the Swiss-type cutoff and EPO sources. - Setup registered the wrong Python on venv installs: it followed the venv's `python` link back to the system interpreter, which cannot import `mcp`, so Claude Code failed to connect while setup, `health` and `verify-config` all reported success. Registration keeps the venv path, and setup and `verify-config` now start the server and complete a real MCP handshake before saying it is connected. Found by a fresh-user install walk. - `health` and `serve` refused to run after the PDF cleanup that setup itself offers; they now need only the built index, and setup no longer re-downloads and rebuilds when the PDFs were removed on purpose. - Setup asks before installing Graphviz with the system package manager and never installs it unattended; the diagram tools' error gives the exact install command. - `check_formalities` no longer reports `ready_to_file` when parts were not supplied or a component check failed, and lists checks run and skipped. `review_patent_claims` leads with skipped checks and no longer calls claims "compliant" when the antecedent-basis check did not run. - Setup looked frozen for over half an hour: the CLI imports the server stack under a stderr capture, and the logger kept writing into that buffer, so every index-build message vanished. Logs now follow the live terminal, the build prints a plain progress line with time left every few percent, and the time estimate matches the device (25-40 min without an NVIDIA GPU). - The missing SerpApi key message gives the exact `config set` command for this install instead of a project `.env`, and BigQuery is offered as a ready fallback only when it is configured. Commands setup prints name the installed executable, so they work from a virtual environment. - A short abstract is advice, not a failure: under 50 words is MPEP 608.01(b)'s preference. Over 150 words still fails (37 CFR 1.72(b)). - Status no longer marks 35 USC, 37 CFR and Updates `[X]` after the offered PDF cleanup; their text is in the index. - The plugin's setup command installs into the same `~/patent-creator-venv` folder as the README (a normal install, so plugin updates can't break it) and walks through turning on patent search. - European Patent Convention articles were indexed as Implementing Regulations (0 article chunks, 4,927 rule chunks): an amendment table on page 1 mentions "Implementing Regulations" and the extractor switched there. The split now follows the PDF's own bookmarks (1,306 article and 1,794 rule chunks on the real PDF), so an EPC-only search finds Article 84. Indexes built before this are detected; `health` says a rebuild is needed and re-running `setup` rebuilds automatically. - `get_mpep_section` found nothing for a subsection like 608 because labels are chapter-level. It now finds the section's heading inside its chapter, returns the content in order, and says when boundaries are approximate. - The EPO Guidelines download uses the current published PDF with a verified fallback, and `search_patent_law` says which sources it didn't search even when others returned results. - Saved settings now apply at startup in both the CLI and the server, so a saved `GOOGLE_CLOUD_PROJECT`, `PATENT_DATA_DIR` or `PATENT_LOG_FORMAT` takes effect (real environment variables and `.env` still win), and `config list` reports saved values as saved. - EPO Guidelines results from the HTML download keep their official page link (`source_url`) and Part/Chapter/section locator on every chunk, not only the first one of each page. - The Guidelines HTML download reports progress at least every 20 seconds instead of going silent for minutes during a large batch. - Every recovery message (settings notes, law-search coverage warnings, index warnings) names the installed `patent-creator` command, so it runs from an unactivated virtual environment. - Stale command suggestions (`scripts/setup_bigquery_auth.py`, `install.py`, `status --verbose`) point at commands that exist. - Paper search spaces its Semantic Scholar requests at least 1.1 s apart across the whole server and retries a refused one with exponential backoff (1, 2, 4 s plus jitter), as Semantic Scholar requires, so back-to-back searches stay under the 1 request/second key limit instead of losing that source's results. - Reject invalid explicit BigQuery spending caps before any query instead of silently substituting the 350 GiB default (#101). - Bind patent family IDs as strings for the BigQuery public-data schema (#97). - Annotate project-local diagram outputs while retaining path confinement (#98). - Parse multi-hit EPO search wrappers and prefer family docdb country/kind fields (#99, #100). Reports and detailed reproductions for #97–#101 by @DanielTillett. - `downloaders`: MPEP/USPTO downloads now verify TLS against the bundled `certifi` CA store, fixing `SSL: CERTIFICATE_VERIFY_FAILED` on python.org macOS Python (#23) - `utils/device`: honor the documented `PATENT_MPEP_DEVICE` env var (`cpu`/`gpu`/ `mps`), which was referenced in docs but never read; `FORCE_CPU` still works (#23) - `utils/device`: detect Apple Silicon (MPS) and stay on CPU by default — MPS runs the BGE embedding workload ~50x slower; opt in with `PATENT_MPEP_DEVICE=mps` (#23) - `hardware_detect`/`auto_setup`: when `nvidia-smi` can't report compute capability (older drivers), select the CUDA wheel by GPU product name so legacy cards still get cu126 without forcing Blackwell onto cu126; add `PATENT_TORCH_CUDA=cu126|cu128` manual override; correct the cu126 Maxwell/Windows kernel-coverage claim (#26 follow-up) - `analyzer_base`: WARNING/INFO severity levels now in SEVERITY_ORDER (prevents KeyError) - `base_index`: Guard against FAISS returning -1 for unfound results - `base_index`: Guard against empty candidates in reranker - `claims_analyzer`: Circular dependency guard prevents infinite recursion - `claims_analyzer`: Self-referencing claim prevention - `claims_analyzer`: Fixed `_singularize()` and `_pluralize()` edge cases - `claims_analyzer`: Normalized compliance scoring per claim count - `claims_analyzer`: Better preamble and limitation location detection - `specification_analyzer`: State reset on each analysis call (prevents stale data) - `specification_analyzer`: Word-boundary matching prevents false positives - `specification_analyzer`: Coverage calculated on independent claims only - `specification_analyzer`: Expanded element extraction patterns - `formalities_checker`: Word-boundary regex for forbidden term detection - `formalities_checker`: Better figure reference regex (handles FIGS, sub-figures, ranges) - `evaluation`: Division-by-zero protection in comparison - `downloaders`: URL scheme validation (HTTP/HTTPS only) - `downloaders`: Partial file cleanup on download failure - `patent_corpus`: Safe integer parsing for TSV fields - `diagram_generator`: defusedxml for SVG parsing, quoted node IDs, tspan handling ### Changed - README Quick Start rewritten for first-time users: prerequisites first, a virtual-environment install with copyable Mac/Linux and Windows lines, the plugin as its own step, and a free SerpApi key for patent search. One supported Python range (3.10-3.13) across the README, setup command and skills. Removed two settings nothing reads (`PATENT_ENABLE_METRICS`, `PATENT_OPERATION_TIMEOUT`).
Current listing version
0.0.1
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供清晰的开发工作流指导,覆盖 MCP 工具、分析器、配置等多个开发场景
- 面向开发者群体,具有明确的实用价值和广泛的应用场景
Highlights
- 触发描述精准完整,When to Use 章节清晰定义了适用场景
- 边界清晰,不易与其他 Skill 重叠
Highlights
- 结构完整,包含开发工作流、各功能模块说明和最佳实践
- 提供详细的代码模板和文件位置参考,便于开发者快速上手
Highlights
- 工具来源明确,指向具体文件和模块
- 包含输入验证、性能监控、错误处理等可靠性建议
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.