agentleFS
quan0715quan0715/open-press/skills/openpress-apply-comments/SKILL.md

openpress-apply-comments

Skill14 starsChanged 4 months agoMITView on GitHub

Use when applying, resolving, clearing, or inspecting pending open-press @openpress-comment markers, including requests like /apply-comments, apply comment, resolve comments, read comments and modify the document, or remove resolved comment markers.

The file

Show its rules and text

We split this skill into the rules it gives an agent

20 rules. About 0 are common, 17 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈17

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Read the decoded comment note, hint, source path, and nearby source.

    line 15
  2. Distinctive:

    Remove the marker after the edit is complete.

    line 17
  3. Distinctive:

    Leave ambiguous or failed comments in place.

    line 18
  4. Distinctive:

    Verify before reporting completion.

    line 19
  5. Very specific:

    Use openpress for the canonical source/generated path table when unsure.

    line 23
  6. Distinctive:

    Default to editing the source file that contains the marker.

    line 25
  7. Distinctive:

    Do not rewrite unrelated sections while resolving one comment.

    line 30
  8. Distinctive:

    If decoded notes are needed and the framework helper exists, use it:

    line 40
  9. Distinctive:

    If the user names one comment, resolve only that comment.

    line 48
  10. Distinctive:

    If the user says apply comments without an id, process pending comments in source order.

    line 49
  11. Distinctive:

    Read the source file that contains the marker.

    line 54
  12. Distinctive:

    Use the marker hint and rendered-object metadata when present, but verify against source.

    line 56
  13. Distinctive:

    If the request is ambiguous, ask for clarification and leave the marker in place.

    line 62
  14. Distinctive:

    Remove the resolved marker.

    line 64
  15. Very specific:

    Delete the @openpress-comment marker only after the source edit is complete.

    line 66
  16. Distinctive:

    Do not clear a marker just because it was read.

    line 67
  17. Very specific:

    Do not edit public/openpress/, dist-react/, .deploy/, or .openpress/.

    line 94
  18. Distinctive:

    Do not remove unresolved comments.

    line 95
  19. Distinctive:

    Do not rewrite broad sections unless the comment explicitly asks for that.

    line 96
  20. Distinctive:

    Do not claim the browser changed until the source has been exported when export is required.

    line 97

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

open-press Apply Comments

This is the workflow skill for turning pending @openpress-comment markers into source edits. A comment is resolved only when the requested source change has been made and the marker has been removed.

openpress-collaborate owns whether the agent should propose, refresh, apply a reviewed preview, or edit directly. Use this skill for marker mechanics. If the user asks to apply .openpress/review/current.json, return to openpress-collaborate instead of interpreting the Comments as a separate direct-edit batch.

Responsibilities

  • List pending @openpress-comment markers.
  • Read the decoded comment note, hint, source path, and nearby source.
  • Apply the requested edit as a small source change.
  • Remove the marker after the edit is complete.
  • Leave ambiguous or failed comments in place.
  • Verify before reporting completion.

Boundary

  • Use openpress for the canonical source/generated path table when unsure.
  • Edit source, not generated output.
  • Default to editing the source file that contains the marker.
  • Route domain-heavy work to the owning skill:
    • openpress-create-pages for page prose, hierarchy, captions, claims, tone, narrative, page theme, and page components.
    • openpress-create-slide for deck narrative, slide density, direct slide sources, active theme tokens, core Object API composition, Tailwind semantic styling, and reusable UI primitives.
    • openpress-plugins for external diagramming, visual tools, and writing helpers.
  • Do not rewrite unrelated sections while resolving one comment.

Workflow

  1. Discover comments.

    rg "@openpress-comment" press -n

    If decoded notes are needed and the framework helper exists, use it:

    node --input-type=module -e 'import { listCommentMarkers } from "./packages/core/engine/react/comment-marker.mjs"; console.log(JSON.stringify(await listCommentMarkers({ root: process.cwd() }), null, 2));'
  2. Pick the requested scope.

    • If the user names one comment, resolve only that comment.
    • If the user says apply comments without an id, process pending comments in source order.
    • Handle comments one at a time; do not batch unrelated rewrites under one marker.
  3. Inspect the target.

    • Read the source file that contains the marker.
    • Inspect nearby lines before editing.
    • Use the marker hint and rendered-object metadata when present, but verify against source.
  4. Apply the edit.

    • Make the smallest source change that satisfies the comment.
    • Preserve local style, component APIs, and MDX structure.
    • If the request is ambiguous, ask for clarification and leave the marker in place.
  5. Remove the resolved marker.

    • Delete the @openpress-comment marker only after the source edit is complete.
    • Do not clear a marker just because it was read.
    • Clear a marker without applying only when the user explicitly asks.
  6. Verify.

    npm run build

    build validates structure and renders the full output. When iterating fast on the inner steps:

    node engine/cli.mjs validate .   # structural checks only, no render
    node engine/cli.mjs export .     # rewrite document.json only, no Vite bundle

Completion Report

Report:

  • which comment ids were resolved,
  • which files changed,
  • which comments remain because they were ambiguous or failed,
  • which verification commands ran and whether they passed.

Common Mistakes

  • Do not edit public/openpress/, dist-react/, .deploy/, or .openpress/. The separate openpress-collaborate workflow alone owns .openpress/review/current.json.
  • Do not remove unresolved comments.
  • Do not rewrite broad sections unless the comment explicitly asks for that.
  • Do not claim the browser changed until the source has been exported when export is required.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.