跳到正文
cccskills
免费在 GitHub 公开

Custom Workers

Create background workers that analyze code, detect exposed secrets, learn code patterns, or generate API documentation. Combine predefined processing stages or start from presets, configure target files in YAML, and inspect worker status and analysis results.

中文简介正在准备中。当前显示英语简介。

原文查看原文说明

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.

查看安装方法

适用场景

  • Scan authentication code for security issues and exposed secrets
  • Generate API documentation from endpoints and types
  • Analyze code complexity and dependencies
  • Extract and store recurring code patterns

包含的文件(1)

  • SKILL.md6.1 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

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

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Compare models available through the HuggingFace router with chat-ui configuration, research missing models, and write short English descriptions of their architecture and capabilities. Add entries to both production and development configuration files and commit the changes.

中文简介正在准备中。当前显示英语简介。

  • Adding newly available router models to chat-ui
  • Writing concise descriptions of model capabilities
  • Updating production and development model entries together
ruvnet/RuVector46012026年10月20日 更新

Build advanced AgentDB workflows with database synchronization, multiple databases, and search that combines meaning with attribute filters. Covers similarity measures, diverse search results, and operational patterns for distributed AI applications.

中文简介正在准备中。当前显示英语简介。

  • Sharing stored patterns across multiple AgentDB instances
  • Filtering semantic search by date or category
  • Separating knowledge and conversation databases
ruvnet/RuVector46012026年10月20日 更新

Create AgentDB learning plugins that use recorded experience to improve agent decisions. Choose a learning method, store states, actions, and rewards, train models, and evaluate suggested actions through CLI and API workflows.

中文简介正在准备中。当前显示英语简介。

  • Train agents from historical experience
  • Build decision-making for games and navigation
  • Combine experience from multiple agents for training
ruvnet/RuVector46012026年10月20日 更新

Build AI agents that retain conversation history, user preferences, and useful interaction patterns with AgentDB. The skill covers persistent storage, meaning memories survive between sessions, plus retrieval, context management, and ReasoningBank integration.

中文简介正在准备中。当前显示英语简介。

  • Add conversation history to a chat system
  • Remember user preferences across sessions
  • Reuse patterns from successful interactions
ruvnet/RuVector46012026年10月20日 更新

Tune AgentDB memory use and search speed through quantization, which stores vectors more compactly, search indexes, caching, and batch operations. Includes configuration examples and benchmarks to help balance accuracy, speed, and storage as datasets grow.

中文简介正在准备中。当前显示英语简介。

  • Reduce memory use in an AgentDB application
  • Tune search speed while preserving accuracy
  • Plan settings for millions of vectors
ruvnet/RuVector46012026年10月20日 更新

Build document search with AgentDB that finds related content by meaning. Store documents as numerical representations, combine similarity search with metadata filters, and retrieve relevant passages for systems that generate answers using source material.

中文简介正在准备中。当前显示英语简介。

  • Build answers grounded in retrieved documents
  • Add meaning-based search to a knowledge base
  • Find documents with similar content
ruvnet/RuVector46012026年10月20日 更新

查看 ruvnet 的全部技能

报告此技能的问题