perforce/p4plan-mcp/comment-html-format

Claude Code and agent skill by perforce/p4plan-mcp

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Author HTML-formatted comments and multiline field values that render correctly in both the Qt desktop client and the React web client. Use when posting/editing comments, setting Multiline Text custom fields, or writing detailedDescription/stepsToReproduce on a Bug.

Install

npx vskill@latest install perforce/p4plan-mcp/comment-html-format

SKILL.md

The same SKILL.md was published earlier as perforce/p4plan-mcp/comment-html-format.

Comment & Multiline HTML Format

P4 Plan treats comment text and multiline field values as sanitized HTML. The server runs every payload through a whitelist sanitizer — anything outside the allow-list below is silently stripped. Both the Qt desktop client and the React web client render the stored result.

Plain text without any tags is a legal special case: it is valid HTML, so the sanitizer accepts it and the server stores it as-is. Anything with formatting, lists, links, code blocks, or @mentions must use the documented HTML subset below.

This skill covers the format. For @user references inside this HTML, see the mentions skill.

When to use

Read this skill before calling any of:

  • post_comment — text is sanitized HTML
  • update_comment — text is sanitized HTML
  • set_custom_field — value is sanitized HTML when the column type is Multiline Text
  • create_item / update_item — detailedDescription and stepsToReproduce are sanitized HTML (Bug only)

Wire format

The wire format is always sanitized HTML. Two practical shapes:

  • Plain prose with line breaks (no tags needed): send raw text such as Hello\nworld. Plain text is valid HTML; the sanitizer accepts it unchanged, and the server stores it as-is.
  • Anything formatted (bold, lists, links, mentions, code blocks, tables): wrap in <html><body>...</body></html> and use the allowed tags below. The server sanitizes and minimizes — if the wrapped content reduces to plain text after sanitization (for example only <p> and <br> with no formatting), the envelope is stripped on storage.

Allowed tags

TagUse forNotes
<p>ParagraphDefault block. Don't put CSS on it (margin/color all stripped).
<br>Line break inside a paragraph
<strong>, <b>BoldUse semantic <strong>.
<em>, <i>ItalicUse semantic <em>.
<u>Underline
<s>, <del>Strikethrough
<span>Inline color/highlight onlyOnly place where inline color / background-color survive.
<a href="...">HyperlinkUse for @mentions (see mentions skill). External links allowed.
<blockquote>Quoted textBrowser-default styling on web; indented in Qt.
<pre>, <code>Code block / inline code<pre><code>...</code></pre> for multi-line. Qt converts to its configured code font.
<ul>, <ol>, <li>ListsAdd inline style="margin-top:0px;margin-bottom:0px" on <ul>/<ol> for clean Qt rendering. <ol type="...">/start honored.
<table>, <thead>, <tbody>, <tfoot>, <tr>, <td>, <th>, <caption>, <colgroup>, <col>TablesUse border attribute on <table> and style="border-collapse:collapse" for cross-client borders.
<img src="hansoft://...">Embedded imageUpload the image to the same item with upload_attachment and use the imageHtml it returns. Only hansoft:// images are kept; any other src (http, data:) is turned into a link.

Allowed inline CSS

Everything else is stripped. Don't try to be creative — font-size, font-family, text-decoration, text-align, etc. are all stripped.

PropertyWhereExample
color<span> only<span style="color:rgb(76,175,80);">done</span>
background-color<span> only<span style="background-color:#fff59d;">attention</span>
margin-top, margin-bottom, margin-left, margin-right<ul>, <ol> (any value); <p> (must be 0px)<ul style="margin-top:0px;margin-bottom:0px">
-qt-list-indent<ul>, <ol>Controls list nesting depth in Qt.
border, border-width, border-style, border-color, border-collapse<table>, <td>, <th>

Don't use

  • Headings (`<h1>`–`<h6>`) — sanitizer strips. Use <p><strong>...</strong></p> instead.
  • `<div>` — strip-list; content is preserved but the tag is removed.
  • Markdown (**bold**, # heading, `code` ) — stored verbatim, never converted.
  • Inline `style` on `<p>`, `<a>`, `<li>`, `<td>`, `<tr>` beyond the table above — colors/fonts/sizes are stripped.
  • External or `data:` `<img>` URLs — the server turns them into links. Upload the image with upload_attachment and use its imageHtml.
  • `<script>`, `<iframe>`, `<style>`, `<form>`, `<button>`, `<input>`, event handlers (`onclick=...`) — stripped with content removed.

Examples

1. Short formatted comment
html
<html><body><p>Looks good — <strong>shipping today</strong>.</p></body></html>
2. Status update with bullets and a mention
html
<html><body>
<p>Daily update:</p>
<ul style="margin-top:0px;margin-bottom:0px">
<li>Fixed login redirect bug.</li>
<li>Reviewed by <a href="hansoft://server;db;guid/UserID/42">@Alice</a>.</li>
<li>Performance regression <span style="color:rgb(76,175,80);">resolved</span>.</li>
</ul>
</body></html>

(For mention construction, see the mentions skill — copy userLink from list_project_users/get_current_user directly into the href.)

3. Multiline custom field with code block
html
<html><body>
<p>Repro:</p>
<pre><code>curl -X POST /api/login \
-H "Content-Type: application/json" \
-d '{"user":"x","pass":"y"}'</code></pre>
<p>Server returns <code>500</code> instead of <code>401</code>.</p>
</body></html>
4. Bug stepsToReproduce with a numbered list
html
<html><body>
<ol style="margin-top:0px;margin-bottom:0px">
<li>Open the Boards view.</li>
<li>Drag a card across columns.</li>
<li>Refresh the page — <strong>card returns to original column</strong>.</li>
</ol>
</body></html>

Common mistakes

  • Forgetting the envelope on formatted content. Server is forgiving but the Qt client is happier with <html><body>...</body></html> around anything beyond plain text.
  • Coloring with `<font color>` or `style="color"` on `<p>`/`<a>`/`<li>`. Wrap the colored span explicitly: <span style="color:...">text</span>.
  • Sending markdown. It will be displayed as literal **bold** to users.
  • Authoring tables with `<tr>` only (no `<thead>`/`<tbody>`). Both clients tolerate it but Qt renders header cells (<th>) more cleanly when wrapped in <thead>.
  • Putting a mention chip inside a `<pre>` or `<code>` block. It will render as plain text — code blocks suppress link styling.

Tool Mapping

User IntentToolHTML field
Post a commentpost_commenttext
Edit a commentupdate_commenttext
Set a Multiline Text custom column valueset_custom_fieldvalue (when column type is MultilineText)
Set Bug detailed descriptioncreate_item / update_itemdetailedDescription
Set Bug steps to reproducecreate_item / update_itemstepsToReproduce

Related Skills

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
4
7-day trend score
8

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/perforce/p4plan-mcp/comment-html-format/badge)](https://verified-skill.com/skills/perforce/p4plan-mcp/comment-html-format)

Something wrong with this skill or its page? Tell us.