FS

frmoretto/stream-coding

Security testing
97ย stars Quality 40 Trend 40

๐Ÿ“ข Phase 2.5 Adversarial Review added, internal gate renamed Spec Gate (structural), Clarity Gate is now a standalone epistemic tool. Re-download if using older version.

Overview

๐Ÿ“ข Phase 2.5 Adversarial Review added, internal gate renamed Spec Gate (structural), Clarity Gate is now a standalone epistemic tool. Re-download if using older version.

README

Stream Coding v3.5

The 10-20x Methodology for AI-Accelerated Software Development

๐Ÿ“ข v3.5 Update: Phase 2.5 Adversarial Review added, internal gate renamed Spec Gate (structural), Clarity Gate is now a standalone epistemic tool. Re-download if using older version.

โœ… This methodology built 7 production modules in 4.5 hours (5Levels Case Study, Git-verified)

โ€œStream coding isnโ€™t about faster coding. Itโ€™s about documentation so clear that code writes itself.โ€


The Problem: The Velocity Mirage

AI tools promise 10x productivity. GitHub Copilot, Cursor, Claude Codeโ€”they make coding 55% faster.

But projects still take the same time to ship.

Why? Because faster typing doesnโ€™t solve:

  • Strategic decisions AI canโ€™t make for you
  • Context that gets lost between prompts
  • Technical debt created at 10x speed

This gap between task velocity and project velocity is the Velocity Mirage.


The Solution: Stream Coding

Stream Coding is a documentation-first methodology that makes AI-generated code deterministic.

The 40/40/5/10/5 Split:

  • 40% Strategic Thinking (Phase 1) โ€” Solve hard problems before coding
  • 40% AI-Ready Documentation (Phase 2) โ€” Specs so complete AI has zero decisions
  • 5% Adversarial Review (Phase 2.5) โ€” Different AI attacks the specs before coding
  • 10% Execution (Phase 3) โ€” Code streams out automatically
  • 5% Quality (Phase 4) โ€” Tests and verification

Real Results (5Levels Case Study):

  • 7 production modules in 4.5 hours
  • 46 intelligence endpoints (77 total backend API)
  • Zero bugs in generated code, 21 minutes average per tested module

Note: The case study focuses on backend intelligence modulesโ€”Stream Codingโ€™s sweet spot. For frontend, use the methodology for behavior (components, state, logic) and complement with AI design tools for visuals. See Chapter 4 for details.


Quick Start

Option 1: Claude.ai / Claude Desktop

  1. Download stream-coding.skill
  2. Go to Settings โ†’ Features โ†’ Skills โ†’ Add
  3. Upload the .skill file
  4. Ask Claude: โ€œBuild a user authentication systemโ€

Option 2: Claude Code

Clone the repo โ€” Claude Code auto-detects skills in .claude/skills/:

git clone https://github.com/frmoretto/stream-coding
cd stream-coding
# Claude Code will automatically detect .claude/skills/stream-coding/SKILL.md

Or copy .claude/skills/stream-coding/ to your projectโ€™s .claude/skills/ directory.

Ask Claude: โ€œBuild a user authentication systemโ€

Option 3: Claude Projects

Add SKILL.md to project knowledge. Claude will search it when needed, though Skills provide better integration.

Option 4: OpenAI Codex / GitHub Copilot

Copy the canonical skill to the appropriate directory:

Platform Location
OpenAI Codex .codex/skills/stream-coding/SKILL.md
GitHub Copilot .github/skills/stream-coding/SKILL.md

Use skills/stream-coding/SKILL.md (agentskills.io format).

Option 5: Manual / Other LLMs

For Cursor, Windsurf, or other AI tools:

  • Extract core principles (Phases, Document Types, Spec Gate)
  • Create a condensed version for .cursorrules or project settings
  • Use the templates and Spec Gate Checklist as reference

The methodology is tool-agnosticโ€”only SKILL.md is Claude-optimized.


Read the Manifesto

The /manifesto folder contains the complete methodology:

Chapter Topic
Chapter 1 The Velocity Mirage
Chapter 2 Why AI Tools Alone Fail
Chapter 3 The Missing Middle
Chapter 4 The 5-Phase Methodology
Chapter 5 Day 2 & The Rule of Divergence
Appendix A Templates & Checklists
Appendix B Research & SDD Positioning
Appendix C 5Levels Case Study (Git-Verified)
Advanced Framework Document Architecture (v3.5)

Use the Templates

The /templates folder contains ready-to-use frameworks:

