← Browse

@henryalouf/imagen

A

AI image generation skill powered by Google Gemini, enabling seamless visual content creation for UI placeholders, documentation, and design assets.

skillclaude

Install

agr install @henryalouf/imagen --target claude

Writes 1 file into .claude/skills/, pinned to git-2df938b0.

  • .claude/skills/imagen/SKILL.md

Document


name: imagen description: "AI image generation skill powered by Google Gemini, enabling seamless visual content creation for UI placeholders, documentation, and design assets." risk: safe source: "https://github.com/sanjay3290/ai-skills/tree/main/skills/imagen" date_added: "2026-02-27"

Imagen - AI Image Generation Skill

Overview

This skill generates images using Google Gemini's image generation model (gemini-3-pro-image-preview). It enables seamless image creation during any Claude Code session - whether you're building frontend UIs, creating documentation, or need visual representations of concepts.

Cross-Platform: Works on Windows, macOS, and Linux.

When to Use This Skill

Automatically activate this skill when:

  • User requests image generation (e.g., "generate an image of...", "create a picture...")
  • Frontend development requires placeholder or actual images
  • Documentation needs illustrations or diagrams
  • Visualizing concepts, architectures, or ideas
  • Creating icons, logos, or UI assets
  • Any task where an AI-generated image would be helpful

How It Works

  1. Takes a text prompt describing the desired image
  2. Calls Google Gemini API with image generation configuration
  3. Saves the generated image to a specified location (defaults to current directory)
  4. Returns the file path for use in your project

Usage

Python (Cross-Platform - Recommended)

# Basic usage
python scripts/generate_image.py "A futuristic city skyline at sunset"

# With custom output path
python scripts/generate_image.py "A minimalist app icon for a music player" "./assets/icons/music-icon.png"

# With custom size
python scripts/generate_image.py --size 2K "High resolution landscape" "./wallpaper.png"

Requirements

  • GEMINI_API_KEY environment variable must be set
  • Python 3.6+ (uses standard library only, no pip install needed)

Output

Generated images are saved as PNG files. The script returns:

  • Success: Path to the generated image
  • Failure: Error message with details

Examples

Frontend Development

User: "I need a hero image for my landing page - something abstract and tech-focused"
-> Generates and saves image, provides path for use in HTML/CSS

Documentation

User: "Create a diagram showing microservices architecture"
-> Generates visual representation, ready for README or docs

UI Assets

User: "Generate a placeholder avatar image for the user profile component"
-> Creates image in appropriate size for component use

Repository README

Describes henryalouf/ruflow as a whole, which may contain artifacts other than this one. Where this artifact had no useful description of its own, its summary was taken from here.

Ruflow -- Complete Training Guide for Claude Code

Ruflow v3.5 (formerly "Claude Flow") -- 5,900+ commits, 55 alpha iterations, 259 MCP tools, 60+ agents, 8 AgentDB controllers. Packages: @claude-flow/cli@3.5.0, claude-flow@3.5.0, ruflo@3.5.0

This is NOT a typical project README. This is a training manual. Any Claude Code instance that opens this directory gets immediate access to the entire Ruflow skill, agent, and asset library described below.


Table of Contents

  1. What Is Ruflow
  2. Directory Structure Map
  3. Complete Skill Catalog (71 Skills)
  4. Agent Skills Library (1,521 Skills)
  5. Commands Reference (172 Commands)
  6. Source Repositories in Detail
  7. V3 Packages (@claude-flow)
  8. Assets and Resources Available
  9. Configuration Reference
  10. When to Use What (Decision Matrix)
  11. Swarm Orchestration Guide
  12. Hooks System

1. What Is Ruflow

Ruflow is a training directory that equips any Claude Code instance with a massive library of capabilities the moment the directory is opened. It is not a single application -- it is an orchestration layer, skill corpus, and toolchain combined.

Key Stats

MetricCount
Total files (excluding node_modules/.git)36,788
Claude Code skills (.claude/skills/)71
Agent skills (.agents/skills/)1,521
Slash commands (.claude/commands/)172
Agent definitions (.claude/agents/)34
Background helpers (.claude/helpers/)40
MCP tools available259
Source repositories (src/)7
@claude-flow packages (v3/)21
TTF fonts bundled54
Design data CSVs60

Purpose

When Claude Code opens this directory, it automatically loads:

  • CLAUDE.md (39KB of project instructions) via the project config system
  • 71 invocable skills from .claude/skills/
  • 172 slash commands from .claude/commands/
  • 34 agent definitions from .claude/agents/
  • 40 background helpers from .claude/helpers/
  • MCP server connections from .claude/mcp.json and .claude/settings.json

The 1,521 agent skills in .agents/skills/ are available for reference and can be loaded on demand. The 7 source repositories in src/ provide raw skill data, CLI tools, memory systems, and content pipelines.


2. Directory Structure Map

