Agent skill
zfc
Zero Framework Cognition Principles
Install this agent skill to your Project
npx add-skill https://github.com/lambdamechanic/skills/tree/main/zfc
SKILL.md
ZFC (Zero Framework Cognition) Principles
Core Architecture Principle: This application is pure orchestration that delegates ALL reasoning to external AI. We build a “thin, safe, deterministic shell” around AI reasoning with strong guardrails and observability.
✅ ZFC-Compliant (Allowed)
Pure Orchestration
IO and Plumbing • Read/write files, list directories, parse JSON, serialize/deserialize • Persist to stores, watch events, index documents
Structural Safety Checks • Schema validation, required fields verification • Path traversal prevention, timeout enforcement, cancellation handling
Policy Enforcement • Budget caps, rate limits, confidence thresholds • “Don’t run without approval” gates
Mechanical Transforms • Parameter substitution (e.g., ${param} replacement) • Compilation • Formatting and rendering AI-provided data
State Management • Lifecycle tracking, progress monitoring • Mission journaling, escalation policy execution
Typed Error Handling • Use SDK-provided error classes (instanceof checks) • Avoid message parsing
❌ ZFC-Violations (Forbidden)
Local Intelligence/Reasoning
Ranking/Scoring/Selection • Any algorithm that chooses among alternatives based on heuristics or weights
Plan/Composition/Scheduling • Decisions about dependencies, ordering, parallelization, retry policies
Semantic Analysis • Inferring complexity, scope, file dependencies • Determining “what should be done next”
Heuristic Classification • Keyword-based routing • Fallback decision trees • Domain-specific rules
Quality Judgment • Opinionated validation beyond structural safety • Recommendations like “test-first recommended”
🔄 ZFC-Compliant Pattern
The Correct Flow
-
Gather Raw Context (IO only) • User intent, project files, constraints, mission state
-
Call AI for Decisions • Classification, selection, composition • Ordering, validation, next steps
-
Validate Structure • Schema conformance • Safety checks • Policy enforcement
-
Execute Mechanically • Run AI’s decisions without modification
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
lambda-workflow
One lifecycle for Lambda repos: choose a bd task, start work, land the PR, and watch GitHub via Dumbwaiter MCP until it merges.
testing-patterns
Testing patterns and standards for this codebase, including async effects, fakes vs mocks, and property-based testing.
dumbwaiter-mcp
Provider-agnostic wait-for-change skill that uses the Dumbwaiter MCP server to wait on PR events (GitHub first) via wait.start/status/cancel/await, with progress notifications and durable state.
rust-guidelines
Pragmatic Rust conventions to keep code readable, testable, and performant for this project.
galahad
how to approach tests, types and coverage
template-skill
Replace with description of the skill and when Claude should use it.
Didn't find tool you were looking for?