Skip to content
/

AI Development Specifications (cogeet-io)

cogeet-ai-dev-specs · cogeet-io/ai-development-specifications · ★ 32 · last commit 2026-02-12

Apply Infrastructure-as-Code principles to AI development processes — spec-as-code, testing-as-code, context-engineering-as-code — for systematic, measurable AI-assisted development.

Best whenAI agent failures are context failures, not model failures — systematic context engineering is more impactful than model selection or prompt tuning.
Skip ifTrial-and-error AI development without specs, Inconsistent context across team members
vs seeds
agent-os(standards files), but uses a structured pseudo-code DSL (DEFINE_STAGE, DEFINE_TASK, DEFINE_PRINCIPLE macros) instead of…
Primitive shape
No installable primitives
00

Summary

cogeet-ai-development-specifications — Summary

cogeet-ai-development-specifications is a set of five comprehensive specification documents (.txt files) that define "Infrastructure as Code for AI-assisted development" — applying spec-as-code, testing-as-code, documentation-as-code, context-engineering-as-code, and coding-best-practices-as-code paradigms to AI developer workflows. Each file is a self-contained specification template (~100-200 lines of structured pseudo-code with DEFINE_STAGE, DEFINE_TASK, DEFINE_PRINCIPLE, DEFINE_CONTEXT_PATTERN macros) that teams copy and fill in. There is no CLI, no agent runtime, no hooks — only the specification documents and a PRD template. The target audience is development teams, tech leads, and organizations wanting to systematize AI-assisted development with measurable quality gates.

Differs from seeds: Pure Archetype 4 "Markdown scaffold, zero primitives" but implemented in a structured pseudo-code DSL (.txt files with TOML-like macro syntax) rather than plain markdown. The closest seed is claude-conductor (documentation scaffold) or agent-os (standards files), but cogeet ships a richer specification language with DEFINE_STAGE, DEFINE_TASK, DEFINE_PRINCIPLE macros and explicit quality metric targets (completeness ≥ 0.85, relevance ≥ 0.80, test coverage 90%) rather than markdown prose. Unlike SPEC-KIT (which automates spec creation via hooks), cogeet provides only the specification templates — enforcement is entirely up to the implementing team.

01

Overview

cogeet-ai-development-specifications — Overview

Origin

GitHub: cogeet-io/ai-development-specifications (32 stars, 14 forks, MIT). Author: Cogeet.io. No code, only .txt specification files. Last pushed 2026-02-12.

Philosophy

From README:

"Most AI agent failures aren't model failures - they're context failures." "Stop fighting AI coding assistants. Start engineering them."

The "Six Pillars" (actually five spec files + PRD template):

  1. Product Requirements Document Template — The source driving everything
  2. Specification as Code — Build pipeline specs
  3. Context Engineering as Code — Systematic context assembly
  4. Testing as Code — 15+ advanced testing strategies
  5. Documentation as Code — Automated documentation practices
  6. Coding Best Practices as Code — SOLID/DRY enforcement

The framework positions "Context Engineering" as its key innovation:

"AI failures are usually context failures, not model failures. This specification provides the first systematic approach to engineering context for reliable AI assistance."

Key Claims

  • "10x improvement in AI task success rates"
  • "50% reduction in debugging and rework time"
  • "85% consistency in code quality across teams"

Design Approach

The spec files use a structured pseudo-code DSL:

DEFINE_STAGE(setup_and_config)
DEFINE_TASK "Initialize Project Structure" {
  [manifest] { task_type = "FileSystemSetup", failure_strategy = "Halt" }
  id: setup-project
  depends: [setup-project]
}

This is influenced by Infrastructure-as-Code conventions applied to development process specification.

Inspiration Cited

  • Infrastructure as Code principles
  • Karpathy's and Lutke's context engineering principles
  • Agile/DevOps/CI-CD automation patterns
02

Architecture

cogeet-ai-development-specifications — Architecture

Distribution

  • Type: Methodology document set (standalone repo)
  • Install: Copy files to project, edit, use as AI context
  • License: MIT
  • Language: None (structured text with pseudo-code DSL)

Directory Tree

