Skip to content
Skills Library
Management & product · Analysis

aep-human-alignment

/aep-human-alignment

Renders product-context.yaml into where we stand, what waits on a human, and what drifted. Use for pulse, status check, or a project brief; not planning.

Licence
MIT
Last repository change
18.09.2026

Assessment and security

95/ 100Class: good
Format20 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
25
Scripts
10
HTML comments
0
URLs in SKILL.md
1
Deprecation

No signals detected. Repository changed on 18.09.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • 10 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: scripts/arch-rules.mjs, scripts/assemble.mjs, scripts/audit.mjs, scripts/census.mjs, scripts/coherence.mjs, scripts/derive.mjs, scripts/json-schema.mjs, scripts/pulse.mjs, scripts/receipt-consumer.mjs, scripts/scan-workspace.mjs

What it does and when to use it

Renders product-context.yaml into where we stand, what waits on a human, and what drifted. Use for pulse, status check, or a project brief; not planning.

Original author description

Renders product-context.yaml into where we stand, what waits on a human, and what drifted. Use for pulse, status check, or a project brief; not planning.

How it works

  1. The contract in one paragraph
  2. Three emissions, three clocks
  3. Step 0 — choose the emission (do this first)
  4. Emission 3 · the brief (unproven)
  5. What the framework specs own
  6. Boundaries
  7. Layout notes
Original SKILL.md headings · 239 lines, 1,523 words
SKILL.md preview
---
name: aep-human-alignment
description: >-
  Renders product-context.yaml into where we stand, what waits on a human,
  and what drifted. Use for pulse, status check, or a project brief; not
  planning.
---

# Human Alignment

Turn `product-context.yaml` into **one self-contained HTML page** that answers the
three questions a returning human actually has: _where are we, what needs me,
where did reality drift from intent?_

Numbers are derived by code. Prose is written by you. Both are labeled, and an
independent audit refuses to ship a page that blurs the line.

