agentleFS
formify-e-signformify-e-sign/formify-skills/skills/formify-verify-identity/SKILL.md

formify-verify-identity

Skill5 starsChanged 2 months agoMITView on GitHub

Verify a signer with BankID, ID scan, face liveness or company lookup. Use when a signature needs proof of who signed, for KYC or anti-money-laundering, when scanning an ID document, or when verifying a company registration number. Triggers on "BankID", "ID scan", "verify identity", "KYC", "AML", "face liveness", "legitimering", "identitetskontroll", "verificar identidad". Not for ordinary signing without identity checks: see formify-send-contract.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    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. Distinctive:

    If a needed capability is off, say what it would do and what it needs, then offer the strongest option the account *does* have.

    line 49
  2. Distinctive:

    Not which feature they want — what they need to be true.

    line 69
  3. Very specific:

    Only if data must live in the document itself.

    line 111
  4. Very specific:

    If a signer will both scan a document and pass a face check, combine tink-scanned-id-allow-in-signature[index] on the scan trigger.

    line 134
  5. Distinctive:

    Before sending, tell the user what the person on the other end will experience:

    line 144
  6. Distinctive:

    Do not describe a document as "KYC compliant" because it carries a KYC trigger.

    line 160

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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

Verify who is signing

Version 1.6.4. If asked which version you are, quote this line.

Purpose

Bind a signature to a verified person or company. Formify can check an identity document, match a live face against it, authenticate through Swedish BankID, look up a company registration number, or require a one-time code before a document opens — and attach the result to the signature rather than leaving it as a separate errand.

When this applies

  • A signature needs proof of who signed, not just that someone did.
  • KYC or anti-money-laundering obligations apply.
  • A company must be verified, or its board member or beneficial owner identified.
  • An ID document must be scanned, or its data captured without storing the picture.

When it does not

  • Ordinary signing with no identity requirement → formify-send-contract.
  • Building the PDF fields themselves → formify-pdf-forms. This skill decides what verification is needed; that one writes the fields it needs.

Preconditions

Every feature here is gated on the account, and you must check before offering. Call get_account_capabilities first. Offering BankID to an account that does not have it wastes the user's time and ends the conversation badly.

The keys that matter here:

KeyUnlocks
signatureBankIdBankID signing
signatureIdScanID-document scan as part of signing
signatureFaceLivenessLive face check
verificationEmail / verificationPhoneOne-time code before the document opens
verificationToOpenRequiring that code to open at all

If a needed capability is off, say what it would do and what it needs, then offer the strongest option the account does have. Never silently downgrade.

Two separate layers — do not confuse them

This is the distinction that causes the most expensive mistakes.

LayerWhat it isWhere it is set
Signing methodHow the person signs and authenticatesOn the signer, when the document is sent
Document fieldsWhat is collected or verified inside the documenttink-* attributes in the PDF, built beforehand

A company check inside a form is a field. BankID as the signing method is a signer setting. They are configured in different places, at different times, and one does not imply the other.

Procedure

1. Ask what the user actually needs to prove

Not which feature they want — what they need to be true. There are four distinct answers, and they lead to different places:

  • "I need to know this is really them." → a signing method.
  • "I need their passport details in the document." → document fields.
  • "I need to check the company is real and who can sign for it." → company verification fields.
  • "I need a record for compliance." → KYC, which is a specific variant, not a synonym.

One question at a time. If they name a regulation rather than a feature, translate it — Swedish AML obligations under money-laundering rules usually mean company verification plus retained identification, not a face check.

2. Choose the signing method

Four values. Each is gated as shown above. They differ in what they prove, not in a ranking Formify publishes — do not tell a user that one satisfies a legal signature class the others do not.

MethodWhat the signer does
digital_inkDraws a signature. Always available, no capability needed.
bankid_identificationAuthenticates with Swedish BankID
digital_ink_id_scanPhotographs an identity document, then signs
face_livenessLive face check bound to the signature

digital_ink_id_scan requires two boxes to be placed, not one: the signature box and a separate ID-scan box. Sending it with only the signature box configured is the single most common failure in this area — see formify-send-contract for placement.

Methods are set per signer. Different signers on one document can use different methods.

All four work on a public link too, with the same capability gates and the same two-box rule for the ID scan. The difference is that a link's signature entries are slots rather than people, so the method is chosen per slot, before anyone is known — every person who opens that link is verified the same way. That is usually the point: an intake form that requires an ID scan verifies whoever turns up, without the sender knowing their name in advance. Placement is stricter there — a link inherits no coordinates from anything, so every box must be given explicitly. See formify-share-link.

3. Decide what goes inside the document

Only if data must live in the document itself. Read references/tink-attributes.md and follow it exactly — the catalogue is closed and an unknown attribute fails silently.

Company verification. Three triggers: beneficial owner, board member, and the KYC variant whose result is retained for compliance. Each must be paired, in the same field name, with the field that receives the verified value — a trigger alone is a dead button. Verified company name, address, postcode and city can all be auto-filled.

Identity document capture. Choose deliberately between the data and the picture:

  • Trigger alone → the field is replaced by the front-side image of the document.
  • Trigger combined with machine-readable-zone attributes → no image is stored at all; the fields receive name, document number, nationality, dates and so on as text.

The second is the data-minimisation pattern and it carries legal weight: keeping a copy of an identity document needs its own legal basis. When the user needs the details but not the picture, say so and use it. Most do not know it is an option.

One-time codes. Email or SMS verification before the document opens. Not indexed, and gated on verificationEmail / verificationPhone.

4. Do not make them scan twice

If a signer will both scan a document and pass a face check, combine tink-scanned-id-allow-in-signature[index] on the scan trigger. A fully successful scan is then carried into the Live ID signature and the signer goes straight to the face check without photographing anything again. The face check itself still runs.

An incomplete scan is never reusable. The index here is the scan group, not a signature number.

5. Say what will happen, in the signer's terms

Before sending, tell the user what the person on the other end will experience:

Maria will get an email, open the document, be asked to photograph her ID card, then take a short video selfie so we can confirm it is her. Then she signs. It takes about two minutes.

Identity checks are the step that makes recipients abandon a document. A sender who knows what it looks like can warn them, and completion rates hold.

6. State the boundary honestly

Selecting a verification method configures a check. It does not, by itself, establish a legal signature class, guarantee acceptance in a given jurisdiction, or constitute a compliance programme. If the user asks whether this satisfies a specific regulation, say what the product does and does not decide, and let them confirm with their own adviser.

Do not describe a document as "KYC compliant" because it carries a KYC trigger.

Failure modes

What you seeWhat it meansWhat to do
A method is not offeredThe capability is off for this accountSay which one and what it does; offer the best available alternative.
ID-scan signing fails at sendThe ID-scan box was not placedBoth boxes are required for that method. Place it and resend.
The verification button is not clickableTrigger has no paired value field, or the field is not read-onlyPair it; set read-only on the widget itself.
The scan runs twiceTwo triggers in one group, or the reuse modifier is missingOne trigger per person; add the modifier if a face check follows.
Fields never fill after a successful scanBrackets missing, or indices renumbered when a person was insertedCheck the index on every field of that group.
An ID image appears when the user wanted only dataTrigger used aloneCombine with the machine-readable-zone attributes.

References

  • references/tink-attributes.md — the complete catalogue of document markers, their combinations and required image shapes. Open it before writing any attribute; an invented one produces a document that looks correct and does nothing.

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.