readme-updater
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseREADME Updater Skill
README Updater Skill
Keep your README current with project changes.
让你的README随项目变更保持更新。
When I Activate
激活场景
- ✅ New features added
- ✅ Project structure changes
- ✅ Dependencies added/removed
- ✅ Setup instructions change
- ✅ User mentions README or documentation
- ✅ Configuration files modified
- ✅ 新增功能
- ✅ 项目结构变更
- ✅ 依赖项添加/移除
- ✅ 安装说明变更
- ✅ 用户提及README或文档
- ✅ 配置文件修改
What I Update
我会更新的内容
README Sections
README章节
Installation:
- New dependencies
- Setup steps
- Prerequisites
- Environment variables
Features:
- New capabilities
- Functionality changes
- Feature deprecation
Usage:
- API changes
- New examples
- Updated screenshots
Configuration:
- New options
- Environment variables
- Config file changes
安装:
- 新依赖项
- 安装步骤
- 前置要求
- 环境变量
功能:
- 新功能
- 功能变更
- 功能弃用
使用方法:
- API变更
- 新示例
- 更新截图
配置:
- 新选项
- 环境变量
- 配置文件变更
Examples
示例
New Feature Addition
新增功能
bash
undefinedbash
undefinedYou add authentication:
You add authentication:
git diff
git diff
+ auth.service.ts
+ auth.service.ts
+ login.component.tsx
+ login.component.tsx
+ JWT middleware
+ JWT middleware
I suggest README update:
I suggest README update:
Features
Features
- ✨ User authentication with JWT # NEW
- 🔐 Role-based access control # NEW
- User management
- Dashboard
undefined- ✨ User authentication with JWT # NEW
- 🔐 Role-based access control # NEW
- User management
- Dashboard
undefinedNew Dependency
新增依赖项
bash
undefinedbash
undefinedYou add: npm install stripe
You add: npm install stripe
I suggest:
I suggest:
Installation
Installation
bash
npm install
npm install stripe # Added for payment processingbash
npm install
npm install stripe # Added for payment processingEnvironment Variables
Environment Variables
bash
STRIPE_SECRET_KEY=your_stripe_key # Required for paymentsundefinedbash
STRIPE_SECRET_KEY=your_stripe_key # Required for paymentsundefinedSetup Instructions
安装说明更新
bash
undefinedbash
undefinedYou modify docker-compose.yml
You modify docker-compose.yml
I update README:
I update README:
Development Setup
Development Setup
bash
undefinedbash
undefined1. Clone repository
1. Clone repository
git clone [url]
git clone [url]
2. Install dependencies
2. Install dependencies
npm install
npm install
3. Start services (UPDATED)
3. Start services (UPDATED)
docker-compose up -d # Now includes Redis cache
docker-compose up -d # Now includes Redis cache
4. Run migrations
4. Run migrations
npm run migrate
undefinednpm run migrate
undefinedDetection Logic
检测逻辑
Change Analysis
变更分析
I detect these changes automatically:
- package.json → Update dependencies section
- New routes → Update API documentation
- .env.example → Update environment variables
- docker-compose.yml → Update setup instructions
- New features → Update features list
我会自动检测以下变更:
- package.json → 更新依赖项章节
- 新路由 → 更新API文档
- .env.example → 更新环境变量
- docker-compose.yml → 更新安装说明
- 新功能 → 更新功能列表
Section Mapping
章节映射
yaml
Code Change → README Section:
- New API endpoint → Usage / API Reference
- New dependency → Installation
- New env var → Configuration
- New feature → Features list
- Architecture change → Architecture sectionyaml
Code Change → README Section:
- New API endpoint → Usage / API Reference
- New dependency → Installation
- New env var → Configuration
- New feature → Features list
- Architecture change → Architecture sectionIntelligent Updates
智能更新
Keep Structure
保留原有结构
I maintain your README structure:
- Preserve emoji style
- Keep formatting consistent
- Maintain tone and voice
- Respect existing organization
我会维护你的README结构:
- 保留表情符号风格
- 保持格式一致
- 维持原有语气和风格
- 尊重现有章节组织
Add Missing Sections
补充缺失章节
markdown
undefinedmarkdown
undefinedSuggested additions:
Suggested additions:
Prerequisites
Prerequisites
- Node.js 18+
- Docker (for development)
- PostgreSQL 14+
- Node.js 18+
- Docker (for development)
- PostgreSQL 14+
Environment Variables
Environment Variables
bash
DATABASE_URL=postgresql://localhost/mydb
API_KEY=your_api_keybash
DATABASE_URL=postgresql://localhost/mydb
API_KEY=your_api_keyTesting
Testing
bash
npm testundefinedbash
npm testundefinedUpdate Examples
更新示例
markdown
undefinedmarkdown
undefinedBefore:
Before:
javascript
const result = api.getUsers();javascript
const result = api.getUsers();After (API changed):
After (API changed):
javascript
const result = await api.getUsers({ page: 1, limit: 10 });undefinedjavascript
const result = await api.getUsers({ page: 1, limit: 10 });undefinedVersion Compatibility
版本兼容性
I track version-specific documentation:
markdown
undefined我会追踪版本相关的文档:
markdown
undefinedRequirements
Requirements
- Node.js 18+ (updated from 16+)
- TypeScript 5.0+ (new requirement)
- React 18+ (unchanged)
undefined- Node.js 18+ (updated from 16+)
- TypeScript 5.0+ (new requirement)
- React 18+ (unchanged)
undefinedChangelog Integration
变更日志集成
I can sync with CHANGELOG.md:
markdown
undefined我可以与CHANGELOG.md同步:
markdown
undefinedRecent Changes
Recent Changes
See CHANGELOG.md for detailed version history.
See CHANGELOG.md for detailed version history.
Latest (v2.1.0)
Latest (v2.1.0)
- ✨ Added user authentication
- 🔧 Fixed memory leak in data processing
- 📝 Updated API documentation
undefined- ✨ Added user authentication
- 🔧 Fixed memory leak in data processing
- 📝 Updated API documentation
undefinedScreenshot Management
截图管理
markdown
undefinedmarkdown
undefinedI suggest when UI changes:
I suggest when UI changes:
Screenshots
Screenshots
Updated: 2025-10-24 - New authentication panel
New feature - user profile managementundefined
Updated: 2025-10-24 - New authentication panel
New feature - user profile managementundefinedRelationship with @docs-writer
与@docs-writer的关系
Me (Skill): Keep README current with code changes
@docs-writer (Sub-Agent): Comprehensive documentation strategy
我(Skill): 随代码变更保持README更新
@docs-writer(子Agent): 提供全面文档策略
Workflow
工作流
- I detect changes
- I suggest README updates
- For full docs → Invoke @docs-writer sub-agent
- Sub-agent creates complete documentation
- 我检测变更
- 我建议更新README
- 如需完整文档 → 调用**@docs-writer**子Agent
- 子Agent创建完整文档
Sandboxing Compatibility
沙箱兼容性
Works without sandboxing: ✅ Yes
Works with sandboxing: ✅ Yes
- Filesystem: Writes to README.md
- Network: None required
- Configuration: None required
无需沙箱即可运行: ✅ 是
支持沙箱运行: ✅ 是
- 文件系统:写入README.md
- 网络:无需网络
- 配置:无需额外配置
Best Practices
最佳实践
- Keep it current - Update README with every feature
- Be specific - Include version numbers, prerequisites
- Add examples - Show actual usage, not just API
- Include troubleshooting - Common issues and solutions
- Badge status - Keep build/coverage badges current
- 保持更新 - 每新增一个功能就更新README
- 内容具体 - 包含版本号、前置要求
- 添加示例 - 展示实际用法,而非仅API说明
- 包含故障排除 - 常见问题及解决方案
- 徽章状态 - 保持构建/覆盖率徽章更新
README Templates
README模板
Basic Structure
基础结构
markdown
undefinedmarkdown
undefinedProject Name
Project Name
Brief description
Brief description
Features
Features
- Feature 1
- Feature 2
- Feature 1
- Feature 2
Installation
Installation
bash
npm installbash
npm installUsage
Usage
javascript
// Examplejavascript
// ExampleConfiguration
Configuration
Environment variables needed
Environment variables needed
Contributing
Contributing
How to contribute
How to contribute
License
License
MIT
undefinedMIT
undefinedComprehensive Structure
完整结构
markdown
undefinedmarkdown
undefinedProject Name
Project Name
Tagline
[Badges]
Tagline
[Badges]
Table of Contents
Table of Contents
- Features
- Installation
- Usage
- API Reference
- Configuration
- Development
- Testing
- Deployment
- Contributing
- License
[Sections with detailed content]
undefined- Features
- Installation
- Usage
- API Reference
- Configuration
- Development
- Testing
- Deployment
- Contributing
- License
[Sections with detailed content]
undefinedIntegration
集成
With /docs-gen Command
与/docs-gen命令集成
bash
/docs-gen --format markdownbash
/docs-gen --format markdownGenerates:
Generates:
1. README.md (via me)
1. README.md (via me)
2. Full documentation site (via @docs-writer)
2. Full documentation site (via @docs-writer)
3. API reference (via api-documenter)
3. API reference (via api-documenter)
undefinedundefinedWith CI/CD
与CI/CD集成
yaml
undefinedyaml
undefined.github/workflows/docs.yml
.github/workflows/docs.yml
- name: Update README
run: |
Skill suggests updates based on changes
Review and commit
undefined- name: Update README
run: |
Skill suggests updates based on changes
Review and commit
undefinedCustomization
自定义
Add company-specific README standards:
bash
cp -r ~/.claude/skills/documentation/readme-updater \
~/.claude/skills/documentation/company-readme-updater添加公司专属的README标准:
bash
cp -r ~/.claude/skills/documentation/readme-updater \
~/.claude/skills/documentation/company-readme-updaterEdit to add:
Edit to add:
- Company README template
- Company README template
- Required sections
- Required sections
- Badge standards
- Badge standards
undefinedundefinedRelated Tools
相关工具
- api-documenter skill: API documentation
- @docs-writer sub-agent: Comprehensive docs
- git-commit-helper skill: Commit messages for updates
- /docs-gen command: Full documentation generation
- api-documenter skill: API文档生成
- @docs-writer sub-agent: 全面文档生成
- git-commit-helper skill: 为更新生成提交信息
- /docs-gen command: 完整文档生成