skills/comment/SKILL.md
Add a comment to the current in-progress task. With no arguments, uses note-generator to create a session summary from conversation context. With text argument, saves it directly.
npx skillsauth add tmsjngx0/mindcontext-core commentInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Save session notes to the current in-progress beads task.
br list --status=in_progress --json 2>/dev/null
Parse the JSON output to find in_progress tasks.
| Result | Action |
|--------|--------|
| Single task | Use it as target |
| Multiple tasks | AskUserQuestion: "Which task should receive the comment?" with task titles as options |
| No tasks | Show error: "No in-progress task. Use /next to claim one." and STOP |
Save the selected issue ID as $ISSUE_ID and title as $ISSUE_TITLE.
If $ARGUMENTS contains text, use it directly as $CONTENT. Skip to Step 3.
If $ARGUMENTS is empty, delegate to mindcontext-core:note-generator agent:
Task agent: note-generator
Prompt: |
Generate session progress notes.
Issue: $ISSUE_ID - $ISSUE_TITLE
Context: (infer from conversation — what is the user doing?)
Analyze the conversation above for:
- What was implemented, created, or fixed
- Decisions made and rationale
- Files modified or created
- Blockers or issues encountered
- Next steps
The agent returns structured markdown with ## Progress and ## Next Steps sections.
After receiving the agent's output, show it to the user:
USE AskUserQuestion:
{
"questions": [{
"question": "Save this comment to $ISSUE_ID?",
"header": "Confirm",
"options": [
{"label": "Save as-is", "description": "Save the generated notes"},
{"label": "Edit first", "description": "Let me modify before saving"},
{"label": "Cancel", "description": "Don't save anything"}
],
"multiSelect": false
}]
}
| Response | Action |
|----------|--------|
| "Save as-is" | Use agent output as $CONTENT |
| "Edit first" | Ask user for edited text, use that as $CONTENT |
| "Cancel" | Show "Cancelled." and STOP |
TIMESTAMP=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
Save the comment using br:
br comments add $ISSUE_ID "## Session Update - $TIMESTAMP
$CONTENT"
✅ Comment saved to $ISSUE_ID
tools
Bootstrap a project to use mctx by injecting a managed block into AGENTS.md. Tool-agnostic guidance every agent reads. Runs `mctx init` and shows the diff. Use when starting a new project, onboarding a repo, or asked to "init mctx" / "add mctx guidance" / "set up AGENTS.md".
development
Test-Driven Development workflow following Kent Beck's methodology. Auto-loads when user asks about "tdd", "test driven", "red green refactor", "write tests first".
testing
Analyze current session and generate a self-contained context prompt for the next Claude session. Includes project context, decisions, next steps, and tech stack. Use when ending a work session.
tools
Summarize current project state after a long break. Analyzes recent git history, beads issues, and memory to produce a one-page orientation. Use when returning to a project cold, or when asking "what was I doing", "where did I leave off".