<!-- tldr ::: guide interactive waymark addition to files with proper syntax -->
Guides users through adding waymarks to files with proper syntax and placement.
/plugin marketplace add https://www.claudepluginhub.com/api/plugins/outfitter-dev-waymark/marketplace.json/plugin install outfitter-dev-waymark@cpd-outfitter-dev-waymarkagents/commands/Guide the user through adding a waymark to a file.
$1 - File path (required)$2 - Marker type (optional: tldr, todo, fix, note, about, etc.)Target file: ![ -f "$1" ] && cat "$1" | head -100 || echo "File: $1 (will be created)"
Existing waymarks: ![ -f "$1" ] && (wm find "$1" --text 2>/dev/null || rg ':::' "$1" -n) || echo "No existing waymarks"
Load the using-waymarks skill for grammar and marker guidance.
If file path provided:
tldr :::If no file path:
If marker type provided ($2), use it.
Otherwise, use AskUserQuestion to determine intent:
tldrtodofixnoteaboutwarnBased on marker type:
For tldr:
#docs for documentation)For about:
For todo/fix:
@agent, @alice)For note/warn:
Determine correct insertion point:
tldr → After shebang/frontmatter, before codeabout → Line above target constructUse Edit tool to insert the waymark with proper comment syntax for the file type.
If wm CLI available, prefer:
wm add $1 --type <marker> --content "<content>" --line <line>
Show the user the inserted waymark and surrounding context for confirmation.