Readme updater

From ovachiever/droid-tings · View interactive version

Readme updater is an AI agent skill from the GitHub repository ovachiever/droid-tings. Keep README files current with project changes. Use when project structure changes, features added, or setup instructions modified. Suggests README updates based on code changes. Triggers on significant project changes, new features, dependency changes.

How to use this skill

Skill file

README Updater Skill

Keep your README current with project changes.

When I Activate

What I Update

README Sections

Installation:

Features:

Usage:

Configuration:

Examples

New Feature Addition

# You add authentication:
git diff
# + auth.service.ts
# + login.component.tsx
# + JWT middleware

# I suggest README update:
## Features
- ✨ User authentication with JWT  # NEW
- 🔐 Role-based access control    # NEW
- User management
- Dashboard

New Dependency

# You add: npm install stripe

# I suggest:
## Installation

npm install

npm install stripe # Added for payment processing


## Environment Variables

STRIPE_SECRET_KEY=your_stripe_key # Required for payments

Setup Instructions

# You modify docker-compose.yml

# I update README:
## Development Setup

1. Clone repository

git clone [url]

2. Install dependencies

npm install

3. Start services (UPDATED)

docker-compose up -d # Now includes Redis cache

4. Run migrations

npm run migrate

Detection Logic

Change Analysis

I detect these changes automatically:

Section Mapping

Code Change → README Section:
  - New API endpoint → Usage / API Reference
  - New dependency → Installation
  - New env var → Configuration
  - New feature → Features list
  - Architecture change → Architecture section

Intelligent Updates

Keep Structure

I maintain your README structure:

Add Missing Sections

# Suggested additions:

## Prerequisites
- Node.js 18+
- Docker (for development)
- PostgreSQL 14+

## Environment Variables

DATABASE_URL=postgresql://localhost/mydb

API_KEY=your_api_key


## Testing

npm test

Update Examples

# Before:

const result = api.getUsers();


# After (API changed):

const result = await api.getUsers({ page: 1, limit: 10 });

Version Compatibility

I track version-specific documentation:

## Requirements

- Node.js 18+ (updated from 16+)
- TypeScript 5.0+ (new requirement)
- React 18+ (unchanged)

Changelog Integration

I can sync with CHANGELOG.md:

## Recent Changes

See [CHANGELOG.md](CHANGELOG.md) for detailed version history.

### Latest (v2.1.0)
- ✨ Added user authentication
- 🔧 Fixed memory leak in data processing
- 📝 Updated API documentation

Screenshot Management

# I suggest when UI changes:
## Screenshots

![Dashboard](screenshots/dashboard.png)
*Updated: 2025-10-24 - New authentication panel*

![User Profile](screenshots/profile.png)
*New feature - user profile management*

Relationship with @docs-writer

Me (Skill): Keep README current with code changes

@docs-writer (Sub-Agent): Comprehensive documentation strategy

Workflow

  1. I detect changes
  2. I suggest README updates
  3. For full docs → Invoke @docs-writer sub-agent
  4. Sub-agent creates complete documentation

Sandboxing Compatibility

Works without sandboxing: ✅ Yes

Works with sandboxing: ✅ Yes

Best Practices

  1. Keep it current - Update README with every feature
  2. Be specific - Include version numbers, prerequisites
  3. Add examples - Show actual usage, not just API
  4. Include troubleshooting - Common issues and solutions
  5. Badge status - Keep build/coverage badges current

README Templates

Basic Structure

# Project Name

Brief description

## Features
- Feature 1
- Feature 2

## Installation

npm install


## Usage

// Example


## Configuration
Environment variables needed

## Contributing
How to contribute

## License
MIT

Comprehensive Structure

# Project Name
> Tagline

[Badges]

## Table of Contents
- Features
- Installation
- Usage
- API Reference
- Configuration
- Development
- Testing
- Deployment
- Contributing
- License

[Sections with detailed content]

Integration

With /docs-gen Command

/docs-gen --format markdown

# Generates:
# 1. README.md (via me)
# 2. Full documentation site (via @docs-writer)
# 3. API reference (via api-documenter)

With CI/CD

# .github/workflows/docs.yml
- name: Update README
  run: |
    # Skill suggests updates based on changes
    # Review and commit

Customization

Add company-specific README standards:

cp -r ~/.claude/skills/documentation/readme-updater \
      ~/.claude/skills/documentation/company-readme-updater

# Edit to add:
# - Company README template
# - Required sections
# - Badge standards

Related Tools

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.