Ruflow/
|
|-- .claude/                           # Claude Code configuration system
|   |-- skills/ (71 skills)            # Directly invocable skills (see Section 3)
|   |-- commands/ (172 commands)       # Slash commands organized by domain (see Section 5)
|   |-- agents/ (34 agents)            # Agent type definitions with SKILL.md files
|   |-- helpers/ (40 helpers)          # Background hooks, workers, and automation scripts
|   |-- config/                        # Performance and dependency configs
|   |   |-- v3-dependency-optimization.json
|   |   +-- v3-performance-targets.json
|   |-- checkpoints/                   # Session checkpoint storage
|   |-- settings.json                  # Main project settings (model, permissions, hooks)
|   |-- settings.local.json            # Local overrides
|   |-- mcp.json                       # MCP server configuration
|   |-- statusline.mjs                 # Status line display script
|   |-- statusline.sh                  # Shell status line
|   +-- statusline-command.sh          # Status line command handler
|
|-- .agents/
|   +-- skills/ (1,521 skills)         # Full agent skill library (see Section 4)
|
|-- src/                               # Source repositories (7 repos)
|   |-- antigravity-awesome-skills/    # 8,418 files -- skill corpus source
|   |-- claude-mem/                    # 24,921 files -- persistent memory system
|   |-- awesome-claude-code/           # 681 files -- curated tools and resources
|   |-- ui-ux-pro-max-skill/          # 964 files -- UI/UX design CLI and data
|   |-- superpowers/                   # 124 files -- workflow skills and commands
|   |-- koda-stack/                    # 13 files -- video production pipeline
|   +-- website-builder-setup/         # 2 files -- web builder installer
|
|-- v3/                                # V3 monorepo
|   |-- @claude-flow/ (21 packages)    # Core packages (see Section 7)
|   |-- agents/                        # V3 agent system
|   |-- helpers/                       # V3 helper scripts
|   |-- implementation/                # Implementation tracking
|   |-- mcp/                           # MCP server source
|   |-- plugins/                       # Plugin system
|   |-- scripts/                       # Build and utility scripts
|   |-- src/                           # V3 core source
|   |-- __tests__/                     # V3 test suite
|   +-- docs/                          # V3 documentation
|
|-- v2/                                # V2 stable production code
|-- ruflo/                             # Ruflo SDK/CLI wrapper package
|-- bin/                               # CLI entry points (cli.js)
|-- scripts/                           # Build, utility, and memory-db scripts
|-- docs/                              # Documentation
|-- tests/                             # Test suite
|-- agents/                            # Legacy agent definitions
|-- plugin/                            # Plugin source
|
|-- CLAUDE.md                          # Project instructions (39KB) -- loaded automatically
|-- CLAUDE.local.md                    # Local development config
|-- AGENTS.md                          # Agent reference documentation
|-- package.json                       # Main package config (v3.5.48)
|-- tsconfig.json                      # TypeScript configuration
|-- CHANGELOG.md                       # Release history
|-- SECURITY.md                        # Security policy
+-- LICENSE                            # License file

3. Complete Skill Catalog (71 Skills)

All 71 skills live in .claude/skills/ and each contains a SKILL.md file that Claude Code loads when the skill is invoked. Skills are grouped below by function.

Design and UI Skills (7)

SkillPurposeKey Assets
ui-ux-pro-maxFull UI/UX design system -- the most comprehensive skill (45KB SKILL.md)References all 60 CSVs, 16 stack configs, design reasoning data
ui-stylingCSS/styling utilities and font library54 TTF fonts in canvas-fonts/, style references
designDesign patterns, components, and layout guidelinesReference docs, templates
design-systemDesign token systems, color scales, spacing, typography tokensToken generation templates
slidesPresentation creation (HTML/CSS slide decks)Slide templates, layout patterns
banner-designMarketing banner and hero image designBanner templates, size presets
brandBrand identity design with automation scripts4 CJS scripts: extract-colors, inject-brand-context, sync-brand-to-tokens, validate-asset

Video Production Skills -- Koda Stack (10)

These 10 skills form a complete video content creation pipeline. Execute them in order:

OrderSkillPurpose
1briefDefine the creative brief and objectives
2trendsResearch current trends and audience data
3conceptDevelop the creative concept
4scriptWrite the video script
5art-directionDefine visual style, mood boards, color palettes
6storyboardCreate shot-by-shot storyboard
7generateGenerate visual assets
8assembleAssemble assets into the final video
9publishPublish to platforms with metadata
10repurposeRepurpose content for other formats and channels

Source: src/koda-stack/skills/

Development Workflow Skills (14, from Superpowers)

SkillPurpose
brainstormingStructured brainstorming sessions with frameworks
dispatching-parallel-agentsSpawn and coordinate multiple sub-agents
executing-plansExecute step-by-step implementation plans
finishing-a-development-branchComplete branch work: cleanup, squash, PR prep
receiving-code-reviewProcess and respond to code review feedback
requesting-code-reviewStructure and submit code review requests
subagent-driven-developmentDevelopment driven by sub-agent delegation
systematic-debuggingStructured debugging methodology
test-driven-developmentTDD red-green-refactor workflow
using-git-worktreesParallel development with git worktrees
using-superpowersMeta-skill: how to use all superpowers skills
verification-before-completionPre-completion verification checklist
writing-plansStructured plan authoring methodology
writing-skillsHow to write new Claude Code skills

Source: src/superpowers/skills/

Memory and Persistence Skills (6)

SkillPurpose
claude-memPersistent memory across Claude Code sessions (full system)
agentdb-advancedAdvanced AgentDB patterns and operations
agentdb-learningSelf-learning memory patterns
agentdb-memory-patternsMemory storage and retrieval patterns
agentdb-optimizationMemory system performance optimization
agentdb-vector-searchHNSW vector search for semantic memory

