GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Zaunema/decision-html: On-demand HTML decision tools for AI-human collaboration. 5 single-file templates + counter-observation protocol. Inspired by html-effectiveness.

BranchesTags
Open more actions menu

Latest commit

 

History

1 Commit
1 Commit

Folders and files

NameName
Last commit message
Last commit date
docs
docs
 
 
examples
examples
 
 
references
references
 
 
templates
templates
 
 
.gitignore
.gitignore
 
 
CHANGELOG.md
CHANGELOG.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
README.zh.md
README.zh.md
 
 
SKILL.md
SKILL.md
 
 

Repository files navigation

decision-html

On-demand HTML decision tools for AI-human collaboration. When markdown is uncomfortable to read or adjust, generate a single-file HTML tool, let the user adjust in browser, paste structured judgment back to the agent.

中文文档 / Chinese README · LICENSE · CHANGELOG · Credits


The problem this solves

You're collaborating with an AI agent (Claude Code, Cursor, Cline, Claude.ai, ChatGPT, …). At some point the agent needs you to:

  • Rank 7 items by priority
  • Weight 5 factors and live-rank them by computed ROI
  • Toggle a 10×3 matrix and track what you changed
  • Review a 15-paragraph draft and mark each pass/delete/defer/rewrite
  • Compare 3 design options across 4 dimensions

If the agent expresses this in markdown, you have to mentally sort/compute/compare. That's the moment markdown breaks down — and the moment to switch to an HTML tool.

decision-html is a set of 5 reusable HTML templates + conventions that the agent generates on demand. You adjust in the browser, click "Copy as markdown/JSON", paste back. The agent then counter-observes your judgment against objective evidence and continues planning.

The 5 templates

Template Use for Output
kanban.html Rank 5+ items into N buckets Markdown grouped list
slider.html Multi-factor weighting + live ranking Markdown table
toggle-matrix.html N×M toggle + change tracking JSON with diff_from_default
annotated-doc.html Long-doc paragraph review (pass/delete/defer/rewrite) Markdown with status
card-compare.html 2-4 options side-by-side compare + pick Markdown decision record

All templates share:

  • localStorage auto-persistence — refresh doesn't lose state
  • Reset to baseline — back to last agent-synced state (not initial empty)
  • Copy as markdown/JSON — one click → structured output
  • Vanilla HTML/CSS/JS — single file, no deps, double-click to open

Quick start

1. Clone or download

git clone https://github.com/<your-handle>/decision-html.git

2. Pick a template & fill in your data

Open templates/<template>.html in your editor. Each template has a comment block at the top:

<!--
  Usage:
  1. Read this template
  2. Replace placeholders:
     - <!-- TITLE --> section: decision title + tagline
     - <!-- ITEMS --> section: ... (template-specific)
     - HARD_DEFAULTS: initial state
  3. Write to <your-output-dir>/decisions/YYYY-MM-DD-<topic>.html
-->

Replace the {{...}} placeholders with your actual content. Save to a working directory (e.g. ~/decision-html-output/).

3. Open in browser, adjust, copy, paste

  • Double-click the generated HTML
  • Drag / toggle / slide to your judgment
  • Click Copy as markdown (or Copy as JSON for toggle-matrix)
  • Paste back to the agent chat

4. Agent counter-observes & continues

