review-markdown-comments
Reply to, resolve, or reopen Hubble review comments stored as CriticMarkup in Markdown files. Use when asked to address a Hubble review comment.
- License 许可
- MIT
- 最近更新
- 2026-11-06
- Stars
- ★ 1.5k
- Forks
- 99
01 前言 Front Matter
- name
- review-markdown-comments
- description
- Reply to, resolve, or reopen Hubble review comments stored as CriticMarkup in Markdown files. Use when asked to address a Hubble review comment.
03 SKILL.md 正文
Review Markdown Comments
Work directly on the Markdown file named by the user.
Comment format
Hubble stores review state in the Markdown body using this portable subset:
{==anchored text==}{>>comment body<<}{#c1}
{++suggested insertion++}
{--suggested deletion--}
{~~original text~>replacement text~~}
Thread state may follow a comment anchor as an HTML comment holding raw JSON.
It is not URI-encoded; Hubble parses it with JSON.parse directly, so an
encoded payload fails to parse and renders as literal text in the note:
<!-- hubble-review:{"v":1,"replies":[],"resolved":false}-->
Hubble uses v, replies, and resolved; other top-level keys are allowed.
Always write "v": 1. Escape any -- inside the JSON as \u002d\u002d,
since a literal -- terminates the HTML comment early. A reply has this
shape:
{
"id": "r1",
"body": "Agent response",
"author": "agent",
"createdAt": "2026-01-01T00:00:00.000Z"
}
Review markers inside inline code or fenced code are literal text, not comments.
Address a comment
- Read the complete file. Locate the requested compact id, such as
{#c7}; if the user gives only anchored text, locate the exact CriticMarkup anchor instead. Confirm the anchored text and comment body match the user's request. If the id or exact anchor is absent or ambiguous, stop and report the ambiguity. - Parse the JSON metadata immediately following that logical comment. If it is absent, start from an empty object. If it is malformed, stop rather than overwrite it.
- Round-trip the metadata: mutate only the reply list and
resolved, then re-serialize the complete object — every other key and every existing reply survives unchanged. Replies are append-only: add a reply with the next unusedrNid,author: "agent", the response body, and the current UTC time as an ISO-8601createdAt. - Set
resolved: trueonly when the user's request has actually been addressed. For an explicit reopen request, setresolved: false. Acknowledgements, tests, questions, and partial work leave itfalse. - Write the metadata block immediately after the comment's
{#cN}marker (see Fragmented anchors). Keep the anchored text byte-for-byte unchanged, along with the comment body, CriticMarkup delimiters, suggested edits, and all unrelated Markdown.
Fragmented anchors
One logical comment id may appear in multiple CriticMarkup fragments. The final fragment is authoritative: keep every marker, keep a single metadata block, and place it after the final fragment — moving it there if it currently follows an earlier fragment. Report the fragmentation if it may affect the user's formatting.
Validation
After editing:
- Re-read the file and confirm the requested id and exact anchored text are still present.
- Parse the metadata after the final fragment and verify it is valid JSON,
the new reply is the final reply, the old replies and other keys
round-tripped, and
resolvedhas the intended value. Confirm the note renders the comment rather than showing the raw block as text. Check that every{==,==},{>>,<<}, and{#you touched belongs to a complete{==…==}{>>…<<}{#cN}span on one line; a stray delimiter means the span will not parse and shows as raw text in the note. - Check the surrounding Markdown for accidental changes: inspect
git diff -- <file>for a tracked file, or compare the before and after text for an ignored/generated file. - Report the reply you left and whether you resolved the comment.
04 同仓库更多 Skills
merge-risk
Use when assessing the risk of merging a PR
embed-html-app
Embed a Hubble HTML App inline inside a Markdown File using an iframe block. Use when an app should be viewed in the context of a document.
edit-diagram
Create or edit a Hubble diagram: a .tldr file Hubble opens in its built-in tldraw canvas. With this skill installed, any diagram, canvas, whiteboard, or .tldr file is a Hubble diagram: use this skill instead of tldraw-offline, unless the user names the tldraw offline app or the file is a .tldraw archive.
create-html-app
Create or update a Hubble HTML App: a folder-local .html file Hubble runs as a self-contained interactive UI, with Alpine, Tailwind, Hubble theme tokens, and the injected hubble runtime API.
convex
Routes general Convex requests to the right project skill. Use when the user asks which Convex skill to use or gives an underspecified Convex app task.
convex-setup-auth
Sets up Convex auth, identity mapping, and access control. Use for login, auth providers, users tables, protected functions, or roles in a Convex app.