From patchy-bot
Generates a structured, human-readable audit report of everything Claude Code did in a session. Use at the end of any session to create a complete paper trail suitable for commit messages, PR descriptions, code review, standup notes, and documentation. Trigger phrases: "audit trail", "session report", "what did we do", "summarize the session", "generate a report", "write up what happened", "pr description", "commit summary", "session summary", "document the changes", "write the audit report", "what was accomplished", "session changelog", "generate commit message", "write the PR", "document this session", "create a report of the work done". Synthesizes all available session context — git diff, changed files, task history, issues found and fixed, verification results — into four structured outputs: executive summary, technical audit log, commit message, and PR description draft. Run as the final step of post-changes-audit after all fixes are applied.
npx claudepluginhub kman182401/patchy-operationalThis skill uses the workspace's default tool permissions.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Compares coding agents like Claude Code and Aider on custom YAML-defined codebase tasks using git worktrees, measuring pass rate, cost, time, and consistency.
Synthesizes everything from a Claude Code session into a structured paper trail. Four outputs. One command. Complete documentation.
# Git state
git log --oneline -5
git diff --stat HEAD 2>/dev/null || git diff --stat
git diff --name-status HEAD 2>/dev/null || git diff --name-status
# Recent file activity (30-minute window)
find . -not -path './.git/*' -not -path './node_modules/*' \
-newer .git/index -type f 2>/dev/null | sort
# Plan or task files
cat .claude/plan.md PLAN.md TODO.md TASKS.md 2>/dev/null | head -100
# Audit results from this session (if post-changes-audit was run)
# Use findings from change-forensics, impact-radar, regression-guard if available in context
From session context, identify:
Apply Conventional Commits classification:
| Type | When to use |
|---|---|
feat | New functionality added |
fix | Bug corrected |
refactor | Code restructured with no behavior change |
chore | Housekeeping, cleanup, renames |
docs | Documentation only |
test | Tests added or modified |
style | Formatting only (no logic change) |
perf | Performance improvement |
ci | CI/CD pipeline changes |
build | Build system or dependency changes |
If $ARGUMENTS contains a ticket ID pattern (e.g., JIRA-1234, GH-42, #123), extract it
and include it in the commit footer and PR title.
Not verified.brief mode: Produce Output 1 only (executive summary).pr mode: Lead with Output 4, follow with Output 3.Closes #N or Refs JIRA-1234) and PR title.Write for a technical lead with 30 seconds to read it. Plain language. No markdown headers inside the summary text itself.
## Executive Summary
Task: [What was asked and why]
Work done: [What was built or changed, in plain language]
Outcome: [Current state — verified and working, or pending follow-up]
Risks or caveats: [Anything needing follow-up, or "None identified"]
## Technical Audit Log
**Session date:** [datetime]
**Scope:** [project/directory]
**Work type:** Feature | Fix | Refactor | Config | Mixed
### Files Created
- `path/to/file.ext` — [one-line purpose]
### Files Modified
- `path/to/file.ext` — [what changed: added X, removed Y, refactored Z]
### Files Deleted
- `path/to/file.ext` — [reason]
### Dependencies Added or Changed
- `package@version` — [reason]
### Issues Encountered and Resolved
1. [Issue] → [Resolution]
2. [Issue] → [Resolution]
### Post-Audit Findings
| Severity | Finding | Status |
|----------|---------|--------|
| BLOCK | [description] | Fixed / Open |
| WARN | [description] | Fixed / Accepted |
### Verification Performed
| Check | Tool | Result |
|-------|------|--------|
| Unit tests | pytest / jest | ✅ N passed / ❌ N failed / Not verified |
| Type check | mypy / tsc | ✅ Clean / ❌ N errors / Not verified |
| Lint | ruff / eslint | ✅ Clean / Not verified |
| Security scan | semgrep / bandit | ✅ Clean / Not verified |
| Regression check | regression-guard | ✅ Clean / Not verified |
| Import integrity | Python / TS | ✅ Clean / Not verified |
### Known Limitations and Recommended Follow-up
- [Anything incomplete, known issues, or recommended next steps — or "None"]
### Final Status
✅ COMPLETE | ⚠️ COMPLETE WITH NOTES | 🚫 INCOMPLETE — [reason]
Present inside a copy-pasteable code block. No angle-bracket placeholders in the final output.
## Commit Message
<type>(<scope>): <imperative description, under 72 chars>
<body: what changed and why — wrap at 72 chars> <additional context if needed>
<footer: BREAKING CHANGE, Closes #N, Co-authored-by: Name <email>>
Rules:
type — one of: feat|fix|refactor|chore|docs|test|style|perf|ci|buildscope — the module, component, or area (e.g., auth, api, db)BREAKING CHANGE: <description> in footerCloses #N or Refs TICKET-ID in footerPresent inside a copy-pasteable markdown code block.
## Pull Request Description
```markdown
## Summary
[2–3 sentence description of what this PR does and why]
## Changes
- **[type]** `path/to/file`: [description of what changed]
- **[type]** `path/to/file`: [description of what changed]
## Testing
- [ ] Unit tests: [N tests passing]
- [ ] Integration tests: [status]
- [ ] Manual testing: [what was tested manually and how]
- [ ] Edge cases considered: [list or "standard cases only"]
## Verification Checklist
- [x] Tests pass
- [x] No lint errors
- [x] No type errors
- [x] Security scan clean
- [x] No regressions detected
- [ ] Documentation updated (if applicable)
- [ ] Breaking changes documented (if applicable)
- [ ] Migration required (if applicable)
## Notes for Reviewers
[Areas that warrant close attention, non-obvious decisions, or known trade-offs — or "None"]
---
## Persistent Log (optional)
If a project-level log is appropriate, save this report to:
.claude/session-logs/YYYY-MM-DD-HHMM-<task-slug>.md
Only create this file if the project directory has a `.claude/` folder already present.
## Integration
- This skill is Stage 16 of `post-changes-audit` — run it last, after all fixes are applied
- The report becomes the definitive record of what the session produced
- Pass the commit message directly to `git commit -m` after review
- Pass the PR description to the PR creation workflow