Swarm and Orchestration Skills (6)

SkillPurpose
swarm-orchestrationMulti-agent swarm setup and coordination
swarm-advancedAdvanced swarm patterns (topologies, consensus)
hive-mind-advancedByzantine fault-tolerant consensus, queen-worker model
hooks-automationHook-based automation and lifecycle management
worker-benchmarksBackground worker benchmarking
worker-integrationWorker system integration patterns

GitHub Integration Skills (5)

SkillPurpose
github-code-reviewAutomated code review workflows
github-multi-repoMulti-repository coordination
github-project-managementGitHub Projects board management
github-release-managementRelease workflows and changelog generation
github-workflow-automationGitHub Actions and CI/CD automation

Architecture and V3 Skills (13)

SkillPurpose
v3-cli-modernizationV3 CLI architecture and command patterns
v3-core-implementationV3 core system implementation
v3-ddd-architectureDomain-Driven Design patterns for V3
v3-integration-deepDeep integration patterns across V3 modules
v3-mcp-optimizationMCP server and tool optimization
v3-memory-unificationUnified memory architecture (SQLite + HNSW + AgentDB)
v3-performance-optimizationPerformance profiling and optimization
v3-security-overhaulSecurity hardening and vulnerability remediation
v3-swarm-coordinationV3 swarm coordination system
sparc-methodologySPARC (Specification, Pseudocode, Architecture, Refinement, Completion)
stream-chainStream processing pipelines
verification-qualityQuality assurance and verification protocols
pair-programmingPair programming workflow with another agent or human

Intelligence and Neural Skills (3)

SkillPurpose
reasoningbank-agentdbReasoningBank + AgentDB integration for pattern storage
reasoningbank-intelligenceReasoningBank intelligence and retrieval system
flow-nexus-neuralNeural network coordination and training

Platform and Integration Skills (7)

SkillPurpose
flow-nexus-platformFlow Nexus platform operations
flow-nexus-swarmFlow Nexus swarm coordination
agentic-jujutsuAdvanced agent manipulation techniques
dual-modeClaude + Codex dual-mode collaboration
website-builder-setup4-tool web stack installer (UI/UX Pro Max + Framer Motion + 21st.dev + shadcn/ui)
skill-builderCreate new Claude Code skills
performance-analysisPerformance analysis and reporting

4. Agent Skills Library (1,521 Skills)

The .agents/skills/ directory contains 1,521 pre-built agent skills. Each skill is a directory with a SKILL.md file defining the agent's capabilities, instructions, and domain knowledge. These cover virtually every technology domain.

Coverage by Category

CategoryExample SkillsApproximate Count
Web Frontendreact, angular, vue, nextjs, svelte, astro, sveltekit, react-native, expo, flutter80+
Backendnodejs, fastapi, django, laravel, nestjs, hono, rails50+
Languagestypescript-pro, python-pro, golang-pro, rust-pro, java-pro, ruby-pro, c-pro, cpp-pro, elixir-pro, haskell-pro, kotlin, swift, scala-pro, php-pro30+
Cloud -- AWSaws-serverless, aws-cost-optimizer, aws-penetration-testing, aws-cost-cleanup, cdk-patterns, cloudformation, sam20+
Cloud -- Azure70+ Azure SDK skills covering AI, cosmos, identity, storage, eventhub, keyvault, monitor, search, functions, servicebus70+
Cloud -- GCP/Othergcp-cloud-run, cloudflare-workers, vercel-deployment, render-automation10+
DevOps/Infradocker, kubernetes, terraform, helm, gitops, k8s-security, istio, linkerd, cicd-automation40+
Databasespostgresql, database-architect, database-migration, drizzle-orm, prisma, neon-postgres, nosql, snowflake, sql-optimization25+
Securitypenetration testing, vulnerability scanning, red team, ethical hacking, burp suite, metasploit, SAST, secrets management, solidity security50+
AI/MLml-engineer, mlops, rag-engineer, llm-ops, pydantic-ai, langchain, langgraph, crewai, embeddings, vector-database30+
Data Sciencedata-engineer, data-scientist, polars, matplotlib, seaborn, plotly, statsmodels, scikit-learn, spark-optimization20+
Design/UIui-ux-designer, figma-automation, design-orchestration, tailwind, shadcn, radix-ui, threejs (10 sub-skills)30+
Content/Marketingseo (20+ sub-skills), content-creator, copywriting, social media, email-sequence, blog-writing, podcast-generation60+
Business Toolsproduct-manager, startup-analyst, financial-modeling, sales-automator, hr-pro, legal-advisor, risk-manager30+
SaaS Integrationssalesforce, hubspot, slack, zapier, make, n8n, airtable, notion, jira, linear, asana, trello, monday, clickup50+
Automationgithub-actions, gitlab-ci, circleci, workflow-patterns, n8n (6 sub-skills), make-automation, zapier-make-patterns20+
Mobileios-developer, android, react-native, flutter, expo (6 sub-skills), swiftui (5 sub-skills), jetpack-compose25+
Game Devunity-developer, godot, unreal-engine, bevy-ecs, game-development10+
Health/Sciencehealth-analyzer, nutrition, sleep, fitness, mental-health, biopython, pubmed, qiskit15+
Desktop/Systemselectron, makepad (12 sub-skills), avalonia, macos, windows, robius (5 sub-skills), firmware-analyst25+
Documentationdocumentation, api-documentation, changelog, readme, wiki (6 sub-skills), technical writing15+
Video/Mediaremotion, videodb, comfyui-gateway, stability-ai, image-studio, seek-and-analyze-video10+
Odoo ERP25 Odoo-specific skills covering modules, ORM, views, security, migration, performance25
Functional Programmingfp-ts (14 sub-skills), fp-pragmatic, fp-react, fp-backend15+
Observabilitygrafana, prometheus, datadog, sentry, distributed-tracing, opentelemetry10+