ai-development-specifications/
  README.md
  LICENSE
  Product-Requirements-Document-Template.txt
  Specification-as-Code.txt
  Context-Engineering-as-Code.txt
  Testing-as-Code.txt
  Documentation-as-Code.txt
  Coding-Best-Practices-as-Code.txt

Five Specification Files

File Purpose Lines
Product-Requirements-Document-Template.txt PRD template driving the system ~50
Specification-as-Code.txt Build pipeline + stage/task definitions ~200
Context-Engineering-as-Code.txt Context assembly principles + patterns ~300
Testing-as-Code.txt 15+ testing strategies with validation ~250
Documentation-as-Code.txt Documentation generation + validation ~200
Coding-Best-Practices-as-Code.txt SOLID/DRY enforcement patterns ~200

Required Runtime

None — works with any AI that reads text files.

DSL Syntax

Files use a structured pseudo-code format:

[environment]
target_ai_systems = ["claude_code", "copilot", "cursor", "local_llm"]

DEFINE_STAGE(stage_name)
DEFINE_TASK "Task Name" {
  [manifest] { task_type = "...", failure_strategy = "..." }
  id: task-id
  stage: stage_name
  depends: [other-task]
  description: "..."
}
DEFINE_PRINCIPLE(principle_name) {
  [manifest] { scope = [...], enforcement = "mandatory" }
  rule: "..."
  quality_metrics = { completeness = { min = 0.85, target = 0.95 } }
}
03

Components

cogeet-ai-development-specifications — Components

Specification Files (6)

Specification-as-Code.txt

Defines build pipeline specification with:

  • DEFINE_STAGE macros: setup_and_config, core_implementation, integration, testing_and_validation, packaging_and_deployment
  • DEFINE_TASK with task_type, failure_strategy, depends
  • Stage transitions and dependency graphs

Context-Engineering-as-Code.txt

Defines context engineering principles with:

  • DEFINE_PRINCIPLE(comprehensive_context) — 6 context dimensions
  • DEFINE_PRINCIPLE(dynamic_context_assembly) — strategies for task-specific context
  • DEFINE_PRINCIPLE(validated_context_quality) — quality metrics (completeness ≥ 0.85, relevance ≥ 0.80, accuracy ≥ 0.95)
  • DEFINE_CONTEXT_PATTERN(rust_actor_implementation) — domain-specific context templates
  • Context for: code generation, debugging, refactoring, code review, documentation

Testing-as-Code.txt

15+ testing strategies including:

  • Property-based testing
  • Mutation testing
  • Fuzz testing
  • E2E tests
  • Performance monitoring
  • Automated CI/CD pipeline integration

Documentation-as-Code.txt

Automated documentation with:

  • Generation validation
  • Living documentation (evolves with code)
  • Quality measurement and continuous improvement

Coding-Best-Practices-as-Code.txt

