{"id":"achievements","name":"achievements","summary":"Steamスタイルの実績システムで、XP、レベル、連続記録、スキルツリーがあります。開発ワークフローをゲーム化します。","body":"# Achievement System\n\nSteam-style gamification for the development workflow. Earn XP by coding, fixing bugs, shipping features, and collaborating with agents. Level up, maintain streaks, and unlock achievements across 5 skill trees.\n\n## XP Level Thresholds\n\n| Level | XP Required | Title |\n|-------|-------------|-------|\n| 1 | 0 | Apprentice |\n| 2 | 100 | Developer |\n| 3 | 300 | Engineer |\n| 5 | 500 | Senior Engineer |\n| 10 | 1000 | Staff Engineer |\n| 20 | 3000 | Principal Engineer |\n| 50 | 10000 | Legendary |\n\n## Streak System\n\nConsecutive days of coding activity multiply XP earned:\n\n| Streak | Multiplier |\n|--------|-----------|\n| 1-2 days | 1.0x |\n| 3-6 days | 1.25x |\n| 7-13 days | 1.5x |\n| 14-29 days | 2.0x |\n| 30+ days | 3.0x |\n\nMissing a day resets the streak to 0.\n\n## Skill Trees\n\n### Tree 1: Code Warrior\n\nAchievements for writing and shipping code.\n\n**First Blood** (10 XP)\n- Description: Complete your first code review\n- Unlock: First time a commit or diff is reviewed in a session\n- Badge: Sword icon\n\n**Speed Demon** (25 XP)\n- Description: Fix a bug in under 2 minutes from identification to resolution\n- Unlock: Bug-fix tool sequence completes in < 120 seconds\n- Badge: Lightning bolt\n\n**Polyglot** (50 XP)\n- Description: Work in 3 or more programming languages in a single session\n- Unlock: Edit files with 3+ distinct language extensions in one session\n- Badge: Globe\n\n**Marathon Runner** (100 XP)\n- Description: Sustain an 8-hour coding session without stopping\n- Unlock: Session active for 8+ hours (tracked via tool call timestamps)\n- Badge: Running figure\n\n**Perfectionist** (50 XP)\n- Description: All tests pass on the very first run after a feature implementation\n- Unlock: Test suite passes immediately after the first Write/Edit sequence with no retries\n- Badge: Gold star\n\n### Tree 2: Bug Slayer\n\nAchievements for hunting and eliminating bugs.\n\n**Bug Whisperer** (25 XP)\n- Description: Fix 5 bugs in a single session\n- Unlock: 5 bug-fix tool sequences detected in one session\n- Badge: Magnifying glass\n\n**The Exterminator** (75 XP)\n- Description: Fix 25 bugs across your lifetime\n- Unlock: Cumulative bugs-fixed counter reaches 25\n- Badge: Skull\n\n**Regression Hunter** (40 XP)\n- Description: Catch a bug introduced in the last 24 hours before it ships\n- Unlock: Bug identified and fixed that was introduced in recent session\n- Badge: Net\n\n**Flaky Tamer** (35 XP)\n- Description: Stabilize a flaky test that was failing intermittently\n- Unlock: A previously failing test now passes consistently across 3 runs\n- Badge: Anchor\n\n**Zero to Hero** (60 XP)\n- Description: Reduce error count from 10+ to 0 in a single session\n- Unlock: Session starts with 10+ errors, ends with 0\n- Badge: Phoenix\n\n### Tree 3: Architecture Master\n\nAchievements for system design and planning.\n\n**Architect's Vision** (50 XP)\n- Description: Create an implementation plan with 10 or more steps\n- Unlock: Plan document written with 10+ numbered steps or tasks\n- Badge: Blueprint\n\n**The Refactorer** (45 XP)\n- Description: Reduce a file from 300+ lines to under 200 lines without losing functionality\n- Unlock: File shrinks by 100+ lines in a single edit session\n- Badge: Scissors\n\n**Dependency Auditor** (30 XP)\n- Description: Audit and clean up project dependencies in one session\n- Unlock: package.json or requirements.txt modified to remove 3+ entries\n- Badge: Package box\n\n**API Architect** (55 XP)\n- Description: Design and implement a REST or GraphQL API with 5+ endpoints\n- Unlock: 5+ route or resolver definitions written in one session\n- Badge: Cloud diagram\n\n**The Modularizer** (40 XP)\n- Description: Split a monolithic file into 3+ focused modules\n- Unlock: One file becomes 3+ new files in a refactoring session\n- Badge: Puzzle piece\n\n### Tree 4: Security Guardian\n\nAchievements for security-conscious development.\n\n**Security Hawk** (30 XP)\n- Description: Identify a security vulnerability during review\n- Unlock: Security review flags a CRITICAL or HIGH severity finding\n- Badge: Shield with eye\n\n**Secret Keeper** (20 XP)\n- Description: Catch and remove a hardcoded credential before it commits\n- Unlock: Credential-deny hook triggers and the file is subsequently fixed\n- Badge: Lock\n\n**Input Validator** (25 XP)\n- Description: Add Zod or schema validation to an unvalidated input\n- Unlock: Zod schema or validation logic added to an API handler or form\n- Badge: Checklist\n\n**Dependency Guardian** (35 XP)\n- Description: Identify and update a dependency with a known CVE\n- Unlock: CVE-flagged dependency version bumped in package.json\n- Badge: Shield with checkmark\n\n**The Auditor** (80 XP)\n- Description: Complete a full security audit with no CRITICAL findings\n- Unlock: security-reviewer agent completes a full sweep and returns clean\n- Badge: Gold shield\n\n### Tree 5: Team Player\n\nAchievements for collaboration, mentoring, and cross-agent work.\n\n**The Mentor** (75 XP)\n- Description: An agent's error triggers cross-training that updates the full team's knowledge\n- Unlock: Canavar cross-training propagates a learning from one agent to all others\n- Badge: Teacher at board\n\n**Night Owl** (15 XP)\n- Description: Write code after midnight local time\n- Unlock: Tool call timestamp is between 00:00 and 04:00 local time\n- Badge: Owl\n\n**The Reviewer** (20 XP)\n- Description: Complete 10 code reviews across your lifetime\n- Unlock: Cumulative commits-reviewed counter reaches 10\n- Badge: Magnifying glass over code\n\n**Streak Master** (50 XP)\n- Description: Maintain a 7-day coding streak\n- Unlock: streak field reaches 7 in achievements.json\n- Badge: Fire\n\n**Knowledge Hoarder** (65 XP)\n- Description: Store 20 learnings in the memory system across your lifetime\n- Unlock: Cumulative learnings-stored counter reaches 20\n- Badge: Brain\n\n## Achievement State File\n\nAchievements are tracked in `~/.claude/achievements.json`:\n\n```json\n{\n  \"xp\": 350,\n  \"level\": 5,\n  \"streak\": 7,\n  \"lastActive\": \"2026-04-08\",\n  \"unlocked\": {\n    \"first-blood\": { \"unlockedAt\": \"2026-04-01T10:00:00Z\", \"xp\": 10 },\n    \"bug-whisperer\": { \"unlockedAt\": \"2026-04-05T14:22:00Z\", \"xp\": 25 }\n  },\n  \"progress\": {\n    \"bugs-fixed\": 3,\n    \"commits-reviewed\": 12,\n    \"tests-passed\": 45,\n    \"learnings-stored\": 8,\n    \"session-bugs-fixed\": 1,\n    \"session-languages\": [\"ts\", \"py\"],\n    \"session-start\": \"2026-04-08T09:00:00Z\"\n  }\n}\n```\n\n## Leaderboard (Team Usage)\n\nWhen multiple developers use the same vibecosystem config, achievements can be shared via a leaderboard file at `~/.claude/team-leaderboard.json`. Each entry includes:\n\n```json\n{\n  \"entries\": [\n    {\n      \"name\": \"batuhan\",\n      \"xp\": 1250,\n      \"level\": 10,\n      \"streak\": 14,\n      \"unlockedCount\": 18,\n      \"topAchievement\": \"Legendary Streak\"\n    }\n  ],\n  \"updatedAt\": \"2026-04-08T12:00:00Z\"\n}\n```\n\nRankings are sorted by XP descending. Ties are broken by streak length.\n\n## Integration Points\n\n- **achievement-tracker.ts** (PostToolUse hook): Detects events and awards XP in real time\n- **canavar-cross-review**: Triggers \"The Mentor\" achievement on cross-training events\n- **session-analytics**: Provides session duration for \"Marathon Runner\"\n- **credential-deny**: Triggers \"Secret Keeper\" progress when a credential is blocked\n- **passive-learner**: Increments the learnings-stored counter for \"Knowledge Hoarder\"","author":"@vibeeval","ownerProfile":null,"authorContacts":null,"sourceUrl":"https://github.com/vibeeval/vibecosystem/tree/main/skills/achievements","license":"MIT","category":"writing","lang":"en","tokens":1895,"stars":0,"calls30d":1,"claimed":false,"visibility":"public","origin":"crawler","version":"0.1.0","createdAt":"2026-08-22","updatedAt":"2026-08-22","files":[],"requires":{"mcp":[],"tools":[]},"safety":{"flags":[],"scannedAt":"2026-08-22","hasScripts":false,"networkEndpoints":[]}}