How to Use Agent Skills

Agent skills are loaded by reading their SKILL.md file. To use a skill:

# Read the skill definition
Read .agents/skills/<skill-name>/SKILL.md

# Follow the instructions in the SKILL.md to apply the skill's capabilities

The skill definitions contain detailed instructions, patterns, code templates, and domain knowledge that Claude Code can follow to perform specialized tasks.


5. Commands Reference (172 Commands)

Commands live in .claude/commands/ and are invoked as slash commands. There are 8 top-level command files and 19 command directories containing 164 sub-commands.

Top-Level Commands (8)

CommandPurpose
/brainstormInteractive brainstorming session
/execute-planExecute an implementation plan step by step
/write-planCreate a detailed implementation plan
/evaluate-repositoryAnalyze and evaluate a repository
/sparcRun SPARC methodology
/claude-flow-helpClaude Flow help and guidance
/claude-flow-memoryMemory operations
/claude-flow-swarmSwarm operations

Command Directories (19 directories, 164 sub-commands)

/agents (5 commands)

agent-capabilities, agent-coordination, agent-spawning, agent-types, README

/analysis (7 commands)

bottleneck-detect, COMMAND_COMPLIANCE_REPORT, performance-bottlenecks, performance-report, README, token-efficiency, token-usage

/automation (7 commands)

auto-agent, README, self-healing, session-memory, smart-agents, smart-spawn, workflow-select

/coordination (7 commands)

agent-spawn, init, orchestrate, README, spawn, swarm-init, task-orchestrate

/flow-nexus (9 commands)

app-store, challenges, login-registration, neural-network, payments, sandbox, swarm, user-tools, workflow

/github (19 commands)

code-review, code-review-swarm, github-modes, github-swarm, issue-tracker, issue-triage, multi-repo-swarm, pr-enhance, pr-manager, project-board-sync, README, release-manager, release-swarm, repo-analyze, repo-architect, swarm-issue, swarm-pr, sync-coordinator, workflow-automation

/hive-mind (12 commands)

hive-mind, hive-mind-consensus, hive-mind-init, hive-mind-memory, hive-mind-metrics, hive-mind-resume, hive-mind-sessions, hive-mind-spawn, hive-mind-status, hive-mind-stop, hive-mind-wizard, README

/hooks (8 commands)

overview, post-edit, post-task, pre-edit, pre-task, README, session-end, setup

/memory (5 commands)

memory-persist, memory-search, memory-usage, neural, README

/monitoring (6 commands)

agent-metrics, agents, README, real-time-view, status, swarm-monitor

/optimization (6 commands)

auto-topology, cache-manage, parallel-execute, parallel-execution, README, topology-optimize

/pair (7 commands)

commands, config, examples, modes, README, session, start

/sparc (32 commands)

analyzer, architect, ask, batch-executor, code, coder, debug, debugger, designer, devops, docs-writer, documenter, innovator, integration, mcp, memory-manager, optimizer, orchestrator, post-deployment-monitoring-mode, refinement-optimization-mode, researcher, reviewer, security-review, sparc, sparc-modes, spec-pseudocode, supabase-admin, swarm-coordinator, tdd, tester, tutorial, workflow-manager

/stream-chain (2 commands)

pipeline, run

/swarm (17 commands)

analysis, development, examples, maintenance, optimization, README, research, swarm, swarm-analysis, swarm-background, swarm-init, swarm-modes, swarm-monitor, swarm-spawn, swarm-status, swarm-strategies, testing

/training (6 commands)

model-update, neural-patterns, neural-train, pattern-learn, README, specialization

/truth (1 command)

start

/verify (2 commands)

check, start

/workflows (6 commands)

development, README, research, workflow-create, workflow-execute, workflow-export


6. Source Repositories in Detail

Seven source repositories live in src/, totaling 35,123 files. Each serves a distinct purpose.

ui-ux-pro-max-skill (964 files)

The most comprehensive UI/UX design toolkit. Contains a full CLI application built with TypeScript, commander, chalk, and ora.

Structure:

  • cli/ -- CLI application source
  • src/ui-ux-pro-max/ -- Core skill data and scripts
  • docs/ -- Documentation
  • preview/ and screenshots/ -- Visual previews

Data Assets (60 CSVs):

14 general design data CSVs (each appears in both cli/assets/data/ and src/ui-ux-pro-max/data/):

