Skip to content

formify-e-sign/formify-skills / plugins/formify-es-real-estate/skills/formify-es-real-estate

formify-es-real-estate

Verified

ES Real Estate Formify: the six documents a Spanish estate agency signs most (nota de encargo, KYC comprador y vendedor, oferta y reserva, contrato de arras, colaboración entre agencias, entrega de llaves), bilingual Spanish plus the client language, region-correct, signed through Formify. Use for a Spanish property sale or letting: encargo, mandato, reserva, arras, señal, KYC, blanqueo, llaves. Every run starts with scripts/start.py, which prints the welcome lines.

FileKindSize
LICENSEother1.0 KB
README.mdmarkdown3.0 KB
SKILL.mdskill md30.4 KB
agents/openai.yamlconfig607 B
assets/base.cssother11.7 KB
assets/samples/data_arras.jsonconfig7.4 KB
assets/samples/data_arras_fn.jsonconfig7.0 KB
assets/samples/data_colab.jsonconfig1.4 KB
assets/samples/data_colab_campos.jsonconfig1.7 KB
assets/samples/data_encargo.jsonconfig4.2 KB
assets/samples/data_example.jsonconfig1.1 KB
assets/samples/data_kyc.jsonconfig1.1 KB
assets/samples/data_kyc_vendedor.jsonconfig1.4 KB
assets/samples/data_llaves.jsonconfig1.8 KB
assets/samples/data_reserva.jsonconfig4.2 KB
assets/samples/documents.jsonconfig2.8 KB
assets/samples/signers_arras.jsonconfig419 B
assets/samples/signers_colab.jsonconfig241 B
assets/samples/signers_encargo.jsonconfig225 B
assets/samples/signers_example.jsonconfig159 B
assets/samples/signers_kyc.jsonconfig106 B
assets/samples/signers_kyc_vendedor.jsonconfig108 B
assets/samples/signers_llaves.jsonconfig226 B
assets/samples/signers_reserva.jsonconfig322 B
assets/templates/01_encargo.guide.mdmarkdown13.8 KB
assets/templates/01_encargo.htmlother25.6 KB
assets/templates/02_kyc.guide.mdmarkdown11.1 KB
assets/templates/02_kyc_comprador.htmlother21.0 KB
assets/templates/02_kyc_vendedor.htmlother21.8 KB
assets/templates/03_reserva.guide.mdmarkdown8.8 KB
assets/templates/03_reserva.htmlother22.9 KB
assets/templates/04_arras.guide.mdmarkdown13.6 KB
assets/templates/04_arras.htmlother27.9 KB
assets/templates/05_colaboracion.guide.mdmarkdown7.6 KB
assets/templates/05_colaboracion.htmlother13.2 KB
assets/templates/06_llaves.guide.mdmarkdown5.7 KB
assets/templates/06_llaves.htmlother11.0 KB
assets/templates/EXAMPLE_receipt.guide.mdmarkdown3.1 KB
assets/templates/EXAMPLE_receipt.htmlother5.8 KB
assets/welcome.txtmarkdown600 B
references/attachments.mdmarkdown3.1 KB
references/controls.jsonconfig16.8 KB
references/first-run.mdmarkdown7.0 KB
references/formify-errors.mdmarkdown1.5 KB
references/formify.mdmarkdown13.2 KB
references/id-scan.mdmarkdown4.0 KB
references/kyc-pattern.mdmarkdown4.3 KB
references/memory.mdmarkdown4.9 KB
references/own-templates.mdmarkdown3.4 KB
references/regions-encargo.mdmarkdown6.0 KB
references/regions-table.mdmarkdown10.7 KB
references/regions.mdmarkdown1.4 KB
references/sample-pack.mdmarkdown3.3 KB
references/signatures.mdmarkdown11.5 KB
references/style-bilingual.mdmarkdown11.3 KB
references/style-drafting.mdmarkdown9.1 KB
references/style-structure.mdmarkdown5.9 KB
references/style.jsonconfig3.4 KB
references/style.mdmarkdown2.2 KB
references/templates-links.mdmarkdown4.7 KB
references/terms.mdmarkdown7.2 KB
references/tink-attributes.mdmarkdown9.0 KB
references/withdrawal.mdmarkdown9.8 KB
scripts/check_law.pyscript3.8 KB
scripts/check_style.pyscript5.4 KB
scripts/fill.pyscript7.4 KB
scripts/handover.pyscript5.2 KB
scripts/render_pdf.pyscript29.8 KB
scripts/sample_pack.pyscript3.2 KB
scripts/start.pyscript3.3 KB
scripts/stdlib_pdf.pyscript17.6 KB
scripts/translate.pyscript5.8 KB
segment.jsonconfig2.1 KB

scripts/handover.py

