本文へ移動
cccskills
無料GitHub で公開

Custom Workers

Create and run custom background analysis workers with composable phases. Use when you need automated code analysis, security scanning, pattern learning, or API documentation generation.

インストール方法を見る

含まれるファイル(1)

  • SKILL.md6.1 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Custom Workers

Build composable background analysis workers with 24 phase executors and 6 presets.

Quick Start

# List available presets
npx ruvector workers presets

# List available phase executors
npx ruvector workers phases

# Create a custom worker from preset
npx ruvector workers create my-scanner --preset security-scan

# Run the worker
npx ruvector workers run my-scanner --path ./src

Available Presets

PresetDescriptionPhases
quick-scanFast file discovery and statsfile-discovery → summarization
deep-analysisComprehensive code analysisfile-discovery → static-analysis → complexity-analysis → import-analysis → pattern-extraction → graph-build → vectorization → summarization
security-scanSecurity-focused analysisfile-discovery → security-analysis → secret-detection → dependency-discovery → report-generation
learningPattern learning and memoryfile-discovery → pattern-extraction → embedding-generation → pattern-storage → sona-training
api-docsAPI endpoint documentationfile-discovery → api-discovery → type-analysis → report-generation
test-analysisTest coverage analysisfile-discovery → static-analysis → pattern-extraction → summarization

Phase Executors (24 total)

Discovery Phases

  • file-discovery - Find files matching patterns
  • pattern-discovery - Discover code patterns
  • dependency-discovery - Map dependencies
  • api-discovery - Find API endpoints

Analysis Phases

  • static-analysis - AST-based code analysis
  • complexity-analysis - Cyclomatic complexity
  • security-analysis - Security vulnerability scan
  • performance-analysis - Performance bottlenecks
  • import-analysis - Import/export mapping
  • type-analysis - TypeScript type extraction

Pattern Phases

  • pattern-extraction - Extract code patterns
  • todo-extraction - Find TODOs/FIXMEs
  • secret-detection - Detect hardcoded secrets
  • code-smell-detection - Identify code smells

Build Phases

  • graph-build - Build code graph
  • call-graph - Function call graph
  • dependency-graph - Dependency graph

Learning Phases

  • vectorization - Convert to vectors
  • embedding-generation - ONNX embeddings (384d)
  • pattern-storage - Store in VectorDB
  • sona-training - SONA reinforcement learning

Output Phases

  • summarization - Generate summary
  • report-generation - Create report
  • indexing - Index for search

YAML Configuration

Create workers.yaml in your project:

version: '1.0'
workers:
  - name: auth-scanner
    triggers: [auth-scan, scan-auth]
    phases:
      - type: file-discovery
        config:
          patterns: ["**/auth/**", "**/login/**"]
      - type: security-analysis
      - type: secret-detection
      - type: report-generation
    capabilities:
      onnxEmbeddings: true
      vectorDb: true

  - name: api-documenter
    triggers: [api-docs, document-api]
    phases:
      - type: file-discovery
        config:
          patterns: ["**/routes/**", "**/api/**"]
      - type: api-discovery
      - type: type-analysis
      - type: report-generation

Load configuration:

npx ruvector workers load-config --file workers.yaml

CLI Commands

# Core commands
npx ruvector workers presets       # List presets
npx ruvector workers phases        # List phases
npx ruvector workers create <name> --preset <preset>
npx ruvector workers run <name> --path <path>

# Configuration
npx ruvector workers init-config   # Generate workers.yaml
npx ruvector workers load-config   # Load from workers.yaml
npx ruvector workers custom        # List registered workers

# Monitoring
npx ruvector workers status        # Worker status
npx ruvector workers results       # Analysis results
npx ruvector workers stats         # Statistics

MCP Tools

Available via ruvector MCP server:

ToolDescription
workers_presetsList available presets
workers_phasesList phase executors
workers_createCreate custom worker
workers_runRun worker on path
workers_customList custom workers
workers_init_configGenerate config
workers_load_configLoad config

Capabilities

Workers can use these capabilities:

  • ONNX Embeddings: Real transformer embeddings (all-MiniLM-L6-v2, 384d, SIMD)
  • VectorDB: Store and search embeddings with HNSW indexing
  • SONA Learning: Self-Organizing Neural Architecture for pattern learning
  • ReasoningBank: Trajectory tracking and meta-learning

Integration with Hooks

Workers auto-dispatch on UserPromptSubmit via trigger keywords:

  • Type "audit this code" → triggers audit worker
  • Type "security scan" → triggers security worker
  • Type "learn patterns" → triggers learning worker

Example: Security Scanner

# Create from security-scan preset
npx ruvector workers create security-checker --preset security-scan --triggers "security,vuln,cve"

# Run on source
npx ruvector workers run security-checker --path ./src

# View results
npx ruvector workers results

Example: Custom Learning Worker

# workers.yaml
workers:
  - name: code-learner
    triggers: [learn, pattern-learn]
    phases:
      - type: file-discovery
        config:
          patterns: ["**/*.ts", "**/*.js"]
          exclude: ["node_modules/**"]
      - type: static-analysis
      - type: pattern-extraction
      - type: embedding-generation
      - type: pattern-storage
      - type: sona-training
    capabilities:
      onnxEmbeddings: true
      vectorDb: true
      sonaLearning: true

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Add descriptions for new models from the HuggingFace router to chat-ui configuration. Use when new models are released on the router and need descriptions added to prod.yaml and dev.yaml. Triggers on requests like "add new model descriptions", "update models from router", "sync models", or when explicitly invoking /add-model-descriptions.

日本語の概要は準備中です。原文の説明を表示しています。

ruvnet/RuVector4,5542026年10月10日 更新

Master advanced AgentDB features including QUIC synchronization, multi-database management, custom distance metrics, hybrid search, and distributed systems integration. Use when building distributed AI systems, multi-agent coordination, or advanced vector search applications.

日本語の概要は準備中です。原文の説明を表示しています。

ruvnet/RuVector4,5542026年10月10日 更新

Create and train AI learning plugins with AgentDB's 9 reinforcement learning algorithms. Includes Decision Transformer, Q-Learning, SARSA, Actor-Critic, and more. Use when building self-learning agents, implementing RL, or optimizing agent behavior through experience.

日本語の概要は準備中です。原文の説明を表示しています。

ruvnet/RuVector4,5542026年10月10日 更新

Implement persistent memory patterns for AI agents using AgentDB. Includes session memory, long-term storage, pattern learning, and context management. Use when building stateful agents, chat systems, or intelligent assistants.

日本語の概要は準備中です。原文の説明を表示しています。

ruvnet/RuVector4,5542026年10月10日 更新

Optimize AgentDB performance with quantization (4-32x memory reduction), HNSW indexing (150x faster search), caching, and batch operations. Use when optimizing memory usage, improving search speed, or scaling to millions of vectors.

日本語の概要は準備中です。原文の説明を表示しています。

ruvnet/RuVector4,5542026年10月10日 更新

Implement semantic vector search with AgentDB for intelligent document retrieval, similarity matching, and context-aware querying. Use when building RAG systems, semantic search engines, or intelligent knowledge bases.

日本語の概要は準備中です。原文の説明を表示しています。

ruvnet/RuVector4,5542026年10月10日 更新

ruvnet のスキルをすべて見る

このスキルの問題を報告する