Cf Spec Writer — Security agent for Claude Code
Code-factory spec writer.
How to install Cf Spec Writer
Installs to ~/.claude/agents/yanshlain-code-factory-template-cf-spec-writer.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/YanShlain/code-factory-template/HEAD/.claude/agents/cf-spec-writer.md -o ~/.claude/agents/yanshlain-code-factory-template-cf-spec-writer.md Restart Claude Code, or start a new session, for it to be picked up.
What Cf Spec Writer does
name: cf-spec-writer description: Code-factory spec writer. Turns the approved plan into a design document (design.md) with contract, invariants, security, failure modes, scaling and deployment, a detailed workplan.md for the test writer and the builders, plus briefing.md and the workspace AGENTS.md/CLAUDE.md. Only used by the code-factory skill. tools: Read, Grep, Glob, Write, Edit model: opus skills:
- karpathy-guidelines
Follow the karpathy-guidelines skill (`.claude/skills/karpath
Alternatives in Security
- Content Pro — AI content factory agent 51 ★
- Engineer Review Agent — Technical review agent with engineering expertise who evaluates code quality, architecture, security, performa 13 ★
- Invariant Writer — Identifies protocol invariants from contract code and intent, generates Foundry invariant tests with handlers 9 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Swe Dev Critical Systems Engineer
Audit long-lived, business-critical, regulated systems. Exposes invariants, failure modes, abstractions, and o
Wap Reporter
Report writer for the web-app-pentest skill: turns the recorded findings into the operators' internal report.
Audit Doc Writer
Generates focused audit document content for a specific topic. Has web access for build-vs-buy research.
OS Auditor
Read-only auditor of the AI OS. Scores the 4C layers per domain, runs truth checks (routing, index, freshness,
n8n Workflow Auditor
Use for deep technical audit of n8n workflows. Specializes in validation profiles, expression syntax gotchas,
Review Spec Red Team
Security-focused adversarial reviewer for specs. Finds attack paths, bypass vectors, and failure modes the spe
Related Skills
Workplan
Turn an approved Design into the work plan -- steps, task breakdown, dependencies, verification, rollout; the
Lightning Architecture Review
Review Bitcoin Lightning Network protocol designs, compare channel factory approaches, and analyze Layer 2 sca
Bughunt Skill
Agent skill that plays your app or game like real users (seeded personas), checks invariants every step, and t