# writing-lean

The writing-lean Claude Code skill guides concise code and project writing. It applies to edits in comments, docs, issues, pull requests, reviews, and commit messages.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 769 installs
- Author: clhbid
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/clhbid/agent-context/tree/HEAD/skills/writing-lean/SKILL.md
- Updated: 2026-11-16
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/writing-lean

## What it does

The skill sets out how to keep code and its surrounding text clear: improve a name, function, or spec before adding explanation. It also calls for one consistent project term per concept. Short and direct.

Comments are for constraints, traps, citations, or reasons a reader cannot infer. README covers the common path; decisions and history belong with the related issue, pull request, or commit. Each sentence faces a deletion test: if removing it costs the reader nothing, the code already carries the information. A code link to an issue belongs there only when that issue affects later changes.

Install it in Claude Code with `npx skills add clhbid/agent-context --skill writing-lean -a claude-code`. The skill file is at `~/.claude/skills/writing-lean/SKILL.md`.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add clhbid/agent-context --skill writing-lean -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/writing-lean/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/writing-lean/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add clhbid/agent-context --skill writing-lean -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/writing-lean/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add clhbid/agent-context --skill writing-lean -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/writing-lean/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install clhbid/agent-context skills/writing-lean
```

2. **Manually: put the files in place**
- File: `.github/skills/writing-lean/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add clhbid/agent-context --skill writing-lean -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/clhbid/agent-context --path skills/writing-lean
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/writing-lean/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add clhbid/agent-context --skill writing-lean -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/clhbid/agent-context/tree/HEAD/skills/writing-lean/SKILL.md

## When to use it
- trim comments that merely restate the code
- keep terminology consistent across a project
- place decision history in the relevant issue or pull request
- write a review comment around one finding and its fix

## Example prompts
- Edit this comment so it keeps only the constraint and the reason readers cannot infer.
- Rewrite the README around the usual usage path and where to go next.
- Draft a pull request message that explains the change and its reason.

## Similar
- [review-ai-writing](https://affpapa.org/en/nevibecode/skills/review-ai-writing.md) — skill · 119 installs
- [lean-comments](https://affpapa.org/en/nevibecode/skills/lean-comments.md) — skill · 17 installs
- [llm-writing](https://affpapa.org/en/nevibecode/skills/haowjy-llm-writing.md) — skill · 815 installs
- [grounded-writing](https://affpapa.org/en/nevibecode/skills/grounded-writing.md) — skill · 660 installs
- [ux-writing](https://affpapa.org/en/nevibecode/skills/scarletkc-ux-writing.md) — skill · ★ 229 repo stars
- [writing-lean-proofs](https://affpapa.org/en/nevibecode/skills/writing-lean-proofs.md) — skill · 1800 installs

From the same set: [clhbid/agent-context](https://affpapa.org/en/nevibecode/by/clhbid/agent-context.md) — 8 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
