# @miadi/foundations

Read the research behind Miadi's design decisions: every **foundation packet**, from a
terminal or from code, plus the `deep-research-foundations` method that produces them.

In the Miadi stack, a foundation packet is part of the criteria work is held to. It names the
academic and engineering fields a decision stands on, with a ledger of sources carrying URLs,
DOIs and a verification status, so a reader can see why a structure was chosen and check the
sources. The packets are bundled into this package when it is published, with zero runtime
dependencies.

## Install

```bash
npm i @miadi/foundations
# or, one-off browse:
npx -p @miadi/foundations miadi-foundations list
```

## CLI

```bash
miadi-foundations list                 # packets + the fields they ground
miadi-foundations show <slug> [file]   # print a packet file (default README.md)
miadi-foundations skills               # bundled skills
miadi-foundations skill <slug>         # print a skill's SKILL.md
miadi-foundations manifest             # raw bundle manifest
```

## API

```js
import {
  listFoundations, getFoundation, readFoundation, readFoundationFile,
  listSkills, getSkill, loadManifest,
} from "@miadi/foundations";

listFoundations();
// [{ slug, files, fields, generated, hasLedger }, ...]

readFoundationFile("software-supply-chain-and-release-engineering", "synthesis.md");
// "# Synthesis — ..."

getSkill("deep-research-foundations"); // the SKILL.md text
```

## What a packet is

A `foundations/<topic>/` folder (skill: `deep-research-foundations`) with a
`context-layer.md`, `intent-understanding.md`, `synthesis.md`, per-field files, and a
`source-ledger.yaml` carrying sources with URLs/DOIs and a verification status. Packets
answer *"why this structure?"* to academic, engineering, and narrative audiences at once.

## Scope

Read access and bundling only.
