Skip to content
Back to skills

Write Docs

ASecurity

Add clear docstrings/comments without changing behaviour.

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 7, 2026
ai-agents

Security analysis

A100/100

Scanned November 7, 2026

npx -y skills add Ashutosh0428/pi-agent --skill write-docs --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Write Docs?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Write Docs
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ashutosh0428-write-docs/badge)](https://www.skillsdirectory.com/skills/ashutosh0428-write-docs)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.