浏览器

md-comment

试用

Open a browser tab so a human can highlight-and-comment on a Markdown file. Submits a structured JSON of comments the agent can read and respond to. Use when...

它能做什么

Open a browser tab so a human can highlight-and-comment on a Markdown file. Submits a structured JSON of comments the agent can read and respond to. Use whenever the agent has generated a Markdown document (design doc, tech spec, README, PR description) and needs human review before proceeding.

技能文档

commentmd

When to invoke

  • The user explicitly runs /commentmd .
  • The agent has generated a Markdown document (design, tech spec, README, PR description, etc.) and needs targeted human feedback before iterating.

Usage

/commentmd 

`` is a relative or absolute path to the Markdown file to review.

Agent execution steps

  1. Resolve `` to an absolute path $ABS.
  2. Run:
    python3 ~/.agents/skills/commentmd/scripts/serve.py "$ABS"
    
  3. The command starts a local HTTP server (127.0.0.1:3118, or the next free port up to 3128) and opens the browser. The user selects text, adds comments, then clicks 完成评论 (Finish). The command prints wrote and exits.
  4. Read `` — by default .comments.json next to the source file.
  5. Process each comment: quote is the original excerpt; prefix / suffix are 32-char anchor windows around it; comment is the human's note. If md_changed_during_review is true, warn the user that the source file was modified externally between server start and submit.
  6. Revise the original document based on the comments and summarize in the reply how each was addressed.

Headless / remote environments

Append --static /tmp/review.html:

python3 ~/.agents/skills/commentmd/scripts/serve.py "$ABS" --static /tmp/review.html

The user opens the HTML on their own machine; Finish downloads a JSON file. Ask the user for the downloaded file's path, then read it.

Output JSON format

{
  "schema_version": 1,
  "md_file": "/abs/path/plan.md",
  "md_sha256": "abc...",
  "md_changed_during_review": false,
  "created_at": "2026-07-01T10:00:00Z",
  "comment_count": 2,
  "comments": [
    {
      "id": "c1",
      "quote": "Store events in MySQL",
      "prefix": "In our storage layer, we ",
      "suffix": ", replicated across ...",
      "comment": "Why not PostgreSQL? JSONB support is better.",
      "created_at": "2026-07-01T10:00:12Z"
    }
  ]
}

comment_count: 0 means the user has no objections.

相关技能

Open a browser tab so a human can highlight-and-comment on a Markdown file. Submits a structured JSON of comments the agent can read and respond to. Use when...

Open a browser tab so a human can highlight-and-comment on a Markdown file. Submits a structured JSON of comments the agent can read and respond to. Use when...

Turn Markdown files or folders into a polished, human-readable, self-contained HTML page by having the agent understand the document, choose an appropriate i...

6 次安装

Retrieve only relevant sections from Markdown memory, project notes, decision logs, and heading-structured knowledge bases with the mdselect CLI. Use when Co...

Format and lint markdown files for consistency and readability. Use when Codex needs to normalize markdown documents, fix heading levels, standardize link fo...

Fetch any public web page and get back clean, LLM-ready markdown (polite, robots-respecting)