prompt-recording
Record prompts to git notes and MR/PR descriptions. Triggers on 'record prompt', 'prompt recording', 'log prompts'.
What this skill does
# Prompt Recording
Record cleaned-up prompts attached to commits (via git notes) and MR/PR descriptions. Works with both GitLab (`glab`) and GitHub (`gh`).
## Storage
| Storage | Purpose | Visibility |
|---------|---------|------------|
| **Git notes** (`refs/notes/prompts`) | Per-commit prompt history | CLI only, must fetch explicitly |
| **MR/PR description** | High-level summary of whole conversation | Visible to all in GitLab/GitHub UI |
## On Skill Load
**FIRST:** Check if prompt recording is enabled for this repo:
```bash
ENABLED=$(git config --local --get claude.promptRecording 2>/dev/null || echo "")
```
**If `true`:** Prompt recording is already configured. **Skip setup, proceed directly to Workflow Instructions.** Do NOT re-run git config commands.
**If not set:** Ask the user:
> "Enable prompt recording for this repo? This records prompts to git notes and MR descriptions.
>
> **This is sticky** - will auto-activate in future sessions.
> To disable later: `git config --local --unset claude.promptRecording`"
- If yes: run the setup command below
- If no: exit skill (don't set config, user can invoke the skill again later)
**If `false`:** User previously declined. Ask if they want to enable now.
**Setup (run ONLY on first enable, not on every load):**
```bash
git config --local claude.promptRecording true && \
(git config --get-all remote.origin.fetch | grep -q 'refs/notes/prompts' || git config --add remote.origin.fetch '+refs/notes/prompts:refs/notes/prompts') && \
(git config --get notes.rewriteRef 2>/dev/null | grep -q 'refs/notes/prompts' || git config --add notes.rewriteRef refs/notes/prompts)
```
**Output on first enable:**
```
Prompt recording enabled for this repo.
- Prompts will be recorded to git notes on each commit
- MR/PR descriptions will include prompt documentation
- This setting is sticky (persists across sessions)
- To disable: git config --local --unset claude.promptRecording
```
## Workflow Instructions
### On Every `git commit`
Immediately after each commit, record the prompt that led to this change:
```bash
git notes --ref=prompts add HEAD -m '{"version":1,"timestamp":"2026-02-06T10:30:00Z","prompt":"<actionable prompt>"}'
```
**Format (JSON):**
```json
{
"version": 1,
"timestamp": "2026-02-06T10:30:00Z",
"prompt": "Add input validation to the API endpoint using regex patterns. Validate email format, check required fields, return all errors at once instead of fail-fast."
}
```
The `prompt` field must be **what the user actually asked for** - not a summary, not what the agent decided. Only record what the user said.
### On `git push`
Push prompt notes along with code:
```bash
git push origin refs/notes/prompts
```
### On MR/PR Create or Update
Add/update the "Prompt Documentation" section in the MR/PR description body.
**IMPORTANT:** Before writing the MR description, read the **entire prompt note history** for all commits in the branch:
```bash
git log --show-notes=prompts origin/main..HEAD
```
This is critical when picking up an existing branch - integrate notes from previous sessions into the summary.
**GitLab:**
```bash
glab mr create --title "Title" --description "$(cat <<'EOF'
## Summary
...
## Prompt Documentation
> Add input validation to the user registration API. Validate email format, check required fields, return comprehensive error messages.
**Architecture prompts:**
> The validation must run in the API gateway, not in individual services.
This moved validation from per-service to a single enforcement point.
**Design prompts:**
> Don't use a validator library like go-playground/validator - avoid the dependency for these simple rules.
Kept the implementation self-contained with no new dependencies.
> Use compile-time regex, not runtime compilation - we need O(1) validation performance.
Changed from runtime regex.Compile to compile-time regexp.MustCompile.
> Return all validation errors at once instead of fail-fast - better UX when users see the complete picture.
Switched from early-return to collecting all errors before responding.
> Add custom error types for each validation failure so callers can do typed error handling.
Enabled typed error handling instead of string matching.
> Don't add async validation for external checks like "email exists" yet - adds complexity, defer until we actually need it.
**Iteration prompts:**
> Ensure 80%+ test coverage for the new validation code.
> Use table-driven tests for the validation edge cases.
> Follow the existing error handling patterns in the codebase.
*Co-developed with Claude*
## Test Plan
...
EOF
)"
# Or update existing MR
glab mr update <number> --description "..."
```
**GitHub:**
```bash
gh pr create --title "Title" --body "$(cat <<'EOF'
...same format...
EOF
)"
# Or update existing PR
gh pr edit <number> --body "..."
```
## Commands Reference
```bash
# View prompts for a commit
git notes --ref=prompts show HEAD
git log --show-notes=prompts
# View prompts for MR commits
git log --show-notes=prompts origin/main..HEAD
# Fetch notes from remote (if not auto-configured)
git fetch origin refs/notes/prompts:refs/notes/prompts
```
## Cleanup Guidelines
### For Git Notes `prompt` Field
Write an actionable prompt that could be given to another agent to achieve the same result. Not a summary or description - an actual prompt.
**Good:**
- `"Add retry logic to the HTTP client with exponential backoff, max 3 retries, initial delay 100ms"`
- `"Refactor the validation module to use a strategy pattern, extract each validator into its own class"`
**Bad:**
- `"Implemented retry logic for better resilience"` (this is a summary, not a prompt)
- `"Fixed the bug"` (not actionable)
**Anti-pattern - embedding the agent's solution in the prompt:**
- Bad: `"Add --platform linux/amd64 to the docker build command so it works on Apple Silicon Macs"`
The user never said `--platform linux/amd64` - the agent figured that out. This rewrites the user's problem as an instruction containing the agent's solution.
- Good: `"docker pull of actuator-base:2.3.5 fails with 'no matching manifest for linux/arm64/v8' on Mac. This is used in the terraform-mock Dockerfile for tilt. What can we do?"`
The user's actual problem statement, preserving that the solution came from the agent.
**The test:** Could you attribute this prompt to the user with a straight face? If the user never said those words or that solution, don't put it in their mouth.
### For MR/PR Description
**Only record what the user actually said.** Do NOT invent prompts for things the agent decided on its own.
Write as **actual prompts in user voice** - instructions the user gave. When condensing multiple exchanges into one prompt, it should still read like something the user said or could have said, not like an agent describing what happened. This builds trust that proper prompting was done.
**Bad modality:** "User showed analysis from another agent where design discussions were lost" (agent voice, describing events)
**Good modality:** "How can we capture the design discussions that get lost in plan mode?" (user voice, actionable)
**Include (only things the user actually said):**
- The initial task prompt (as the user said it)
- Architecture constraints ("the CRD must be served by the apiserver, not the host cluster") - these are often the most valuable prompts because they shaped fundamental design decisions
- Corrections and rejections - when the user rejected an agent's approach and redirected ("don't use the helm chart, do X instead") - record both what was rejected and why
- Design direction the user gave ("use X instead of Y because...")
- What the user said NOT to do
**After each quoted prompt, add a one-line context sentence** explaining what this changed or constrained in the implementation. Bare quotes are meaningless without context.
**Do NOT include:**
- Things the agent figured out or decided autonomously
- Implementation details the agent chose withRelated in AI Agents
skill-development
IncludedComprehensive meta-skill for creating, managing, validating, auditing, and distributing Claude Code skills and slash commands (unified in v2.1.3+). Provides skill templates, creation workflows, validation patterns, audit checklists, naming conventions, YAML frontmatter guidance, progressive disclosure examples, and best practices lookup. Use when creating new skills, validating existing skills, auditing skill quality, understanding skill architecture, needing skill templates, learning about YAML frontmatter requirements, progressive disclosure patterns, tool restrictions (allowed-tools), skill composition, skill naming conventions, troubleshooting skill activation issues, creating custom slash commands, configuring command frontmatter, using command arguments ($ARGUMENTS, $1, $2), bash execution in commands, file references in commands, command namespacing, plugin commands, MCP slash commands, Skill tool configuration, or deciding between skills vs slash commands. Delegates to docs-management skill for official documentation.
reprompter
IncludedTransform messy prompts into well-structured, effective prompts — single or multi-agent. Use when: "reprompt", "reprompt this", "clean up this prompt", "structure my prompt", rough text needing XML tags and best practices, "reprompter teams", "repromptception", "run with quality", "smart run", "smart agents", multi-agent tasks, audits, parallel work, anything going to agent teams. Don't use when: simple Q&A, pure chat, immediate execution-only tasks. See "Don't Use When" section for details. Outputs: Structured XML/Markdown prompt, quality score (before/after), optional team brief + per-agent sub-prompts, agent team output files. Success criteria: Single mode quality score ≥ 7/10; Repromptception per-agent prompt quality score 8+/10; all required sections present, actionable and specific.
adaptive-compaction
IncludedAdaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without changing the agent", raising autoCompactWindow to give the policy room, or installing/tuning a cross-tool compaction policy or PreCompact hook -- even when "compaction" is never said but the problem is context-window pressure or post-summarization memory loss. Do NOT use to summarize a conversation, build RAG, write a summarization prompt (decides WHEN not HOW), or answer max-context-length trivia.
agent-skill-creator
IncludedCreate cross-platform agent skills from workflow descriptions. Activates when users ask to create an agent, automate a repetitive workflow, create a custom skill, or need advanced agent creation. Triggers on phrases like create agent for, automate workflow, create skill for, every day I have to, daily I need to, turn process into agent, need to automate, create a cross-platform skill, validate this skill, export this skill, migrate this skill. Supports single skills, multi-agent suites, transcript processing, template-based creation, interactive configuration, cross-platform export, and spec validation.
llm-wiki
IncludedUse when building or maintaining a persistent personal knowledge base (second brain) in Obsidian where an LLM incrementally ingests sources, updates entity/concept pages, maintains cross-references, and keeps a synthesis current. Triggers include "second brain", "Obsidian wiki", "personal knowledge management", "ingest this paper/article/book", "build a research wiki", "compound knowledge", "Memex", or whenever the user wants knowledge to accumulate across sessions instead of being re-derived by RAG on every query.
skill-master
IncludedAgent Skills authoring, evaluation, and optimization. Create, edit, validate, benchmark, and improve skills following the agentskills.io specification. Use when designing SKILL.md files, structuring skill folders (references, scripts, assets), ingesting external documentation into skills, running trigger evals, benchmarking skill quality, optimizing descriptions, or performing blind A/B comparisons. Keywords: agentskills.io, SKILL.md, skill authoring, eval, benchmark, trigger optimization.