From claude-commands
Guides designers and reviewers on model-owned contracts, minimal semantic output, and backend-only execution for AI applications.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-commands:zero-framework-cognitionThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Models decide; server executes.
Models decide; server executes.
Application code must not replace model judgment with keyword routing, regex intent detection, heuristic classification, duplicate semantic checks, or redundant field computations. The backend should execute tools, persist state, and normalize deterministic output shape. Backend correction is a last resort: first prove the prompt/schema/agent contract cannot prevent the bad payload on the real path, then add only the narrowest correction-only invariant.
Reference: Zero Framework Cognition: A Way to Build Resilient AI Applications.
In this repository, "model" means:
Do not replace either with new application-code heuristics. New regex, substring checks, weighted keyword lists, or phrase maps for semantic judgment are ZFC violations.
Ask the model for the smallest set of fields that expresses the semantic decision. Do not ask the model to emit multiple equivalent fields that can drift apart.
Prefer:
{
"current_level": 4,
"target_level": 5
}
Over:
{
"level_up": true,
"level_up_available": true,
"current_level": 4,
"target_level": 5,
"new_level": 5,
"current_turn_exp": 6900,
"total_exp_for_next_level": 6500,
"additional_exp_to_next_level": 0
}
The first contract has one semantic fact: the model believes the target state is level 5 from level 4. The second contract gives the model many chances to contradict itself.
Every shared field needs one authoritative writer.
Use this split:
If two fields mean the same thing, delete one or derive it deterministically outside the model contract.
if / else chains that infer meaning from user text.When adding or reviewing a model output field, ask:
If the field is redundant, remove it from the model contract and derive it deterministically after the model response is accepted.
ZFC does not ban mechanical code. These are allowed:
If the code asks "what does this mean?" or "what should we do?", use a model. If the code asks "is this JSON valid?" or "does this file exist?", deterministic code is appropriate.
Backend protection is allowed only after the root cause has been checked at the prompt/schema layer. The first fix attempt should be upstream: selected agent, prompt wording, schema shape, or tool-result feedback. Backend guards are the last resort, not the primary design.
For backend adjusters, corrections, defaults, suppressions, clamps, retries,
rollbacks, fallbacks, or composition logic around model-owned output, also run
.claude/skills/zfc-adjuster/SKILL.md. The adjuster proof standard requires
root-cause-first proof, immutable or redacted raw-path evidence, state-aware
scope, conflict/rollback/composition behavior, and a proven need that
prompt/schema correction alone cannot handle.
Allowed guards:
Disallowed guards:
Domain-specific ZFC skills can add file boundaries and contracts. For level-up
and rewards work, also use .claude/skills/zfc-leveling-roadmap/SKILL.md.
npx claudepluginhub jleechanorg/claude-commands --plugin claude-commandsGuides building production-grade AI features with LLM integration, RAG architecture, prompt engineering, and cost optimization.
Analyzes project requirements and recommends optimal Anthropic architectures using Skills, Agents, Prompts, and SDK primitives for scalable AI systems.
Defines architecture boundaries for level-up, rewards, and XP logic — file ownership, API contracts, and correction guard rules. Consult before any rewards/XP code change.