CSV FileContent
app-interface.csvApp interface patterns and guidelines
charts.csvChart and data visualization patterns
colors.csvColor palettes, scales, and accessibility data
design.csvGeneral design patterns and principles
draft.csvDraft/wireframe patterns
google-fonts.csvGoogle Fonts catalog with pairings
icons.csvIcon libraries and usage patterns
landing.csvLanding page design patterns
products.csvProduct page and e-commerce design
react-performance.csvReact rendering performance patterns
styles.csvCSS and styling patterns
typography.csvTypography scales and font systems
ui-reasoning.csvUI decision-making reasoning data
ux-guidelines.csvUX best practice guidelines

16 stack-specific CSVs (in cli/assets/data/stacks/):

angular, astro, flutter, html-tailwind, jetpack-compose, laravel, nextjs, nuxtjs, nuxt-ui, react, react-native, shadcn, svelte, swiftui, threejs, vue

Python Scripts (4):

  • _sync_all.py -- Sync data across directories
  • core.py -- Core design system operations
  • design_system.py -- Design system generation
  • search.py -- Design data search

When to use: Any UI/UX design work, component generation, design system creation, landing page design, or stack-specific UI patterns.


superpowers (124 files)

A structured development workflow toolkit providing 14 skills, 3 commands, and 1 agent.

Structure:

  • skills/ -- 14 workflow skills (see Development Workflow Skills above)
  • commands/ -- brainstorm.md, execute-plan.md, write-plan.md
  • agents/ -- code-reviewer.md
  • hooks/ -- Git and session hooks
  • scripts/ -- Utility scripts
  • tests/ -- Test suite
  • CLAUDE-SUPERPOWERS.md -- Full superpowers documentation
  • GEMINI.md -- Gemini adapter configuration

When to use: Planning features, conducting code reviews, TDD, systematic debugging, brainstorming, Git workflow management, or parallel agent dispatch.


claude-mem (24,921 files)

A persistent memory system that survives across Claude Code sessions. The largest source repo by file count due to its dependency tree.

Structure:

  • src/ -- Core memory system source
  • scripts/ -- Memory management scripts
  • conductor.json -- Conductor configuration
  • cursor-hooks/ -- Cursor IDE adapter
  • docs/ -- Memory system documentation
  • tests/ -- Test suite
  • CLAUDE-CLAUDEMEM.md -- Full memory system documentation

Key Features:

  • Multi-tier storage architecture (short-term, long-term, episodic)
  • CLI adapters for claude-code, cursor, gemini, windsurf
  • MCP server integration for cross-session memory
  • UI viewer with fonts and assets

When to use: Cross-session memory persistence, storing decisions and context that should survive conversation resets, building agents that learn over time.


awesome-claude-code (681 files)

A curated resource library for Claude Code tooling, templates, and best practices.

Structure:

  • THE_RESOURCES_TABLE.csv -- 222 curated entries of Claude Code tools and resources
  • scripts/ -- 15 utility scripts
  • data/ -- Resource data
  • templates/ -- Project and configuration templates
  • tools/ -- Utility tools
  • resources/ -- Reference materials
  • assets/ -- Static assets
  • docs/ -- Documentation

When to use: Finding Claude Code resources, looking up community tools, referencing best practices, or using project templates.


antigravity-awesome-skills (8,418 files)

The source corpus for the 1,521 agent skills in .agents/skills/. Contains the raw skill definitions, indexes, and metadata.

Structure:

  • skills/ -- Raw skill source files
  • data/ -- Skill metadata and indexes
  • docs/ -- Skill documentation
  • scripts/ -- Build and sync scripts
  • tools/ -- Skill management tools
  • plugins/ -- Plugin integrations

All "antigravity" references in the source have been renamed to "claude-code" for consistency.

When to use: Referencing the raw source of agent skills, understanding skill structure, or building new skills from templates.


website-builder-setup (2 files)

A minimal installer skill that sets up a 4-tool web development stack:

  1. UI/UX Pro Max -- Full design system
  2. Framer Motion -- Animation library
  3. 21st.dev Magic -- AI component generation
  4. shadcn/ui -- Component library

When to use: Quick scaffolding of a new website project with a complete design and component stack.


koda-stack (13 files)

A creative video production pipeline with 10 specialized agents.

Structure:

  • skills/ -- 10 production skills (brief, trends, concept, script, art-direction, storyboard, generate, assemble, publish, repurpose)
  • CLAUDE-KODA.md -- Creative DNA configuration for tone, style, and brand voice
  • README.md -- Usage guide

When to use: Video content creation, from initial brief through final publication and repurposing.


7. V3 Packages (@claude-flow)

The v3/@claude-flow/ directory contains 21 packages that make up the V3 monorepo:

PackagePurpose
cliCLI entry point -- 26 commands, 140+ subcommands
mcpMCP server implementation and tool handlers
guidanceGovernance control plane and capability discovery
neuralSONA neural architecture, MoE routing, pattern learning
sharedShared types, utilities, and constants
pluginsPlugin system core (manager, discovery, IPFS store)
memoryAgentDB + HNSW vector search (150x-12,500x faster)
swarmMulti-agent swarm coordination engine
browserBrowser automation (Playwright-based)
codexDual-mode Claude + Codex collaboration
securityInput validation, CVE remediation, path security
embeddingsVector embeddings with sql.js, HNSW, hyperbolic support
hooks17 lifecycle hooks + 12 background workers
claimsClaims-based authorization and task ownership
integrationToken optimizer and agentic-flow integration
performancePerformance profiling, benchmarking, metrics
deploymentDeployment management and release workflows
providersAI provider management (Anthropic, OpenAI, Google)
aidefenceAI safety scanning, PII detection, content analysis
agentsAgent type definitions and lifecycle management
testingTest utilities and assertion helpers

