AI plan review tool, reviewable plan skill, and agent handoff workflow for coding agents.
Reviewable HTML implementation plans with inline comments, block/section comments, local autosave, and handoff prompts for any AI coding agent.
HTML Plan Review is a small, dependency-free local tool for turning implementation plans into interactive browser-review artifacts. It is useful when Markdown plans are not enough and you want a reviewer to point at exact text, code, tasks, sections, or acceptance criteria before an AI coding agent or developer continues the work.
The project is agent-agnostic. It works with any tool that can read local files and follow a prompt, including Claude Code, OpenAI Codex, ChatGPT, Cursor, Windsurf, Aider, GitHub Copilot Chat, Gemini CLI, Cline, Continue, Roo Code, and custom local agents.
Search keywords: AI plan review, plan skill, Claude Code skill, Codex skill, Cursor agent workflow, Windsurf Cascade workflow, Aider planning workflow, reviewable implementation plan, HTML planning tool, agent handoff prompt, coding agent planning.
- Plan skill workflow for AI coding agents.
- Reviewable implementation plans for agentic coding workflows.
- Self-contained HTML plan template with inline CSS and JavaScript.
- Comment on selected text or code.
- Comment on a whole block with a compact
+button. - Comment on a whole section by clicking
+on a heading. - Persistent yellow highlights for reviewed targets.
- Pencil edit button for quickly editing existing comments.
- Right-side comment panel with open/resolved state.
- Local review server with autosave.
- Structured review artifacts: JSON, Markdown, saved plan body, and pending handoff request.
- Status buttons that copy a prompt for any AI coding agent.
- No runtime Python dependencies.
Clone the repository:
git clone https://github.com/zergzorg/html-plan-review.git
cd html-plan-reviewRun the sample plan directly from the source tree:
PYTHONPATH=src python -m html_plan_review.server examples/sample-plan.htmlOpen:
http://127.0.0.1:4177/plan
Or open the sample directly:
http://127.0.0.1:4177/plan/sample-plan
pipx install git+https://github.com/zergzorg/html-plan-review.gitRun:
html-plan-review-server examples/sample-plan.htmlpython -m pip install git+https://github.com/zergzorg/html-plan-review.gitRun:
html-plan-review-server path/to/your-plan.htmlgit clone https://github.com/zergzorg/html-plan-review.git
cd html-plan-review
python -m pip install -e .Use the template:
src/html_plan_review/assets/html-plan-template.html
Replace these placeholders:
{{PLAN_TITLE}}
{{PLAN_ID}}
{{PLAN_STATUS}}
{{PLAN_CREATED}}
{{PLAN_SCOPE}}
{{PLAN_BODY}}
{{PLAN_BODY}} should be valid HTML. Recommended structure:
<h2>Overview</h2>
<p>Short summary of the change.</p>
<h2>Implementation Steps</h2>
<div class="task">
<h3>Task 1: Implement the change</h3>
<p><strong>Files:</strong> <code>src/example.py</code></p>
<label><input type="checkbox"> Add the implementation.</label><br>
<label><input type="checkbox"> Add a regression test.</label>
</div>
<h2>Validation Commands</h2>
<pre><code>python -m pytest</code></pre>Serve one plan:
html-plan-review-server docs/plans/active/my-plan.htmlServe multiple plans:
html-plan-review-server docs/plans/active/a.html docs/plans/completed/b.htmlUse a custom port:
html-plan-review-server --port 4180 docs/plans/active/my-plan.htmlUse a repository root and auto-discover plans in docs/plans/active and docs/plans/completed:
html-plan-review-server --repo-root .In server mode, comments and handoff requests are saved under:
docs/plans/.reviews/<plan_id>/
Files:
comments.json— machine-readable review source of truth.comments.md— readable review summary.plan-content.html— saved plan body without utility buttons.request.json— created when a status button is clicked.
comments.json contains comments with:
idplanIdblockIdquotetexttargetType:selection,block, orsectionresolvedcreatedAtupdatedAt
The status buttons express reviewer intent:
Return for reworkIn progressReady to executeClosed
When clicked in server mode, a status button:
- Saves comments and plan content.
- Writes
request.json. - Copies a status-aware prompt to the clipboard.
Paste that prompt into your preferred AI coding agent or developer workflow.
Common compatible workflows:
- Claude Code — paste the generated prompt and let it read
docs/plans/.reviews/<plan_id>/. - OpenAI Codex / ChatGPT — paste the prompt in the coding thread and ask it to process the pending review.
- Cursor — paste the prompt into Agent mode with the repository open.
- Windsurf — paste the prompt into Cascade with the repository open.
- Aider — paste the prompt and include the HTML plan/review files as context.
- GitHub Copilot Chat — paste the prompt in an agent-capable workspace.
- Gemini CLI — paste the prompt from the repository root.
- Cline / Continue / Roo Code / custom agents — point the agent at the review directory from the prompt.
Typical search/use-case phrases this project is meant to satisfy:
- plan skill for Claude Code
- Codex plan review workflow
- Cursor plan review tool
- Windsurf agent planning workflow
- Aider implementation plan review
- AI coding agent handoff prompt
- reviewable implementation plan
- HTML plan with comments
Opening a plan via file:// works, but browsers cannot silently write files to disk. In direct file mode:
- comments are stored in
localStorage - JSON/Markdown/HTML export buttons are visible
- no
request.jsonis created automatically
Use the local server for normal review work.
The core project does not require any specific AI product. However, if you want your AI assistant to understand how to generate and manage HTML plans automatically, you should install the provided Agent Skill.
The reference skill instructions live under:
integrations/codex-skill/SKILL.md
Because the skill is a Markdown prompt, there are several ways to install and maintain it:
Option A: Ask your AI Agent (Recommended) You can simply give your AI agent the URL to this repository and ask it to install or update the skill. Prompt example:
"Read the skill instructions from
https://raw.githubusercontent.com/zergzorg/html-plan-review/main/integrations/codex-skill/SKILL.mdand install it into your local skills directory. If I already have anhtml-plan-managerskill, update it to match the latest logic."
Option B: Git Clone (Best for automatic updates) Clone the repository directly into your agent's skills folder:
git clone https://github.com/zergzorg/html-plan-review.git ~/.agents/skills/html-plan-managerTo update: Just navigate to that folder and run git pull. Your agent will instantly read the newest instructions.
Option C: Manual Copy
- Open
integrations/codex-skill/SKILL.md - Copy the contents.
- Paste it into your agent's system prompt,
.cursorrules, or custom instructions. To update: You will need to manually revisit the repository, copy the latest text, and replace your old prompt.
You can add similar prompt/skill files for Claude Code, Cursor, Windsurf, Aider, Copilot Chat, Gemini CLI, or any internal agent. The review artifacts are plain files, so no product-specific API is required.
- The server binds to
127.0.0.1by default. - Review artifacts are written only to the local filesystem.
- Do not expose the server to a public network unless you understand the risks.
- Review comments may contain private project details. Do not commit
.reviews/directories unless that is intentional.
MIT. See LICENSE.
AI plan review tool, reviewable plan skill и workflow передачи задач AI-агентам.
HTML Plan Review — это локальный инструмент для интерактивных HTML-планов работ: комментарии к выделенному тексту, комментарии к блокам и разделам, autosave на локальный сервер и структурированный prompt для передачи работы любому AI-агенту.
Инструмент полезен, когда обычного Markdown-плана мало и нужно точно показать, какой фрагмент плана надо исправить, согласовать или взять в работу.
Проект не привязан к конкретному AI-продукту. Он работает с любым инструментом, который умеет читать локальные файлы и выполнять prompt: Claude Code, OpenAI Codex, ChatGPT, Cursor, Windsurf, Aider, GitHub Copilot Chat, Gemini CLI, Cline, Continue, Roo Code и кастомные локальные агенты.
Ключевые запросы: AI plan review, plan skill, Claude Code skill, Codex skill, Cursor agent workflow, Windsurf Cascade workflow, Aider planning workflow, reviewable implementation plan, HTML planning tool, agent handoff prompt, coding agent planning.
- Plan skill workflow для AI coding agents.
- Reviewable implementation plans для agentic coding workflows.
- Самодостаточный HTML-шаблон с inline CSS и JavaScript.
- Комментарии к выделенному тексту или коду.
- Комментарии к целому блоку через компактную кнопку
+. - Комментарии к целому разделу через
+на заголовке. - Желтая подсветка уже прокомментированных областей.
- Кнопка-карандаш для быстрого редактирования существующего комментария.
- Правая панель комментариев со статусом open/resolved.
- Локальный review-server с autosave.
- Структурированные artifacts: JSON, Markdown, сохраненное тело плана и pending request.
- Status-кнопки, которые копируют prompt для любого AI-агента.
- Нет runtime-зависимостей Python.
Склонируйте репозиторий:
git clone https://github.com/zergzorg/html-plan-review.git
cd html-plan-reviewЗапустите пример прямо из исходников:
PYTHONPATH=src python -m html_plan_review.server examples/sample-plan.htmlОткройте список планов:
http://127.0.0.1:4177/plan
Или пример напрямую:
http://127.0.0.1:4177/plan/sample-plan
pipx install git+https://github.com/zergzorg/html-plan-review.gitЗапуск:
html-plan-review-server examples/sample-plan.htmlpython -m pip install git+https://github.com/zergzorg/html-plan-review.gitЗапуск:
html-plan-review-server path/to/your-plan.htmlgit clone https://github.com/zergzorg/html-plan-review.git
cd html-plan-review
python -m pip install -e .Используйте шаблон:
src/html_plan_review/assets/html-plan-template.html
Замените placeholder-ы:
{{PLAN_TITLE}}
{{PLAN_ID}}
{{PLAN_STATUS}}
{{PLAN_CREATED}}
{{PLAN_SCOPE}}
{{PLAN_BODY}}
{{PLAN_BODY}} должен быть валидным HTML. Рекомендуемая структура:
<h2>Overview</h2>
<p>Краткое описание изменения.</p>
<h2>Implementation Steps</h2>
<div class="task">
<h3>Task 1: Implement the change</h3>
<p><strong>Files:</strong> <code>src/example.py</code></p>
<label><input type="checkbox"> Add the implementation.</label><br>
<label><input type="checkbox"> Add a regression test.</label>
</div>
<h2>Validation Commands</h2>
<pre><code>python -m pytest</code></pre>Один план:
html-plan-review-server docs/plans/active/my-plan.htmlНесколько планов:
html-plan-review-server docs/plans/active/a.html docs/plans/completed/b.htmlДругой порт:
html-plan-review-server --port 4180 docs/plans/active/my-plan.htmlАвтопоиск HTML-планов в docs/plans/active и docs/plans/completed:
html-plan-review-server --repo-root .В server-mode комментарии и handoff-request сохраняются в:
docs/plans/.reviews/<plan_id>/
Файлы:
comments.json— машинно-читаемый источник истины по комментариям.comments.md— человекочитаемая сводка review.plan-content.html— сохраненное тело плана без служебных кнопок.request.json— создается при клике по status-кнопке.
comments.json содержит:
idplanIdblockIdquotetexttargetType:selection,blockилиsectionresolvedcreatedAtupdatedAt
Status-кнопки фиксируют намерение ревьюера:
- вернуть в переделку
- в работу
- готово к исполнению
- закрыто
При клике в server-mode кнопка:
- Сохраняет комментарии и тело плана.
- Создает
request.json. - Копирует prompt в буфер обмена.
Этот prompt можно вставить в ваш AI-agent workflow.
Совместимые сценарии:
- Claude Code — вставьте prompt и дайте агенту прочитать
docs/plans/.reviews/<plan_id>/. - OpenAI Codex / ChatGPT — вставьте prompt в coding thread и попросите обработать pending review.
- Cursor — вставьте prompt в Agent mode с открытым репозиторием.
- Windsurf — вставьте prompt в Cascade с открытым репозиторием.
- Aider — вставьте prompt и добавьте HTML-план/review-файлы в контекст.
- GitHub Copilot Chat — вставьте prompt в workspace с агентным режимом.
- Gemini CLI — вставьте prompt из корня репозитория.
- Cline / Continue / Roo Code / кастомные агенты — укажите агенту review directory из prompt.
Типовые поисковые/use-case формулировки:
- plan skill for Claude Code
- Codex plan review workflow
- Cursor plan review tool
- Windsurf agent planning workflow
- Aider implementation plan review
- AI coding agent handoff prompt
- reviewable implementation plan
- HTML plan with comments
План можно открыть напрямую через file://, но браузер не может незаметно записывать файлы на диск. В таком режиме:
- комментарии хранятся в
localStorage - видны кнопки экспорта JSON/Markdown/HTML
request.jsonне создается автоматически
Для обычной работы лучше использовать локальный server mode.
Основной проект не требует конкретного AI-продукта. Опциональные инструкции для интеграций лежат в:
integrations/
Сейчас добавлено:
integrations/codex-skill/SKILL.md— опциональная инструкция для Codex skills.
По аналогии можно добавить prompt/skill-файлы для Claude Code, Cursor, Windsurf, Aider, Copilot Chat, Gemini CLI или внутреннего агента. Review artifacts — это обычные файлы, поэтому product-specific API не нужен.
- По умолчанию сервер слушает только
127.0.0.1. - Artifacts пишутся только в локальную файловую систему.
- Не открывайте сервер в публичную сеть без понимания рисков.
- Комментарии могут содержать приватные детали проекта. Не коммитьте
.reviews/, если это не осознанное решение.
MIT. См. LICENSE.