coc-reference

Explains the COC five-layer architecture for disciplined AI-assisted code generation.

Updated Apr 2, 2026
One-click install
npx skills add https://github.com/Dchuuuuuu/disease-risk-classifier --skill coc-reference-dchuuuuuu
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: coc-reference
Source: https://github.com/Dchuuuuuu/disease-risk-classifier/tree/main/.claude/skills/28-coc-reference
Command: npx skills add https://github.com/Dchuuuuuu/disease-risk-classifier --skill coc-reference-dchuuuuuu

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? AI coding assistants suffer from amnesia, convention drift, and security blindness because they lack institutional knowledge. This Skill provides the reference for the COC (Cognitive Orchestration for Codegen) framework, a five-layer architecture that encodes organizational context, guardrails, and procedures directly into the AI's operating environment. ## Core Features & Use Cases - Five-Layer Architecture Reference: Covers Intent (30 specialized agents), Context (progressive disclosure skills), Guardrails (9 rules plus 9 hooks), Instructions (7-phase workflow with quality gates), and Learning (observation-instinct-evolution pipeline). - Vibe Coding Critique: Explains the three fault lines of unstructured AI coding and why institutional knowledge matters more than model capability. - Autonomous Execution Model: Details the 10x throughput multiplier, structural versus execution gates, and Human-on-the-Loop development roles. - Use Case: When discussing AI-assisted development methodology, anti-amnesia patterns, or designing enforcement hooks for coding agents, load this reference to ground the conversation in the COC framework's terminology and principles. ## Quick Start Ask the AI to explain how the COC five-layer architecture prevents convention drift in AI-generated code.

Frequently Asked Questions about coc-reference

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is the COC framework for AI-assisted coding?▼

COC (Cognitive Orchestration for Codegen) is a five-layer architecture that gives AI coding assistants institutional context, guardrails, and operating procedures. The layers are Intent, Context, Guardrails, Instructions, and Learning, implemented with agents, skills, rules, hooks, and commands.

How does COC solve AI amnesia and convention drift?▼

COC replaces stale training data with a living institutional handbook using progressive disclosure, and enforces rules deterministically through hooks. An anti-amnesia hook fires on every message so rules survive context compression.

What are the five layers of the COC architecture?▼

The layers are Intent (30 specialized agents), Context (28 skill directories with progressive disclosure), Guardrails (9 rule files plus 9 hook scripts), Instructions (7-phase workflow with 20 commands), and Learning (observation-instinct-evolution pipeline).

What is Human-on-the-Loop development in COC?▼

Human-on-the-Loop means the developer defines the operating envelope while autonomous agents execute within it. Humans handle structural gates like plan approval and release authorization, while agents converge autonomously on execution gates like tests and code review.

What are the limitations of the COC framework?▼

COC is less effective for novel architecture decisions, distributed systems complexity, legacy codebases without frameworks, and greenfield domains lacking institutional knowledge. First sessions in new domains yield roughly 2-3x throughput rather than 10x.