SOLID/DRY enforcement with:

  • Language-specific patterns (Rust, C#, Python, JavaScript)
  • Automated validation rules
  • Code quality metrics

Product-Requirements-Document-Template.txt

PRD structure template that feeds all other specifications.

Commands / Skills / Hooks

None. All enforcement is manual — the specifications describe what should happen, not automated tooling.

05

Prompts

cogeet-ai-development-specifications — Prompts

Excerpt 1: Specification-as-Code.txt — Stage/Task DSL

Technique: Infrastructure-as-Code DSL for development process specification. DEFINE_TASK with manifest blocks and dependency graphs.

===================================================================
Specification as Code: Universal Template v1.0
===================================================================
[environment]
target_os = "target_operating_system"
language = "primary_programming_language"
build_tools = ["build_tool_1", "build_tool_2"]

DEFINE_STAGE(setup_and_config)
DEFINE_STAGE(core_implementation)

TASK "Initialize Project Structure" {
[manifest] {
task_type = "FileSystemSetup",
failure_strategy = "Halt"
}
id: setup-project
stage: setup_and_config
description: "Create the project directory structure and initialize basic configuration files."
}

TASK "Implement Core Functionality" {
[manifest] {
target_file = "src/main.{ext}",
task_type = "CodeGeneration"
}
id: implement-core
stage: core_implementation
depends: [implement-config]
description: "Implement the main functionality and business logic of the application."
}

Excerpt 2: Context-Engineering-as-Code.txt — Principle Definitions

Technique: Quantified quality metrics with violation patterns and auto-fix strategies.

DEFINE_PRINCIPLE(comprehensive_context) {
  [manifest] {
    scope = ["task_context", "domain_context", "system_context"],
    enforcement = "mandatory",
    validation_strategy = "completeness_analysis"
  }
  rule: "AI actors must receive all information necessary to complete tasks successfully"
  context_dimensions = {
    instructions = "clear_task_definition_and_requirements",
    knowledge = "relevant_domain_information_and_patterns",
    examples = "concrete_implementations_to_follow",
    constraints = "limitations_and_requirements_to_respect",
    validation = "success_criteria_and_quality_gates",
    tools = "available_capabilities_and_functions"
  }
  violation_patterns = ["incomplete_requirements", "missing_examples", "unclear_constraints"]
  auto_fix = ["AddMissingContext", "EnrichExamples", "ClarifyConstraints"]
}

DEFINE_PRINCIPLE(validated_context_quality) {
  quality_metrics = {
    completeness = { min = 0.85, target = 0.95 },
    relevance = { min = 0.80, target = 0.90 },
    accuracy = { min = 0.95, target = 0.99 },
    effectiveness = { measured_by = "task_success_rate", target = 0.90 }
  }
}

Excerpt 3: Context Pattern Template (Rust Actor)

Technique: Domain-specific context template with assembly strategy specification.

DEFINE_CONTEXT_PATTERN(rust_actor_implementation) {
  context_template = {
    instructions = {
      primary_goal = "implement_rust_actor_using_tokio_mpsc",
      coding_standards = "follow_rust_best_practices_and_project_conventions",
      architecture_requirements = "maintain_actor_pattern_consistency"
    }
  }
}
09

Uniqueness

cogeet-ai-development-specifications — Uniqueness

Differs from Seeds

Closest to claude-conductor (documentation scaffold) and agent-os (standards files), but distinguished by: (1) a structured pseudo-code DSL (DEFINE_STAGE, DEFINE_TASK, DEFINE_PRINCIPLE macros) instead of plain markdown — giving the specs a machine-readable-looking format even though no runtime consumes them; (2) quantified quality targets embedded in the specifications (completeness ≥ 0.85, accuracy ≥ 0.95, task_success_rate = 0.90) — more specific than any seed's quality guidance; (3) Context Engineering as a first-class pillar with 6 context dimensions and dynamic assembly strategies — the most systematic treatment of context as an engineering discipline in the batch; (4) SOLID/DRY-as-code patterns for specific languages (Rust, C#, Python, JS) as a specification file. Unlike agent-os (which ships commands to write the markdown), cogeet ships only the specification documents — no tooling whatsoever.

Positioning

  • Target user: Development teams and tech leads who want to systematize AI-assisted development without adopting a specific tooling framework
  • Key differentiator: The Context-Engineering-as-Code.txt is the most comprehensive treatment of context assembly as an engineering discipline in the corpus
  • Honest gap: All quality metrics are targets described in the spec — there is no enforcement mechanism

Observable Failure Modes

  1. No enforcement: Entirely process-dependent; without tooling, teams self-select compliance
  2. DSL without runtime: The macro syntax looks like executable code but isn't — potential confusion
  3. 32 stars, low adoption signal: Educational content, not yet widely adopted
  4. Static documents: Specs don't update as code changes — require manual maintenance
  5. Roadmap gaps: VS Code/GitHub Actions integrations promised but not yet delivered
04

Workflow

cogeet-ai-development-specifications — Workflow

From README:

Quick Start (5 minutes):

  1. Read PRD Template → define your product
  2. Read Specification as Code → foundational concepts
  3. Solve AI issues → Context Engineering + Coding Best Practices
  4. Pick focus → Testing or Documentation

Full Implementation:

  1. Define product (PRD)
  2. Implement Specification as Code practices
  3. Add Context Engineering for AI reliability
  4. Integrate Testing as Code
  5. Establish Documentation as Code

Execution Flow

Write PRD from template
    ↓
Define stages + tasks in Specification-as-Code format
    ↓
Assemble context using Context-Engineering principles
    ↓
Implement with Coding-Best-Practices
    ↓
Validate with Testing-as-Code strategies
    ↓
Generate documentation via Documentation-as-Code

Phase to Artifact Map

Phase Artifact
PRD Product requirements document
Specification Stage/task definitions in DSL format
Context assembly Context document for AI actors
Implementation Source code
Testing Test suite with coverage and mutation testing
Documentation Living documentation

Quality Gates (from Context-Engineering-as-Code)

Metric Minimum Target
Context completeness 0.85 0.95
Context relevance 0.80 0.90
Context accuracy 0.95 0.99
Task success rate 0.90

These are target thresholds described in the spec — not automated enforcement.

Approval Gates

None automated. The specifications describe gates but provide no mechanism to enforce them.

06

Memory Context

cogeet-ai-development-specifications — Memory & Context

Memory Model

None. The specification files serve as persistent context documents. Teams maintain them manually.

Context Engineering (the core contribution)

The Context-Engineering-as-Code.txt defines a systematic approach to context assembly:

  • Comprehensive context: 6 dimensions (instructions, knowledge, examples, constraints, validation, tools)
  • Dynamic assembly: task-specific context selection
  • Quality measurement: completeness/relevance/accuracy metrics
  • Progressive disclosure: layered context from simple to complex

State Files

File Purpose
Product-Requirements-Document-Template.txt PRD source of truth
Specification-as-Code.txt Stage/task definitions
Context-Engineering-as-Code.txt Context assembly rules

Handoff

The context documents are static — they don't update automatically. Teams update them as requirements evolve.

No Automated Memory

No session state, no learning capture, no compaction handling. This is a process framework, not an agent memory system.

07

Orchestration

cogeet-ai-development-specifications — Orchestration

Multi-Agent: No

No orchestration mechanism. The specifications describe multi-agent patterns in theory but provide no runtime.

Orchestration Pattern: None

Execution Mode: One-shot (conceptually)

Teams provide the spec documents as context; the AI executes based on that context.

Multi-Model: No (tool-agnostic)

target_ai_systems = ["claude_code", "copilot", "cursor", "local_llm"]

But no model routing — teams select their model.

Auto-Validators: None

Quality metrics are described as targets, not automated checks.

Cross-Tool Portability: High

All specification documents work with any AI that reads text files.

08

Ui Cli Surface

cogeet-ai-development-specifications — UI / CLI Surface

CLI Binary

None.

Local UI

None.

Usage

Copy the relevant .txt files into your project, edit the [environment] section and task definitions to match your project, then provide them as context to your AI coding assistant.

GitHub Discussions

README links to GitHub Discussions for community questions.

Planned Integrations (Roadmap)

From README v1.1-1.2 roadmap:

  • VS Code integration
  • GitHub Actions integration
  • Community templates
  • Video tutorials

v2.0+:

  • AI-powered specification generation
  • Advanced context optimization algorithms
  • Enterprise integration patterns

These are not yet implemented.

Related frameworks

same archetype · same primary tool · same memory type

Context-Engineering Handbook ★ 9.0k

Provides a first-principles, research-grounded vocabulary and learning path for context engineering — the discipline of designing…

walkinglabs/learn-harness-engineering ★ 6.6k

Teach harness engineering from first principles (12 lectures + 6 projects) and provide a scaffolding skill (harness-creator) that…

Awesome Harness Engineering (walkinglabs) ★ 2.7k

Curate the authoritative reference list of articles, benchmarks, and tools for harness engineering — the practice of shaping the…

cline-memory-bank (nickbaumann98) ★ 581

Custom instructions + 6-file hierarchical Markdown memory bank so Cline maintains full project context across sessions, with a…

FPF (First Principles Framework) ★ 372

Provides a formal pattern language for making reasoning explicit, traceable, and publishable in mixed human/AI engineering work —…

nexu-io/harness-engineering-guide ★ 134

Provide a practical, code-first reference guide to harness engineering — from first principles to production patterns —…