ayazelrico

MD Structure — AI skill for Claude Code

AI community

Agent-native architecture decision engine, Markdown scaffolder, MCP server and context-governance auditor for AI coding agents (Claude Code, Codex, Cursor).

How to install MD Structure

This entry records only its repository, not the path inside it, so there is no exact command to give. Open ayazelrico/MD-Structure and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What MD Structure does

Agent-native architecture decision engine, Markdown scaffolder, MCP server and context-governance auditor for AI coding agents (Claude Code, Codex, Cursor). Decides which .md files a project needs, why, and in what order. By Ayazelrico.

Alternatives in AI

  • Loushang — AI-native agent harness for coding workflows by python: multi-model LLM orchestration, stateful sessions, tool 1.3k ★
  • Al Context.Create.Prompt — Generate or update context.md file documenting project structure, architecture, and key patterns for AI assist 109 ★
  • Editorzero — Open-source, self-hostable AI-native docs platform 20 ★

README

MD-Structure

**Agent-Native Project Architecture Decision Engine, Markdown Scaffolder, MCP Server & Context-Governance Auditor — Created by Ayazelrico.**

Built from the ground up **for AI coding agents** — solving the exact problem developers hit when starting a project from an idea: **How many `.md` files do we need? Which ones? Why does each exist (and why were others skipped)? In what order should the agent author and load them?**


Why MD-Structure Exists

When a user describes a software idea to an AI coding agent, two failure modes dominate:

  1. Under-specification (0–1 MD files): Critical decisions remain trapped in chat history. After context compaction, the agent hallucinates column names, breaks API envelopes, misses tenant isolation, and forgets invariants.
  2. Over-specification (20+ bloated human docs): Massive narrative specs burn 40% of the context window before coding starts, contradict each other across files, and drift rapidly.

**MD-Structure** replaces guesswork with a **deterministic, zero-dependency local Context Engineering engine**:

  • 27 Canonical Agent-Native Markdown Archetypes across 6 architectural layers (bootstrap, product, system, engineering, operations, governance).
  • 4 Complexity Tiers (T0–T3):
    • T0 Micro / Utility → 2–4 MDs (~1.2k–3.8k total tokens)
    • T1 Focused MVP → 4–7 MDs (~3.5k–8.5k total tokens)
    • T2 Production Product → 7–12 MDs (~8k–17k total tokens)
    • T3 Enterprise / Distributed Platform → 11–16 MDs (~15k–28k total tokens)
  • Progressive Disclosure by Default: Only AGENTS.md is load_policy: always (capped <= 1,600 tokens). Every other .md carries machine-readable YAML frontmatter (load_policy, token_budget, depends_on, authority, read_triggers, update_triggers).
  • Explicit Exclusion Ledger (docs/00-CONTEXT-MAP.md): Records both why each active MD exists (the exact agent failure mode it prevents) and why every o