AI-assistant guidance for The-Interdependency/skill-lib.
skill-libis the canonical organization-wide source for reusable agent skills.- Other The Interdependency repos vendor repo-local copies from here.
- Edit skills here first; propagate later with the source commit SHA.
- License: MPL-2.0 (relicensed from MIT; weak/file-level copyleft — embed anywhere, changes to these files must be published).
- Entry points:
README.md,AGENTS.md,skills.json,ORG_DISTRIBUTION.md,llms.txt, each<skill>/SKILL.md. - CI workflows:
.github/workflows/hygiene.ymlguards against tracked Python bytecode,.github/workflows/ci.ymlruns the editorial/helper verification stack, and.github/workflows/consumer-drift.ymlis a scheduled/dispatch detector that runstools/check_consumer_drift.pyagainst each consumer repo (the consumer repos are public, so it uses the defaultGITHUB_TOKEN). - Validation here is editorial plus pure-stdlib helper scripts in
tools/,ratios/,llms/, and the RepoLOTO check module. tools/ai.shis the canonical Termux-side SSH/tmux launcher for thea0VM;tools/install_ai.shinstallsai.shinto the caller PATH (Termux$PREFIX/bin, otherwise~/.local/bin).- The
llms/package exists only to expose the stdlibpython -m llms.buildrunner forllms-build.
README.md # human-facing overview and skill index
AGENTS.md # agent-facing entry point
ORG_DISTRIBUTION.md # canonical-source rule, target repos, propagation rule
skills.json # machine-readable skill index
llms.txt # generated root LLM instructions from LLMS blocks
CLAUDE.md # assistant guidance
LICENSE # MPL-2.0
tools/README.md # local maintenance helper documentation
tools/*.py # pure-stdlib helper scripts
llms/ # python -m llms.build reference runner
<skill-name>/SKILL.md # required skill spec
<skill-name>/<helpers> # optional parsers, runners, examples
| Skill | Kind | Depends on | Purpose |
|---|---|---|---|
msdmd/ |
metadata-block | — | Foundational convention. Defines the comment-block syntax, the parser contract, the runner protocol, reserved field names, and the visible gap-reporting requirement. Ships reference parsers under msdmd/parsers/. Every metadata-block skill builds on it. |
doc-build/ |
metadata-block | msdmd |
Self-declaring documentation coverage. Modules declare # === DOCS === blocks; a runner verifies documentation paths/anchors and reports stale docs plus visible gaps. |
cap-build/ |
metadata-block | msdmd |
Self-declaring capability inventory. Modules declare # === CAPABILITIES === blocks; a runner builds a capability map and verifies exposed surfaces. |
deps-build/ |
metadata-block | msdmd |
Self-declaring dependency topology. Modules declare # === DEPENDENCIES === blocks; a runner builds import/call/capability graphs and reports unresolved edges, cycles, and visible gaps. |
owner-build/ |
metadata-block | msdmd, risk-boundary-build |
Self-declaring module stewardship. Modules declare # === OWNERS === blocks; a runner reports unowned modules, unresolved owners, and review coverage gaps. |
test-build/ |
metadata-block | msdmd |
Self-declaring contract evidence. Source modules declare behavior obligations in # === CONTRACTS ===; test modules declare executable witnesses in # === CHECKS ===; audit reconciles the witness list against the obligation list. |
meta-module-build/ |
metadata-block | msdmd |
Metadata-first module scaffolding. Each module declares a # === MODULE_BUILD === block (manifest: surfaces, boundaries, tests, rollout, rollback) before implementation. New module work in any org repo is expected to start here. |
risk-boundary-build/ |
metadata-block | msdmd, meta-module-build |
Runtime risk and permission boundaries. Existing modules declare # === BOUNDARIES === blocks for auth, storage, network, user-data, admin, and operational effects. |
ratios/ |
metadata-block | msdmd |
Self-declaring module composition ratios for executable source files. Each computer-covered module records loc_comments, imports_exports, and calls_definitions at its opening and closing source boundaries (not a fenced block); a valid line-1 shebang may precede opening RATIOS. The reference ratios_check.py recomputes Python values, fails on drift or misplacement, and reports visible gaps without applying Python semantics to other languages. |
manifest/ |
metadata-block | msdmd |
Living-spec generator. Derives observable repo facts from pyproject.toml + the file tree and splices them into a machine-owned marked block in CLAUDE.md, with a CI --check drift gate. |
llms-build/ |
metadata-block | msdmd |
Root LLM instruction generation. Modules or central files declare # === LLMS === blocks; python -m llms.build aggregates them into canonical root llms.txt and reports drift. |
typed-meta-frontend/ |
metadata-block | msdmd, meta-module-build, doc-build |
TypeScript self-building frontend generation from backend-owned module metadata. Modules declare # === FRONTEND_META === blocks or equivalent backend metadata; the UI renders every module living spec, exposes every editable field, preserves read-only reasons and hmmm, and tests metadata-to-field coverage. |
canon/ |
procedural | — | Canonical-source and doctrine maintenance. Helps agents distinguish source-backed canon, proposed canon, repo-local practice, and hmmm. No metadata block. |
domain-claims/ |
procedural | — | Domain-first lexical and semantic governance. Establishes the domain-qualified sense, scope, exclusions, collision result, and standing that must precede a canonical definition, conversational provenance, or structural encoding. No metadata block. |
visitor-intro/ |
procedural | — | Onboarding tour. Lets any agent give a coherent, repo-aware orientation to newcomers at any org repo without inventing org-level facts. No metadata block. |
char-compress/ |
procedural | — | Skill-lib-owned bone/flesh context compression; historical notation is not current UCNS mathematics. Carry flesh, frozen bones, transforms, and hmmm; drop only safely regenerable scaffold. Do not claim unearned theorem/status support or edcmbone metric status. |
agent-instantiation/ |
procedural | — | a0/a0ucns agent lifecycle methodology. Spawn sub-agents via the sub_agent_spawn tool → spawn executor; fork/merge PCNAEngine instances via InstanceMerge (fork/absorb/converge); compose identities per the canonical username(a0(energy)auditor) grammar; honor spawn caps + write-route gating. Canonical source is a0; a0-betatest diverged (per-user native-ZFAE) and is out of scope. Repo-specific runtime doctrine (no theorem transfer). |
a0p-instancing/ |
procedural | — | Peer for a0-betatest (a0p): agents are per-user CRUD AgentInstance + CharacterSheet, each owning a trained native ZFAE weight bank (three 157-seed cores); no sub_agent_spawn/executor/InstanceMerge — only volatile MemoryCore.spawn_sub/merge_sub. Sequence: create→distill-train→readiness gate→mode inference→sentinel/pending-override→safetensors checkpoint. Canonical source is a0-betatest. |
plain-lens/ |
procedural | — | Plain-language, multi-lens companion views of dense canonical text. Build easier on-ramps (domain/audience/role lens selectors, progressive disclosure) that never replace or talk down to the source, keep a static fallback under any dynamic layer, preserve operators/negations/quantifiers, and report an EDCM-style body-vs-footnote tension reading as an illustrative heuristic (not an edcmbone metric runtime). |
gonol-build/ |
procedural | — | UCNS gonol objects/constructors/geometry + Stack language-construction research discipline. Resolve the owning Stack workspace, preserve closure, atomic participation, occurrence identity, constitutive relations, provenance, and required replay; EDCM is measurement/evaluation only. |
ucns-option-selection/ |
procedural | — | Fail-closed scoped UCNS option selection. Freezes candidates, authority, gates, evidence, and policies; requires complete evaluation, replay, purpose-relative comparison, explicit ratification, rollback, and non-transfer. Hard-gate failures cannot be compensated by scores. |
epac-selection-display/ |
procedural | — | Evidence-bound EPAC display selection. Resolves an exact provisional source, target, receipt, and available representation; preserves status, nonclaims, sealed-comparison boundaries, and hmmm; and keeps WebMCP as a read-only handoff rather than a research-code executor. |
meta/ |
procedural | — | Meta Energy Theory axioms. Extract and preserve Energy Theory axioms from resonances among small network architectures, with formula-backed examples and overlap grids; keep Energy Theory distinct from EDCMBONE flesh/bone and FLAR implementation detail. |
the-interdependency/ |
procedural | — | Workflow protocol for The Interdependency org: code/research/GitHub maintenance, EDCMBONE transcript assembly and analysis, and mandatory usage-guidance + structure-preservation doctrine across artifacts. |
interdependent-work-graph/ |
procedural | — | Cross-repository coordination. Resolves exact participant identities, authority roles, relations, non-transfer boundaries, shared graph manifests, and validation/materialization order before selecting edit locations. Related doctrine: the-interdependency, canon. |
stack-update/ |
procedural | — | Fail-closed structural update protocol for The-Interdependency/stack. Structural changes to participants, pins, authorities, relations, workspaces, BASE records, or lifecycle standing must update all affected projections, recompute the work-graph identity, and pass the deterministic stack checker as one transaction. |
project-incubation-graduation/ |
procedural | — | Lifecycle doctrine for emergent components born inside a forge/incubator. Requires qualification before extraction, provenance-preserving repository creation, explicit implementation-authority transfer, released distribution, and successful reconsumption by the former forge before graduation is complete. |
distributed-publication/ |
procedural | — | Provenance-bearing publication from distributed source owners. Preserves exact source identities, source-local licenses and statuses, correction routing, fail-closed retrieval, explicit fallback, and publication build provenance. Loads with interdependent-work-graph. |
loop-eng/ |
procedural | — | Loop engineering doctrine for closed feedback cycles (Discover→Plan→Execute→Verify→Iterate), maker/checker subagent separation, and autonomous verify-iterate workflows integrated with a0p/AIMMH and EDCMBONE Verify stages. |
action-calibration/ |
procedural | — | Action sizing and escalation doctrine for choosing a smallest decisive experiment, maximal coherent program, prerequisite repair, or containment after preflighting scarce resources. |
repo-audit-repair/ |
procedural | — | Evidence-led repository audit and authorized repair from exact starting identity through applicable checks, classified findings, owning-layer fixes, and authoritative terminal verification. |
skill-build/ |
procedural | — | Skill authoring and compliance workflow. Provides the required question set for creating/revising skills, choosing metadata-block vs procedural shape, designing individualized skill test suites, and bringing existing skills into compliance. |
skill-usage/ |
procedural | — | Evidence-bearing local usage maturity. Counts material invocations, preserves unobserved outcomes as hmmm, and separates nominal exposure thresholds from quality-capped effective maturity. |
ssh-automation/ |
procedural | — | Fail-closed SSH automation and copy-paste delivery. Preserves verified endpoint identity, explicit authentication, local/remote shell and stdin boundaries, bounded retries, idempotent activation and rollback, and child-shell containment for bulk terminal pastes. |
vm-mcp/ |
procedural | — | Private VM MCP control-plane doctrine. Keeps SSH credentials outside the model path, starts loopback-only and non-root, proves read-only contact first, and exposes privileged actions only as named bounded capabilities. |
sql-queries/ |
procedural | — | Correct, performant SQL across major warehouse dialects (Snowflake, BigQuery, Databricks, PostgreSQL): dialect reference, CTE/window patterns, optimization, debugging checklist. Imported from anthropics/knowledge-work-plugins (Apache-2.0); see ATTRIBUTION.md. |
statistical-analysis/ |
procedural | — | Statistical methods for analyses: descriptive stats, assumption checks, hypothesis testing, outlier detection, effect sizes, and plain-language interpretation. Imported from anthropics/knowledge-work-plugins (Apache-2.0); see ATTRIBUTION.md. |
explore-data/ |
procedural | — | Dataset profiling: shape, grain, null/duplicate/quality checks, distributions, and which dimensions and metrics merit analysis. Imported from anthropics/knowledge-work-plugins (Apache-2.0); see ATTRIBUTION.md. |
validate-data/ |
procedural | — | Pre-share QA of analyses: methodology, accuracy, and bias checks; reproduce key numbers independently; attack conclusions before sign-off. Imported from anthropics/knowledge-work-plugins (Apache-2.0); see ATTRIBUTION.md. |
data-visualization/ |
procedural | — | Effective chart-building doctrine with Python (matplotlib, seaborn, plotly): chart-type selection, honest encoding, accessibility. Imported from anthropics/knowledge-work-plugins (Apache-2.0); see ATTRIBUTION.md. |
Every skill is a directory at the repo root containing at least a SKILL.md. Optional
supporting files (parsers, executors, examples) live alongside it. Repo-level helper packages may
also exist when a skill exposes a module command, as llms-build does with llms/build.py.
SKILL.md opens with YAML frontmatter:
---
name: <slug>
description: <load-bearing trigger paragraph>
---The description is the loading contract. Keep it specific. List triggers. Do not bury operative conditions in prose.
Two kinds:
- Metadata-block skills apply the msdmd convention to a named block (
DOCS,CAPABILITIES,DEPENDENCIES,OWNERS,CONTRACTS,CHECKS,MODULE_BUILD,BOUNDARIES,RATIOS,MANIFEST,LLMS,FRONTEND_META, …). They define a field schema, a thin executor that consumes parsed entries, and a runner that emits a visible gap list.test-build/is the canonical worked example;doc-build/,cap-build/,deps-build/,owner-build/,risk-boundary-build/,ratios/,manifest/,llms-build/, andtyped-meta-frontend/define adjacent applications.msdmditself is the foundation. - Procedural skills define an agent behaviour with no msdmd block. They state the doctrine
they enforce and the output shape they produce.
canon/,domain-claims/,visitor-intro/,char-compress/,agent-instantiation/,a0p-instancing/,plain-lens/,thought-lens/,gonol-build/,ucns-option-selection/,epac-selection-display/,meta/,the-interdependency/,interdependent-work-graph/,stack-update/,project-incubation-graduation/,loop-eng/,fresh-making/,action-calibration/,repo-audit-repair/,skill-build/,skill-usage/,ssh-automation/,vm-mcp/,sql-queries/,statistical-analysis/,explore-data/,validate-data/,data-visualization/are the examples.
# === <BLOCK_NAME> ===
# id: <unique_snake_case_id>
# <field>: <value>
# <field>: <value>
# === END <BLOCK_NAME> ===- The comment marker is whatever is idiomatic for the file's language; the
reference registry covers
#,//,--,%,;,!,', and*>line-comment families. Fence text and field structure are identical across languages; ambiguous extensions are not guessed. BLOCK_NAMEis uppercase snake case. Every entry begins withid:(unique within the block, stable across refactors). Field lines are indented one level beneath the id.- A file may contain multiple blocks of the same or different types; parsers concatenate entries.
- See
msdmd/SKILL.mdfor the authoritative spec, reserved field names, and runner protocol.
| File | Public API | Notes |
|---|---|---|
universal.py |
parse_text(text, block_name, marker="#"), parse_file(path, block_name), walk_tree(root, block_name, *, skip=None, extensions=None), marker_for(path), COMMENT_MARKERS |
Pure Python stdlib. walk_tree returns (annotated, untested) so coverage gaps stay observable. |
universal.ts |
parseText, parseFile, walkTree, markerFor, COMMENT_MARKERS, Entry, WalkOptions |
Pure Node stdlib (node:fs, node:path). TypeScript counterpart; its extension registry is regression-checked against Python. |
__init__.py |
— | Package marker / docstring. |
msdmd/collection.ts defines the TypeScript shapes for generated repo-level
<reponame>_msdmd.ts collection points. msdmd/collect.py is a stdlib
generator prototype that emits that shape from parsed module-local blocks.
msdmd/visualize.py renders a minimal Mermaid graph from JSON or generated
TypeScript collection points.
Both parsers commit to zero non-stdlib dependencies and auto-detect the comment marker by file extension. They are designed to be copied verbatim into any consuming project. A parser is a pure function over file text: it returns all entries from all matching blocks, does not interpret field semantics (that is the executor's job), and returns an empty list for files with no block of the requested type.
Flesh to preserve:
- comment marker is language-idiomatic;
- fence text and field structure are identical across languages;
BLOCK_NAMEis uppercase snake case;- every entry begins with stable
id:; - field lines are indented beneath the id;
- files may contain multiple blocks;
- parsers concatenate matching entries;
- unknown fields stay visible as
hmmmwhere the skill requires it.
Reference parsers:
msdmd/parsers/universal.py # Python stdlib
msdmd/parsers/universal.ts # Node stdlib
Parser contract:
- pure functions over file text;
- no non-stdlib dependencies;
- auto-detect comment marker by extension;
- return entries, not interpreted semantics;
- return empty list when no matching block exists;
- runners must report gap lists visibly.
llms-build/SKILL.md defines the LLMS metadata block. The reference command is:
python -m llms.build --root . --out llms.txt
python -m llms.build --root . --out llms.txt --apply
python -m llms.build --root . --out llms.txt --checkThe runner lives in llms/build.py. It parses LLMS blocks, ignores Markdown fenced-code examples,
generates the canonical root llms.txt, and reports drift in --check mode. Edit source LLMS
blocks first; do not hand-edit llms.txt as independent doctrine.
python -m unittest discover -s tests
bash tools/check_gonol_authority.sh
python tools/check_skill_lib_drift.py --warnings-fail
python tools/check_skill_compliance.py --warnings-fail
python ratios/ratios_check.py --strict
python -m llms.build --root . --out llms.txt --check
python tests/test_repo_loto.py --audit
python tests/test_repo_loto.py
python tools/char_compress_check.py
python tools/propagate_skills.py ../target-repo # dry-run
python tools/propagate_skills.py ../target-repo --apply # local copy
python tools/check_consumer_drift.py ../target-repo --sha <sha> # detect vendored-copy driftTool boundaries:
There is a small stdlib Python editorial test suite. There is still no package.json,
pyproject.toml, or Makefile. Do not invent commands beyond the checks that exist here.
- Run
python -m unittest discover -s teststo validate skill registration, skills.json semantics, per-skill spec coverage, SKILL.md frontmatter, README index coverage, collection-point schema/generator/visualizer coverage, universal parser behavior, llms-build behavior, and parser ratio bookends. tools/ai.shis the canonical Termux-side controller for the remotea0tmux coding-agent session;tools/install_ai.shinstallsai.shinto caller PATH, preferring Termux$PREFIX/bin.- The parsers are reference implementations; the test suite covers core parser behavior and library integration, not every consuming-runner contract.
check_gonol_authority.shfails closed when active skill-lib surfaces restore EDCM construction ownership.check_skill_lib_drift.pychecks editorial agreement among skill directories,skills.json,README.md,ORG_DISTRIBUTION.md,AGENTS.md,CLAUDE.md, and generatedllms.txt.check_skill_compliance.pychecks baselineskill-buildinvariants for eachSKILL.md.ratios_check.py --strictverifies opening/closing ratios seals for Python files, including the shebang-safe opening exception; other parser-supported languages remain visible outside the Python computer scope.tests/test_repo_loto.py --auditreconciles RepoLOTO sourceCONTRACTSagainst testCHECKS;tests/test_repo_loto.pyexecutes those checks.char_compress_check.pyruns preservation fixtures fromchar-compress/fixtures.json; it is not the full Unit Circle Number System compression engine.propagate_skills.pycopies canonical skill directories into a checked-out target repo, and carries any shareddoctrine/<file>docs the propagated skills link to into.agents/skills/doctrine/; it does not commit, push, open pull requests, or contact GitHub.check_consumer_drift.pyis the read-only counterpart: given a checked-out consumer repo it auto-detects the vendored skill subset and reports canonical-file drift, stalemanifest/generate.py.sha256pins, missing/stale referenceddoctrine/<file>docs, and (with--sha) a missing README source-commit citation. The scheduledconsumer-drift.ymlworkflow runs it against every consumer repo; the consumer repos are public, so it uses the defaultGITHUB_TOKEN.- Runner sections in application SKILLs are contracts or patterns for consuming repos to implement against their own source trees, not scripts that live or run here unless the skill directory includes a helper file or package module.
- Validation here is editorial: keep
SKILL.mdfrontmatter accurate, keepskills.jsonand the README table in sync with the directories present, keep generated files in sync with declarations, and keep the parsers/runners stdlib-only.
- Canonical install path inside consuming repos:
.agents/skills/<skill-name>/. - Other paths may work only if the harness walks them.
- Copy skill directories verbatim.
- Add or preserve a target
.agents/skills/README.mdciting this repo and source commit SHA. - Repo-local copies are never the source of truth.
- Target repos are listed in
ORG_DISTRIBUTION.md.
- Edit here first.
- Keep
skills.json,README.md,ORG_DISTRIBUTION.md,AGENTS.md,CLAUDE.md, and generatedllms.txtsynchronized when adding, renaming, or removing a skill. - Preserve load-bearing descriptions.
- Mark unknowns as
hmmm; do not guess. - New module work in consuming repos should start with
MODULE_BUILD. - Source modules own
CONTRACTS; test modules ownCHECKS; do not put testcall:topology in source contracts. - Do not fork parser dialects; propose an
msdmdextension instead. - Do not invent undeclared package/build commands for this repo.
- Apply
char-compresswhen compressing repo context: carry flesh, frozen bones, transforms, and hmmm; drop only safely regenerable scaffold. - Treat
char-compressas a skill-lib-owned compression procedure, but do not claim unearned theorem/status support or edcmbone metric status. - Before promoting a word into canon, a theorem term, ontology primitive, schema field, encoding label, or cross-domain mapping, apply
domain-claims: establish the domain-qualified sense and resolve collisions before attaching provenance; then applycanonto assess authority. - Before constructing, reviewing, replaying, or extending language-gonol research, apply
gonol-build: resolve current UCNS gonol-object/constructor/geometry authority and the exact owning Stack research workspace; EDCM is measurement/evaluation only. Preserve closure and atomic participation, require declared constitutive relations, and keep incomplete geometry visible ashmmm. - Before selecting among UCNS options, apply
ucns-option-selection: freeze the scoped decision boundary, enforce noncompensable eligibility and evidence gates, require explicit ratification, and preserve non-transfer, rollback, negative evidence, andhmmm. - Before selecting and displaying an EPAC artifact, apply
epac-selection-display: pin the provisional source, exact target, receipt, and available renderer; preserve status, nonclaims, sealed comparison, andhmmm; and keep WebMCP read-only. - Before mutating
The-Interdependency/stackstructure, applystack-updatewithinterdependent-work-graph; update every affected authority/provenance projection, remove superseded claims, recompute the work-graph digest, and require the deterministic stack checker before merge. - For LLM instructions, edit
LLMSsource blocks and regeneratellms.txtwithpython -m llms.build --root . --out llms.txt --apply. - For SSH automation and large terminal pastes containing SSH, apply
ssh-automation: verify endpoint identity and host trust, preserve local and remote interpreter boundaries, make retries and rollback explicit, and contain option/trap/exit effects inside a child shell. - When an emergent component is incubated inside a forge and may become independently authoritative, apply
project-incubation-graduation: qualify it before extraction, preserve provenance, publish from the new authority, require downstream reconsumption, then sever the incubated implementation path before declaring graduation.
- propagation still requires review, commit, and pull request work in target repos
char_compress_check.pyis deterministic fixture support, not the full Unit Circle Number System compression engine- provider-specific SSH wrappers must be rechecked against their current evaluated configuration rather than assumed to preserve OpenSSH defaults