Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Write Docs?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/ashutosh0428-write-docs)
---
name: write-docs
description: Add clear docstrings/comments without changing behaviour.
trigger: when the user asks to document code or add docstrings
---
## When to use
The user asks to document code, add docstrings, or improve comments.
## How
1. Read the file so the docs match real behaviour.
2. Add concise docstrings: what it does, its args, its return, and any non-obvious
side effects or errors.
3. Use `edit_file`; don't change logic. Match the file's existing docstring style.
4. Comment the **why**, not the **what**.
## Avoid
- Restating the obvious ("increments i by 1").
- Changing behaviour while "just adding docs".
- Mixing docstring styles within one file.
## Done well
A reader understands each function's contract without reading its body, and
comments explain intent where it isn't obvious.