byan-mantra-audit
Semantic embodiment audit of a BYAN persona against its applicable mantras. Out-of-band, LLM-judged, kept out of the commit gate.
- License 许可
- MIT
- 最近更新
- 2026-09-14
- Stars
- ★ 8
- Forks
- 0
01 前言 Front Matter
- name
- byan-mantra-audit
- description
- Semantic embodiment audit of a BYAN persona against its applicable mantras. Out-of-band, LLM-judged, kept out of the commit gate.
03 SKILL.md 正文
BYAN Mantra Embodiment Audit (N2)
This skill runs the deep, semantic half of mantra validation, the layer above the deterministic anti-stub floor enforced at commit time. The pre-commit gate asks "does this persona contain its domain vocabulary"; this skill asks "does this persona genuinely EMBODY each applicable mantra", judged by you (the LLM), not by keyword presence. It runs on demand, outside the commit path.
When to run
- Auditing a persona's quality beyond the deterministic anti-stub floor.
- After authoring or editing an agent, to check real embodiment of its mantras.
- As a CI / review step, out-of-band. Not as a commit gate (the judgment is semantic and non-deterministic, so it must stay out of the commit path).
Precondition (runtime check, do this FIRST)
This audit needs the BYAN v2 runtime (src/byan-v2/generation/mantra-audit.js). It
runs from the BYAN repository; a generated/npm-installed BYAN project does not ship
that runtime yet. Check before running anything:
test -f src/byan-v2/generation/mantra-audit.js && echo OK || echo "N2 runtime absent"
If it prints N2 runtime absent, STOP and tell the user plainly: the embodiment
audit runs from the BYAN repository and is not yet delivered to generated projects.
Do NOT run the node commands below, they would fail with MODULE_NOT_FOUND.
Protocol (hybrid: deterministic CLI, semantic judgment)
-
PREPARE (deterministic). Build the judgment packet for the target persona:
node src/byan-v2/generation/mantra-audit.js prepare <path/to/agent.md>It resolves the persona's scope (scope-resolver), lists only the applicable mantras, and emits a rubric plus the persona text. Add
--jsonfor the raw packet. -
JUDGE (you, this turn). For each mantra in the packet decide
embodied,partial, orabsent. Judge embodiment, not vocabulary: a mantra is embodied when the persona's role, instructions, and red-lines enact the principle, even if the exact keyword is absent. Write the verdicts to a JSON file:{ "<mantraId>": "embodied" | "partial" | "absent", ... }. -
SCORE (deterministic):
node src/byan-v2/generation/mantra-audit.js score <path/to/agent.md> <verdicts.json>It returns the embodiment score and the embodied / partial / absent / unjudged breakdown.
-
REPORT. Present the embodiment score, the absent mantras, and concrete suggestions to raise embodiment, what the persona should ENACT, not which keyword to insert.
Boundaries
- Advisory quality insight, not a gate. It does not block commits.
- The deterministic floor (pre-commit gate, Stop hook) and this semantic audit are complementary: the floor catches stubs cheaply; this measures real quality deeply.
- Keep judgments honest: default to
partialorabsentwhen the persona only alludes to a mantra without enacting it.
04 同仓库更多 Skills
byan
BYAN local project skill. Use when working in the BYAN repo, invoking BYAN agents/workflows/commands, enforcing BYAN Strict Mode, or needing the portable BYAN filesystem map.
byan-yanstaller
Yanstaller - Multi-Platform BYAN Installer Agent Role: Installation Expert + Platform Detection Specialist + Zero-Config Automation. Invoke when user mentions : AUTO, DETECT, HELP, EXIT.
byan-tea-tea
tea agent
byan-suitability
Advisory model-suitability ledger — record adversarial verdicts, read learned ratings, human decides downgrades
byan-strict
Enforcement mode that prevents scope downgrade and forces the agent to self-verify its work against the originally locked request before delivering. Invoke when the user asks for a production deliverable, a complete app, a filled contract from a template, or uses any activation keyword (`prod`, `production`, `client`, `contrat`, `template officiel`, `livrable`, `deliverable`, `mise en production`, `release`). Enforces scope-lock, N>=3 self-verify passes, and a 95% confidence floor on hard claims.
byan-skeptic
Scientific Claim Challenger and Epistemic Guard