html2style AGENTS.md

html2style AGENTS.md is an instructions file for Codex, OpenCode from jackguihx-alt/html2style. It costs 318 tokens per session, scanned A, original, MIT.

A set of instructions for extracting and reproducing a website’s visual design, such as its colours, layout, typography, and spacing.

In plain words
What is it for?
Use it to extract a site’s design language, create a style profile, produce a design guide and preview, or reproduce a reference design. It also covers high-fidelity reconstruction work.
Why use it?
It gives an agent a defined process for studying a reference website and recording its design decisions before implementation.

Instructions file for CodexOpenCode

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/jackguihx-alt/html2style/agents-md
Clone the repo
git clone --depth 1 https://github.com/jackguihx-alt/html2style

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for html2style AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/jackguihx-alt/html2style/agents-md.svg)](https://agentmods.dev/instructions/jackguihx-alt/html2style/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/jackguihx-alt/html2style/agents-md"><img src="https://agentmods.dev/badge/instructions/jackguihx-alt/html2style/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 318 This file is loaded in full into every session.
When invoked 318 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00318 $0.00318
Opus 5 $0.00159 $0.00159
Sonnet 5 $0.00064 $0.00064
Haiku 4.5 $0.00032 $0.00032

Measured 3d ago against content hash fc93b37682c0, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

html2style AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 16 lines

What it actually says

Agent Instructions

When a user asks to extract, transfer, document, or reproduce a website's design language, read SKILL.md and follow its evidence-first workflow.

Use the platform-neutral interfaces in this repository:

  • Shell-capable agents: run html2style doctor, then html2style extract <url> <evidence.json> --profile full.
  • MCP-capable agents: call browser_doctor, then extract_website_evidence.
  • Default to style extraction when the user wants to understand a reference: build style-profile.json, synthesize STYLE.md, and render style-board.html. Stop there unless implementation was requested.
  • Before delivery, run html2style skill and return the resulting design-style Skill. A human opens assets/preview.html; a later Agent session starts from its SKILL.md.
  • Do not require a Codex, Claude, Cursor, or other vendor-specific browser plugin.
  • Read references/high-fidelity-reconstruction.md for replication work. Keep viewport, outer container, rendered image, and intrinsic asset geometry separate.
  • Read references/design-language-transfer.md when creating an original site from a reference style. Preserve design logic while replacing source identity, content, assets, and page architecture.
  • Generate DESIGN.md from measured evidence and render design-system.html.
  • For complete replicas, run html2style assets and html2style audit --mode complete, then compare screenshots at identical viewports. Do not replace full-page scope with a representative sample.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 16 lines · 318 tokens per session scan A fc93b37682c0

Subscribe to this mod's changes

html2style AGENTS.md is an instructions file published in the GitHub repository jackguihx-alt/html2style (2 stars, last pushed 23d ago), licensed MIT. It adds 318 tokens to every session, about $0.0016 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.