Skip to content

SPT - Quick Reference

⚡ Quick Start

bash
# Load a single skill
claude-code --skill skill-name "Your task"

# Load multiple skills (recommended for complex tasks)
claude-code --skill skill1 --skill skill2 "Complex task"

# Example
claude-code --skill pair-programming --skill verification-quality "Build login form"

🎯 SPT Skills (25 Total)

🧠 SptDB Skills - Vector Search & Memory (5)

  • sptdb-vector-search: Semantic search, RAG systems, knowledge bases (<100µs)
  • sptdb-memory-patterns: Persistent memory, session management, context preservation
  • sptdb-optimization: 4-32x memory reduction, 150x faster search, HNSW indexing
  • sptdb-learning: 9 RL algorithms (Decision Transformer, Q-Learning, Actor-Critic, SARSA)
  • sptdb-advanced: QUIC sync (<1ms), multi-database coordination, hybrid search, distributed

🔄 Flow Nexus Skills - Cloud Platform (3)

  • flow-nexus-platform: Authentication, sandboxes, deployment, payments, challenges
  • flow-nexus-swarm: Cloud swarms, event-driven workflows, message queues
  • flow-nexus-neural: Train & deploy neural networks in E2B sandboxes

🐙 Swarm Skills - Multi-Agent Orchestration (3)

  • swarm-orchestration: Multi-agent coordination, parallel execution, dynamic topology
  • swarm-advanced: Research, development, testing, complex workflows
  • hive-mind-advanced: Queen coordinator, worker specialists, adaptive swarms

🔧 Workflow Skills - Automation (4)

  • stream-chain: Stream-JSON chaining, pipelines, data transformation
  • hooks-automation: Pre/post hooks, Git integration, session management, MCP coordination
  • smart-methodology: Specification → Modeling → Architecture → Refinement → Trust-Validation
  • skill-builder: Generate React components (TypeScript, hooks, tests, Storybook)

📊 GitHub Skills - Integration & DevOps (5)

  • github-code-review: Multi-agent PR review, security analysis, best practices
  • github-project-management: Issue tracking, boards, sprints, Agile workflow
  • github-release-management: Automated versioning, testing, deployment, rollback
  • github-workflow-automation: CI/CD optimization, parallelization, artifact management
  • github-multi-repo: Cross-repo sync, package alignment, architecture management

🤝 Development Skills - Quality & Performance (3)

  • pair-programming: Driver/navigator modes, TDD, refactoring, debugging, verification
  • verification-quality: Code quality checks, automated testing, validation workflows
  • performance-analysis: Profiling, bottleneck detection, optimization, benchmarking

🧩 ReasoningBank Skills - Adaptive Learning (2)

  • reasoningbank-intelligence: Pattern recognition, strategy optimization, meta-cognition
  • reasoningbank-sptdb: Trajectory tracking, verdict judgment, 150x speedup, experience replay

📚 Skill Selection Quick Guide

Building something? Use these:

TaskSkills
Semantic search/RAGsptdb-vector-search + sptdb-optimization
React componentskill-builder + pair-programming + verification-quality
Code reviewgithub-code-review + pair-programming
Release/deploygithub-release-management + github-workflow-automation
Multi-repo workgithub-multi-repo + swarm-orchestration
Self-learning agentsptdb-learning + reasoningbank-intelligence
Complex systemsmart-methodology + swarm-orchestration
Cloud scaleflow-nexus-platform + flow-nexus-swarm

🔄 Legacy Commands (For Reference)

Agent Spawning

bash
/spawn <agent-type> <task-description>
/spawn coder "Implement JWT authentication"
/spawn tester "Write unit tests for UserService"
/spawn reviewer "Review PR #123"

Swarm Operations

bash
/swarm-init <strategy> <objective>
/swarm-init hierarchical "Build authentication system"
/swarm-monitor
/swarm-status

SMART Workflow

bash
/smart-architect "Design microservices architecture"
/smart-coder "Implement user service"
/smart-tester "Test API endpoints"
/smart-reviewer "Review implementation"
/smart-documenter "Generate API docs"

💾 Memory Operations

javascript
// Store data
mcp__spt__memory_usage({
  action: "store",
  key: "path/to/data",
  namespace: "coordination",
  value: JSON.stringify(data)
})

// Retrieve data
mcp__spt__memory_usage({
  action: "retrieve",
  key: "path/to/data",
  namespace: "coordination"
})

// Search data
mcp__spt__memory_usage({
  action: "search",
  query: "search terms",
  namespace: "coordination"
})

📦 Memory Namespaces

coordination/
├── swarm/          # Swarm coordination
│   ├── queen/      # Queen coordinator
│   ├── workers/    # Worker agents
│   └── shared/     # Shared context
├── task/           # Task-specific
└── agent/          # Agent-specific

🛠️ MCP Tools Reference

Swarm Tools

javascript
mcp__flow-nexus__swarm_init({ strategy, objective, max_agents })
mcp__flow-nexus__agent_spawn({ type, task, context })
mcp__flow-nexus__task_orchestrate({ tasks, coordination })

Optimization Tools

javascript
mcp__sublinear-time-solver__solve({ matrix, vector, method })
mcp__sublinear-time-solver__pageRank({ adjacency, dampingFactor })
mcp__sublinear-time-solver__analyzeMatrix({ matrix, checkDominance })

Performance Tools

javascript
mcp__spt__benchmark_run({ type, iterations })
mcp__spt__bottleneck_analyze({ component, metrics })

👥 Agent Metadata & Types

Agent Types

