feat: add Claude Code skill for managing markco comments#3
Open
lesandiz wants to merge 6 commits into
Open
Conversation
Adds a skill with a Node.js CLI script that provides deterministic operations for comment management — anchor position calculation, code-context detection, JSON sanitization, and block parsing/writing. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…s/ copy Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…de/skills/ copy" This reverts commit 411f56d.
Update README references and usage examples to include conversational invocation alongside the /markco slash command. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Owner
|
Thank you for your PR,
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
skills/markco/SKILL.md) that gives AI agents the ability to manage markco comments in markdown files — add, reply, resolve, edit, remove, and list commentsskills/markco/scripts/markco.mjs) that handles deterministic operations ported fromCommentService.ts: anchor position calculation, code-context detection (backtick fences/inline code),-->sanitization, and block parsing/writingparse,serialize,find-anchor, andreconcileskills/markco/directory can be copied directly into a project's.claude/skills/without renamingHow it works
The skill splits responsibilities:
-->sequences, and reading/writing the markco JSON blockTest plan
parsecorrectly extracts all comments from a file with existing markco commentsfind-anchorreturns correct 0-based line/char positions matching the extension's stored datareconciledetects orphaned anchors when text has been removed from the fileparse→serializepreserves the file (no unintended changes)parseon a file with no markco block returns{"version": 2, "comments": []}<!-- markco-commentsinside code fences🤖 Generated with Claude Code