8. Assets and Resources Available

Fonts (54 TTF files)

Location: .claude/skills/ui-styling/canvas-fonts/

54 TTF font files available for canvas rendering, image generation, and design work. These are loaded by the ui-styling skill.

Design Data (60 CSVs)

Location: src/ui-ux-pro-max-skill/cli/assets/data/

  • 14 general design reference CSVs (colors, typography, icons, charts, etc.)
  • 16 stack-specific CSVs (angular, react, nextjs, flutter, svelte, vue, etc.)
  • Duplicated in src/ui-ux-pro-max-skill/src/ui-ux-pro-max/data/ for the core skill

Brand Automation Scripts (4 CJS)

Location: .claude/skills/brand/scripts/

ScriptPurpose
extract-colors.cjsExtract brand colors from images or assets
inject-brand-context.cjsInject brand context into templates
sync-brand-to-tokens.cjsSync brand definitions to design tokens
validate-asset.cjsValidate brand asset compliance

Website Builder Stack

The website-builder-setup skill installs:

  • Framer Motion -- React animation library
  • 21st.dev Magic -- AI component generation
  • shadcn/ui -- Accessible component library
  • UI/UX Pro Max -- Complete design system

Resource Library

Location: src/awesome-claude-code/THE_RESOURCES_TABLE.csv

222 curated Claude Code tools, templates, and resources indexed by category.

Memory Database

Location: scripts/memory-db/ (build scripts), runtime at data/memory/

SQLite + HNSW vector index for semantic memory search. Uses WASM sql.js for cross-platform compatibility.

MCP Tools (259 tools)

Available via MCP server connections defined in .claude/settings.json:

NamespaceTool CountPurpose
mcp__claude-flow__agent_*8Agent lifecycle (spawn, list, status, terminate, health, etc.)
mcp__claude-flow__agentdb_*16AgentDB memory operations
mcp__claude-flow__aidefence_*6AI safety and PII detection
mcp__claude-flow__analyze_*6Diff analysis and risk assessment
mcp__claude-flow__autopilot_*11Autonomous operation management
mcp__claude-flow__browser_*22Browser automation
mcp__claude-flow__claims_*12Task ownership and authorization
mcp__claude-flow__config_*6Configuration management
mcp__claude-flow__coordination_*7Swarm coordination
mcp__claude-flow__daa_*8Dynamic agent adaptation
mcp__claude-flow__embeddings_*7Vector embeddings
mcp__claude-flow__github_*5GitHub integration
mcp__claude-flow__guidance_*5Capability discovery
mcp__claude-flow__hive-mind_*9Hive mind consensus
mcp__claude-flow__hooks_*27Lifecycle hooks and workers
mcp__claude-flow__memory_*7Memory store/retrieve/search
mcp__claude-flow__neural_*6Neural pattern training
mcp__claude-flow__performance_*6Performance profiling
mcp__claude-flow__progress_*4Progress tracking
mcp__claude-flow__ruvllm_*9LLM routing and HNSW operations
mcp__claude-flow__session_*5Session management
mcp__claude-flow__swarm_*4Swarm init/status/health/shutdown
mcp__claude-flow__system_*5System health and metrics
mcp__claude-flow__task_*8Task CRUD and assignment
mcp__claude-flow__terminal_*5Terminal management
mcp__claude-flow__transfer_*10Plugin store and PII detection
mcp__claude-flow__wasm_*8WASM agent management
mcp__claude-flow__workflow_*10Workflow execution

9. Configuration Reference

.claude/settings.json

Main project configuration. Key sections:

{
  "model": "claude-opus-4-6",
  "customInstructions": "Follow CLAUDE.md guidelines...",
  "env": {
    "CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1",
    "CLAUDE_FLOW_V3_ENABLED": "true",
    "CLAUDE_FLOW_HOOKS_ENABLED": "true"
  },
  "permissions": {
    "allow": ["Bash(npx claude-flow*)", "mcp__claude-flow__*", "..."],
    "deny": ["Read(./.env)", "Read(./.env.*)", "Bash(rm -rf /)"]
  },
  "hooks": {
    "PreToolUse": ["..."],
    "PostToolUse": ["..."]
  }
}

.claude/mcp.json

MCP server connections. Currently configured:

  • flow-nexus -- Supabase-backed MCP server (requires SUPABASE_URL and SUPABASE_ANON_KEY)

The main MCP servers (claude-flow, ruv-swarm) are started via npx commands defined in permissions.

CLAUDE.md (39KB)

The primary project instructions file. Loaded automatically by Claude Code. Contains:

  • Behavioral rules
  • File organization requirements
  • Project architecture
  • Concurrency patterns (batch all operations)
  • Swarm orchestration protocols
  • Agent routing tables
  • V3 CLI command reference (26 commands, 140+ subcommands)
  • Publishing procedures
  • Plugin registry maintenance

CLAUDE.local.md

Local development configuration with environment variables, quick references, and local overrides. Not committed to git.

package.json

Name: claude-flow
Version: 3.5.48
Type: ES module
Main: dist/index.js
Bin: ./bin/cli.js

10. When to Use What (Decision Matrix)