Rationale and the decisions behind every rule:
[`docs/decisions/human-alignment.md`](https://github.com/memorysaver/agentic-engineering-patterns/blob/main/docs/decisions/human-alignment.md).

## The contract in one paragraph

Every read is a **first read**. Each surfaced item is a plain-language sentence
first — what happened, to what, why the reader cares — with the system
identifier demoted to a small provenance anchor beneath it. Facts are unchipped;
only non-facts carry a tense chip. **You never author a number.**

## Three emissions, three clocks

The facts this surface rests on do not share a clock (decision doc D10). The
attention set survives ~110 hours; story-status counts survive ~1. Fusing them
into one artifact means re-authoring the slow prose at the fast plane's rate,
and every re-authoring is a fresh chance to write something wrong. So there are
three outputs, not one:

| Emission                                           | Clock                         | Form                                              |
| -------------------------------------------------- | ----------------------------- | ------------------------------------------------- |
| **1 · the fact plane** (`derive.mjs` → facts JSON) | every plan-file commit        | data, no prose                                    |
| **2 · the pulse** (`pulse.mjs`)                    | whenever you ask              | events, computed at read time, never written down |
| **3 · the orientation document** (the brief)       | per layer, not per invocation | careful prose                                     |

Emission 2 is the one to reach for when the question is _what happened since I
last looked_. It asserts nothing, so it cannot assert wrongly:

```bash
node scripts/pulse.mjs --repo . [--since <commit>] [--json]
```

It prints what you are owed and for how long, the transitions since your cursor,
what needs you (dependency-ordered), and open work that has stopped moving. The
cursor defaults to the last orientation document's commit.

Emission 3 — the rest of this file — is worth its cost only at its own clock,
not per invocation.

## Step 0 — choose the emission (do this first)

**Default to the pulse.** It answers the question people actually arrive with,
costs seconds, and cannot state anything wrongly:

```bash
node scripts/pulse.mjs --repo . [--since <commit>]
```

Stop there unless one of these is true:

| Ask                                                                   | Emission                                             |
| --------------------------------------------------------------------- | ---------------------------------------------------- |
| "what changed / what needs me / where are we"                         | **2 · pulse** — stop after this                      |
| a script or another skill needs the numbers                           | **1 · fact plane** — run Derive below, stop after it |
| "produce a document someone can be onboarded from", stated explicitly | **3 · the brief** — read the warning first           |

**Before generating a brief, say this to the person and get a yes:** its prose
failed two independent evaluations, the audit passing does not mean its claims
are verified, and its output needs their review. A vague request is a pulse, not
a brief.

The phases below are **emission 3 only**. Emissions 1 and 2 are the two commands
above.

---

## Emission 3 · the brief (unproven)

Each phase ends in a checkable postcondition, and the next phase starts once the
previous one's holds.

### 0 · Preflight

`product-context.yaml` must exist (else stop and point to `/aep-envision`). Read
`docs/human-alignment/manifest.json` for the delta baseline.

→ _baseline commit known, or first run declared._

### 1 · Derive

```bash
node scripts/census.mjs --context product-context.yaml   # what am I blind to?
node scripts/derive.mjs --context product-context.yaml --repo . \
  --out docs/human-alignment/facts.json [--code-graph docs/human-alignment/code-graph.json]
```

The facts JSON is the **only legal source of numbers**. It validates against
`scripts/facts.schema.json` — via the shared validator in `scripts/json-schema.mjs` —
or the run stops. Story and gate states come from
`references/aep-vocabulary.schema.json`, the corpus-wide vocabulary: a state this
brief has no stage for stops the derive rather than rendering as stage 1.

The census classifies every populated path in the plan file against
`scripts/source-census.json` as `derived` / `ignored` (**with a reason**) /
`unhandled`. An unhandled path is a field this brief cannot see, and an unseen
field is where a content defect comes from. Add a rule before proceeding.

→ _census reports zero unhandled paths; facts JSON exists and validates._

### 1.5 · Scan (architecture)

```bash
node scripts/scan-workspace.mjs --repo . --out docs/human-alignment/code-graph.json
node scripts/arch-rules.mjs --code-graph docs/human-alignment/code-graph.json \
  --context product-context.yaml --out-dir <build-dir>
for tier in overview packages declared; do
  node scripts/receipt-consumer.mjs --type architecture \
    --in <build-dir>/architecture-$tier.architecture.json --out <build-dir>/architecture-$tier.html
done
node scripts/receipt-consumer.mjs --type workflow  --in assets/aep-loop.workflow.json      --out <build-dir>/aep-loop.html
node scripts/receipt-consumer.mjs --type lifecycle --in assets/story-states.lifecycle.json --out <build-dir>/story-states.html
```

Re-run `derive.mjs` with `--code-graph` afterwards so the declared-vs-actual
drift fact is included. No workspace manifest, or no archify CLI (exit 3)? The
architecture view **degrades and says so on the page** — it never blocks.

→ _artifacts delivered `code-verified`, or the view is marked degraded._

### 2 · Author

Copy `assets/template.html` and fill its `{{SLOTS}}`. **Read the template's
contract comment before writing a single section** — it is the only source of
CSS class names and of the `data-fact` binding convention.

The authoring rules are in [`references/guideline.md`](references/guideline.md).
The five that fail an audit fastest:

1. **Answer first** — every section opens with one plain sentence that _is_ the
   section's conclusion.
2. **Translate** — re-author every story title and changelog entry as a
   consequence sentence bound to its id in the anchor.
3. **No naked numbers, in digits or in words.** Every number is `data-fact`.
   `five`, `eight`, `three quarters` are numbers too — a word spelling a count
   is still a claim about a count.
4. **Every assertive block cites what it rests on** — `data-claims="<paths>"`,
   or `data-authored` if it is narrative that can cite nothing. A claim the
   facts do not carry is not a sentence to write more carefully; it is a fact to
   derive first.
5. **Fold the queue** — backlog collapses to one sentence per layer, full list
   behind a disclosure.
6. **Never chip a fact** — an unchipped page is a page of facts; diluting that
   destroys the only trust gauge the reader has.

→ _every section rendered or stamped; no `{{SLOT}}` left._

### 3 · Audit

```bash
node scripts/audit.mjs --html <authored.html> --facts docs/human-alignment/facts.json \
  --template assets/template.html
```

After Phase 4, audit the **delivered** file too — Phase 3 runs before assembly
injects the diagrams, and nothing else re-checks afterwards:

```bash
node scripts/audit.mjs --html <delivered.html> --facts <facts.json> \
  --template assets/template.html --delivered
```

`--delivered` excludes embedded artifact payloads from the claim rules (they are
archify's prose, validated separately) while still checking that the diagrams
and the facts describe the same commit.

Failures are structured receipts (`code` · `subject` · `evidence` ·
`supportedFixes`). Apply a **listed** fix and re-run, at most **twice** — a receipt with no listed
fix, and a third failure, are both reported rather than retried.
Then walk the judgment checks in [`references/checklist.md`](references/checklist.md).

→ _audit passes; judgment checks walked._

### 4 · Deliver

```bash
node scripts/assemble.mjs --authored <authored.html> --facts docs/human-alignment/facts.json \
  --artifacts <build-dir> --out-dir docs/human-alignment --keep 3
```

Run it **in the output directory** — the script owns every move a brief makes.
Removing one outside it discards the delta baseline, and the next run then reports
itself as the first. `assemble.mjs` refuses to run when the ledger names a brief
that is no longer present, and when the facts and the code graph disagree about
which commit they describe.

Writes `brief-<date>T<time>Z-<shorthash>.html`, updates `manifest.json`
(appending the prior record to `history[]`), and prunes every brief beyond the
newest three. Report the path and the delta summary in conversation — the owner
opens the file.

→ _new file exists; its name's hash equals HEAD; ≤ 3 briefs remain._

## What the framework specs own

Two derivations are **framework vocabulary**, not skill-private logic. Do not
re-invent them here:

- [`references/attention-set.md`](references/attention-set.md) — what needs a
  human, its priority order, and the per-predicate schema-tolerance rule.
- [`references/drift-facts.md`](references/drift-facts.md) — the five drift
  derivations. Hand-authored drift is banned: when nothing derives, the row is
  silent, not fabricated.

Control-plane defects — a gate that no longer describes its work, a roll-up that
disagrees with the record, a module used but never declared — are **not detected
here** (D11). They want an action, so they live in `scripts/coherence.mjs`,
shared with `/aep-validate`, which blocks on them. This skill renders what that
detector returns.

`derive.mjs` implements both. If a predicate's fields are absent, it is skipped
**and recorded** — an empty attention set is only trustworthy when the skip list
is empty too, and the page must say which it is.

## Boundaries

- **Gates**: only `passed` yields an unchipped capability. A `scripted_passed`
  gate may appear **only** under an `EXP` chip naming the acceptance run that
  would settle it. Anything lower does not reach the product band.
- **Language**: one file per run in the owner's language (an invocation
  parameter, defaulting to the repo's working language). System identifiers stay
  untranslated in anchors.
- **Not this skill**: planning (`/aep-envision`), decomposition (`/aep-map`),
  design theory (`/aep-design-lens`).

## Layout notes

Presentation bounds, the glance gate, and the degrade ladder live in
[`references/presentation.md`](references/presentation.md). The field map from
YAML path to fact is in [`references/derivation.md`](references/derivation.md).
Files in this package (25)
  • SKILL.md 11 KB
  • assets/aep-loop.workflow.json 2 KB
  • assets/story-states.lifecycle.json 3 KB
  • assets/template.html 31 KB
  • references/.aep-generated 1 KB
  • references/aep-vocabulary.schema.json 12 KB
  • references/attention-set.md 5 KB
  • references/checklist.md 3 KB
  • references/derivation.md 4 KB
  • references/drift-facts.md 5 KB
  • references/guideline.md 5 KB
  • references/presentation.md 4 KB
  • scripts/.aep-generated 1 KB
  • scripts/arch-rules.mjs 19 KB
  • scripts/assemble.mjs 6 KB
  • scripts/audit.mjs 15 KB
  • scripts/census.mjs 6 KB
  • scripts/coherence.mjs 8 KB
  • scripts/derive.mjs 36 KB
  • scripts/facts.schema.json 23 KB
  • scripts/json-schema.mjs 4 KB
  • scripts/pulse.mjs 9 KB
  • scripts/receipt-consumer.mjs 11 KB
  • scripts/scan-workspace.mjs 6 KB
  • scripts/source-census.json 17 KB

Versions

The database has no other skills named aep-human-alignment.

Database snapshot: 13.11.2026 · package version b8a45fdd8ecd (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 95aep-dispatch
    Picks one ready story and hands it to /aep-design or /aep-launch. Use for "what's next" or "dispatch"; running continuously is /aep-autopilot.
  • 95aep-calibrate
    Turns a human's subjective judgment into criteria agents can apply. Use for a works-vs-right gap, a .5 layer, or "calibrate" — not a usability audit.
  • 100codex-project-pulse
    Use when asking project status, next priority, sprint health, blockers, deadlines, risk register, or daily brief generation.
  • 82status
    Show one table of what waits for the maintainer and what is stuck - board items, their pull requests and CI, the slots and what their agents do, stale states flagged. Read-only. Use when asked for the status, what is waiting, what is stuck, or where things stand.
  • 100bmad-product-brief
    Create, update, or validate a product brief. Use when the user wants help producing, editing, or validating a brief
  • 85brief
    Write a product brief and its task list when the user requests a product specification. Never implement it.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.