setup-assistant

指导完成 Claude Patent Creator 系统的安装、配置与首次设置,提供逐步操作说明以完成部署与初始配置。

仓库最近推送
GitHub Stars
218
Forks
35
Issues / PRs
0

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "setup-assistant":https://skillpi.com/zh/skills/deepskill-3c3d7e18064697797127a7c381acf68fb132821c932714de4a22fc7e13be9e0f。安装前核对上游来源和版本:https://github.com/RobThePCGuy/Claude-Patent-Creator。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

指导完成 Claude Patent Creator 系统的安装、配置与首次设置,提供逐步操作说明以完成部署与初始配置。

0 下载

介绍来源: third_party · RobThePCGuy · 0.0.1 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
适合谁
翻译待完成,请参阅来源文档。
软件、账号及付费要求
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: setup-assistant
description: Guides through installation, configuration, and first-time setup of the Claude Patent Creator system.

Setup Assistant Skill

Expert system for installing, configuring, and setting up the Claude Patent Creator MCP server.

When to Use

Installing first time, setting up new environment, configuring authentication, troubleshooting installation, migrating to new machine, updating dependencies, verifying health.

Quick Setup (5 Minutes)

# 1. Create virtual environment
python -m venv venv
venv\Scripts\activate  # Windows
source venv/bin/activate  # Linux/macOS

# 2. Run installer
python install.py

# 3. Restart Claude Code

# 4. Test
# Ask Claude: "Search MPEP for claim definiteness"

Complete Setup Lifecycle

Phase 1: Pre-Installation Checks

Requirements:

  • Python 3.9-3.12 (3.11 recommended)
  • 8GB+ RAM (16GB recommended)
  • 5GB free disk
  • Optional: NVIDIA GPU with CUDA 12.x

Verify:

python --version  # Should show 3.9-3.12
nvidia-smi        # Optional: Check GPU

Phase 2: Virtual Environment

# Create venv
python -m venv venv

# Activate
venv\Scripts\activate  # Windows
source venv/bin/activate  # Linux/macOS

# Verify
which python  # Should show venv path

Important: Always activate venv before running scripts!

Phase 3: Dependency Installation

Automated (Recommended):

python install.py
# Handles: PyTorch order, GPU detection, MCP registration

Manual (Advanced):

# Install PyTorch FIRST (critical!)
pip install torch torchvision --index-url https://download.pytorch.org/whl/cu128

# Then install package (includes all dependencies)
pip install -e .

Why PyTorch order matters: If installed after sentence-transformers, you get CPU-only version.

Phase 4: BigQuery Authentication (Optional)

BigQuery adds 100M+ patent search but is NOT required. MPEP search, claims review, EPO analysis, and all other features work without it.

The setup auto-detects existing gcloud credentials. If already authenticated, BigQuery works automatically.

If the user wants to enable BigQuery later:

# One command — opens browser for Google sign-in (free, no credit card)
! gcloud auth application-default login

Do NOT present BigQuery as a failure or required step. It is a bonus feature.

Phase 5: MCP Server Registration

Automated:

python install.py  # Handles registration automatically

Manual:

# Get paths
patent-creator verify-config

# Register (use forward slashes!)
claude mcp add --transport stdio claude-patent-creator --scope user -- \
  "C:/path/to/venv/Scripts/python.exe" \
  "C:/path/to/mcp_server/server.py"

# Verify
claude mcp list

Critical: Restart Claude Code after registration!

Phase 6: Configuration Files

Create .env:

# Required
GOOGLE_CLOUD_PROJECT=your_project_id
ANTHROPIC_API_KEY=<YOUR_ANTHROPIC_API_KEY>

# Optional
PATENT_LOG_LEVEL=INFO
PATENT_LOG_FORMAT=human
PATENT_ENABLE_METRICS=true

# Windows only
CLAUDE_CODE_GIT_BASH_PATH=C:\dev\Git\bin\bash.exe

Phase 7: Health Check

patent-creator health

Phase 8: Present Results

Setup is complete when MPEP index is built and MCP server is registered. BigQuery and EPO OPS are optional enhancements.

Present a clean summary table showing what's ready. Do NOT dump manual setup instructions for optional features. The system is fully functional for:

  • MPEP/USC/CFR/EPC/PCT legal search
  • Claims analysis (US + EPO)
  • Specification analysis (US + EPO)
  • Formalities checking (US + EPO + PCT)
  • Patent diagram generation
  • Patent application drafting

