From 16714a21893eec302a0b256333798b101bbb7690 Mon Sep 17 00:00:00 2001 From: rUv Date: Sat, 6 Sep 2025 20:37:04 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=96=20Checkpoint:=20Edit=20/workspaces?= =?UTF-8?q?/claude-code-flow/.claude/commands/flow-nexus/challenges.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .claude/checkpoints/1757191016.json | 1 + .claude/checkpoints/1757191019.json | 1 + .claude/commands/flow-nexus/challenges.md | 120 ++++++++++++++++++++++ 3 files changed, 122 insertions(+) create mode 100644 .claude/checkpoints/1757191016.json create mode 100644 .claude/checkpoints/1757191019.json create mode 100644 .claude/commands/flow-nexus/challenges.md diff --git a/.claude/checkpoints/1757191016.json b/.claude/checkpoints/1757191016.json new file mode 100644 index 0000000000..f0911110f4 --- /dev/null +++ b/.claude/checkpoints/1757191016.json @@ -0,0 +1 @@ +{"branch": "checkpoint/pre-edit-20250906-203656", "file": "/workspaces/claude-code-flow/.claude/commands/flow-nexus/neural-network.md", "timestamp": "2025-09-06T20:36:56Z", "type": "pre-edit", "original_branch": "alpha101"} diff --git a/.claude/checkpoints/1757191019.json b/.claude/checkpoints/1757191019.json new file mode 100644 index 0000000000..6fcd538237 --- /dev/null +++ b/.claude/checkpoints/1757191019.json @@ -0,0 +1 @@ +{"tag": "checkpoint-20250906-203659", "file": "/workspaces/claude-code-flow/.claude/commands/flow-nexus/neural-network.md", "timestamp": "2025-09-06T20:36:59Z", "type": "post-edit", "branch": "alpha101", "diff_summary": " .claude-flow/metrics/performance.json | 2 +- .claude-flow/metrics/system-metrics.json | 72 ++++++++++++++ .claude-flow/metrics/task-metrics.json | 6 +- .claude/checkpoints/1757191012.json | 1 + .claude/checkpoints/1757191014.json | 1 + .claude/commands/flow-nexus/neural-network.md | 134 ++++++++++++++++++++++++++ claude-flow-wiki | 0 7 files changed, 212 insertions(+), 4 deletions(-) "} diff --git a/.claude/commands/flow-nexus/challenges.md b/.claude/commands/flow-nexus/challenges.md new file mode 100644 index 0000000000..91de413e5f --- /dev/null +++ b/.claude/commands/flow-nexus/challenges.md @@ -0,0 +1,120 @@ +--- +name: flow-nexus-challenges +description: Coding challenges, achievements, and leaderboards +--- + +# Flow Nexus Challenges + +Complete coding challenges to earn rUv credits and climb the leaderboard. + +## List Challenges +```javascript +mcp__flow-nexus__challenges_list({ + difficulty: "intermediate", // beginner, advanced, expert + category: "algorithms", + status: "active", + limit: 20 +}) +``` + +## Get Challenge Details +```javascript +mcp__flow-nexus__challenge_get({ + challenge_id: "two-sum-problem" +}) +``` + +## Submit Solution +```javascript +mcp__flow-nexus__challenge_submit({ + challenge_id: "challenge_id", + user_id: "your_id", + solution_code: ` + function solution(nums, target) { + const map = new Map(); + for (let i = 0; i < nums.length; i++) { + const complement = target - nums[i]; + if (map.has(complement)) { + return [map.get(complement), i]; + } + map.set(nums[i], i); + } + return []; + } + `, + language: "javascript", + execution_time: 45 // milliseconds +}) +``` + +## Complete Challenge +```javascript +mcp__flow-nexus__app_store_complete_challenge({ + challenge_id: "challenge_id", + user_id: "your_id", + submission_data: { + passed_tests: 10, + total_tests: 10, + execution_time: 45 + } +}) +``` + +## Leaderboards +```javascript +// Global leaderboard +mcp__flow-nexus__leaderboard_get({ + type: "global", // weekly, monthly, challenge + limit: 10 +}) + +// Challenge-specific leaderboard +mcp__flow-nexus__leaderboard_get({ + type: "challenge", + challenge_id: "specific_challenge", + limit: 25 +}) +``` + +## Achievements +```javascript +mcp__flow-nexus__achievements_list({ + user_id: "your_id", + category: "speed_demon" // Categories vary +}) +``` + +## rUv Credits +```javascript +// Check balance +mcp__flow-nexus__ruv_balance({ user_id: "your_id" }) + +// View history +mcp__flow-nexus__ruv_history({ + user_id: "your_id", + limit: 20 +}) + +// Earn credits (automatic on completion) +mcp__flow-nexus__app_store_earn_ruv({ + user_id: "your_id", + amount: 100, + reason: "Completed expert challenge", + source: "challenge" +}) +``` + +## Challenge Categories +- **algorithms**: Classic algorithm problems +- **data-structures**: DS implementation challenges +- **system-design**: Architecture challenges +- **optimization**: Performance challenges +- **security**: Security-focused problems +- **ml-basics**: Machine learning fundamentals + +## Tips +1. Start with beginner challenges +2. Review other solutions after completing +3. Optimize for both correctness and speed +4. Complete daily challenges for bonus credits +5. Unlock achievements for extra rewards \ No newline at end of file