AGENT SKILL

clickup-comment-style

Write and post/edit ClickUp task comments in a consistent technical style (tone, detail, structure), authored in real Markdown (headers, bold, lists, links, fenced code) and posted via the REST converter script `clickup_rich_comment.py` — never via the MCP `clickup_create_task_comment` tool. Use ALWAYS when creating or editing a ClickUp comment, even ad hoc and even if the user does not mention style or formatting. Requires CLICKUP_API_TOKEN (a ClickUp Personal API Token, `pk_...`).

License 许可
MIT
最近更新
2026-08-03
Stars
★ 1
Forks
0

01 前言 Front Matter

name
clickup-comment-style
description
Write and post/edit ClickUp task comments in a consistent technical style (tone, detail, structure), authored in real Markdown (headers, bold, lists, links, fenced code) and posted via the REST converter script `clickup_rich_comment.py` — never via the MCP `clickup_create_task_comment` tool. Use ALWAYS when creating or editing a ClickUp comment, even ad hoc and even if the user does not mention style or formatting. Requires CLICKUP_API_TOKEN (a ClickUp Personal API Token, `pk_...`).

02 资源文件 23

03 SKILL.md 正文

ClickUp Comment Style

Skill for writing technical ClickUp comments with a consistent voice, authored in real Markdown and posted through the REST converter directly — so headers, bold, lists, links, and code blocks render natively in ClickUp.

Posting to ClickUp