TaskSkills to UseCommands to Use
Build a websitewebsite-builder-setup, ui-ux-pro-max, design, ui-styling--
Design UI componentsui-ux-pro-max, design-system, ui-styling--
Create a brand identitybrand (4 CJS scripts), design-system, ui-styling--
Build presentationsslides, banner-design--
Create video contentbrief, trends, concept, script, art-direction, storyboard, generate, assemble, publish, repurpose--
Plan a featurewriting-plans, brainstorming/write-plan, /brainstorm
Execute a planexecuting-plans/execute-plan
Code reviewrequesting-code-review, receiving-code-review/github/code-review
Debug issuessystematic-debugging, verification-before-completion/sparc/debug, /sparc/debugger
TDD developmenttest-driven-development, verification-quality/sparc/tdd
Git workflowsusing-git-worktrees, finishing-a-development-branch--
Multi-agent workswarm-orchestration, dispatching-parallel-agents, subagent-driven-development/swarm/swarm-init, /coordination/spawn
Hive mind consensushive-mind-advanced/hive-mind/hive-mind-init
Memory persistenceclaude-mem, agentdb-* skills/memory/memory-persist, /memory/memory-search
GitHub automationgithub-code-review, github-multi-repo, github-project-management, github-release-management, github-workflow-automation/github/* (19 commands)
Security auditv3-security-overhaul/sparc/security-review
Performance optimizationv3-performance-optimization, performance-analysis/analysis/performance-report
Architecture designsparc-methodology, v3-ddd-architecture/sparc/architect, /sparc/spec-pseudocode
Neural trainingreasoningbank-intelligence, flow-nexus-neural/training/neural-train
Hook automationhooks-automation, worker-benchmarks, worker-integration/hooks/setup, /hooks/overview
Stream processingstream-chain/stream-chain/pipeline
Pair programmingpair-programming/pair/start, /pair/session
Evaluate a repo--/evaluate-repository
Monitor agents--/monitoring/agents, /monitoring/swarm-monitor
Topology optimization--/optimization/auto-topology, /optimization/topology-optimize
Workflow management--/workflows/workflow-create, /workflows/workflow-execute

For Any Technology-Specific Task

Check .agents/skills/ for a dedicated skill. Examples:

DomainSkill Path
React app.agents/skills/react-best-practices/
FastAPI backend.agents/skills/fastapi-pro/
Kubernetes deployment.agents/skills/kubernetes-architect/
Terraform infrastructure.agents/skills/terraform-specialist/
Security pen test.agents/skills/pentest-checklist/
SEO optimization.agents/skills/seo/ (20+ sub-skills)
Odoo ERP.agents/skills/odoo-*/ (25 skills)
Azure services.agents/skills/azure-*/ (70+ skills)
Three.js 3D.agents/skills/threejs-*/ (10 skills)
SwiftUI iOS.agents/skills/swiftui-*/ (5 skills)
n8n workflows.agents/skills/n8n-*/ (6 skills)
HuggingFace ML.agents/skills/hugging-face-*/ (12 skills)

11. Swarm Orchestration Guide

Ruflow uses a multi-agent swarm system where MCP tools handle coordination and Claude Code's Task tool handles execution.

Default Configuration (Anti-Drift)

Topology:    hierarchical (central coordinator prevents drift)
Max Agents:  8 (smaller team = less drift)
Strategy:    specialized (clear roles, no overlap)
Consensus:   raft (leader maintains authoritative state)
Memory:      hybrid (SQLite + AgentDB)

Initialization

// Initialize swarm via MCP
mcp__claude-flow__swarm_init({
  topology: "hierarchical",
  maxAgents: 8,
  strategy: "specialized"
})

Agent Routing Table

CodeTask TypeAgents to Spawn
1Bug Fixcoordinator, researcher, coder, tester
3Featurecoordinator, architect, coder, tester, reviewer
5Refactorcoordinator, architect, coder, reviewer
7Performancecoordinator, perf-engineer, coder
9Securitycoordinator, security-architect, auditor
11Memorycoordinator, memory-specialist, perf-engineer
13Docsresearcher, api-docs

Codes 1-11 use hierarchical/specialized topology. Code 13 uses mesh/balanced.

When to Auto-Invoke Swarm

Use swarm for:

  • Multi-file changes (3+ files)
  • New feature implementation
  • Refactoring across modules
  • API changes with tests
  • Security-related changes
  • Performance optimization
  • Database schema changes

Skip swarm for:

  • Single file edits
  • Simple bug fixes (1-2 lines)
  • Documentation updates
  • Configuration changes
  • Quick questions

Topology Options

TopologyUse Case
hierarchicalDefault for coding tasks -- coordinator controls workers
meshFully connected peer network for collaborative exploration
hierarchical-meshHybrid -- recommended for complex tasks
adaptiveDynamic topology based on load

Consensus Strategies

StrategyFault ToleranceUse Case
byzantinef < n/3 faulty nodesHigh-stakes decisions
raftf < n/2 faulty nodesDefault for coding (leader-based)
gossipEventual consistencyLarge-scale distribution
crdtConflict-freeConcurrent state updates
quorumConfigurableCustom requirements

12. Hooks System

17 Lifecycle Hooks

