agentleFS
TrustPagerTrustPager/Business_Operating_System/skills/lint-document/SKILL.md

Lint Document

Skill8 starsChanged 5 months agoMITView on GitHub

Pre-flight a document/signing template before it goes to a client — every signer has a signature input, no broken or always-blank merge fields, required sections present, disclaimers in place. Read-only; reports fails first, then warnings.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If the operator named it by title, find it with mcp__trustpager__list_document_templates, then …

    line 33
  2. Very specific:

    Read-only: Never edit the template here.

    line 81

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Lint Document

Catch the embarrassing, client-facing mistakes in a document template BEFORE the first send: a signer with nothing to sign, a {{merge_field}} that always renders blank, a missing signature block, a stray placeholder. Read-only — this skill never edits the template; it routes each fix to /build-document.

Source of truth: knowledge/document-method.md — the checks map to §1 (anatomy) and §6 (merge-field honesty).

Step 1 — Load the template

If the operator named it by title, find it with mcp__trustpager__list_document_templates, then mcp__trustpager__get_document_template(template_id) to read its full section structure. If they didn't say which, ask.

Step 2 — Run the checks

Work through every section and signer:

FAILS (block the send):

  • Signer with no input — a named signer who has no signature/initials input section. They'd have nothing to sign; the envelope stalls.
  • Signature input with no signer — an orphan signature block assigned to a signer that isn't in the signer set.
  • Broken merge token — a {{ }} that isn't a real field path (typo'd {{contact.fullname}}, unclosed {{deal.value, unknown namespace).
  • Empty template — no body sections, or no signature input at all.

WARNINGS (worth a look):

  • Likely-blank merge field — a field the opportunity usually doesn't carry (e.g. {{deal.value}} on a workspace that leaves value empty). Flag for the operator to confirm it'll be filled at send time.
  • Placeholder text left in — "Lorem ipsum", "TODO", "[INSERT…]", "XXXX", a draft date.
  • No dated signature — a signature input with no accompanying date field (most agreements want the signing date captured).
  • Missing disclaimer/terms for an agreement-type document, if the operator's CLAUDE.md or brand notes say one is required.

Step 3 — Report, fails first

📄 "Broker Partnership Agreement" — 1 fail, 2 warnings

❌ FAILS (fix before sending)
  → Signer "Guarantor" has no signature input. Add one, or remove the signer. → /build-document
  → Merge token {{contact.fulname}} is misspelled (should be {{contact.full_name}}). → /build-document

⚠️ WORTH A LOOK
  → {{deal.value}} is used in the fee schedule but is often blank on your deals — confirm it'll be filled.
  → No date field next to the broker's signature — most agreements capture the signing date.

End with the single most important fix, and route every fix to /build-document (this skill doesn't edit). If it's clean: "Clean — every signer has an input, all merge fields resolve, no placeholders. Ready for /send-for-signing."

Hard rules

  • Read-only. Never edit the template here. Diagnose, route to /build-document.
  • Fails before warnings. Lead with what would actually break or embarrass.
  • Don't invent required disclaimers — only flag a missing one if the operator's own notes/brand say it's required.
  • A likely-blank merge field is a warning, not a fail — the operator may fill it per-deal; surface it, don't block on it.

Output shape

Headline tally, then FAILS, then WARNINGS, then the one fix to make first — or a clean bill of health with the hand-off to /send-for-signing.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.