code/enrich-message/SKILL.md
--- name: enrich-message description: >- Enriches a draft message with code references, Linear tickets, GitHub links, and factual data from the codebase and all available integrations. Outputs polished markdown with proper links, ready to copy-paste. Use when responding to PR reviews, Slack threads, or any discussion where you want referenceable, factual responses. argument-hint: [url] [--brief] [--no-linear] disable-model-invocation: true allowed-tools: - AskUserQuestion - Bash -
npx skillsauth add mostafa-drz/claude-skills code/enrich-messageInstall 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.
Enrich a draft message with code references, ticket links, and factual data. Outputs copy-pasteable markdown.
Before starting, use the Read tool to read ~/.claude/skills/enrich-message/preferences.md. If the file does not exist, treat as "no preferences set" and use defaults.
On startup, use Bash to detect: current git branch, remotes, repo root, and recent commits (last 5). Skip any that fail.
Check $ARGUMENTS:
help → display help then stopconfig → interactive setup then stopreset → delete preferences, confirm, stopEnrich Message — Enriches draft messages with code references, tickets, and facts
Usage:
/enrich-message Enrich draft from conversation context
/enrich-message <url> Enrich with a specific thread URL pre-loaded
/enrich-message --brief Keep enrichment concise
/enrich-message --no-linear Skip Linear ticket search
/enrich-message config Set preferences
/enrich-message reset Clear preferences
/enrich-message help This help
Examples:
/enrich-message Paste your draft + context in chat, then run
/enrich-message https://github.com/org/repo/pull/123#discussion_r456
Pre-fetch this PR discussion thread
Current preferences:
(from preferences.md or defaults)
Use AskUserQuestion to collect:
A-Teams-Network (used to resolve short PR refs)Save to ~/.claude/skills/enrich-message/preferences.md.
Delete ~/.claude/skills/enrich-message/preferences.md and confirm: "Preferences cleared. Using defaults."
If no preferences file exists, show:
First time using /enrich-message? Run
/enrich-message configto set defaults, or just continue with sensible defaults.
Then proceed normally.
Scan the current conversation for:
If $ARGUMENTS contains a URL, treat it as the primary context URL.
If inputs are ambiguous, ask:
I see your draft. What's the context? (paste a URL or describe the thread)
Based on the context URL type:
GitHub PR comment (github.com/.../pull/N#discussion_rNNN):
gh api repos/{owner}/{repo}/pulls/{pr}/comments to get the full comment threadgh pr view {pr} --repo {owner}/{repo} --json title,body,files,headRefName for PR contextGitHub PR review (github.com/.../pull/N#pullrequestreview-NNN):
gh api repos/{owner}/{repo}/pulls/{pr}/reviews/{review_id}/comments for review commentsgh pr view for PR contextGitHub issue (github.com/.../issues/N):
gh issue view {n} --repo {owner}/{repo} --json title,body,commentsSlack thread (if URL provided):
No URL / screenshot only:
From the draft and context, identify:
For each search seed identified:
Grep to find relevant code across the repo (function definitions, variable names, patterns)Read to examine matched files for surrounding contextBuild code references as GitHub permalink URLs:
https://github.com/{owner}/{repo}/blob/{branch}/{path}#L{line}main as appropriateSearch Linear for tickets related to the discussion topic:
mcp__claude_ai_Linear__list_issues with keywords from the topicmcp__claude_ai_Linear__get_issueLook for additional context:
gh pr list --repo {owner}/{repo} --search "{keywords}" --state all --limit 5 — find related PRsgh search commits "{keywords}" --repo {owner}/{repo} --limit 5 — find related commitsRewrite the draft with enrichments:
[filename.ts#L42](permalink)[AIS-123](url) where relevant[PR #123](url) or commits<details> blocks for long code snippetsWriting style rules:
--brief means links only, no extra explanationmeetings-tab.tsx") with the link on the filenameAlways copy to clipboard — write the enriched message to /tmp/enriched-message.md using the Write tool, then run pbcopy < /tmp/enriched-message.md via Bash. This ensures the user can directly Cmd+V without losing markdown formatting.
After copying, confirm briefly:
Copied to clipboard. {N} code references, {N} Linear tickets, {N} PR links.
Sources: {list of repos/branches checked}
If any references couldn't be found, mention:
Could not find code references for: {list}
[text](url) must point to a real, accessible URL. Use GitHub permalinks with actual commit SHAs or branch names.development
--- name: triage-board description: >- Generates a structured triage artifact from the current conversation's findings — a self-contained Desktop folder with a JSON Schema, schema-conformant report.json, prose markdown, and a single-file HTML viewer. Viewer ships with MD / CSV / JSON download buttons in the header and a per-finding "Copy as Markdown" action that produces a GitHub/Linear/Notion-ready ticket block. Stateless — triage state lives in the user's ticket system, not in the
development
Runs a beginner-mind end-to-end UI audit of any running app — local dev server, staging, production, or a specific URL. Drives Chrome through every interactive element on the target surface, collects structured findings (severity, category, where, symptom, impact, repro, triage), and hands the result off to `/triage-board` which produces the Desktop folder (schema + JSON + Markdown + single-file HTML viewer with MD/CSV/JSON exports and a per-finding Copy as Markdown button). Use when you want fresh-eyes verification of a feature, page, modal, flow, branch, or whole app — before shipping, before review, before a demo, or any time the UI deserves a careful poke.
development
Reviews the user's past Claude Code conversations from a wellbeing perspective — sentiment, tone, emotional arc, recurring patterns — and generates a supportive, science-grounded report in both Markdown and HTML. Default lookback is 48 hours across all projects. Uses recognised emotion frameworks (Plutchik, Ekman, Russell's circumplex, Pennebaker linguistic markers) and cites the science behind every observation. Learns the user's baseline tone over time so future reports flag genuine shifts, not noise. Use when the user asks for an emotional/wellbeing recap, mood check, sentiment review, or wants to understand their own ups and downs across recent work sessions.
development
--- name: workflow-advisor description: >- Analyzes recent Claude Code conversations and local Claude state (skills, settings, memory files, CLAUDE.md), researches the latest Claude Code features and best practices online, and suggests one workflow improvement at a time with reasoning and a concrete action item. Can save accepted suggestions to memory for tracking. Use when you want to discover underused Claude Code features, improve your development workflow, stay current with the lat