Never call the MCP clickup_create_task_comment / clickup_create_comment tool to post the final comment. Two reasons: the MCP only writes plain comment_text, which barely renders Markdown (see hooks/clickup_rich_comment.py's docstring); and if the optional PostToolUse hook is also installed, it would upgrade that MCP comment a second time — a duplicate write. Instead, write real Markdown and post it with clickup_rich_comment.py directly, the same way the skill-feature-brief skill does.

Requires CLICKUP_API_TOKEN (a Personal API Token, pk_...). Read it from ~/.clickup_rich_comments.env (CLICKUP_API_TOKEN=pk_...) if present, otherwise from the CLICKUP_API_TOKEN env var. If neither is set, ask the user for the token before posting — do not silently skip or fall back to the MCP.

New comment — creates the comment and upgrades it to rich text in one step:

set -a; source ~/.clickup_rich_comments.env 2>/dev/null; set +a
printf '%s' "$COMMENT_BODY" | python3 \
  /Users/btarica/Documents/clickup-comment-skill-installer/hooks/clickup_rich_comment.py \
  --task <CLICKUP_TASK_ID>

Add --attach /path/img.png ... only when the comment includes images — embed a matching ![name](name.png) marker in the body for each attached file (basename must match).

Editing an existing comment — if the target comment_id is already known (e.g. read via the MCP clickup_get_task_comments, a read call, so no duplicate-write risk), PUT the new body directly without creating a new comment:

set -a; source ~/.clickup_rich_comments.env 2>/dev/null; set +a
printf '%s' "$COMMENT_BODY" | python3 \
  /Users/btarica/Documents/clickup-comment-skill-installer/hooks/clickup_rich_comment.py \
  <EXISTING_COMMENT_ID>

Use --print-ops to dry-run the ops JSON first (no token, no writes) if unsure the Markdown will convert as expected.

Distribution caveat: the path above points at the local clickup-comment-skill-installer checkout. If this skill is packaged for another machine, bundle a copy of clickup_rich_comment.py alongside it and call that copy instead, to keep the skill self-contained.


Content (tone, language, detail)

Voice and tone:

  • First person, active voice: "I created…", "I added…", "I propose…". Spanish: "creé", "decidí probar".
  • Direct and factual. No greetings, filler, or closings. Start on substance in the first line.
  • Peer-to-peer technical: assume domain knowledge. Explain non-obvious decisions, not basics.
  • Honest about limits: document what is NOT covered, assumptions, and risks.

Language (mirror context):

  • English by default for client/international audience; Spanish for internal discussion.
  • Match the language of the thread/task.

Detail level:

  • High: what + how + why. Concrete examples (request/response, IDs, URLs).
  • For code: name the function/script/record affected (in backticks) and link the commit.
  • For decisions/research: conclusion first, then detail.

Governing principle: technical claim → evidence (ref: doc, commit ref: commit, or a link). Do not invent data: if a commit/URL/ID is missing, ask or leave an explicit placeholder.


Format

Real Markdown — the converter renders all of this natively in ClickUp:

  • Section titles: ##/### headers. Keep any leading number in the title: ## 1. Order creation.
  • Identifiers ALWAYS in backticks: functions getOptions(productId), files client.py, fields custbody_acme_synced, records customrecord_acme_config, endpoints POST /v3/storefront/..., enums PACKAGE_DELIVERED.
  • Strong emphasis / warnings: **bold** (e.g. **IMPORTANTE**, **MUST**).
  • Links: [text](url) — a descriptive link reads better than a raw URL dropped in prose.
  • Bullets: - markdown bullets, nested with two-space indent for sub-bullets.
  • Steps: 1. 2. 3. ordered lists.
  • Code snippets: fenced code blocks ( ```), not indentation.
  • Quoted content: > blockquote.
  • Flows: arrows →.
  • Refs: own line with ref: / commit ref: / Doc: + a link.
  • Direct someone: use the tool's assignee parameter, NOT @inline (does not resolve via API; real tags require the comment ops array, which this flow already produces — but the assignee param is still the reliable way to notify).
  • Tables: ClickUp comments have no table op — the converter renders a Markdown table as a bold header line followed by bullets (see emit_table in clickup_rich_comment.py). Markdown tables are fine to write; just expect that rendering, not a real grid.

Templates by comment type

A. Work report → ## title per component, prose, - function() in backticks + what it does, commit ref:/ref: on own line.

B. Feature/behavior doc → ## sections (numbered if relevant), bullets - with identifiers in backticks, limits section (**Notas:** / **IMPORTANTE**).

C. API/endpoint spec → labels **Endpoint:** / **Method:** (POST in backticks) / **Body:** / **Response:**, fenced code snippets, example with realistic data.

D. Multi-part plan → intro, ordered list 1. 2. 3., owner at end of each step (-- ALICE / -- BOB).

E. Decision / research (PoC) → conclusion first, ## header, numbered approaches with **Approach:** / **Results:**, methods in backticks, citations with Doc: links.

F. Quoted content → > blockquote.


Few-shots (real Markdown)

A — Work report

## Catalog Service
I added three endpoint calls to the acme-connector catalog REST API.

- `getOptions(productId)` — pulls all product options based on the product ID.
  ref: [product-variant-options/values](https://developer.example.com/docs/rest-catalog/product-variant-options/values)
- `createVariant(productId, variantData)` — creates a variant and assigns it to a product.
  ref: [product-variants](https://developer.example.com/docs/rest-catalog/product-variants)

commit ref: [abc123d](https://github.com/acme-org/acme-connector/commit/abc123def456)

B — Feature / behavior documentation

## 1. Order creation, update and cancel

- Added UserEvent script that runs when a Sales Order is created or edited in the ERP.
- Orders created in the platform have the body field `custbody_acme_synced` marked.

**Notas:**
- Item maintenance is the client's responsibility (the API offers no method to add items).

**IMPORTANTE**
We cannot have more than one config record (`customrecord_acme_config`) per account.

C — API / endpoint spec

I created an endpoint for test order creation via a hosted scriptlet.

**Endpoint:** [https://api.example.com/v1/orders/create](https://api.example.com/v1/orders/create)
**Method:** `POST`

**Body:**
```json
{
  "lineItems": [
    { "sku": "string", "quantity": "number", "isPrime": "boolean" }
  ]
}

Response example:

{ "status": 201, "id": "ORG-123", "orderUrl": "https://app.example.com/orders/ORG-123" }

### D — Multi-part plan
```markdown
## Moving to the production account plan
I propose the following approach, disturbing their operation as little as possible.

1. Deploy the integration and leave all scripts deactivated.            -- ALICE
2. Migrate items from the ERP to the external platform.                 -- BOB
3. Test orders **MUST** have at least one already-migrated item.        -- ALICE OR BOB

E — Decision / research (PoC)

## Final Conclusion: Based on Proof of Concepts
The best way to handle real-time events without freezing the ERP UI is a middleware
acting as a bridge between the edited-record context and the REST endpoint.

Record update → middleware → response to ERP → async to REST handler → notification service

## 1. Execute REST handler on UserEvent afterSubmit asynchronously
**Approach:** call the handler from afterSubmit via `https.request(...)` and `.promise(...)`.
**Results:** the UI froze 'loading' for the full 60s wait, then finished. Async did not help.
Doc: do not run a UE script from another UE; extract the shared code into a module.

F — Quoted content

Feedback from client:

> Please change the shipping method code. Instead of "dhl_acme_standard"
> use: dhl_acme_business.

Checklist before posting

  1. Real Markdown, well formed (headers, bold, lists, links, fences)?
  2. Identifiers in backticks?
  3. First person, direct, no filler?
  4. Correct language for the thread audience?
  5. Each technical claim with ref: / commit ref: / a link?
  6. Posted via clickup_rich_comment.py (REST direct) — NOT via the MCP clickup_create_task_comment?
  7. CLICKUP_API_TOKEN available? If not, did you ask the user for it?
  8. If directed at someone, used the assignee parameter (not @inline)?

04 同仓库更多 Skills