Cfn cerebras code generator

From masharratt/claude-flow-novice · View interactive version

Cfn cerebras code generator is an AI agent skill from the GitHub repository masharratt/claude-flow-novice. FAST code generation via Z.ai glm-4.6 model. Use for rapid test generation, boilerplate code, repetitive patterns, and bulk file creation. Ideal when speed matters more than nuance. Do NOT use for complex architectural decisions or security-critical code.

How to use this skill

Skill file

Cerebras Code Generator Skill

Description

Generates code using Z.ai glm-4.6 model for fast test and code generation. Use this for rapid iteration when generating tests, boilerplate, and repetitive code patterns.

When to Use

Configuration

# Required environment variables
export ZAI_API_KEY="your-api-key"  # or CEREBRAS_API_KEY for legacy
export ZAI_MODEL="glm-4.6"  # Fast, cost-effective model

# Optional settings
export CEREBRAS_BASE_URL="https://api.cerebras.ai/v1"
export CONTEXT_DB_PATH="./.claude/skills/cfn-cerebras-code-generator/contexts.db"

Usage

# Basic code generation
./generate-code.sh \
  --file-path "/path/to/file.ext" \
  --prompt "Create a REST API endpoint" \
  --context-files "src/models.py,src/utils.py"

# With explicit model
./generate-code.sh \
  --model "llama-3.1-70b" \
  --file-path "/path/to/file.py" \
  --prompt "Implement authentication middleware"

Implementation Details

Context Tracking

OpenAI Compatibility

Features

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.