TypePurposeExamples
coderCode implementationWrite features, refactor
plannerTask planningBreak down work, roadmaps
researcherResearchResearch tech, analyze docs
reviewerCode reviewPR review, quality checks
testerTestingUnit tests, integration
architectSystem designArchitecture, tech selection

Core Agents (agents/core/)

  • coder - Code implementation
  • planner - Task breakdown and planning
  • researcher - Information gathering
  • reviewer - Code and quality review
  • tester - Testing and validation

Specialized Agents

GitHub (agents/github/): code-review-swarm, pr-manager, issue-tracker, release-manager Hive Mind (agents/hive-mind/): queen-coordinator, worker-specialist, scout-explorer, swarm-memory-manager Consensus (agents/consensus/): raft-manager, quorum-manager, byzantine-coordinator, crdt-synchronizer SMART (agents/smart/): specification, modeling, architecture, refinement

Agent Metadata Template

yaml
---
name: my-agent
type: developer|coordinator|analyst|specialist
color: "#FF6B35"
description: Brief description
capabilities:
  - capability_1
  - capability_2
priority: high|medium|low
hooks:
  pre: |
    echo "Starting..."
  post: |
    echo "Complete!"
---

🔗 Common Commands

Analysis

bash
/bottleneck-detect <component>
/performance-report
/token-usage

GitHub

bash
/github/pr-manager review <PR#>
/github/issue-tracker triage <repo>
/github/release-manager create <version>

Hive Mind

bash
/hive-mind-init <strategy>
/hive-mind-spawn <type> <count>
/hive-mind-consensus <decision>
/hive-mind-status

Optimization

bash
/topology-optimize
/parallel-execute <tasks>
/cache-manage

🎯 Swarm Strategies

StrategyBest ForOrganization
HierarchicalComplex projectsTree with coordinator
MeshDistributed tasksPeer-to-peer network
AdaptiveDynamic workloadsAuto-scaling topology

📐 File Organization

src/
  modules/
    feature/
      feature.service.ts      # Business logic
      feature.controller.ts   # HTTP handling
      feature.repository.ts   # Data access
      feature.types.ts        # Type definitions
      feature.test.ts         # Tests

✅ Code Quality Checklist

  • [ ] Clear naming conventions
  • [ ] Single Responsibility Principle
  • [ ] Proper error handling
  • [ ] TypeScript types defined
  • [ ] Tests written (>80% coverage)
  • [ ] Documentation added
  • [ ] Linter passing
  • [ ] Security validated

🚨 Error Handling Pattern

typescript
try {
  const result = await operation();
  return result;
} catch (error) {
  logger.error('Operation failed', { error, context });
  
  if (error instanceof ValidationError) {
    throw new BadRequestError('Invalid input', error);
  }
  
  throw new InternalServerError('Unexpected error', error);
}

🪝 Hook Examples

bash
# Pre-hook: Validate environment
hooks:
  pre: |
    if [ ! -f "package.json" ]; then
      echo "⚠️  No package.json found"
      exit 1
    fi

# Post-hook: Store results
hooks:
  post: |
    memory_store "task_complete" "$(date -Iseconds)"
    npm run lint --if-present

⚙️ Configuration Files

settings.json - Global config

json
{
  "agents": { "max_concurrent": 10 },
  "mcp": { "server_url": "..." },
  "checkpoints": { "enabled": true }
}

settings.local.json - Local overrides

json
{
  "debug": true,
  "agents": { "max_concurrent": 5 }
}

🚀 Helper Scripts

bash
./helpers/quick-start.sh                 # Quick start
./helpers/github-setup.sh                # Setup GitHub
./helpers/setup-mcp.sh                   # Setup MCP
./helpers/checkpoint-manager.sh create <n>    # Create checkpoint
./helpers/checkpoint-manager.sh restore <id>  # Restore checkpoint
./helpers/checkpoint-manager.sh list          # List checkpoints

🔐 Consensus Protocols

ProtocolConsistencyFault TolerancePerformance
RaftStrongf+1 failuresMedium
ByzantineStrong2f+1 failuresLow
GossipEventualVery HighHigh
QuorumConfigurableConfigurableMedium-High
CRDTEventualVery HighVery High

💡 Performance Tips

  1. Load appropriate skills - Choose 2-4 complementary skills
  2. Enable checkpoints - For long-running tasks
  3. Use swarms - For parallel work
  4. Cache results - In memory namespaces
  5. Batch operations - When possible
  6. Monitor performance - Use performance-analysis skill

🔒 Security Best Practices

  • Never hardcode secrets
  • Use environment variables
  • Validate all inputs
  • Sanitize outputs
  • Implement proper auth/authz
  • Use memory namespaces for isolation

🐛 Troubleshooting

Skill won't load:

  • Verify skill name spelling
  • Check prerequisites (Node 18+, gh CLI, MCP)
  • Review MCP connection

Agent won't spawn:

  • Check metadata syntax
  • Verify capabilities
  • Review memory limits

Memory errors:

  • Check MCP connection
  • Verify namespace permissions
  • Review memory quotas

Slow performance:

  • Load performance-analysis skill
  • Enable checkpoints
  • Reduce concurrent agents

  • Skills: --skill flag in Claude Code
  • Agents: agents/**/*.md
  • Commands: commands/
  • Helpers: helpers/
  • Settings: settings.json
  • MCP Server: flow-nexus (required for cloud features)

SPT Quick Reference v3.0Optimized for Claude Code Skills

Last updated: 2025 For detailed docs: See individual SKILL.md files in skills/ directory

Released under the MIT License.