From 022eadceaa2f468fbebeedbfed33e6a75e2308ca Mon Sep 17 00:00:00 2001
From: "Atlas (Bounty Hunter)"
Date: Sat, 14 Mar 2026 06:03:57 +0800
Subject: [PATCH] feat: Add statistics dashboard badges, usage demos, and error
handling improvements
- Add more shields.io badges (PRs, contributors, Hacktoberfest)
- Add Usage Demo sections to 7 tool READMEs (commit-ai, explain-to-pm, name-it, pr-writer, roast-commits, terminal-ai, week-recap)
- Add comprehensive Troubleshooting section to terminal-ai
- Update stats to reflect 17 AI tools
Addresses:
- Issue #7: Statistics dashboard
- Issue #2: Usage GIFs/videos
- Issue #26: Error handling improvements
---
README.md | 14 ++++++++--
commit-ai/README.md | 19 ++++++++++++++
explain-to-pm/README.md | 34 ++++++++++++++++++++++++
name-it/README.md | 21 +++++++++++++++
pr-writer/README.md | 30 +++++++++++++++++++++
roast-commits/README.md | 31 ++++++++++++++++++++++
terminal-ai/README.md | 58 +++++++++++++++++++++++++++++++++++++++++
week-recap/README.md | 24 +++++++++++++++++
8 files changed, 229 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index eae97a5..59028dc 100644
--- a/README.md
+++ b/README.md
@@ -13,12 +13,22 @@
+
+
+
+
+
+
-
-
+
+
+
+
+
+
diff --git a/commit-ai/README.md b/commit-ai/README.md
index c393077..f792ab5 100644
--- a/commit-ai/README.md
+++ b/commit-ai/README.md
@@ -13,6 +13,25 @@ python commit.py # Generate message
python commit.py --commit # Auto-commit
```
+## Usage Demo
+
+```bash
+$ git add .
+$ python commit.py
+
+📝 Analyzing your changes...
+
+✨ Generated Commit Message:
+feat(api): add user authentication endpoint
+
+- Implement JWT token generation
+- Add password hashing with bcrypt
+- Create login and register routes
+
+🔗 Copy or auto-commit? [c/a]: c
+✓ Message copied to clipboard!
+```
+
## Output
```
diff --git a/explain-to-pm/README.md b/explain-to-pm/README.md
index ca802b2..1271fc2 100644
--- a/explain-to-pm/README.md
+++ b/explain-to-pm/README.md
@@ -11,6 +11,40 @@ export ANTHROPIC_API_KEY=your_key
python translator.py
```
+## Usage Demo
+
+```bash
+$ python translator.py
+
+🔄 AI translating tech to business...
+
+What did you build?
+> Added caching layer with Redis
+
+━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
+🤓 TECHNICAL:
+"Added Redis caching layer with TTL and invalidation"
+
+━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
+👔 FOR YOUR PM:
+"Faster page loads - from 2s to 200ms"
+
+━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
+💼 FOR EXECUTIVES:
+"40% performance improvement, reduced server costs
+by $3K/month through efficient caching"
+
+━━━━━━━━━━━━━━━━━━━━━━━━━━━
+👶 ELI5:
+"Added a shortcut so the computer remembers
+things instead of asking over and over"
+
+━━━━━━━━━━━━━━━━━━━━━━━━━━━
+📊 FOR DEMO:
+"See how fast the dashboard loads now?"
+━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
+```
+
## Output
```
diff --git a/name-it/README.md b/name-it/README.md
index f5aabef..e82204a 100644
--- a/name-it/README.md
+++ b/name-it/README.md
@@ -14,6 +14,27 @@ python namer.py # Interactive
python namer.py "list of active users" # Direct
```
+## Usage Demo
+
+```bash
+$ python namer.py "list of active users"
+
+🔍 AI analyzing your variable purpose...
+
+📝 Top Suggestions:
+1. activeUserIds - camelCase, most common
+2. active_users - snake_case, Python style
+3. userList - simple, context-dependent
+
+🎯 In Different Contexts:
+• Class: self.active_user_ids
+• Function: def get_active_users(active_user_ids):
+• Database: active_user_ids
+• JSON: "activeUserIds"
+
+⚡ Tip: Python uses snake_case for variables
+```
+
## Output
```
diff --git a/pr-writer/README.md b/pr-writer/README.md
index cedde6b..f8fb007 100644
--- a/pr-writer/README.md
+++ b/pr-writer/README.md
@@ -15,6 +15,36 @@ git add . && git commit -m "your changes"
python writer.py
```
+## Usage Demo
+
+```bash
+$ git add . && git commit -m "added auth"
+$ python writer.py
+
+📝 Analyzing your changes...
+
+## 🎯 What This Does
+Implements JWT-based authentication with token refresh
+
+## 🤔 Why We Need It
+Users were logged out randomly (40+ tickets/week)
+
+## ⚙️ How It Works
+1. User logs in → server generates JWT
+2. Token stored in httpOnly cookie
+3. Middleware validates each request
+
+## ✅ Testing
+- [x] Unit tests (12 new tests)
+- [x] Integration tests
+- [x] Manual staging testing
+
+## 🚀 Deployment Notes
+Requires REDIS_URL environment variable
+
+✨ Copied to clipboard! Ready to paste into GitHub/GitLab!
+```
+
## Output
```
diff --git a/roast-commits/README.md b/roast-commits/README.md
index c333ec9..5022d53 100644
--- a/roast-commits/README.md
+++ b/roast-commits/README.md
@@ -11,6 +11,37 @@ export ANTHROPIC_API_KEY=your_key
python roaster.py
```
+## Usage Demo
+
+```bash
+$ python roast-commits.py
+
+📊 Analyzing your commit history...
+
+🏆 HALL OF SHAME
+
+1. "wip"
+ 👉 Work In Progress? More like Work In Procrastination!
+
+2. "stuff"
+ 👉 Very specific. Outstanding work.
+
+3. "tmp"
+ 👉 Temporary name for a permanent mistake.
+
+━━━━━━━━━━━━━━━━━━━━━━━━━━━
+📊 YOUR GRADE: C-
+You're better than 35% of developers!
+━━━━━━━━━━━━━━━━━━━━━━━━━━━
+
+💡 Tips for Better Commits:
+✅ Use conventional commits: feat(), fix(), docs()
+✅ Be specific about WHAT changed
+✅ Explain WHY if it's complex
+
+😂 Remember: Future you will thank present you!
+```
+
## Output
```
diff --git a/terminal-ai/README.md b/terminal-ai/README.md
index 93439a3..999f60d 100644
--- a/terminal-ai/README.md
+++ b/terminal-ai/README.md
@@ -12,6 +12,27 @@ python terminal.py
python terminal.py find all large files
```
+## Usage Demo
+
+```bash
+$ python terminal.py find all files larger than 100MB
+
+🤖 Analyzing your request...
+
+💻 Command: find . -type f -size +100M -exec ls -lh {} \; | sort -k5 -h
+📖 Explanation: Finds files over 100MB, lists them with human-readable sizes, sorted by size
+⚠️ Risks: None
+
+❓ Execute? [y/N]: y
+
+📤 Output:
+1.2G ./backups/old_backup.tar.gz
+450M ./videos/project_demo.mp4
+120M ./datasets/training_data.csv
+
+✅ Complete! Found 3 large files.
+```
+
## Example Session
```
@@ -43,4 +64,41 @@ python terminal.py list top 10 CPU-consuming processes
python terminal.py compress all images in this folder
```
+## Troubleshooting
+
+### 🔑 Missing API Key
+```
+⚠️ ANTHROPIC_API_KEY not found!
+
+Set it with:
+ export ANTHROPIC_API_KEY="your-key"
+
+Get your key: https://console.anthropic.com/
+```
+
+### 🌐 Network Errors
+The tool automatically retries failed API calls **3 times** with exponential backoff. If errors persist:
+- Check your internet connection
+- Verify firewall/proxy settings
+- Try again later (possible API outage)
+
+### ⏰ Command Timeout
+Shell commands are limited to **30 seconds**. If your command times out:
+- Try a more specific/narrow request
+- Run the suggested command directly in your terminal
+- Use `safe off` mode for more flexibility
+
+### 🚫 Command Blocked
+```
+⛔ Dangerous command blocked by safe mode
+```
+This is intentional! Safe mode protects you from destructive commands. Use `--unsafe` flag if you really need to run it.
+
+### ❓ Empty Input
+```
+💭 What do you want to do?
+⚠️ Please describe what you'd like to do!
+```
+Simply describe what you want to accomplish in natural language.
+
**88 lines. Safe by default.**
diff --git a/week-recap/README.md b/week-recap/README.md
index a2035c6..34ce2c9 100644
--- a/week-recap/README.md
+++ b/week-recap/README.md
@@ -12,6 +12,30 @@ python recap.py # Last 7 days
python recap.py 14 # Last 2 weeks
```
+## Usage Demo
+
+```bash
+$ python recap.py
+
+📊 Analyzing your git history...
+
+🎯 Your Week: Mar 10-14, 2025
+
+Highlights:
+• Added user authentication (PR #456)
+• Fixed memory leak in data processor
+• Refactored API endpoints for performance
+• Code reviewed 8 PRs
+
+💬 Copy-Paste Ready:
+"This week I added user authentication, fixed a memory leak,
+refactored API endpoints, and reviewed 8 PRs."
+
+📈 Productivity: 47 commits across 12 files
+
+✅ Ready for your standup!
+```
+
## Output
```