Paper to Chinese Patent Drafter
Yuan1z0825/nature-skills
Drafts Chinese invention patent applications and technical disclosures from research papers or inventor materials, tying each claim feature to source evidence.
A skill your agent uses when the user has typed a short or vague prompt and the system is configured to expand prompts before submission, or when the user explicitly invokes "Enhance Prompt" or asks…
$ npx skills add LegalQuants/lq-ai --skill enhance-prompt -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install LegalQuants/lq-ai enhance-prompt --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/LegalQuants/lq-ai.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/enhance-prompt .claude/skills/enhance-prompt && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "enhance-prompt" agent skill from https://github.com/LegalQuants/lq-ai/tree/main/skills/enhance-prompt into .claude/skills/enhance-prompt/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "enhance-prompt", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/LegalQuants/lq-ai/tree/main/skills/enhance-promptType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add LegalQuants/lq-ai --skill enhance-prompt -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install LegalQuants/lq-ai enhance-prompt --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LegalQuants/lq-ai.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/enhance-prompt .agents/skills/enhance-prompt && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "enhance-prompt" agent skill from https://github.com/LegalQuants/lq-ai/tree/main/skills/enhance-prompt into .agents/skills/enhance-prompt/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "enhance-prompt", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add LegalQuants/lq-ai --skill enhance-prompt -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install LegalQuants/lq-ai enhance-prompt --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LegalQuants/lq-ai.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/enhance-prompt .cursor/skills/enhance-prompt && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "enhance-prompt" agent skill from https://github.com/LegalQuants/lq-ai/tree/main/skills/enhance-prompt into .cursor/skills/enhance-prompt/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "enhance-prompt", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/LegalQuants/lq-ai.git --path skills/enhance-prompt--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add LegalQuants/lq-ai --skill enhance-prompt -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install LegalQuants/lq-ai enhance-prompt --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LegalQuants/lq-ai.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/enhance-prompt .gemini/skills/enhance-prompt && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "enhance-prompt" agent skill from https://github.com/LegalQuants/lq-ai/tree/main/skills/enhance-prompt into .gemini/skills/enhance-prompt/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "enhance-prompt", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install LegalQuants/lq-ai enhance-promptInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add LegalQuants/lq-ai --skill enhance-prompt -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/LegalQuants/lq-ai.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/enhance-prompt .github/skills/enhance-prompt && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "enhance-prompt" agent skill from https://github.com/LegalQuants/lq-ai/tree/main/skills/enhance-prompt into .github/skills/enhance-prompt/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "enhance-prompt", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add LegalQuants/lq-ai --skill enhance-prompt -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install LegalQuants/lq-ai enhance-prompt --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LegalQuants/lq-ai.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/enhance-prompt .opencode/skills/enhance-prompt && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "enhance-prompt" agent skill from https://github.com/LegalQuants/lq-ai/tree/main/skills/enhance-prompt into .opencode/skills/enhance-prompt/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "enhance-prompt", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
enhance-promptA skill your agent uses when the user has typed a short or vague prompt and the system is configured to expand prompts before submission, or when the user explicitly invokes "Enhance Prompt" or asks…
Enhance Prompt is an agent skill from LegalQuants/lq-ai. Use when the user has typed a short or vague prompt and the system is configured to expand prompts before submission, or when the user explicitly invokes "Enhance Prompt" or asks the system to "improve this prompt before sending." Rewrites the user's input into a structured legal prompt with role, jurisdiction, task, constraints, and output format made explicit, and returns the expansion alongside a brief reasoning section so the user can review, edit, or skip before the expanded prompt is submitted to the model.
Its SKILL.md is about 3.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 8 other files (for example `examples/example_short_prompt.md`, `examples/example_skipped.md` and `examples/example_with_skill.md`).
It sits in Legal & Compliance. The repository describes itself as: Open-source AI for legal teams. Bring your own keys, run it where you want, own your data. The licence is Apache-2.0.
2 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit d185a62. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are yaml).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Enhance Prompt loads about 3.3k tokens when it runs. Until then it costs about 133 tokens; SKILL.md has 1,597 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from LegalQuants/lq-ai at commit d185a62, republished under its Apache-2.0 licence (© LegalQuants). 1,597 words, ~3,303 tokens.
.claude/skills/enhance-prompt/SKILL.md (or your agent's skills folder). This skill also uses 6 other files; get the full folder from GitHub.Rewrite the user's prompt into a more effective version before it is submitted to the model. Show the user what changed and why. Make the expansion visible and editable, never silent.
The point of this skill is not to make every prompt longer. It is to surface the implicit assumptions in a short prompt and turn them into explicit instructions, so the model produces what the user actually wanted on the first try rather than after several rounds of clarification.
Apply when:
In auto-expand mode, also apply the skip conditions in the next section before producing an expansion. Auto-expand should not be aggressive — many prompts do not need expansion, and producing an expansion when one is not needed is friction rather than value.
Skip the expansion and let the original prompt through unchanged when:
--no-enhance-prompt, [skip enhance prompt], or similar, honor it.attached_skills includes a skill whose description shows it handles prompt expansion or rewriting, skip — let the attached skill drive.When skipping, return the skip decision explicitly (see Output section) so the application can pass the original prompt through.
A good expansion makes implicit elements explicit. The implicit elements that most often need surfacing in legal prompts are:
jurisdiction if available, or note that the expansion assumed US-default and the answer should be re-asked if a different jurisdiction applies.A good expansion adds these only where they are actually missing. Adding a role to a prompt that already specifies a role is noise. Adding a jurisdiction to a question that has no jurisdiction-dependent component is noise.
Read the input. Parse the raw_input. Identify what the user is asking for (the substantive task) and how the user is asking for it (voice, formality, urgency).
Check skip conditions. Run through the skip conditions in the section above. If any apply, return a skip decision (see Output section). Stop here.
Read the context. If attached_skills, attached_files, chat_history, or jurisdiction are provided, read them. Identify what is already established and should not be re-established.
Identify the gaps. Walk through the seven elements (role, jurisdiction, audience, scope, output format, constraints, citation expectations) and identify which are implicit in the prompt and worth surfacing. Skip elements that are already explicit, and skip elements that are not relevant to this prompt (e.g., citation expectations are irrelevant if no document is in scope).
Draft the expansion. Write the expanded prompt. Preserve the user's substantive verbs and nouns. Add the elements identified in step 4. Keep total length to 2–5x the input length.
Write the reasoning section. Three to six bullet points, one per element you added or modified. Each bullet names what was added and why in plain language. The user will read this; write for the user, not for a developer.
Return the structured output. See Output section.
The skill returns a structured object:
expansion_applied: true | false
expanded_prompt: <the expanded prompt text, or the original if skipped>
reasoning:
- <bullet on what was added or modified, and why>
- <one bullet per substantive change>
skip_reason: <if expansion_applied is false, the reason from the skip conditions list, or null>
preview_to_user: |
<a single rendered string the application can show in the "review before sending" UI, combining the expanded prompt and the reasoning, formatted for human reading>The skill is responsible for:
The application is responsible for:
preview_to_user to the user with edit/submit/skip controls.expanded_prompt to the model when the user confirms.raw_input if the user chooses skip.The skill itself does not invoke the model with the expanded prompt; it returns the expansion for the application to handle.
This skill is designed to be inspectable by the user. The application should make the skill's contents (this SKILL.md and its supporting files) viewable from the review-before-sending screen. Users who want to understand exactly how their prompts are being enhanced — including the patterns this skill applies, the constraints on what is added, and the principles for preserving voice — should be able to read the skill itself.
Transparency is a feature, not a leak. The skill's instructions are not a trade secret; they are open-source work product. Users who can read the skill can also disagree with it, fork it, or replace it. That is the right relationship between users and the tools that shape their work.
expansion_applied: false with skip_reason: "input too short to expand meaningfully".reference/expansion_patterns.md — common patterns for legal-prompt expansion across categories of legal work (contract review, drafting, research, advice).reference/preserve_user_voice.md — the principles for keeping the user's voice intact through expansion.examples/example_short_prompt.md — short prompt expanded to a full structured prompt.examples/example_skipped.md — example of a prompt that should be skipped, with reasoning.examples/example_with_skill.md — expansion when a skill is already attached, showing how the expansion respects the attached skill's scope.© LegalQuants, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 6 other files in skills/enhance-prompt of LegalQuants/lq-ai.
Open the folder on GitHubat commit d185a62
Enhance Prompt next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Enhance Prompt this skillLegalQuants/lq-ai | 150 | — | ~3.3k | Automated safety check: Pass | Apache-2.0 | |
| Paper to Chinese Patent DrafterYuan1z0825/nature-skills | 47k | 1 repos | ~1.1k | Automated safety check: Pass | Apache-2.0 | |
| C15tc15t/c15t | 1.9k | 1 repos | ~1.6k | Automated safety check: Pass | Apache-2.0 | |
| Contract Reviewevolsb/claude-legal-skill | 464 | 1 repos | ~3.6k | Automated safety check: Pass | MIT | |
| Legal Clinic Client Intakeanthropics/claude-for-legal | 9.6k | 3 repos | ~3.2k | Automated safety check: Pass | Apache-2.0 | |
| Paper To Cn Patentsnipp-zha/Paper-to-patent-Skill | 107 | 1 repos | ~959 | Automated safety check: Pass | None |
Yuan1z0825/nature-skills
Drafts Chinese invention patent applications and technical disclosures from research papers or inventor materials, tying each claim feature to source evidence.
c15t/c15t
Work with c15t consent management docs, APIs, and integrations for Next.js, React, and JavaScript.
evolsb/claude-legal-skill
Review legal contracts, NDAs, employment agreements, SaaS terms, and M&A documents.
anthropics/claude-for-legal
Structures a legal clinic client intake interview and produces a case summary with cross-area issue spotting, conflict flags and triage classification.
snipp-zha/Paper-to-patent-Skill
Convert scientific papers, theses, technical reports, source code, figures, or research manuscripts into evidence-grounded Chinese invention patent drafts.
ynulihao/AgentSkillOS
Create employment contracts, offer letters, and HR policy documents following legal best practices.
LegalQuants/lq-ai
A skill your agent uses when the user provides a client alert, regulatory bulletin, law firm memo, or similar legal update and wants the time-sensitive action items, deadlines, and obligations…
LegalQuants/lq-ai
A skill your agent uses when the user asks to find, read, or cite U.S.
LegalQuants/lq-ai
A skill your agent uses when the user has a piece of legal-jargon-heavy text and wants it rewritten in plain language for a specified non-legal audience.
LegalQuants/lq-ai
A skill your agent uses when the user has a contract loaded and asks a specific question about it — what a clause means, where something is addressed, whether a term is unusual, how a provision…
LegalQuants/lq-ai
A skill your agent uses when the user wants to compare the same handful of terms across N contracts side-by-side in a grid — what is the term, survival period, carveouts, and governing law in each…
LegalQuants/lq-ai
A skill your agent uses when the user provides a Data Processing Agreement, Data Processing Addendum, or HIPAA Business Associate Agreement and asks whether it contains the terms required under the…
Categories
A skill your agent uses when the user has typed a short or vague prompt and the system is configured to expand prompts before submission, or when the user explicitly invokes "Enhance Prompt" or asks…. Enhance Prompt is an agent skill from LegalQuants/lq-ai." Rewrites the user's input into a structured legal prompt with role, jurisdiction, task, constraints, and output format made explicit, and returns the expansion alongside a brief reasoning section so the user can review, edit, or skip before the expanded prompt is submitted to the model.
Enhance Prompt fits situations like: the user has typed a short; vague prompt and the system is configured to expand prompts before submission; the user explicitly invokes Enhance Prompt; asks the system to improve this prompt before sending. Rewrites the users input into a structured legal prompt with role.
Run `npx skills add LegalQuants/lq-ai --skill enhance-prompt -a claude-code`. Or copy the skill folder (skills/enhance-prompt in LegalQuants/lq-ai) into .claude/skills/enhance-prompt in your project. Claude Code loads it when a task matches its description.
Run `npx skills add LegalQuants/lq-ai --skill enhance-prompt -a codex`. Or copy the skill folder (skills/enhance-prompt in LegalQuants/lq-ai) into .agents/skills/enhance-prompt in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add LegalQuants/lq-ai --skill enhance-prompt -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/enhance-prompt, .gemini/skills/enhance-prompt, .github/skills/enhance-prompt and .opencode/skills/enhance-prompt in your project.
SKILL.md names no scripts, command-line tools or credentials: Enhance Prompt is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Enhance Prompt is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 3.3k tokens (SKILL.md is roughly 13k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Enhance Prompt: Paper to Chinese Patent Drafter (Yuan1z0825/nature-skills, 47k stars), C15t (c15t/c15t, 1.9k stars), Contract Review (evolsb/claude-legal-skill, 464 stars) and Legal Clinic Client Intake (anthropics/claude-for-legal, 9.6k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
LegalQuants (a GitHub organization) maintains it in LegalQuants/lq-ai, which has 150 GitHub stars. The repository holds 16 skills in this directory. The repository was last updated on October 11, 2026.
Source: LegalQuants/lq-ai on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.