Skip to main content

Prompts job pack for Tessera: compile messy prompt collections into validated, reviewable assets.

Project description

tessera-prompts

Compile messy prompt collections into validated, reviewable, reusable assets.

tessera-prompts is a Tessera job pack. It reads a directory of prompt files (frontmatter + body), normalizes them into a canonical PromptCase schema, validates them, and emits a catalog plus reports.

Input shape

Each prompt is either:

  • A single file: <name>.prompt.md
  • A directory: <name>/PROMPT.md (optionally with supporting files alongside)

Each file is YAML frontmatter followed by the prompt body.

---
name: refund_window
description: Explain the refund eligibility window to a customer.
version: 1.0.0
lang: en
tags: [customer-support, billing]
model_hints:
  temperature: 0.2
  max_tokens: 250
variables:
  - name: customer_name
    type: string
    required: true
  - name: days_since_purchase
    type: number
    required: true
    description: Days between purchase and refund request.
examples:
  - input:
      customer_name: Maya
      days_since_purchase: 18
    expected: Maya, your purchase is within the 30 day refund window...
---
Hi {{customer_name}}, thanks for reaching out about a refund.

Your purchase was {{days_since_purchase}} days ago. Our standard refund window
is 30 days. Here is what that means for your request: ...

Compile a prompt catalog

tessera prompts compile \
  --input examples/prompts/ \
  --output ./out/prompt_pack

Artifacts written:

index.jsonl              canonical PromptCase rows (one per line)
index.md                 human-readable catalog
examples.jsonl           inline examples extracted from frontmatter
validation_report.md     issues found (missing variables, version errors, name collisions, etc.)
coverage_report.md       tag distribution + example coverage + language breakdown

Validation rules

  • missing_name — frontmatter has no name
  • non_canonical_name — name is not kebab-case or snake-case
  • name_collision — two prompts share the same name (or name + version)
  • invalid_version — version is not SemVer
  • missing_description — no description in frontmatter
  • short_description — description is under 10 characters
  • undeclared_variable — body uses {{x}} but x is not declared in variables
  • unused_variablex is declared but never used in body
  • example_missing_required_variable — example input does not supply all required variables

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tesserakit_prompts-0.4.0.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tesserakit_prompts-0.4.0-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file tesserakit_prompts-0.4.0.tar.gz.

File metadata

  • Download URL: tesserakit_prompts-0.4.0.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for tesserakit_prompts-0.4.0.tar.gz
Algorithm Hash digest
SHA256 8f45559e6c8d4752c9b24cbd19594a845740b00aeec64123e59b97de393e4739
MD5 9498100bd1cde04c917b55a854df227b
BLAKE2b-256 177cea34e2bf675b4f2c530c468ae47e5c6602bd8e6386a1cccf2a26518c0a77

See more details on using hashes here.

File details

Details for the file tesserakit_prompts-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for tesserakit_prompts-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b17fc78f5f826ae7ac6316361c5067579b5eaa199e4feaf806fdabaadd540935
MD5 5ef796e8091e166241f46568fea7912a
BLAKE2b-256 ee2a940439581c713c6637f0878cf7f136aadbeb529c175c29d73fd0a331c02d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page