Template Purpose
Strategic Blueprint Answer the 7 Phase 1 Questions
ADR Template Document architecture decisions with rationale
Spec Gate Checklist The mandatory Phase 2โ†’2.5 gate

The Core Insight

โ€œWhen code fails, fix the specโ€”not the code.โ€

Traditional development iterates on code. Stream Coding iterates on documentation.

Every manual code edit without updating the spec creates Divergenceโ€”technical debt that breaks the stream. The methodology works because it treats code as a compiled output of documentation, not the source of truth.


Who This Is For

  • โœ… Technical founders building greenfield products

  • โœ… Solo developers and small teams (1-5 people)

  • โœ… Anyone tired of AI-generated spaghetti code

  • โœ… Backend/business logic focused (see Chapter 4 for frontend approach)

  • โŒ Not for large enterprises (see GitHub Spec-Kit, Kiro, Gemini Conductor)

  • โŒ Not for teams who canโ€™t commit to documentation-first


Where Stream Coding Fits

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  AI-Assisted Development Landscape                              โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚                                                                 โ”‚
โ”‚  Layer 3: Enterprise SDD    GitHub Spec-Kit, Kiro, Conductor    โ”‚
โ”‚           (teams 50+)       Full lifecycle, heavy process       โ”‚
โ”‚                                                                 โ”‚
โ”‚  Layer 2: Founder SDD  โ—„โ”€โ”€  STREAM CODING                       โ”‚
โ”‚           (teams 1-5)       Documentation-first, AI-ready specs โ”‚
โ”‚                                                                 โ”‚
โ”‚  Layer 1: AI Assistants     Copilot, Cursor, Claude Code        โ”‚
โ”‚           (task-level)      Fast typing, no methodology         โ”‚
โ”‚                                                                 โ”‚
โ”‚  Layer 0: Manual Coding     Traditional development             โ”‚
โ”‚                                                                 โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

The Gap: Layer 1 tools make coding 55% faster but donโ€™t solve the methodology problem. Enterprise tools (Layer 3) are overkill for founders. Stream Coding fills the middle.


Competitive Positioning

Dimension AI Assistants (Copilot) Stream Coding Enterprise SDD (Kiro)
Target Individual developers Founders, small teams Large enterprises
Focus Task velocity Project velocity Process compliance
Cost $10-20/mo Free Enterprise pricing
Methodology None 5-phase, Spec Gate Full SDLC
Documentation Optional Mandatory (80% of time) Mandatory
AI Role Code suggestions Spec execution Workflow automation

Research Validation

Stream Coding aligns with industry research:

  • McKinsey (2025): Top performers see 16-30% productivity gains through โ€œend-to-end PDLC implementationโ€ and โ€œstructured communication of specsโ€
  • DORA (2025): 7.2% delivery instability increase for every 25% AI adoption without foundational systems
  • METR (2025): Developers 19% slower with AI despite feeling 20% faster

The methodology isnโ€™t magic, itโ€™s systematic application of spec-driven development at founder scale.


Clarity Gate โ€” Pre-ingestion verification for epistemic quality (originated from Stream Codingโ€™s Clarity Gate concept)
github.com/frmoretto/clarity-gate

Source of Truth Creator โ€” Create epistemically calibrated documents
github.com/frmoretto/source-of-truth-creator


Roadmap

Phase Status Description
v3.4 โœ… Released 13-item Clarity Gate, scoring rubric, Documentation Audit
v3.5 โœ… Released Phase 2.5 Adversarial Review, Spec Gate (structural), Clarity Gate (epistemic) split
v4.0 ๐Ÿ”œ Planned Multi-agent workflow support, automated spec validation

Contributing

Stream Coding is open source under CC BY 4.0. Youโ€™re free to use, adapt, and share with attribution.

Looking for:

  1. Real-world case studies โ€” Applied Stream Coding to your project?
  2. Tool integrations โ€” Cursor, Windsurf, other AI tools
  3. Methodology feedback โ€” Are the 5 phases the right split?
  4. Template improvements โ€” Better Strategic Blueprint, ADR formats

Open an issue or PR.


About

Created by Francesco Marinoni Moretto while building 5Levels, a LinkedIn relationship intelligence platform.

The methodology emerged from building 7 production modules in 4.5 hours, and documenting exactly how.


License

CC BY 4.0 โ€” Use freely with attribution.

โ€œStream Coding methodology by Francesco Marinoni Moretto (github.com/frmoretto/stream-coding)โ€


In memory of my beloved father Guido

View this README on GitHub

Recommended Tools

Try a different keyword or remove a filter.

Install

npx skillfish add frmoretto/stream-coding