Skip to main content

Generate AI-agent VOICE.md files from website copy and CTAs.

Project description

site2voice

Turn any website into agent-ready copy context. Then test whether the agent followed it.

PyPI CI License: MIT

site2voice terminal demo

pipx install site2voice

site2voice init https://example.com
site2voice bench https://example.com draft.md --strict

No LLM dependency. No browser dependency. Just a small Python CLI that extracts measurable voice signals and turns them into files coding agents can use.

Why

Agents are getting better at building interfaces, but they still guess the words: headings, CTAs, navigation labels, claim boundaries, and product tone.

DESIGN.md gives agents visual taste. site2voice gives them copy taste.

What You Get

.site2voice/
  VOICE.md          human-readable writing brief
  voice.json        machine-readable voice profile
  agent-prompt.md   drop-in instruction for Codex, Claude Code, Cursor, etc.

The profile includes:

  • heading shape, sentence rhythm, paragraph length, CTA shape;
  • repeated vocabulary and CTA verbs;
  • deterministic tone labels;
  • unsupported-claim detection;
  • copied-span detection.

Benchmark

site2voice bench scores candidate copy against a source voice profile and can fail CI when the copy drifts.

site2voice bench examples/editorial-home.html examples/after-copy.md --strict

Example fixture:

Candidate Result Overall Lexicon Copy safety
after-copy PASS 83.8 70.0 93.2
before-copy FAIL 36.6 0.0 100.0

The score rewards measurable voice alignment without rewarding verbatim copying.

Commands

# Generate one Markdown brief
site2voice https://example.com --out VOICE.md

# Generate an agent-ready context pack
site2voice init https://example.com --dir .site2voice

# Write JSON for custom pipelines
site2voice https://example.com --format json --out voice.json

# Gate candidate copy in CI
site2voice bench https://example.com draft.md \
  --fail-under 75 \
  --min-copy-safety 85 \
  --min-claim-safety 75

What It Is Not

  • Not an official brand guideline.
  • Not a DESIGN.md visual-token extractor.
  • Not a crawler for private pages or authenticated apps.
  • Not a tool for copying another site's prose.

Develop

python3 -m pip install -e .
make test
make bench-ci

Docs

License

MIT

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

site2voice-0.3.0.tar.gz (26.7 kB view details)

Uploaded Source

Built Distribution

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

site2voice-0.3.0-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

File details

Details for the file site2voice-0.3.0.tar.gz.

File metadata

  • Download URL: site2voice-0.3.0.tar.gz
  • Upload date:
  • Size: 26.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for site2voice-0.3.0.tar.gz
Algorithm Hash digest
SHA256 8ab124d7dff508e7529c0a4b0e294312e7b893d71f8c815fbb221a155f1ccf57
MD5 a66ce9f8d262d16f432ea41893616757
BLAKE2b-256 9af78433862b13e78c232fe2da4a4d0f682d3337f0b2e841cc6d53ee56e02247

See more details on using hashes here.

Provenance

The following attestation bundles were made for site2voice-0.3.0.tar.gz:

Publisher: publish.yml on SihyeonJeon/site2voice

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file site2voice-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: site2voice-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 14.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for site2voice-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4d8b991ac1ce8b1807a6487d9f28f0947537ca90cdf6bc3f5309c18a3f164c0e
MD5 0497e670b1c4e565c30a27286d7064f3
BLAKE2b-256 2c44efeaa157e0a364bcdf465f98bea3f25c64b5a55284354b0f8515d4b26484

See more details on using hashes here.

Provenance

The following attestation bundles were made for site2voice-0.3.0-py3-none-any.whl:

Publisher: publish.yml on SihyeonJeon/site2voice

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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