If BigQuery is also configured, mention patent search as available. If not, do NOT present it as a failure — just omit it from the "ready" list.

Test with:

"Search MPEP for claim definiteness requirements"

If this works -> Setup complete. Tell the user they're ready.

Common Setup Issues

Issue Solution
PyTorch CPU-only Reinstall PyTorch FIRST
MCP not loading Restart Claude Code, verify with claude mcp list
Path errors Use forward slashes (/) not backslashes (\)
BigQuery fails Re-auth: gcloud auth application-default login
Index not found Build: patent-creator rebuild-index
Import errors Activate venv

Platform-Specific Notes

Windows

  • PowerShell: Use venv\Scripts\activate
  • Git Bash required for MCP commands
  • Paths: Always forward slashes in MCP config
  • CUDA: Install NVIDIA drivers + toolkit

Linux

  • venv: source venv/bin/activate
  • FAISS-GPU: Available on Linux only
  • Permissions: May need sudo

macOS

  • Apple Silicon: Use MPS (auto-detected)
  • Intel: Use CPU or external GPU
  • Homebrew: May need for dependencies

Update & Maintenance

Updating Dependencies

venv\Scripts\activate
pip install -e . --upgrade
python scripts/test_install.py

Rebuilding Index

patent-creator rebuild-index
# Wait 5-15 minutes

Re-registering MCP

claude mcp remove claude-patent-creator
python install.py
# Restart Claude Code

Quick Reference

Essential Commands

# Setup
python install.py
patent-creator health
claude mcp list

# Testing
python scripts/test_install.py
python scripts/test_gpu.py
python scripts/test_bigquery.py

# Maintenance
patent-creator rebuild-index
patent-creator verify-config

Critical Files

  • .env - Environment variables
  • requirements.txt - Dependencies
  • mcp_server/index/ - MPEP search index
  • pdfs/ - MPEP PDF files

版本历史

  1. v0.3.3 GitHub ↗
    原版更新说明

    ### 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.

  2. v0.3.2 GitHub ↗
    原版更新说明

    ### 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.

  3. v0.3.1 GitHub ↗
    原版更新说明

    ### 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.

  4. v0.3.0 GitHub ↗
    原版更新说明

    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`).

当前收录版本

0.0.1

核对来源版本 ↗

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值85/100

亮点

  • 提供完整的安装、配置、首次设置指导,覆盖多平台与依赖管理
  • 明确区分必需与可选功能(如 BigQuery),避免用户困惑
触发精准85/100

亮点

  • 触发场景描述清晰,覆盖首次安装、环境配置、认证、故障排查等多种情况
结构规范90/100

待提升项

  • description写错位置 原报告严重程度:轻微

    顶层 frontmatter 中 description 字段为空,实际描述内容位于 skill_body 内部

    改进建议:将 description 内容移至顶层 frontmatter 的 description 字段

  • 文档过长 原报告严重程度:轻微

    SKILL.md 文件约 450 行,建议拆分为多个子文件并通过引用组织

    改进建议:将平台特定说明、常见问题等拆分为独立文件并通过链接引用

亮点

  • Phase 划分清晰,步骤明确,包含端到端示例与出口条件
  • frontmatter 完整,结构规范
执行可靠85/100

亮点

  • 提供自动化与手动两种安装路径,覆盖主要异常场景
  • 包含健康检查与测试命令,确保执行可靠性
证据可验 (前四项均值)86/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

  • 安装或获取外部依赖

    使用官方来源并锁定版本,在隔离环境检查安装脚本。当前文档检查不覆盖后续下载的代码。

    主文档提及 · 第 74, 77, 198 行
  • 账号、密钥或授权

    使用专用、最小权限账号,不把密钥粘贴到公开内容或命令日志;核对接收数据的服务与租户。

    主文档提及 · 第 86 行
  • 管理员或提升权限

    确认确有必要再提升权限;不要关闭防护、绕过证书验证或扩大整个系统的访问权限。

    主文档提及 · 第 186 行
文档引用的域名或地址

这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。

  • download.pytorch.org

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

翻译待完成,请参阅来源文档。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。