Readme Maker
Developer tools CLI for checking, validating, generating, and formatting README files and documentation. Lint your markdown, generate templates, convert between formats, diff versions, preview output, fix common issues, and produce reports — all from the command line with persistent local logging.
Commands
Run readme-maker <command> [args] to use.
| Command | Description |
|---|
| INLINECODE1 | Check README files for completeness and common issues |
| INLINECODE2 |
Validate markdown structure and formatting rules |
|
generate | Generate README content from project metadata |
|
format | Format and beautify markdown content |
|
lint | Lint markdown for style and syntax issues |
|
explain | Explain markdown elements or README sections |
|
convert | Convert between documentation formats |
|
template | Apply or manage README templates |
|
diff | Diff two README versions or sections |
|
preview | Preview rendered markdown output |
|
fix | Auto-fix common README issues |
|
report | Generate documentation quality reports |
|
stats | Show summary statistics across all categories |
|
export <fmt> | Export data in json, csv, or txt format |
|
search <term> | Search across all logged entries |
|
recent | Show recent activity from history log |
|
status | Health check — version, data dir, disk usage |
|
help | Show help and available commands |
|
version | Show version (v2.0.0) |
Each domain command (check, validate, generate, etc.) works in two modes:
- - Without arguments: displays the most recent 20 entries from that category
- With arguments: logs the input with a timestamp and saves to the category log file
Data Storage
All data is stored locally in ~/.local/share/readme-maker/:
- - Each command creates its own log file (e.g.,
check.log, generate.log, lint.log) - A unified
history.log tracks all activity across commands - Entries are stored in
timestamp|value pipe-delimited format - Export supports JSON, CSV, and plain text formats
Requirements
- - Bash 4+ with
set -euo pipefail strict mode - Standard Unix utilities:
date, wc, du, tail, grep, sed, INLINECODE33 - No external dependencies or API keys required
When to Use
- 1. Starting a new project — generate a README from a template, then lint and format it to ensure quality before committing
- Auditing existing documentation — check and validate your README for missing sections (license, contributing, install instructions) and auto-fix common issues
- Converting documentation formats — convert README content between markdown, reStructuredText, or other formats as part of a docs pipeline
- Comparing README changes — diff two versions of your README to review what changed across releases or branches
- CI/CD documentation quality gates — integrate lint and validate commands into your pipeline to enforce documentation standards on every PR
Examples
CODEBLOCK0
Output
All commands output to stdout. Redirect to a file if needed:
CODEBLOCK1
Configuration
Set DATA_DIR by modifying the script, or use the default: ~/.local/share/readme-maker/
Powered by BytesAgain | bytesagain.com | hello@bytesagain.com
Readme Maker
用于检查、验证、生成和格式化README文件及文档的开发者工具CLI。可对Markdown进行lint检查、生成模板、格式转换、版本差异对比、预览输出、修复常见问题并生成报告——全部通过命令行完成,并支持持久化本地日志记录。
命令
使用方式:readme-maker [args]
| 命令 | 描述 |
|---|
| check | 检查README文件的完整性和常见问题 |
| validate |
验证Markdown结构和格式化规则 |
| generate | 根据项目元数据生成README内容 |
| format | 格式化并美化Markdown内容 |
| lint | 对Markdown进行样式和语法问题检查 |
| explain | 解释Markdown元素或README章节 |
| convert | 在文档格式之间进行转换 |
| template | 应用或管理README模板 |
| diff | 对比两个README版本或章节的差异 |
| preview | 预览渲染后的Markdown输出 |
| fix | 自动修复常见的README问题 |
| report | 生成文档质量报告 |
| stats | 显示所有类别的汇总统计信息 |
| export | 以json、csv或txt格式导出数据 |
| search | 在所有日志条目中搜索 |
| recent | 显示历史日志中的最近活动 |
| status | 健康检查——版本、数据目录、磁盘使用情况 |
| help | 显示帮助信息和可用命令 |
| version | 显示版本号(v2.0.0) |
每个领域命令(check、validate、generate等)有两种工作模式:
- - 无参数:显示该类别最近的20条记录
- 带参数:将输入内容连同时间戳一起记录,并保存到该类别的日志文件中
数据存储
所有数据均存储在本地 ~/.local/share/readme-maker/ 目录中:
- - 每个命令创建独立的日志文件(例如 check.log、generate.log、lint.log)
- 统一的 history.log 文件记录所有命令的活动
- 条目以 timestamp|value 管道分隔格式存储
- 支持JSON、CSV和纯文本格式导出
系统要求
- - Bash 4+,启用 set -euo pipefail 严格模式
- 标准Unix工具:date、wc、du、tail、grep、sed、cat
- 无需外部依赖或API密钥
使用场景
- 1. 启动新项目——从模板生成README,然后进行lint检查和格式化,确保提交前的质量
- 审计现有文档——检查并验证README是否缺少章节(许可证、贡献指南、安装说明),并自动修复常见问题
- 转换文档格式——在文档处理流程中,将README内容在Markdown、reStructuredText或其他格式之间进行转换
- 比较README变更——对比两个版本的README,审查跨版本或分支的变更内容
- CI/CD文档质量门禁——将lint和validate命令集成到流水线中,在每个PR上强制执行文档标准
示例
bash
检查README的完整性
readme-maker check 缺少:许可证章节、贡献指南、徽章
验证Markdown结构
readme-maker validate ## 标题正常,链接3/3有效,图片1/1可访问
根据项目信息生成README
readme-maker generate name=my-app lang=python license=MIT
检查样式问题
readme-maker lint 第42行:尾部空格;第58行:标题前缺少空行
格式化Markdown内容
readme-maker format 标题已规范化,列表缩进已修复,每行80列换行
应用模板
readme-maker template 简约版——已添加:标题、描述、安装、使用、许可证
预览渲染输出
readme-maker preview 已渲染128行,3个代码块,2个表格
查看汇总统计信息
readme-maker stats
以JSON格式导出所有数据
readme-maker export json
搜索特定条目
readme-maker search license
输出
所有命令输出到标准输出。如需重定向到文件:
bash
readme-maker report 每周审计 > report.txt
readme-maker export csv # 保存到 ~/.local/share/readme-maker/export.csv
配置
通过修改脚本设置 DATA_DIR,或使用默认路径:~/.local/share/readme-maker/
由 BytesAgain 提供支持 | bytesagain.com | hello@bytesagain.com