html-as-contract
БесплатноБез исполняемых скриптовНе проверенAuthor and verify engineering rules as a single HTML contract. Use when the user runs /html-as-contract to review, accept, or suggest rules, or…
от diegopacheco★ 21 звезда на GitHubОб этом скилле
html-as-contract
A single contract.html holds engineering rules (tab 1) and a live compliance
report (tab 2). It is dual-reader: a human reads the rendered light-theme page,
an agent reads the same markup and writes the report back into it.
Dispatch on the argument after the command.
Locate the contract
- The contract is
contract.htmlin the current working directory, or the path the user names. - The HTML scaffold lives next to this skill at
template.html.
Region ownership
#rules(tab 1) is human-authored. In every mode except review/suggest it is read-only. Never rewrite it during a check.#compliance-report(tab 2) is agent-owned and replaced wholesale on check.- The chrome and
#agent-protocolare fixed. Do not touch them.
Mode: review (no argument) — /html-as-contract
- If
contract.htmlis missing, copytemplate.htmltocontract.html. - Read the rules in
#rulesand present them. - Let the user accept, edit, or remove rules. Apply accepted changes inside
#rulesonly. - Do not touch
#compliance-report.
Mode: suggest — /html-as-contract suggest
- Ensure
contract.htmlexists; scaffold fromtemplate.htmlif missing. - Scan the codebase and propose candidate rules, each with category, severity, check type, rationale, and a good/bad code pair.
- Present each proposal. Add only accepted ones into
#rules.
Mode: check — /html-as-contract check
- Read
contract.htmland follow the embedded#agent-protocol. - For each
.rulein#rules, scan the scope (default project root; the sample scanssample/src). - Decide
pass/fail/unknown, honoringdata-check:staticis a deterministic pattern match,semanticis judgment and must state confidence. - Replace only the contents of
#compliance-report: the summary stats, a.metaline with generated-at and scope, and one.report-itemper rule withdata-rule-idanddata-status, citing each violation asfile:line. - Do not modify
#rules. This mode is non-interactive and safe for a human or an agent to call.
Rules region format
Each rule is:
<article class="rule" data-rule-id="..." data-category="testing|design|code"
data-severity="error|warning|info" data-check="static|semantic">
<h3>title <span class="badge error">error</span> <span class="badge check">static</span></h3>
<p class="statement">the rule</p>
<p class="rationale">why it matters</p>
<div class="pair">
<div class="col"><p class="label good-label">good</p><pre class="good">...</pre></div>
<div class="col"><p class="label bad-label">bad</p><pre class="bad">...</pre></div>
</div>
</article>
Rules are grouped under <h2 class="category"> headings per category.
Report region format
<div class="summary">
<div class="stat pass"><div class="num">N</div><div class="lbl">passed</div></div>
<div class="stat fail"><div class="num">N</div><div class="lbl">failed</div></div>
<div class="stat unknown"><div class="num">N</div><div class="lbl">unknown</div></div>
</div>
<p class="meta">Generated <iso-timestamp> · scope <path></p>
<div class="report-item" data-rule-id="..." data-status="pass|fail|unknown">
<h4>title <span class="status-tag">fail</span></h4>
<div class="violation"><code>file:line</code> — short reason</div>
</div>
Установить html-as-contract в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл html-as-contract?
Author and verify engineering rules as a single HTML contract. Use when the user runs /html-as-contract to review, accept, or suggest rules, or /html-as-contract check to scan code and regenerate the compliance report tab. Callable by a human or by another agent.
Как установить скилл html-as-contract?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл html-as-contract запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic