Skip to content
Back to skills

Cfn Cerebras Code Generator

ASecurity

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.

  • 666 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added February 8, 2026
ai-agentsbashsqlapidatabasesecurity

Works with

  • api

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill cfn-cerebras-code-generator --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cfn Cerebras Code Generator?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cfn Cerebras Code Generator
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-cfn-cerebras-code-generator/badge)](https://www.skillsdirectory.com/skills/majiayu000-cfn-cerebras-code-generator)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cfn-cerebras-code-generator
description: "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."
version: 2.0.0
tags: [code-generation, fast, zai, glm-4.6, tests, boilerplate]
---

# 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
- ✅ **Test generation** - unit tests, integration tests, test fixtures
- ✅ **Boilerplate code** - CRUD operations, API endpoints, data models
- ✅ **Repetitive patterns** - similar components, migration scripts
- ✅ **Bulk file creation** - generating multiple similar files quickly
- ❌ **NOT for** complex architecture, security-critical code, or nuanced logic

## Configuration
```bash
# 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

```bash
# 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
- Stores generation history in SQLite database
- Tracks what worked and what didn't
- Maintains conversation context
- Provides examples of successful patterns

### OpenAI Compatibility
- Uses OpenAI-compatible request/response format
- Supports streaming responses
- Handles token limits and rate limiting
- Automatic retry logic

### Features
- ✅ Visual diff generation
- ✅ Context file inclusion
- ✅ Error handling and validation
- ✅ Generation history tracking
- ✅ Success pattern learning
- ✅ Multiple model support

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.