View on GitHub
#!/usr/bin/env python3
"""Route 5 of the PDF ladder: the hand-over, document text plus a complete field specification.

Written whenever no PDF can be made here, and also next to every standard-library PDF so that the
recipient can check what was built. One fixed shape, the developer's (formify-pdf-forms,
references/hand-over.md): 1 text, 2 field table, 3 signature areas, 4 what remains.

    python3 scripts/handover.py --html body.html --signers signers.json --out "<title>-spec.md" \
        --title "<title>" [--reason "why no PDF was produced here"]
"""
import argparse
import json
import os
import re
import sys

sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
from stdlib_pdf import parse_blocks, lay_out, winansi_problems  # noqa: E402


def kind_of(f):
    n = f["name"]
    if "tink-upload-attachment" in n:
        return "upload"
    if "tink-scan-id" in n or "tink-uploaded-image" in n or f.get("read_only") and "scan" in n:
        return "image"
    if f["height"] > 30:
        return "multiline"
    return "text"


def main():
    ap = argparse.ArgumentParser()
    ap.add_argument("--html", required=True)
    ap.add_argument("--signers", required=True)
    ap.add_argument("--out", required=True)
    ap.add_argument("--title", default="Document")
    ap.add_argument("--reason", default="No renderer and no PDF library here, so this is the complete specification.")
    a = ap.parse_args()

    body = open(a.html, encoding="utf-8").read()
    signers = json.load(open(a.signers, encoding="utf-8"))
    if isinstance(signers, dict):
        signers = signers.get("signers", [])
    blocks, fields = parse_blocks(body)

    # Pages from the standard-library layout when the text allows it; "-" otherwise.
    pages = {}
    all_text = " ".join(c["text"] for b in blocks if b[0] == "row" for c in b[1])
    if not winansi_problems(all_text):
        form = lay_out(blocks, signers, {}, [a.title])
        for w in form.widgets:
            pages[w["name"]] = w["page"] + 1

    out = ["# " + a.title + ": hand-over", "", a.reason, "", "## 1. Text", ""]
    headers = []
    last_section = ""
    anchors = {}
    for b in blocks:
        if b[0] == "h":
            out.append("#" * min(b[1] + 1, 4) + " " + b[2])
            out.append("")
            last_section = b[2]
            headers = []
        elif b[0] == "p":
            out.append(b[1])
            out.append("")
        elif b[0] == "sig":
            out.append("(signature areas)")
            out.append("")
        elif b[0] == "row":
            cells = b[1]
            if any(c.get("cab") for c in cells):
                headers = [c["text"] for c in cells]
                out.append("| " + " | ".join(t or " " for t in headers) + " |")
                out.append("|" + "---|" * len(headers))
                continue
            key = next((c["text"] for c in cells if c["k"]), "")
            others = [c["text"] for c in cells if not c["k"]]
            for c in cells:
                for f in c["fields"]:
                    col = cells.index(c)
                    anchors[f["name"]] = key or last_section
                    if col < len(headers) and headers[col]:
                        anchors[f["name"]] = (key + " (" + headers[col] + ")") if key else headers[col]
            if headers:
                out.append("| " + " | ".join([key] + others) + " |")
            elif any(len(t) > 80 for t in others):
                if key:
                    out.append("**" + key + "**")
                    out.append("")
                for t in others:
                    out.append(t)
                    out.append("")
            else:
                out.append((key + ": " if key else "") + " / ".join(t for t in others if t))
                out.append("")

    out += ["", "## 2. Fields", "",
            "| # | name | label | kind | required | options | read-only | page | anchor | size |",
            "|---|---|---|---|---|---|---|---|---|---|"]
    for i, f in enumerate(fields, 1):
        k = kind_of(f)
        size = "%d × %d" % (f["width"], f["height"]) if k in ("image", "upload") else "-"
        label = anchors.get(f["name"], f["name"].split("|")[0])
        out.append("| %d | %s | %s | %s | %s | - | %s | %s | \"%s\" | %s |" % (
            i, f["name"].replace("|", "\\|"), label, k, "yes" if f["required"] and not f["read_only"] else "no",
            "yes" if f["read_only"] else "no", pages.get(f["name"], "-"), label, size))

    out += ["", "## 3. Signatures", ""]
    for s in signers:
        cap = s.get("role", "") + (" / " + s["role_tr"] if s.get("role_tr") and s["role_tr"] != s.get("role") else "")
        line = "- " + cap + (" (" + s["name"] + ")" if s.get("name") else "") + ": after the closing paragraph, empty space of 219 × 58 pt, caption only"
        if s.get("id_scan"):
            line += ", ID-scan placeholder 218 × 138 pt beside it"
        out.append(line)
    out += ["", "## 4. What remains", "",
            "Open this in an assistant with a PDF library (Claude Desktop has one, and this skill's scripts produce the exact layout wherever a browser or WeasyPrint exists) and ask for the PDF; every field above is already decided.", ""]
    open(a.out, "w", encoding="utf-8").write("\n".join(out))
    print("wrote " + a.out)


if __name__ == "__main__":
    main()
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall