ultrathink: Thoroughly explore this codebase to understand its purpose, architecture, and usage patterns before generating a high-quality README.md in an established documentation style.
Additional Context
$ARGUMENTS
Project Context
- Current directory: !
pwd
- Project name: !
basename $(pwd)
- Git branch: !
git branch --show-current 2>/dev/null || echo "not a git repo"
- Git remote: !
git remote get-url origin 2>/dev/null || echo "no remote"
- Top-level files: !
ls -la 2>/dev/null | head -30
- Makefile targets: !
make help 2>/dev/null | head -20 || echo "no Makefile or no help target"
Instructions
You MUST follow this process exactly. DO NOT skip phases or rush to writing.
Phase 1: Deep Codebase Exploration
Use multiple Explore agents in parallel to gather comprehensive information:
Agent 1: Project Identity & Purpose
- What does this project do? (one-line summary)
- What problem does it solve?
- Who is the target user?
- Is it a CLI tool, web app, macOS app, library, language implementation, or something else?
- Check: README.md (if exists), package.json description, Cargo.toml, pyproject.toml, go.mod
Agent 2: Tech Stack & Architecture
- Primary language(s) and framework(s)
- Key dependencies and their purposes
- Directory structure and what each folder contains
- Entry points (main files, index files)
- Architecture patterns (monolith, microservices, serverless, etc.)
- Data flow and component relationships
Agent 3: Installation & Setup
- Package manager (npm, bun, cargo, go, pip, composer)
- Is it distributed via Homebrew? Check for Formula/Cask
- Is there a curl install script?
- Docker support?
- Prerequisites and system requirements
- Environment variables needed
Agent 4: Features & Usage
- Core features and capabilities
- CLI commands and flags (if applicable)
- API endpoints (if applicable)
- Screenshots or demos (check for images in README/, docs/, or screenshots/)
- Example usage patterns
Agent 5: Development Workflow
- Build commands (Makefile targets, npm scripts, cargo commands)
- Test framework and commands
- Linting and formatting tools
- CI/CD setup
- How to run locally
Agent 6: Project Type Detection
Determine if this project matches one of these patterns:
- CLI Tool with AI Agent Skills: Has SKILL.md, install-skill.sh, "AI agent" mentions
- macOS Menu Bar App: Swift, .xcodeproj, menu bar references
- Web App: React, Cloudflare Workers, Vite, frontend frameworks
- Sandboxed Runner: Network filtering, sandbox, security features
- Secret Santa Project: Allocation, draws, participants
- Other: General project
Phase 2: Analyze & Determine Structure
Based on exploration, select the appropriate README structure:
For CLI Tools (especially AI Agent Skills):
- Heading image
- Tagline: "[Service] from your terminal. Pipe it, script it, automate it."
- Blockquote about AI agents if applicable
- Features (4 bullets)
- Installation (Quick Install → Homebrew → From Source)
- Quick Start (5 steps)
- Command Reference with tables
- Composability (jq examples)
- Configuration (storage, env vars)
- AI Agent Integration (if applicable)
- Development (make targets)
- Background (if exploring new paradigms)
- License + Credits
For macOS Apps:
- Heading image
- One-line tagline
- Features (bold names + descriptions)
- Screenshots (multiple sub-sections)
- Installation (Homebrew → Manual Download)
- Usage with "First Launch" workflow
- Requirements (macOS version)
- Building from Source
- Disclaimer/Privacy (if accessing third-party services)
- License
For Web Apps:
- Title + tagline
- Features
- Tech Stack (single line: React 19, TypeScript, Tailwind CSS v4, etc.)
- Getting Started (Prerequisites + commands)
- Configuration
- Deployment
- Project Structure (directory tree)
- License
For General Projects:
- Title + tagline
- Features
- Tech Stack (if multi-tech)
- Installation
- Quick Start / Usage
- Architecture (if complex)
- Development
- Project Structure (if large)
- License
Phase 3: Write README.md
Create README.md in project root following the selected structure.
Style Rules
ALWAYS:
FOR CLI TOOLS:
- Command Reference as tables with Flag | Short | Description columns
- Include Composability section with jq piping examples
- Environment Variables as tables
- Storage location documentation
FOR macOS APPS:
- Screenshots in
<p align="center"> with specified widths
- Requirements section with macOS version
- Disclaimer section if accessing third-party APIs
FOR RELATED PROJECTS:
- Include "Other Years" or "Related Projects" section with cross-references
- Use ⭐ to mark current project in lists
NEVER:
- Use emojis (except in playful projects like Secret Santa)
- Use marketing fluff or superlatives
- Invent features or commands that don't exist
- Include placeholder text like
<your-thing-here>
- Add sections that don't apply to this project type
- Over-explain obvious things
Example Sections
Features (CLI Tool)
## Features
- All your [Service] data — activities, stats, sleep, heart rate, stress
- Script and automate — composable with jq, pipes, xargs, and standard Unix tools
- [AI agent ready](#ai-agent-integration) — install the skill for Claude, Cursor, and other assistants
- Flexible output — JSON for scripts, CSV for spreadsheets, tables for humans
Features (macOS App)
## Features
- **Real-time monitoring** - Track usage at a glance in your menu bar
- **Smart notifications** - Configurable alerts at warning and critical thresholds
- **Auto-refresh** - Automatic updates every 1, 5, or 10 minutes
Installation
## Installation
### Homebrew (Recommended)
\`\`\`bash
brew install eddmann/tap/project-name
\`\`\`
### Quick Install
\`\`\`bash
curl -fsSL https://raw.githubusercontent.com/eddmann/project/main/install.sh | sh
\`\`\`
### From Source
\`\`\`bash
git clone https://github.com/eddmann/project
cd project
make build
\`\`\`
Command Reference
## Command Reference
### Global Options
| Flag | Short | Description |
|------|-------|-------------|
| `--format` | `-f` | Output format: json, csv, human |
| `--verbose` | `-v` | Verbose output |
| `--version` | `-V` | Show version |
Development
## Development
\`\`\`bash
git clone https://github.com/eddmann/project
cd project
make install # Install dependencies
make test # Run tests
make build # Build
\`\`\`
Tech Stack (Web App - single line)
## Tech Stack
React 19, TypeScript, Tailwind CSS v4, React Router 7, Cloudflare Workers, D1 (SQLite), Vite, Bun
Critical Rules
- DO NOT skip exploration - use Explore agents first
- DO NOT invent features - only document what actually exists
- DO NOT write until Phase 3 - gather all information first
- DO verify commands work - check Makefile targets, package.json scripts
- DO match the project type to the appropriate template
- DO use exact section headers from the selected structure
- DO keep it concise - every word must add value
1---2name: generate-readme3description: Generate README.md by deeply exploring the codebase4---56ultrathink: Thoroughly explore this codebase to understand its purpose, architecture, and usage patterns before generating a high-quality README.md in an established documentation style.78## Additional Context910$ARGUMENTS1112## Project Context1314- Current directory: !`pwd`15- Project name: !`basename $(pwd)`16- Git branch: !`git branch --show-current 2>/dev/null || echo "not a git repo"`17- Git remote: !`git remote get-url origin 2>/dev/null || echo "no remote"`18- Top-level files: !`ls -la 2>/dev/null | head -30`19- Makefile targets: !`make help 2>/dev/null | head -20 || echo "no Makefile or no help target"`2021## Instructions2223You MUST follow this process exactly. DO NOT skip phases or rush to writing.2425### Phase 1: Deep Codebase Exploration2627Use multiple **Explore agents** in parallel to gather comprehensive information:2829#### Agent 1: Project Identity & Purpose30- What does this project do? (one-line summary)31- What problem does it solve?32- Who is the target user?33- Is it a CLI tool, web app, macOS app, library, language implementation, or something else?34- Check: README.md (if exists), package.json description, Cargo.toml, pyproject.toml, go.mod3536#### Agent 2: Tech Stack & Architecture37- Primary language(s) and framework(s)38- Key dependencies and their purposes39- Directory structure and what each folder contains40- Entry points (main files, index files)41- Architecture patterns (monolith, microservices, serverless, etc.)42- Data flow and component relationships4344#### Agent 3: Installation & Setup45- Package manager (npm, bun, cargo, go, pip, composer)46- Is it distributed via Homebrew? Check for Formula/Cask47- Is there a curl install script?48- Docker support?49- Prerequisites and system requirements50- Environment variables needed5152#### Agent 4: Features & Usage53- Core features and capabilities54- CLI commands and flags (if applicable)55- API endpoints (if applicable)56- Screenshots or demos (check for images in README/, docs/, or screenshots/)57- Example usage patterns5859#### Agent 5: Development Workflow60- Build commands (Makefile targets, npm scripts, cargo commands)61- Test framework and commands62- Linting and formatting tools63- CI/CD setup64- How to run locally6566#### Agent 6: Project Type Detection67Determine if this project matches one of these patterns:68- **CLI Tool with AI Agent Skills**: Has SKILL.md, install-skill.sh, "AI agent" mentions69- **macOS Menu Bar App**: Swift, .xcodeproj, menu bar references70- **Web App**: React, Cloudflare Workers, Vite, frontend frameworks71- **Sandboxed Runner**: Network filtering, sandbox, security features72- **Secret Santa Project**: Allocation, draws, participants73- **Other**: General project7475### Phase 2: Analyze & Determine Structure7677Based on exploration, select the appropriate README structure:7879#### For CLI Tools (especially AI Agent Skills):801. Heading image812. Tagline: "[Service] from your terminal. Pipe it, script it, automate it."823. Blockquote about AI agents if applicable834. Features (4 bullets)845. Installation (Quick Install → Homebrew → From Source)856. Quick Start (5 steps)867. Command Reference with tables878. Composability (jq examples)889. Configuration (storage, env vars)8910. AI Agent Integration (if applicable)9011. Development (make targets)9112. Background (if exploring new paradigms)9213. License + Credits9394#### For macOS Apps:951. Heading image962. One-line tagline973. Features (bold names + descriptions)984. Screenshots (multiple sub-sections)995. Installation (Homebrew → Manual Download)1006. Usage with "First Launch" workflow1017. Requirements (macOS version)1028. Building from Source1039. Disclaimer/Privacy (if accessing third-party services)10410. License105106#### For Web Apps:1071. Title + tagline1082. Features1093. Tech Stack (single line: React 19, TypeScript, Tailwind CSS v4, etc.)1104. Getting Started (Prerequisites + commands)1115. Configuration1126. Deployment1137. Project Structure (directory tree)1148. License115116#### For General Projects:1171. Title + tagline1182. Features1193. Tech Stack (if multi-tech)1204. Installation1215. Quick Start / Usage1226. Architecture (if complex)1237. Development1248. Project Structure (if large)1259. License126127### Phase 3: Write README.md128129Create `README.md` in project root following the selected structure.130131## Style Rules132133**ALWAYS:**134- Use **bold feature names** in bullet lists: `- **Feature** - Description`135- Use tables for structured data (commands, flags, options, platforms)136- Use ASCII diagrams for architecture:137 ```138 Source → Component → Component → Result139 ```140- Put Homebrew installation first when available, labeled "(Recommended)"141- Include `make help` and standard make targets (build, test, lint, fmt, can-release)142- Use code blocks with language hints (bash, typescript, rust, etc.)143- Keep taglines punchy (1-2 sentences max)144- End with MIT License (link to LICENSE file)145- Credit underlying libraries at the bottom146147**FOR CLI TOOLS:**148- Command Reference as tables with Flag | Short | Description columns149- Include Composability section with jq piping examples150- Environment Variables as tables151- Storage location documentation152153**FOR macOS APPS:**154- Screenshots in `<p align="center">` with specified widths155- Requirements section with macOS version156- Disclaimer section if accessing third-party APIs157158**FOR RELATED PROJECTS:**159- Include "Other Years" or "Related Projects" section with cross-references160- Use ⭐ to mark current project in lists161162**NEVER:**163- Use emojis (except in playful projects like Secret Santa)164- Use marketing fluff or superlatives165- Invent features or commands that don't exist166- Include placeholder text like `<your-thing-here>`167- Add sections that don't apply to this project type168- Over-explain obvious things169170## Example Sections171172### Features (CLI Tool)173```markdown174## Features175176- All your [Service] data — activities, stats, sleep, heart rate, stress177- Script and automate — composable with jq, pipes, xargs, and standard Unix tools178- [AI agent ready](#ai-agent-integration) — install the skill for Claude, Cursor, and other assistants179- Flexible output — JSON for scripts, CSV for spreadsheets, tables for humans180```181182### Features (macOS App)183```markdown184## Features185186- **Real-time monitoring** - Track usage at a glance in your menu bar187- **Smart notifications** - Configurable alerts at warning and critical thresholds188- **Auto-refresh** - Automatic updates every 1, 5, or 10 minutes189```190191### Installation192```markdown193## Installation194195### Homebrew (Recommended)196197\`\`\`bash198brew install eddmann/tap/project-name199\`\`\`200201### Quick Install202203\`\`\`bash204curl -fsSL https://raw.githubusercontent.com/eddmann/project/main/install.sh | sh205\`\`\`206207### From Source208209\`\`\`bash210git clone https://github.com/eddmann/project211cd project212make build213\`\`\`214```215216### Command Reference217```markdown218## Command Reference219220### Global Options221222| Flag | Short | Description |223|------|-------|-------------|224| `--format` | `-f` | Output format: json, csv, human |225| `--verbose` | `-v` | Verbose output |226| `--version` | `-V` | Show version |227```228229### Development230```markdown231## Development232233\`\`\`bash234git clone https://github.com/eddmann/project235cd project236make install # Install dependencies237make test # Run tests238make build # Build239\`\`\`240```241242### Tech Stack (Web App - single line)243```markdown244## Tech Stack245246React 19, TypeScript, Tailwind CSS v4, React Router 7, Cloudflare Workers, D1 (SQLite), Vite, Bun247```248249## Critical Rules250251- **DO NOT skip exploration** - use Explore agents first252- **DO NOT invent features** - only document what actually exists253- **DO NOT write until Phase 3** - gather all information first254- **DO verify commands work** - check Makefile targets, package.json scripts255- **DO match the project type** to the appropriate template256- **DO use exact section headers** from the selected structure257- **DO keep it concise** - every word must add value