Renders product-context.yaml into an HTML status page showing current state, human-blocked items, and drift. Use for project pulse checks.
Ships in human-alignment. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
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.
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.
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:
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.
Default to the pulse. It answers the question people actually arrive with, costs seconds, and cannot state anything wrongly:
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.
Each phase ends in a checkable postcondition, and the next phase starts once the previous one's holds.
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.
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.
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.
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.
The five that fail an audit fastest:
data-fact.
five, eight, three quarters are numbers too — a word spelling a count
is still a claim about a count.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.→ every section rendered or stamped; no {{SLOT}} left.
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:
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.
→ audit passes; judgment checks walked.
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.
Two derivations are framework vocabulary, not skill-private logic. Do not re-invent them here:
references/attention-set.md — what needs a
human, its priority order, and the per-predicate schema-tolerance rule.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.
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./aep-envision), decomposition (/aep-map),
design theory (/aep-design-lens).Presentation bounds, the glance gate, and the degrade ladder live in
references/presentation.md. The field map from
YAML path to fact is in references/derivation.md.
assets/aep-loop.workflow.json (opens in a new tab)assets/story-states.lifecycle.json (opens in a new tab)assets/template.html (opens in a new tab)references/aep-vocabulary.schema.json (opens in a new tab)references/attention-set.md (opens in a new tab)references/checklist.md (opens in a new tab)references/derivation.md (opens in a new tab)references/drift-facts.md (opens in a new tab)references/guideline.md (opens in a new tab)references/presentation.md (opens in a new tab)scripts/arch-rules.mjs (opens in a new tab)scripts/assemble.mjs (opens in a new tab)scripts/audit.mjs (opens in a new tab)scripts/census.mjs (opens in a new tab)scripts/coherence.mjs (opens in a new tab)scripts/derive.mjs (opens in a new tab)scripts/facts.schema.json (opens in a new tab)scripts/json-schema.mjs (opens in a new tab)scripts/pulse.mjs (opens in a new tab)scripts/receipt-consumer.mjs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
/human-alignment:aep-human-alignmentfrom human-alignment
npx claudepluginhub memorysaver/agentic-engineering-patterns --plugin human-alignmentOther plugins' skills for the same job