// Comprehensive Flow Nexus platform management - authentication, sandboxes, app deployment, payments, and challenges (Gold Tier)
| name | flow-nexus-platform |
| description | Comprehensive Flow Nexus platform management - authentication, sandboxes, app deployment, payments, and challenges (Gold Tier) |
| category | platform |
| version | 2.0.0 |
| author | Flow Nexus |
| tags | ["authentication","sandboxes","deployment","payments","gamification","cloud","automation"] |
| tier | gold |
Gold Tier Skill: Comprehensive platform management for Flow Nexus with 4 automation scripts, 3 configuration templates, and comprehensive test suites - covering authentication, sandbox execution, app deployment, credit management, and coding challenges.
resources/scripts/ - 4 platform automation toolsresources/templates/ - 3 configuration templatestests/ - 3 comprehensive test suitesflow-nexus-platform-process.dot - Visual workflowThis skill includes functional automation scripts for streamlined platform operations:
auth-manager.js)Automate user authentication workflows:
# Register new user
node resources/scripts/auth-manager.js register user@example.com SecurePass123 "John Doe"
# Login
node resources/scripts/auth-manager.js login user@example.com SecurePass123
# Check authentication status
node resources/scripts/auth-manager.js status --detailed
# Update profile
node resources/scripts/auth-manager.js update-profile user123 bio="AI Developer" github_username=johndoe
# Upgrade tier
node resources/scripts/auth-manager.js upgrade user123 pro
sandbox-manager.js)Manage sandbox lifecycle with a single script:
# Create sandbox with packages
node resources/scripts/sandbox-manager.js create node my-api --env PORT=3000 NODE_ENV=dev --packages express,cors
# List all sandboxes
node resources/scripts/sandbox-manager.js list --status running
# Execute code
node resources/scripts/sandbox-manager.js execute sbx_123 "console.log('Hello')"
node resources/scripts/sandbox-manager.js execute sbx_123 @script.js
# Upload file
node resources/scripts/sandbox-manager.js upload sbx_123 ./config.json /app/config.json
# View logs
node resources/scripts/sandbox-manager.js logs sbx_123 --lines 100
# Cleanup old sandboxes
node resources/scripts/sandbox-manager.js cleanup-all --older-than-hours 24
deployment-manager.js)Automate application deployment:
# Browse templates
node resources/scripts/deployment-manager.js list-templates --category web-api --featured
# Get template details
node resources/scripts/deployment-manager.js template-info express-api-starter
# Deploy application
node resources/scripts/deployment-manager.js deploy express-api-starter my-production-api --var database_url=postgres://...
# Publish your app
node resources/scripts/deployment-manager.js publish "JWT Auth Service" "Production JWT auth" backend ./auth-service.js --tags auth,jwt,security
# Search apps
node resources/scripts/deployment-manager.js search "authentication" --category backend
# View analytics
node resources/scripts/deployment-manager.js analytics app_123 --timeframe 30d
platform-health.js)Monitor system health and manage credits:
# Check platform health
node resources/scripts/platform-health.js check --detailed
# Check credit balance
node resources/scripts/platform-health.js credits --history
# Create payment link
node resources/scripts/platform-health.js payment-link 50
# Configure auto-refill
node resources/scripts/platform-health.js auto-refill enable --threshold 100 --amount 50
# View audit logs
node resources/scripts/platform-health.js audit-log --limit 100
# Get user statistics
node resources/scripts/platform-health.js user-stats user123
# Market data
node resources/scripts/platform-health.js market-data
Three production-ready configuration templates in resources/templates/:
platform-config.json)Complete platform settings including authentication, sandboxes, deployment, credits, monitoring, and integrations.
sandbox-config.yaml)Comprehensive sandbox setup with environment variables, packages, lifecycle hooks, network configuration, and security settings.
deployment-manifest.yaml)Enterprise-grade deployment configuration with autoscaling, health checks, monitoring, CI/CD integration, and rollback strategies.
Register New Account
mcp__flow-nexus__user_register({
email: "user@example.com",
password: "secure_password",
full_name: "Your Name",
username: "unique_username" // optional
})
Login
mcp__flow-nexus__user_login({
email: "user@example.com",
password: "your_password"
})
Check Authentication Status
mcp__flow-nexus__auth_status({ detailed: true })
Logout
mcp__flow-nexus__user_logout()
Request Password Reset
mcp__flow-nexus__user_reset_password({
email: "user@example.com"
})
Update Password with Token
mcp__flow-nexus__user_update_password({
token: "reset_token_from_email",
new_password: "new_secure_password"
})
Verify Email
mcp__flow-nexus__user_verify_email({
token: "verification_token_from_email"
})
Get User Profile
mcp__flow-nexus__user_profile({
user_id: "your_user_id"
})
Update Profile
mcp__flow-nexus__user_update_profile({
user_id: "your_user_id",
updates: {
full_name: "Updated Name",
bio: "AI Developer and researcher",
github_username: "yourusername",
twitter_handle: "@yourhandle"
}
})
Get User Statistics
mcp__flow-nexus__user_stats({
user_id: "your_user_id"
})
Upgrade User Tier
mcp__flow-nexus__user_upgrade({
user_id: "your_user_id",
tier: "pro" // pro, enterprise
})
Create Sandbox
mcp__flow-nexus__sandbox_create({
template: "node", // node, python, react, nextjs, vanilla, base, claude-code
name: "my-sandbox",
env_vars: {
API_KEY: "your_api_key",
NODE_ENV: "development",
DATABASE_URL: "postgres://..."
},
install_packages: ["express", "cors", "dotenv"],
startup_script: "npm run dev",
timeout: 3600, // seconds
metadata: {
project: "my-project",
environment: "staging"
}
})
Configure Existing Sandbox
mcp__flow-nexus__sandbox_configure({
sandbox_id: "sandbox_id",
env_vars: {
NEW_VAR: "value"
},
install_packages: ["axios", "lodash"],
run_commands: ["npm run migrate", "npm run seed"],
anthropic_key: "sk-ant-..." // For Claude Code integration
})
Run Code in Sandbox
mcp__flow-nexus__sandbox_execute({
sandbox_id: "sandbox_id",
code: `
console.log('Hello from sandbox!');
const result = await fetch('https://api.example.com/data');
const data = await result.json();
return data;
`,
language: "javascript",
capture_output: true,
timeout: 60, // seconds
working_dir: "/app",
env_vars: {
TEMP_VAR: "override"
}
})
List Sandboxes
mcp__flow-nexus__sandbox_list({
status: "running" // running, stopped, all
})
Get Sandbox Status
mcp__flow-nexus__sandbox_status({
sandbox_id: "sandbox_id"
})
Upload File to Sandbox
mcp__flow-nexus__sandbox_upload({
sandbox_id: "sandbox_id",
file_path: "/app/config/database.json",
content: JSON.stringify(databaseConfig, null, 2)
})
Get Sandbox Logs
mcp__flow-nexus__sandbox_logs({
sandbox_id: "sandbox_id",
lines: 100 // max 1000
})
Stop Sandbox
mcp__flow-nexus__sandbox_stop({
sandbox_id: "sandbox_id"
})
Delete Sandbox
mcp__flow-nexus__sandbox_delete({
sandbox_id: "sandbox_id"
})
API Development Sandbox
mcp__flow-nexus__sandbox_create({
template: "node",
name: "api-development",
install_packages: [
"express",
"cors",
"helmet",
"dotenv",
"jsonwebtoken",
"bcrypt"
],
env_vars: {
PORT: "3000",
NODE_ENV: "development"
},
startup_script: "npm run dev"
})
Machine Learning Sandbox
mcp__flow-nexus__sandbox_create({
template: "python",
name: "ml-training",
install_packages: [
"numpy",
"pandas",
"scikit-learn",
"matplotlib",
"tensorflow"
],
env_vars: {
CUDA_VISIBLE_DEVICES: "0"
}
})
Full-Stack Development
mcp__flow-nexus__sandbox_create({
template: "nextjs",
name: "fullstack-app",
install_packages: [
"prisma",
"@prisma/client",
"next-auth",
"zod"
],
env_vars: {
DATABASE_URL: "postgresql://...",
NEXTAUTH_SECRET: "secret"
}
})
Search Applications
mcp__flow-nexus__app_search({
search: "authentication api",
category: "backend",
featured: true,
limit: 20
})
Get App Details
mcp__flow-nexus__app_get({
app_id: "app_id"
})
List Templates
mcp__flow-nexus__app_store_list_templates({
category: "web-api",
tags: ["express", "jwt", "typescript"],
limit: 20
})
Get Template Details
mcp__flow-nexus__template_get({
template_name: "express-api-starter",
template_id: "template_id" // alternative
})
List All Available Templates
mcp__flow-nexus__template_list({
category: "backend",
template_type: "starter",
featured: true,
limit: 50
})
Publish App to Store
mcp__flow-nexus__app_store_publish_app({
name: "JWT Authentication Service",
description: "Production-ready JWT authentication microservice with refresh tokens",
category: "backend",
version: "1.0.0",
source_code: sourceCodeString,
tags: ["auth", "jwt", "express", "typescript", "security"],
metadata: {
author: "Your Name",
license: "MIT",
repository: "github.com/username/repo",
homepage: "https://yourapp.com",
documentation: "https://docs.yourapp.com"
}
})
Update Application
mcp__flow-nexus__app_update({
app_id: "app_id",
updates: {
version: "1.1.0",
description: "Added OAuth2 support",
tags: ["auth", "jwt", "oauth2", "express"],
source_code: updatedSourceCode
}
})
Deploy Template
mcp__flow-nexus__template_deploy({
template_name: "express-api-starter",
deployment_name: "my-production-api",
variables: {
api_key: "your_api_key",
database_url: "postgres://user:pass@host:5432/db",
redis_url: "redis://localhost:6379"
},
env_vars: {
NODE_ENV: "production",
PORT: "8080",
LOG_LEVEL: "info"
}
})
Get App Analytics
mcp__flow-nexus__app_analytics({
app_id: "your_app_id",
timeframe: "30d" // 24h, 7d, 30d, 90d
})
View Installed Apps
mcp__flow-nexus__app_installed({
user_id: "your_user_id"
})
Get Market Statistics
mcp__flow-nexus__market_data()
Check Credit Balance
mcp__flow-nexus__check_balance()
Check rUv Balance
mcp__flow-nexus__ruv_balance({
user_id: "your_user_id"
})
View Transaction History
mcp__flow-nexus__ruv_history({
user_id: "your_user_id",
limit: 100
})
Get Payment History
mcp__flow-nexus__get_payment_history({
limit: 50
})
Create Payment Link
mcp__flow-nexus__create_payment_link({
amount: 50 // USD, minimum $10
})
// Returns secure Stripe payment URL
Enable Auto-Refill
mcp__flow-nexus__configure_auto_refill({
enabled: true,
threshold: 100, // Refill when credits drop below 100
amount: 50 // Purchase $50 worth of credits
})
Disable Auto-Refill
mcp__flow-nexus__configure_auto_refill({
enabled: false
})
Service Costs:
Ways to Earn:
Earn Credits Programmatically
mcp__flow-nexus__app_store_earn_ruv({
user_id: "your_user_id",
amount: 100,
reason: "Completed expert algorithm challenge",
source: "challenge" // challenge, app_usage, referral, etc.
})
Free Tier
Pro Tier ($29/month)
Enterprise Tier (Custom Pricing)
user_stats regularlyList Available Challenges
mcp__flow-nexus__challenges_list({
difficulty: "intermediate", // beginner, intermediate, advanced, expert
category: "algorithms",
status: "active", // active, completed, locked
limit: 20
})
Get Challenge Details
mcp__flow-nexus__challenge_get({
challenge_id: "two-sum-problem"
})
Submit Challenge Solution
mcp__flow-nexus__challenge_submit({
challenge_id: "challenge_id",
user_id: "your_user_id",
solution_code: `
function twoSum(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 (optional)
})
Mark Challenge as Complete
mcp__flow-nexus__app_store_complete_challenge({
challenge_id: "challenge_id",
user_id: "your_user_id",
submission_data: {
passed_tests: 10,
total_tests: 10,
execution_time: 45,
memory_usage: 2048 // KB
}
})
Global Leaderboard
mcp__flow-nexus__leaderboard_get({
type: "global", // global, weekly, monthly, challenge
limit: 100
})
Challenge-Specific Leaderboard
mcp__flow-nexus__leaderboard_get({
type: "challenge",
challenge_id: "specific_challenge_id",
limit: 50
})
List User Achievements
mcp__flow-nexus__achievements_list({
user_id: "your_user_id",
category: "speed_demon" // Optional filter
})
Upload File
mcp__flow-nexus__storage_upload({
bucket: "my-bucket", // public, private, shared, temp
path: "data/users.json",
content: JSON.stringify(userData, null, 2),
content_type: "application/json"
})
List Files
mcp__flow-nexus__storage_list({
bucket: "my-bucket",
path: "data/", // prefix filter
limit: 100
})
Get Public URL
mcp__flow-nexus__storage_get_url({
bucket: "my-bucket",
path: "data/report.pdf",
expires_in: 3600 // seconds (default: 1 hour)
})
Delete File
mcp__flow-nexus__storage_delete({
bucket: "my-bucket",
path: "data/old-file.json"
})
Subscribe to Database Changes
mcp__flow-nexus__realtime_subscribe({
table: "tasks",
event: "INSERT", // INSERT, UPDATE, DELETE, *
filter: "status=eq.pending AND priority=eq.high"
})
List Active Subscriptions
mcp__flow-nexus__realtime_list()
Unsubscribe
mcp__flow-nexus__realtime_unsubscribe({
subscription_id: "subscription_id"
})
Subscribe to Execution Stream
mcp__flow-nexus__execution_stream_subscribe({
stream_type: "claude-flow-swarm", // claude-code, claude-flow-swarm, claude-flow-hive-mind, github-integration
deployment_id: "deployment_id",
sandbox_id: "sandbox_id" // alternative
})
Get Stream Status
mcp__flow-nexus__execution_stream_status({
stream_id: "stream_id"
})
List Generated Files
mcp__flow-nexus__execution_files_list({
stream_id: "stream_id",
created_by: "claude-flow", // claude-code, claude-flow, git-clone, user
file_type: "javascript" // filter by extension
})
Get File Content from Execution
mcp__flow-nexus__execution_file_get({
file_id: "file_id",
file_path: "/path/to/file.js" // alternative
})
Seek Guidance from Seraphina
mcp__flow-nexus__seraphina_chat({
message: "How should I architect a distributed microservices system?",
enable_tools: true, // Allow her to create swarms, deploy code, etc.
conversation_history: [
{ role: "user", content: "I need help with system architecture" },
{ role: "assistant", content: "I can help you design that. What are your requirements?" }
]
})
Queen Seraphina is an advanced AI assistant with:
Check System Health
mcp__flow-nexus__system_health()
View Audit Logs
mcp__flow-nexus__audit_log({
user_id: "your_user_id", // optional filter
limit: 100
})
Initialize Authentication
mcp__flow-nexus__auth_init({
mode: "user" // user, service
})
// Register
mcp__flow-nexus__user_register({
email: "dev@example.com",
password: "SecurePass123!",
full_name: "Developer Name"
})
// Login
mcp__flow-nexus__user_login({
email: "dev@example.com",
password: "SecurePass123!"
})
// Check auth status
mcp__flow-nexus__auth_status({ detailed: true })
// Check current balance
mcp__flow-nexus__check_balance()
// Add credits
const paymentLink = mcp__flow-nexus__create_payment_link({
amount: 50 // $50
})
// Setup auto-refill
mcp__flow-nexus__configure_auto_refill({
enabled: true,
threshold: 100,
amount: 50
})
// Create development sandbox
const sandbox = mcp__flow-nexus__sandbox_create({
template: "node",
name: "dev-environment",
install_packages: ["express", "dotenv"],
env_vars: {
NODE_ENV: "development"
}
})
// Execute code
mcp__flow-nexus__sandbox_execute({
sandbox_id: sandbox.id,
code: 'console.log("Hello Flow Nexus!")',
language: "javascript"
})
// Browse templates
mcp__flow-nexus__template_list({
category: "backend",
featured: true
})
// Deploy template
mcp__flow-nexus__template_deploy({
template_name: "express-api-starter",
deployment_name: "my-api",
variables: {
database_url: "postgres://..."
}
})
// Find challenges
mcp__flow-nexus__challenges_list({
difficulty: "beginner",
category: "algorithms"
})
// Submit solution
mcp__flow-nexus__challenge_submit({
challenge_id: "fizzbuzz",
user_id: "your_id",
solution_code: "...",
language: "javascript"
})
user_statsmcp__flow-nexus__sandbox_create({
template: "base",
name: "custom-environment",
startup_script: `
apt-get update
apt-get install -y custom-package
git clone https://github.com/user/repo
cd repo && npm install
`
})
// Stage 1: Setup
mcp__flow-nexus__sandbox_execute({
sandbox_id: "id",
code: "npm install && npm run build"
})
// Stage 2: Run
mcp__flow-nexus__sandbox_execute({
sandbox_id: "id",
code: "npm start",
working_dir: "/app/dist"
})
const chunkSize = 5 * 1024 * 1024 // 5MB chunks
for (let i = 0; i < chunks.length; i++) {
await mcp__flow-nexus__storage_upload({
bucket: "private",
path: `large-file.bin.part${i}`,
content: chunks[i]
})
}
// Upload to temp for processing
mcp__flow-nexus__storage_upload({
bucket: "temp",
path: "processing/data.json",
content: data
})
// Move to permanent storage after processing
mcp__flow-nexus__storage_upload({
bucket: "private",
path: "archive/processed-data.json",
content: processedData
})
const tables = ["users", "tasks", "notifications"]
tables.forEach(table => {
mcp__flow-nexus__realtime_subscribe({
table,
event: "*",
filter: `user_id=eq.${userId}`
})
})
// Subscribe to task completion
mcp__flow-nexus__realtime_subscribe({
table: "tasks",
event: "UPDATE",
filter: "status=eq.completed"
})
// Trigger notification workflow on event
// (handled by your application logic)
Comprehensive test suites in tests/:
auth-manager.test.js)Tests registration, login, password management, profile updates, and tier upgrades. Includes validation logic, parameter construction, and error handling.
node tests/auth-manager.test.js
sandbox-manager.test.js)Tests sandbox creation, configuration, execution, monitoring, and cleanup. Covers template validation, environment parsing, and resource management.
node tests/sandbox-manager.test.js
platform-integration.test.js)End-to-end workflow tests combining authentication, sandbox management, deployment, credit management, and health monitoring.
node tests/platform-integration.test.js
Visual workflow diagram in flow-nexus-platform-process.dot:
Generate diagram:
dot -Tpng flow-nexus-platform-process.dot -o flow-nexus-platform-process.png
v2.0.0 (2025-11-02): Gold Tier Upgrade
v1.0.0 (2025-10-19): Initial comprehensive platform skill
Skill Tier: Gold (13 files: 1 SKILL.md + 4 scripts + 3 templates + 3 tests + 1 process diagram + 1 resources README)
This skill consolidates 6 Flow Nexus command modules into a single comprehensive platform management interface with full automation capabilities.
Flow Nexus Platform operates on 3 fundamental principles:
Every execution happens in ephemeral, isolated cloud sandboxes with automatic cleanup and resource management.
In practice:
All platform operations consume rUv credits, enabling transparent cost tracking and optimization.
In practice:
Challenges, achievements, and leaderboards transform platform usage into skill-building experiences.
In practice:
| Anti-Pattern | Problem | Solution |
|---|---|---|
| Hardcoded API Keys | Exposing authentication tokens in code or logs creates security vulnerabilities | Use environment variables via env_vars parameter in sandbox creation; never log credentials |
| Orphaned Sandboxes | Leaving sandboxes running after task completion wastes credits and resources | Always destroy sandboxes explicitly or set timeout parameter; use cleanup scripts for batch operations |
| Ignoring Credit Limits | Operations fail mid-execution when credits run out, losing progress | Check check_balance() before expensive operations; configure auto_refill with appropriate thresholds |
| Manual Template Replication | Repeatedly creating identical sandbox configurations is error-prone and slow | Use template_deploy() for standardized environments; publish reusable templates to app store |
| Sync-Only Workflow Execution | Blocking on long-running workflows prevents parallel operations | Use async: true for workflows >60s; monitor with workflow_queue_status() |
The Flow Nexus Platform skill provides comprehensive cloud infrastructure management for AI-assisted development workflows. By combining ephemeral sandbox execution, credit-based metering, and gamified skill-building, it enables scalable development without local infrastructure overhead.
Use this skill when you need isolated execution environments, distributed compute resources, or cloud-based app deployment. The platform shines for teams requiring multi-user collaboration, auto-scaling workloads, or pay-per-use resource models. With 4 automation scripts, 3 production-ready templates, and comprehensive test coverage, this Gold-tier skill delivers enterprise-grade platform orchestration.
Key takeaways: Leverage sandbox templates for consistency, monitor credit usage to optimize costs, and publish successful configurations as templates to build passive credit income. The platform's event-driven architecture, real-time subscriptions, and Queen Seraphina AI assistant provide advanced capabilities for sophisticated workflows.