stilta-patent-drafterlisted
Install: claude install-skill riteshkew/yc-skills
# Workflow
When this skill triggers, follow these steps in order.
## Step 1 — Receive the Invention Disclosure
Accept a plain-text or Markdown invention disclosure from the user. The disclosure should describe:
- The problem being solved
- The novel technical features of the invention
- Key components or steps of the system or method
If the user has not provided a disclosure, ask:
> "Please paste or upload your invention disclosure. Describe the problem, the novel features of your invention, and the key components or steps involved."
Save the disclosure to a temporary file, e.g. `disclosure.md`.
## Step 2 — Retrieve Prior Art via BM25
Run the dependency-free BM25 retriever over the committed prior-art corpus:
```bash
node scripts/retrieve.mjs resources/prior-art/ disclosure.md 3
```
The retriever:
- Tokenizes the disclosure and each corpus document
- Scores documents using the BM25 formula (k1=1.5, b=0.75)
- Returns the top-K files with scores and matched terms as JSON
Capture the JSON output. If the process exits non-zero, report the stderr message to the user and stop.
Inspect the top results. For each, note:
- The filename (maps to a prior-art reference)
- The BM25 score (higher = more relevant)
- The matched terms (shows which disclosure concepts overlap with prior art)
## Step 3 — Draft Background and Claims
Run the scaffold assembler with the disclosure and retrieval results:
```bash
node scripts/draft.mjs disclosure.md retrieval.json draft.md
```
The as