HookTriggerPurpose
pre-editBefore file editValidate changes, check permissions
post-editAfter file editTrain patterns, update metrics
pre-commandBefore bash commandSecurity validation
post-commandAfter bash commandResult capture, logging
pre-taskBefore task executionContext loading, routing
post-taskAfter task completionPattern learning, cleanup
session-startSession beginsLoad context, restore state
session-endSession endsSave state, export metrics
session-restoreSession resumedRestore checkpoint
notifyNotification eventAlert dispatching
routeTask routing decisionModel/agent selection
explainExplanation requestGenerate explanations
pretrainPre-training triggerNeural model training
build-agentsAgent creationConfigure agent types
transferKnowledge transferCross-agent learning
teammate-idleTeammate finishesAuto-assign pending tasks
task-completedTask marked doneTrain patterns, notify lead

12 Background Workers

WorkerPriorityPurpose
ultralearnnormalDeep knowledge acquisition from code patterns
optimizehighPerformance optimization suggestions
consolidatelowMemory consolidation and deduplication
predictnormalPredictive preloading of likely-needed context
auditcriticalSecurity analysis and vulnerability detection
mapnormalCodebase mapping and dependency graphing
preloadlowResource preloading for anticipated operations
deepdivenormalDeep code analysis for complex modules
documentnormalAuto-documentation generation
refactornormalRefactoring opportunity detection
benchmarknormalPerformance benchmarking
testgapsnormalTest coverage gap analysis

40 Helper Scripts

Location: .claude/helpers/

HelperTypePurpose
hook-handler.cjsCJSMain hook dispatcher
intelligence.cjsCJSIntelligence routing
memory.cjsCJSMemory operations
router.cjsCJSTask routing
session.cjsCJSSession management
statusline.cjsCJSStatus line display
github-safe.jsJSGitHub operations safety wrapper
auto-memory-hook.mjsMJSAutomatic memory persistence
context-persistence-hook.mjsMJSContext persistence across sessions
learning-service.mjsMJSLearning service
aggressive-microcompact.mjsMJSAggressive context compaction
metrics-db.mjsMJSMetrics database
patch-aggressive-prune.mjsMJSContext pruning
adr-compliance.shShellArchitecture Decision Record compliance
auto-commit.shShellAuto-commit hook
checkpoint-manager.shShellCheckpoint save/restore
daemon-manager.shShellBackground daemon management
ddd-tracker.shShellDDD compliance tracking
github-setup.shShellGitHub configuration
guidance-hook.shShellGuidance hook handler
guidance-hooks.shShellGuidance hooks collection
health-monitor.shShellSystem health monitoring
learning-hooks.shShellLearning automation
learning-optimizer.shShellLearning optimization
pattern-consolidator.shShellPattern consolidation
perf-worker.shShellPerformance worker
quick-start.shShellQuick start setup
security-scanner.shShellSecurity scanning
setup-mcp.shShellMCP server setup
standard-checkpoint-hooks.shShellStandard checkpoint hooks
swarm-comms.shShellSwarm communication
swarm-hooks.shShellSwarm lifecycle hooks
swarm-monitor.shShellSwarm monitoring
sync-v3-metrics.shShellV3 metrics synchronization
update-v3-progress.shShellV3 progress tracking
v3.shShellV3 operations
v3-quick-status.shShellV3 quick status
validate-v3-config.shShellV3 config validation
worker-manager.shShellBackground worker management

Quick Reference: CLI Commands

# Initialize project
npx claude-flow@v3alpha init --wizard

# Start daemon
npx claude-flow@v3alpha daemon start

# Spawn an agent
npx claude-flow@v3alpha agent spawn -t coder --name my-coder

# Initialize swarm
npx claude-flow@v3alpha swarm init --v3-mode

# Search memory
npx claude-flow@v3alpha memory search -q "pattern query"

# Run diagnostics
npx claude-flow@v3alpha doctor --fix

# Security scan
npx claude-flow@v3alpha security scan --depth full

# Performance benchmark
npx claude-flow@v3alpha performance benchmark --suite all

# Hook operations
npx claude-flow@v3alpha hooks pre-task --description "task"
npx claude-flow@v3alpha hooks post-task --task-id "id" --success true
npx claude-flow@v3alpha hooks session-start --session-id "id"

# Worker management
npx claude-flow@v3alpha hooks worker list
npx claude-flow@v3alpha hooks worker dispatch --trigger audit

Links

Trustgrade A

  • passBody integrity

    Whether the stored document is plausibly the kind of file the artifact declares, rather than something fetched by mistake.

  • passType matchnot applicable to this artifact type

    Whether the artifact is really the kind of thing its metadata claims it is.

  • passFreshness

    How long since the source repository was last pushed to.

  • passPrompt injection

    Scans the artifact's own text for instructions aimed at your agent rather than at you.

  • passLicense

    Whether the source repository declares an SPDX license permissive enough to redistribute.

How the grade is calculated

Each check contributes 0 points when it passes, 1 when it warns, and 2 when it fails. The total maps to a letter:

  • Aevery check passed
  • Bone warning
  • Ctwo warnings
  • Dprompt injection or body integrity failed, or three warnings
  • Fone of those failed, and something else is wrong

These are automated hygiene checks, not a security audit, and not a dependency or vulnerability scan. A grade of A means nothing was flagged — not that the artifact is safe.

Versions

  • git-2df938b0affb2026-07-31