ground-up-engineering-protocol
Universal architectural standard for autonomous coding agents to build any software system from scratch. Enforces strict negative scoping, first-principles…
от hemanth17r★ 33 звезды на GitHub
Установить ground-up-engineering-protocol в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Ground-Up Engineering Protocol (GUEP)
Universal Standard for Scoping, Sequencing, and Building Systems From Scratch
Core Law: "Movement First, Casing Second"
Inverted dependencies are the root cause of AI hallucinations, messy code rewrites, and wasted tokens.
- The Analogy: A watchmaker builds the internal quartz movement (time crystal, gearing, buzzer circuit) and proves it with a multimeter before crafting the watch casing, buttons, and dial.
- The Anti-Pattern: Designing the user interface, CLI menus, or API controllers first forces you to guess at the underlying engine. When concurrency, state synchronization, or background events are added later, the presentation layer must be ripped apart and rewritten.
- The Rule: Always build from the deepest, pure-logic foundation outward toward the presentation boundary. Every phase must produce an independently verifiable layer.
1. Phase 0: Negative Scope & Technical Contract
Before writing a single line of production code, the agent MUST establish:
- Explicit Positive Scope: 3–5 core capabilities that define minimum operational viability.
- Ruthless Negative Scope: An explicit list of features that are REJECTED upfront with engineering rationale:
- Persistence: Reject databases/file storage if in-memory state satisfies the core requirement.
- External Packages: Reject third-party libraries where standard library primitives suffice.
- Peripheral Workflows: Reject secondary features (snooze, recurrence, themes, user accounts) that inflate bug surface area without providing core architectural signal.
- Environment & Runtime Invariants: Operating system, terminal encoding (e.g. avoiding Unicode emojis on Windows
cp1252), zero-busy-wait CPU requirements.
2. The 5-Layer Universal Dependency Hierarchy (DAG)
Decompose any system into this strict sequence:
┌─────────────────────────────────────────────────────────────┐
│ Layer 4: Presentation & Consumers (CLI / REST / UI / Queue) │
├─────────────────────────────────────────────────────────────┤
│ Layer 3: Boundary Integration & E2E Verification │
├─────────────────────────────────────────────────────────────┤
│ Layer 2: Fast Deterministic Tests (Mock Clocks / Stubs) │
├─────────────────────────────────────────────────────────────┤
│ Layer 1: Core Engine & Invariants (Pure Logic, Zero I/O) │
└─────────────────────────────────────────────────────────────┘
▲ BUILD DIRECTION ▲
Layer 1: Core Domain Engine & Invariants (Headless)
- What it contains: Pure data structures, business logic, state machines, math, and lifecycle transitions.
- Mandatory Constraint: Zero I/O, zero
print()/ console logs, zero network calls, zero file writing. - Concurrency Primitives: If background tasks or timers are required, the engine must manage thread safety, locks, and lifecycle events (
start(),stop()) internally. - Entropy / Clock Abstraction: Dependence on time, randomness, or network MUST be injected via interfaces or callables (
clock: Callable[[], datetime] = datetime.now).
Layer 2: Deterministic Verification Harness (Test-First)
- What it contains: Automated unit test suite verifying Layer 1.
- Why it MUST precede Layer 3: Catching logic and concurrency bugs before building the presentation layer prevents slow, manual terminal/browser debugging.
- Mandatory Constraint: Tests must execute in milliseconds using simulated abstractions (e.g., fast-forwarding mock clocks, in-memory stubs). Flaky
sleep()calls are strictly forbidden.
Layer 3: Presentation & Consumer Boundary
- What it contains: The interactive interface (CLI prompt loop, REST endpoints, GraphQL resolvers, or UI views).
- Architecture: Layer 3 is a thin consumer of Layer 1. It contains zero business logic and zero date/time arithmetic.
- Fault Tolerance: Robust handling of malformed input, missing IDs, out-of-range commands, and environment edge cases.
- Lifecycle & Signal Traps: Graceful handling of interrupts (
SIGINT,Ctrl+C,EOF) that cleanly shuts down Layer 1 background threads.
Layer 4: End-to-End Integration & Boundary Stress
- What it contains: Live subprocess or end-to-end integration tests that cross process boundaries.
- Verification Scope:
- Standard I/O pipelines (piping inputs and verifying outputs).
- Background event notifications firing into the active presentation layer.
- Clean termination (zero hanging daemon threads, exit code 0).
- Throttled CPU usage (asserting 0% busy-wait / spinlock behavior).
Layer 5: Senior Architectural Review & Tradeoff Audit
- What it contains: Final adversarial inspection of the codebase.
- Audit Checklist:
- Zero dead code or uninvoked methods.
- Callback execution outside mutex locks (deadlock prevention).
- No tight coupling between presentation and engine layers.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл ground-up-engineering-protocol?
Universal architectural standard for autonomous coding agents to build any software system from scratch. Enforces strict negative scoping, first-principles dependency ordering ("Movement First, Casing Second"), adversarial phase sequence auditing, test-first verification with simulated abstractions, and explicit placement justifications for every phase and sub-phase. Trigger when asked to "build from scratch", "decompose this project", "architect this system", "plan this build", "phase this project", "ground up protocol", "GUEP", or "plan properly from scratch".
Как установить скилл ground-up-engineering-protocol?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ground-up-engineering-protocol запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…