Skip to content
Development
Command

/achievement

View coding achievements, stats, and progress

From plugin
rust-skills
1.4k21 skills11 agents21 commands1 hook
+1
Install
> /plugin marketplace add zhanghandong/rust-skills
> /plugin install rust-skills@rust-skills

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/achievement

Context preview

What this command does when you run it.

View coding achievements, stats, and progress

Command definition

achievement.md
description: View coding achievements, stats, and progress
argument-hint: [list|stats|reset] [--category bug|test|streak|safety|learning]

Achievement System

View and manage your coding achievements and statistics.

Arguments: $ARGUMENTS

  • `list` (default): Show all achievements with unlock status
  • `stats`: Show detailed statistics
  • `reset`: Reset all stats and achievements (requires confirmation)
  • `--category`: Filter by category (bug, test, streak, safety, learning, review, docs)

---

Data Files

~/.claude/achievements/
├── stats.json       # Coding statistics
├── unlocked.json    # Unlocked achievements
└── activity.log     # Activity history

---

Instructions

1. Parse Arguments

/achievement           → list all achievements
/achievement list      → list all achievements
/achievement stats     → show statistics
/achievement reset     → reset (ask confirmation first)
/achievement --category test  → show test-related achievements only

2. Read Data Files

stats_file=~/.claude/achievements/stats.json
achievements_file=~/.claude/achievements/unlocked.json

# Read stats
stats=$(cat "$stats_file" 2>/dev/null || echo '{}')

# Read unlocked achievements
unlocked=$(cat "$achievements_file" 2>/dev/null || echo '{"unlocked":[]}')

3. Format Output

For `list` (default):

# 🏆 Coding Achievements

**Unlocked:** {unlocked_count} / {total_count}
**Progress:** ████████░░░░░░░░ 52%

---

## 🐛 Bug Fixing

| Status | Achievement | Description | Progress |
|--------|-------------|-------------|----------|
| ✅ | First Blood | Fixed your first bug | 1/1 |
| ✅ | Bug Hunter | Fixed 10 bugs | 10/10 |
| ⬜ | Bug Slayer | Fixed 50 bugs | 23/50 |
| 🔒 | Bug Terminator | Fixed 100 bugs | 23/100 |

## 🧪 Testing

| Status | Achievement | Description | Progress |
|--------|-------------|-------------|----------|
| ✅ | Test Curious | Wrote your first test | 1/1 |
| ⬜ | Test Believer | Wrote 10 tests | 7/10 |
| 🔒 | Test Enthusiast | Wrote 50 tests | 7/50 |
| 🔒 | TDD Master | Wrote 100 tests | 7/100 |

## 🔥 Consistency

| Status | Achievement | Description | Progress |
|--------|-------------|-------------|----------|
| ✅ | Getting Started | 3 day streak | 3/3 |
| ✅ | Week Warrior | 7 day streak | 7/7 |
| ⬜ | Monthly Master | 30 day streak | 12/30 |
| 🔒 | Unstoppable | 100 day streak | 12/100 |

## 🛡️ Safety

| Status | Achievement | Description | Progress |
|--------|-------------|-------------|----------|
| ✅ | Safety First | 7 days no unsafe | 7/7 |
| ⬜ | Safe Rustacean | 30 days no unsafe | 18/30 |
| 🔒 | Safety Champion | 100 days no unsafe | 18/100 |

## 🔧 Error Resolution

| Status | Achievement | Description | Progress |
|--------|-------------|-------------|----------|
| ✅ | Error Whisperer | Resolved first error | 1/1 |
| ⬜ | Borrow Checker's Friend | 25 errors | 15/25 |
| 🔒 | Compiler Whisperer | 100 errors | 15/100 |

## 📝 Documentation

| Status | Achievement | Description | Progress |
|--------|-------------|-------------|----------|
| ⬜ | Documenter | 5 doc comments | 2/5 |
| 🔒 | Documentation Master | 25 doc comments | 2/25 |

## 🧹 Refactoring

| Status | Achievement | Description | Progress |
|--------|-------------|-------------|----------|
| ⬜ | Code Cleaner | 5 refactors | 3/5 |
| 🔒 | Architect | 25 refactors | 3/25 |

## 🎓 Learning

| Status | Achievement | Description | Progress |
|--------|-------------|-------------|----------|
| ✅ | Curious Crab | 10 Rust questions | 10/10 |
| ⬜ | Knowledge Seeker | 50 questions | 32/50 |
| 🔒 | Rust Scholar | 100 questions | 32/100 |

## 📅 Sessions

| Status | Achievement | Description | Progress |
|--------|-------------|-------------|----------|
| ✅ | Hello, Rust! | First session | 1/1 |
| ⬜ | Regular | 50 sessions | 28/50 |
| 🔒 | Dedicated | 200 sessions | 28/200 |

---

💡 **Tip:** Keep coding to unlock more achievements!
🔄 **Refresh:** `/achievement`

For `stats`:

# 📊 Coding Statistics

**Period:** {first_session_date} - {today}
**Total Sessions:** {total_sessions}

---

## Activity Summary

| Metric | Value | Trend |
|--------|-------|-------|
| 🐛 Bugs Fixed | {bugs_fixed} | {trend} |
| 🧪 Tests Written | {tests_written} | {trend} |
| 🔧 Errors Resolved | {errors_resolved} | {trend} |
| 👀 Code Reviews | {code_reviews} | {trend} |
| 📝 Docs Written | {docs_written} | {trend} |
| 🧹 Refactors | {refactors} | {trend} |
| ❓ Questions Asked | {rust_questions} | {trend} |

---

## Streaks

| Type | Current | Best |
|------|---------|------|
| 🔥 Coding Streak | {streak_days} days | {best_streak} days |
| 🛡️ No Unsafe | {unsafe_avoided_days} days | {best_safe} days |

---

## Progress Bars

Bug Fixing: ████████░░░░░░░░ 23/50 to Bug Slayer Testing: ██████░░░░░░░░░░ 7/10 to Test Believer Safety: ████████████░░░░ 18/30 to Safe Rustacean Learning: ████████████░░░░ 32/50 to Knowledge Seeker


---

## Recent Activity

| Time | Event |
|------|-------|
| 2h ago | 🐛 Fixed bug in parser.rs |
| 5h ago | 🧪 Wrote 3 tests |
| 1d ago | 🔧 Resolved E0382 |

---

🏆 **Achievements:** {unlocked}/{total} unlocked
📈 **Next Milestone:** {next_achievement}

For `reset`:

**IMPORTANT: Ask for confirmation before resetting!**

⚠️ **Reset Confirmation Required**

This will permanently delete:
- All {unlocked_count} unlocked achievements
- All statistics ({bugs_fixed} bugs, {tests_written} tests, etc.)
- {streak_days} day streak

**Are you sure?** Type "yes I want to reset" to confirm.

If confirmed:

rm -rf ~/.claude/achievements/
echo "✅ Achievement data reset successfully."
echo "🌱 Start fresh and earn new achievements!"

4. Achievement Categories

| Category | ID Prefix | Achievements | |----------|-----------|--------------| | Bug Fixing | bug_ | first_blood, bug_hunter, bug_slayer, bug_terminator | | Testing | test_ | test_curious, test_believer, test_enthusiast, tdd_master | | Strea

Read more
Ships withrust-skills

AI-powered Rust development assistant with meta-cognition framework

Get the whole plugin