This is the critical step (it's what separates this paradigm from "glorified Excel"):

The agent receives your structured Copy, then compares your subjective judgment vs objective evidence in the source data, and surfaces blind spots:

"You weighted X at the lowest, but the source data shows X is a 15% negative-feedback trigger. Suggest re-weighting to 60+."

See references/03-output-formats.md for counter-observation examples per template.

Use in different agents

Claude Code (recommended)

Copy or symlink the whole folder into ~/.claude/skills/decision-html/. The agent auto-loads it via the SKILL.md frontmatter — trigger via keywords ("make it an HTML", "this markdown is hard to read", etc.) or /decision-html slash command.

git clone https://github.com/<your-handle>/decision-html.git ~/.claude/skills/decision-html

Cursor / Cline / Continue / Aider

Paste SKILL.md's content into your system prompt or .cursorrules / .clinerules / equivalent. When the agent needs a decision tool, it will follow the workflow (read template → fill data → write file → notify you).

Claude.ai / ChatGPT (web)

Upload SKILL.md + the specific templates/<template>.html you want, with this instruction:

"Follow the workflow in SKILL.md. When I describe a decision scenario, fill the appropriate template with my data, give me the resulting HTML to save and open locally."

Generic LLM / API

Include SKILL.md in your prompt. The skill is agent-agnostic because templates are pure HTML and conventions are plain markdown — no agent-specific runtime required.

Design principles (TL;DR)

  1. localStorage auto-persistence — never lose state on refresh
  2. Reset to baseline — back to user's last copied state, not empty defaults
  3. Copy as X button — must export structured text (markdown/JSON)
  4. Warm off-white + sans-serif — #F7F4EC + Microsoft YaHei / PingFang SC; no heavy reds or "PPT-style" accent bars
  5. Vanilla HTML/CSS/JS — single file, no dependencies, double-click to open

See references/02-design-principles.md for the full set of conventions + anti-patterns.

Anti-patterns (don't do these)

  • ❌ Pursuing "near real-time sync" with the agent's browser — accept the async nature
  • ❌ Snapshot rows / URL hash sync / DOM-element selection tricks — over-optimization
  • ❌ Heavy decorative colors — warm gray-white + one burgundy accent + status colors is enough
  • ❌ Skipping counter-observation — without it, this is just glorified Excel
  • ❌ Using this for final deliverables — that's what presentation skills are for

When NOT to use this skill

  • 1-2 Yes/No choices → use the agent's AskUserQuestion (or equivalent)
  • Single text answer → just chat
  • Simple data display → markdown table is fine
  • Final deliverable for the boss → use a presentation-generator or formal-html-report skill

Examples

See examples/:

  • 01-product-postmortem/ — Slider template with 5 product launch insights to weight
  • 02-roadmap-prioritization/ — Kanban template with 6 backlog items to bucket into P0/P1/P2/Backlog

Each example has its own README explaining the scenario, the filled-in HTML, and a sample Copy output.

Repository structure

decision-html/
├── README.md                  (this file — English)
├── README.zh.md               (Chinese)
├── LICENSE                    (MIT)
├── SKILL.md                   (skill definition — bilingual)
├── templates/
│   ├── kanban.html
│   ├── slider.html
│   ├── toggle-matrix.html
│   ├── annotated-doc.html
│   └── card-compare.html
├── references/
│   ├── 01-when-to-use.md      (decision tree + template selection + anti-patterns)
│   ├── 02-design-principles.md (5 rules + colors + JS components + anti-patterns)
│   └── 03-output-formats.md   (Copy formats + agent parse + counter-observation examples)
├── examples/
│   ├── 01-product-postmortem/
│   └── 02-roadmap-prioritization/
├── docs/
│   └── credits.md             (Thariq origin + Anthropic skills system note)
├── CHANGELOG.md
└── .gitignore

Credits

Inspired by Thariq Shihipar's html-effectiveness project — "The unreasonable effectiveness of HTML".

The core insight: AI agent outputs should sometimes become tools, not documents. decision-html is a productionized take on that idea with 5 reusable templates, structured Copy outputs, localStorage persistence, and a counter-observation protocol that closes the human ↔ agent loop.

See docs/credits.md for the full attribution.

License

MIT

Contributing

This is a small, opinionated skill — designed to be forked rather than centrally maintained. If you find a useful new template pattern or extension, feel free to PR or fork.

When adding new templates, follow references/02-design-principles.md (5 mandatory rules, color system, anti-patterns).

About

On-demand HTML decision tools for AI-human collaboration. 5 single-file templates + counter-observation protocol. Inspired by html-effectiveness.

Topics

ai-agentclaude-codecursordecision-toolhtmlprompt-engineeringthrowaway-editor

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.