commit
Create git commits with user approval and no Claude attribution
Check for violations of the Clarity and Readability principle
$ npx -y skills add dcouple/Pane --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
/clarityContext preview
What this command does when you run it.
Check for violations of the Clarity and Readability principle
allowed-tools: Bash(git diff:*), Bash(git log:*), Bash(git show:*), Bash(git rev-parse:*), Bash(git branch:*), Read, Grep, Glob, TodoWrite description: Check for violations of the Clarity and Readability principle
You are reviewing code changes for violations of the **Clarity & Readability** principle.
Code should be easy to understand. Good code feels clean.
**What bad code looks like:**
**Look for "hot spots":** Code that feels ugly or confusing needs rethinking. Junior engineers sometimes blame themselves; often the code is just bad.
# Get current branch git rev-parse --abbrev-ref HEAD # Get changed files git diff main...HEAD --name-only # Get full diff git diff main...HEAD
Use TodoWrite to track files to analyze.
Read each changed file fully and check for:
For long functions, note:
Look for:
Flag unclear names:
Find hardcoded values without explanation:
Identify code that's hard to follow:
Use your judgment to identify code that "feels wrong":
# Clarity & Readability Report
**Branch:** {branch}
**Status:** {PASS | WARN | FAIL}
## Summary
{One sentence assessment of overall code clarity}
## Hot Spots Identified
### Critical (Must Fix)
| Location | Issue | Severity |
|----------|-------|----------|
| {file:line} | {description} | {critical/severe} |
### Warnings
| Location | Issue | Suggestion |
|----------|-------|------------|
| {file:line} | {description} | {how to improve} |
## Function Length Issues
| Function | File | Lines | Recommendation |
|----------|------|-------|----------------|
| {name} | {file} | {count} | {suggestion} |
## Nesting Issues
| Location | Depth | Suggestion |
|----------|-------|------------|
| {file:line} | {depth} | {how to flatten} |
## Naming Issues
| Current Name | Location | Suggested Name |
|--------------|----------|----------------|
| {name} | {file:line} | {better name} |
## Magic Values
| Value | Location | Should Be |
|-------|----------|-----------|
| {value} | {file:line} | {named constant or comment} |
## Recommendations
1. {specific action with file reference}
2. {specific action with file reference}1. Save report to `tmp/review-clarity-{branch}.md` 2. Present summary:
Run this analysis now on the current branch.
Repo: dcouple/Pane
Create git commits with user approval and no Claude attribution
You are tasked with creating detailed implementation plans through an interactive, iterative process. You should be skeptical, thorough, and work…
Generate comprehensive PR descriptions following repository templates
You are tasked with implementing an approved technical plan from `thoughts/shared/plans/`. These plans contain phases with specific changes and success…
Iterate on existing implementation plans with thorough research and updates
You are tasked with conducting comprehensive research across the codebase to answer user questions. You will spawn one or more parallel sub-agents to perform…