| name | create-readme |
| description | Create comprehensive, well-structured README.md files adapted to the project type. Trigger: When user asks to create README, generate documentation, or initialize project docs.
|
| license | MIT |
| metadata | {"author":"vekzz-dev","version":"1.0"} |
When to Use
- Creating a new README.md file
- User asks to "create README" or "generate documentation"
- Initializing project documentation
- Need help structuring project docs
Instructions
Step 1: Analyze the Project
First, explore the project to understand:
-
Technology Stack: Detect package manager and language
package.json → Node.js/npm library or app
pom.xml / build.gradle → Java/Maven/Gradle
requirements.txt / setup.py / pyproject.toml → Python
go.mod → Go
Cargo.toml → Rust
composer.json → PHP
-
Framework: Detect specific frameworks
spring-boot in pom.xml → Spring Boot
react, vue, angular in package.json → Frontend framework
fastapi, django, flask in requirements.txt → Python web
express in package.json → Express.js
next, nuxt, astro in package.json → Meta-frameworks
-
Project Purpose: Quick Start, library, CLI tool, web app, etc.
Step 2: Select Template
Use the appropriate reference based on project type:
Step 3: Generate README
Follow these rules:
- Be concise - Don't write lengthy prose, use structure
- Working code - All examples must work, no pseudocode
- GFM + Admonitions - Use GitHub Flavored Markdown and
> [!NOTE], > [!WARNING], etc.
- Minimal emojis - Use sparingly for visual hierarchy
- Table of Contents - For READMEs longer than ~50 lines
- No redundant sections - Skip LICENSE, CONTRIBUTING, CHANGELOG (separate files)
Step 4: Add Badges
Include relevant badges from references/badges.md:
- Package version
- Build/CI status
- License
- Language stats
- Downloads
Step 5: Include Examples
Reference references/examples/ for working examples:
Commands
ls -la | grep -E "package.json|pom.xml|build.gradle|requirements.txt|go.mod|Cargo.toml"
cat package.json | grep -E '"name"|"version"|"description"|"main"|"bin"'
cat pom.xml | grep -E '<artifactId>|<version>|<description>'
cat go.mod | head -5
cat Cargo.toml | grep -E '\[package\]|name|version|description'
README Structure
Required Sections
# <project-name>
One-line description of what the project does.
## Installation
Quick installation command
## Usage
Minimal working example
## License
One line
Optional Sections (include as needed)
- Badges - At top, below title
- Table of Contents - If > 50 lines
- Features - Key capabilities
- Requirements - Prerequisites
- Configuration - Setup options
- API Reference - For libraries
- Contributing - Short reference (link to CONTRIBUTING.md)
- Acknowledgments - Third-party credits
Examples Template
Library
# my-lib
A brief description of what this library does.
[![npm version][npm-badge]][npm-url]
## Installation
```bash
npm install my-lib
Usage
import { myFunction } from 'my-lib';
const result = myFunction('input');
console.log(result);
API
| Function | Description | Returns |
|---|
myFunction(input) | Does something | string |
License
MIT - see LICENSE
### CLI Tool
```markdown
# my-cli
A brief description of what this CLI tool does.
[![npm version][npm-badge]][npm-url]
## Installation
```bash
npm install -g my-cli
Usage
my-cli --help
my-cli command --option value
Commands
| Command | Description |
|---|
my-cli init | Initialize project |
my-cli build | Build the project |
License
MIT - see LICENSE
### Web Application
```markdown
# my-app
A brief description of this web application.
[![Build status][build-badge]][build-url]
## Features
- Feature 1
- Feature 2
- Feature 3
## Quick Start
```bash
npm install
npm run dev
Open http://localhost:3000
Deployment
Deployment instructions...
License
MIT - see LICENSE
## Key Principles
1. **Answer the 4 questions in 60 seconds:**
- What does this do?
- How do I install it?
- How do I use it?
- Should I trust it?
2. **Show working code first** - Don't explain before showing
3. **Use tables** - For API, options, commands
4. **Keep it updated** - Outdated READMEs lose trust
5. **Be helpful** - Think like a new user, not the maintainer
## Resources
- [Project Types Detection](references/project-types.md)
- [Section Templates](references/sections/)
- [Examples](references/examples/)
- [Badges](references/badges.md)