Skip to content
Back to skills

Docsmith

ASecurity

This skill keeps code and docs in sync by generating a README skeleton from a Python project and a CHANGELOG draft from git history (Conventional Commits). Use it when the user says "生成文档", "更新 README", "docsmith", "同步文档", "generate docs", or "生成 CHANGELOG".

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 6, 2026
ai-agentspythonrailsgit

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned September 6, 2026

npx -y skills add whaojie797-design/Novera-AI-skills --skill docsmith --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Docsmith?

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

Security grade badge for Docsmith
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/whaojie797-design-docsmith/badge)](https://www.skillsdirectory.com/skills/whaojie797-design-docsmith)

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: docsmith
description: This skill keeps code and docs in sync by generating a README skeleton from a Python project and a CHANGELOG draft from git history (Conventional Commits). Use it when the user says "生成文档", "更新 README", "docsmith", "同步文档", "generate docs", or "生成 CHANGELOG".
---

# Doc Smith

## Overview
Stop letting docs rot. Doc Smith generates a README draft from your code and a CHANGELOG draft from your git history, so the agent can propose updates instead of hand-waving.

## When to Use
- The user says "生成文档", "更新 README", "docsmith", "同步文档", "generate docs", "生成 CHANGELOG".
- After a batch of changes, to refresh the changelog.

## Procedures
1. **Decide scope**: ask the user whether they want a README, a CHANGELOG, or both.
2. **Generate**:
   - README: `python scripts/gen_readme.py <project_dir>` -> `README.draft.md`
   - CHANGELOG: `python scripts/gen_changelog.py <project_dir>` -> `CHANGELOG.draft.md`
3. **Review, don't overwrite**: show the draft and let the user confirm before writing the real `README.md` / `CHANGELOG.md`. Never silently clobber existing docs.
4. **Fill placeholders**: the README draft contains `TODO:` markers — ask the user for the one-line description and a usage example, then write the final file.

## Bundled Resources
- `scripts/gen_readme.py` — stdlib `ast`-based README skeleton (modules / functions / classes).
- `scripts/gen_changelog.py` — groups `git log` by Conventional Commits type.
- `references/doc-conventions.md` — README structure and CHANGELOG format.

## Guardrails
- Drafts only: always confirm before writing over `README.md` / `CHANGELOG.md`.
- If a project isn't a git repo, `gen_changelog.py` tells the user instead of failing silently.
- Keep generated docs honest: don't invent features the code doesn't have.

Files in this skill

  • SKILL.md1.8 KB
  • references/doc-conventions.md944 B
  • scripts/gen_changelog.py2.2 KB
  • scripts/gen_readme.py2.5 KB

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.