Skip to content

Write your first skill

How-to
  • author

Choose one task with a clear input and a result someone can review. Write the instructions in SKILL.md and add the required fields at the top of the file.

Say what information the user should supply, what the answer should contain and what to do when information is missing. Keep supporting files focused because their contents can be sent with the instructions.

Include incomplete or conflicting information as well as an ordinary example. Note where the answers go wrong and revise the instructions before sharing the skill.

Details. skills/nda-review/examples/example_mutual.md shows what a worked example looks like in a shipped skill. Before you submit, run the Skill-Authoring Guide’s own authoring checklist — among other things, it requires at least one worked example in examples/, and more than one (one per branch) for a skill with perspective branching or regime selection. A skill with legal substance in it does not stop at “it runs”: read the acceptance testing framework for how the project verifies structure and calibration before a skill goes out.

Use a folder containing SKILL.md, with optional reference and example files. At the top of SKILL.md, give the skill its name and description and the LQ.AI fields needed for its title, inputs, version, jurisdiction and output. The field reference on this site shows the accepted settings, documented in full in the Skill-Authoring Guide. In the body, cover when to use it, when not to, the steps, missing information and the limits of the result.

Details. Real frontmatter, from the shipped NDA Review skill, shows the shape:

---
name: nda-review
description: Use when the user uploads or pastes a non-disclosure agreement and asks for review, redline, risk assessment, or a recommendation on whether to sign. Identifies missing standard protections, one-sided or unusual provisions, and operational issues; produces a structured report with severity ratings and citations to specific clauses, calibrated to the user's perspective (discloser, recipient, or mutual).
lq_ai:
title: NDA Review
version: 1.0.1
author: LegalQuants
tags: [contracts, nda, confidentiality, review]
jurisdiction: US-default
trigger_examples:
- "review this NDA"
- "redline this confidentiality agreement"
- "what should I watch for in this NDA"
- "is this NDA okay to sign"
- "summarize the risks in this NDA"
inputs:
required:
- name: document
type: document
description: The NDA to review (PDF, DOCX, or pasted text).
- name: perspective
type: text
description: Which side the user represents. One of "discloser" (we are sharing information; we want strong protections on the recipient), "recipient" (we are receiving information; we want narrow obligations on us), or "mutual" (both parties are exchanging information; we want symmetric, balanced terms). If not provided, ask before proceeding.
optional:
- name: jurisdiction
type: text
description: Governing-law jurisdiction if known (e.g., "Delaware", "California", "New York", "EU", "UK"). Defaults to general US commercial assumptions.
- name: deal_type
type: text
description: The transaction context this NDA supports. Common values - "vendor_evaluation" (we're evaluating a vendor product/service), "customer_engagement" (we're engaging with a prospective customer), "ma_diligence" (acquisition or investment due diligence), "partnership" (commercial partnership exploration), "employment_recruitment" (recruiting senior talent), "litigation_settlement" (settlement-adjacent confidentiality), "general_commercial" (exploratory business conversation, default). Affects severity calibration — e.g., non-solicits warrant more scrutiny in vendor evaluations than in M&A diligence.
- name: prior_agreements
type: text
description: Any existing agreements between the parties that may interact with this NDA (e.g., "we already have an MSA dated 2024-03"; "we signed a prior unilateral NDA in 2023"). Surfaces conflict-with-prior-agreement issues during review.
- name: standard_positions
type: text
description: User's organization's standard fallback positions on common NDA issues (term length, definition scope, etc.), if applicable.
output_format: markdown
self_improvement: false
---

name matches the folder name exactly; description is what both the UI and the model use to decide when the skill applies, so it earns being specific rather than generic. lq_ai.trigger_examples wants at least three real phrasings — NDA Review ships five. Required inputs stay minimal — NDA Review requires only the document and the reviewer’s perspective; everything else is optional and, per the guide’s own test, changes the substance of the analysis rather than only the report’s formatting (deal_type recalibrates which provisions get scrutiny; jurisdiction shifts the governing-law assumptions).

One caveat on the document input above: its description names the formats the skill is written for, not what the upload path accepts. As of the checked commit, ingestion parses PDFs whose text it can extract (nothing is OCR’d, and encrypted PDFs are refused) and UTF-8 plain text or Markdown; a DOCX upload is marked failed with unsupported_type (api/app/pipeline/parsers.py). Write your own input descriptions as skill intent, and don’t read them as an upload-format guarantee.

The body follows a consistent structure across the M1 starter skills, documented as ten sections in the Skill-Authoring Guide’s “SKILL.md body structure” — eight expected, plus optional “Reference materials” and “Examples”. Read skills/nda-review/SKILL.md end to end once to see the shape in a shipped skill; note that it folds its negative scoping into “When this skill applies” rather than carrying a separate “When this skill does NOT apply” section.

The Skill Creator and skill editor provide an in-app route. Editing a file is useful for a repository contribution or version-controlled review. Keep personal and team material in the appropriate scope; contributing publicly is a separate decision. For legal content, follow the review and attestation process before publishing.

Details. The in-app route is the Skill Creator, itself a skill (skills/skill-creator/SKILL.md), attached to a chat like any other. It asks one question at a time rather than running a fixed form — what triggers the skill, what document or input it needs, what the workflow actually checks, what it should refuse — and drafts the SKILL.md for you once it has enough to work with. Its stated posture: “You hold the format. The user holds the legal expertise.” Its instructions tell it not to invent a jurisdiction-specific rule or a severity calibration you haven’t given it, and to ask rather than guess when it needs a substantive position you haven’t stated. That’s deliberate — the same conservative posture every shipped skill follows — but it is an instruction to the model, not a guarantee about its output: read the drafted SKILL.md for any position you did not supply before you rely on it.

The review-and-attestation process referenced above is The attestation bar.