Back to skills
SKILL.md
Collection
ASecurityCoordinates FAST code generation via Z.ai glm-4.6 with RuVector pattern learning. Use when agents need rapid test generation, bulk code creation, or repetitive boilerplate. Tracks successful prompts for continuous improvement. Ideal for high-volume, low-complexity code tasks.
- 24 stars
- 0 votes
- 0 copies
- 4 views
- Added September 8, 2026
Works with
Security analysis
100/100Pro scans all 21 files and shows the line behind each finding
npx -y skills add mattnigh/skills_collection --skill collection --agent claude-codeAre you the author of Collection?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/mattnigh-collection-44998451)---
name: cfn-cerebras-coordinator
description: "Coordinates FAST code generation via Z.ai glm-4.6 with RuVector pattern learning. Use when agents need rapid test generation, bulk code creation, or repetitive boilerplate. Tracks successful prompts for continuous improvement. Ideal for high-volume, low-complexity code tasks."
version: 2.0.0
tags: [coordination, code-generation, fast, zai, glm-4.6, pattern-learning, tests]
---
# Cerebras Coordinator Skill
## Description
Coordinates **fast code generation** via Z.ai glm-4.6 model with RuVector pattern learning. Agents use this skill to offload rapid test generation and boilerplate code while building a searchable database of successful patterns.
## Key Features
- 🚀 **Fast Code Generation**: Uses Cerebras API for rapid code creation
- 📚 **Pattern Learning**: Tracks successful prompts and contexts in RuVector
- 🔄 **Feedback Loop**: Tests generated code and logs results
- 🎯 **Agent Coordination**: Provides simple interface for agents to coordinate generation tasks
- 📊 **Success Metrics**: Analyzes and ranks prompt effectiveness
## Usage
### Basic Usage (Agent Pattern)
```bash
# Generate code with automatic testing
./coordinate-generation.sh \
--agent-id "backend-developer-123" \
--file-path "src/api_handler.rs" \
--prompt "Create a REST API handler with authentication" \
--test-command "cargo test api_handler"
```
### Advanced Usage with Context
```bash
# Generate with context files and custom settings
./coordinate-generation.sh \
--agent-id "frontend-dev-456" \
--file-path "components/UserProfile.tsx" \
--prompt "Create React component with TypeScript" \
--context-files "src/types.ts,src/hooks/useAuth.ts" \
--test-command "npm test -- --testPathPattern=UserProfile" \
--model "qwen2.5-coder-32b" \
--max-attempts 3
```
### Query Successful Patterns
```bash
# Find what worked for similar files
./query-patterns.sh \
--file-type "rs" \
--pattern "REST API"
--limit 5
# Get agent-specific successful patterns
./query-patterns.sh \
--agent-id "backend-developer" \
--success-rate-threshold 0.8
```
## Architecture
```
Agent (Coordinator) Cerebras Coordinator Skill RuVector
| | |
|--- Request Generation --->| |
| |--- Store Prompt ------------->|
| | |
|<--- Return Result --------| |
| | |
|--- Test Validation ------->| |
| | |
|--- Feedback -------------->|--- Log Success/Failure ----->|
| | |
```
## When to Use
- ✅ **Bulk test generation** - generating many test files quickly
- ✅ **Boilerplate with patterns** - learning from previous successful generations
- ✅ **Agent code offloading** - when agents need fast, simple code generation
- ✅ **Repetitive tasks** - migrations, similar components, data models
- ❌ **NOT for** complex logic, security code, or architectural decisions
## Configuration
```bash
# Required
export ZAI_API_KEY="your-zai-api-key" # or CEREBRAS_API_KEY for legacy
export RUVECTOR_INDEX_PATH="./.claude/skills/cfn-ruvector-codebase-index/data"
# Optional
export ZAI_MODEL="glm-4.6" # Fast, cost-effective model (default)
export COORDINATION_DB_PATH="./.claude/skills/cfn-cerebras-coordinator/generations.db"
export DEFAULT_TEST_TIMEOUT="60"
export MAX_GENERATION_ATTEMPTS="3"
```
## Workflow
1. **Agent Request**: Agent calls coordinator with generation task
2. **Pattern Lookup**: Coordinator queries RuVector for similar successful patterns
3. **Prompt Enhancement**: Enhances prompt with successful pattern examples
4. **Generation**: Sends to Cerebras for code generation
5. **Testing**: Automatically runs tests on generated code
6. **Validation**: Checks if tests pass and code compiles
7. **Logging**: Stores results in RuVector for future learning
8. **Feedback**: Returns result to agent with success metrics
## Success Metrics
The system tracks:
- Prompt effectiveness by file type
- Agent-specific success rates
- Context file correlations
- Model performance comparisons
- Test pass/fail rates
- Compilation success rates
This creates a self-improving system that gets better at generating code over time.Files in this skill
- 0Chan-smc__claude-code-workflow-lab__claude__skills__frontend-dev-guidelines__SKILL.md
- 17hz__nextjs-template__claude__skills__example-skill__SKILL.md
- 1ambda__dataops-platform__claude__skills__context-synthesis__SKILL.md
- 1natsu172__dotfiles__claude__skills__git-analysis__SKILL.md
- 1natsu172__dotfiles__claude__skills__github-pr-best-practices__SKILL.md
- 23Maestro__prospect-pipeline__claude__skills__npid-fastapi-skill.md
- 360AYA25__ClaudeN8N__claude__skills__n8n-code-javascript__SKILL.md
- 360AYA25__ClaudeN8N__claude__skills__n8n-code-python__SKILL.md
- 360AYA25__ClaudeN8N__claude__skills__n8n-expression-syntax__SKILL.md
- 360AYA25__ClaudeN8N__claude__skills__n8n-mcp-tools-expert__SKILL.md
- 360AYA25__ClaudeN8N__claude__skills__n8n-node-configuration__SKILL.md
- 360AYA25__ClaudeN8N__claude__skills__n8n-workflow-patterns__SKILL.md
- 3x-Projetos__claude-memory-framework__claude__skills__scientist__SKILL.md
- 5MinFutures__futures-arena__claude__skills__migration-tracker__SKILL.md
- 5MinFutures__futures-arena__claude__skills__planning-guidelines__SKILL.md
- 92Bilal26__TaskPilotAI__claude__skills__assessment-builder__SKILL.md
- 92Bilal26__TaskPilotAI__claude__skills__book-scaffolding__SKILL.md
- 92Bilal26__TaskPilotAI__claude__skills__code-validation-sandbox__SKILL.md
- 92Bilal26__TaskPilotAI__claude__skills__exercise-designer__SKILL.md
- 92Bilal26__TaskPilotAI__claude__skills__learning-objectives__SKILL.md
Attribution
Related skills
View all in development →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.