mariyaholic

Uika

Uika is a command-line tool for coding agents. It makes the instruction files, skills and session hand-offs in your repositories from one source. It then checks that the files do not change from that source. Version 0.1.1 is published on npm.

Status
0.1.1 preview, published on npm
Package
@mariyaholic/uika, command uika
Runtime
Node.js 22 or later, no npm dependencies
Source
mariyaholic/uika-public, commit 3a1fdc8
License
MIT
Note

The package name is scoped. npm refuses the plain name uika because it is too close to other packages. Install @mariyaholic/uika; the command you run is still uika.

Concepts

Estate
The directory that holds your configuration: estate.json, your rules file and your skills. Uika finds it from --root, then from UIKA_ESTATE_HOME, then from the current directory.
Canonical pair
Two sources are canonical: estate.json (the machine manifest: posture, harnesses, targets, registries) and the estate lawbook. Everything agent-facing downstream is generated from these two.
Law block
A marked section that Uika writes into the AGENTS.md file of a repository. It has a SHA-256 fingerprint. Do not edit the text between the markers.
Skill
A folder with a SKILL.md file. The source has 40 skills.
Hand-off
A six-line entry in WORKSTACK.md that records what a session did and what to do next.
Note

Configuration files keep the names of environment variables only. They do not keep the values of keys or tokens. For example, the manifest contains secretEnv: "GITHUB_MCP_TOKEN", not the token value.

Why an estate layer

Agent harnesses such as Claude Code, Codex, OpenCode, Cline, Gemini CLI, DSH and Hermes run across many repositories. Without an estate layer, each one drifts. Hand-maintained AGENTS.md files go stale. Instructions get pasted between repositories. A skill exists in one harness home but not in another, and nothing tells a session what changed since the last one.

Uika makes the agent-facing layer generated, versioned, fingerprinted and drift-audited instead of hand-copied. The flow is:

estate.json + AGENTS.md (canonical, hand-written)
        │  uika adopt / docs render / deploy
        ▼
law blocks (uika:law:begin … sha256 fingerprint) in every managed repo
skill placement into each harness's skill home
freshness scan + WORKSTACK.md handoff protocol at session start/end

Uika writes the law block in a marked, versioned block:

<!-- uika:law:begin -->
## Estate law (generated — do not edit inside the markers)
...
<!-- uika:generated from estate.json; edit the source, not this file -->
<!-- uika:docs v1 · sha256:54b31598afc2 -->
<!-- uika:law:end -->

uika docs check audits drift. uika lint warns when an always-loaded file passes its budget (200 lines or 32 KiB per harness cap), or when a block goes stale.

Install Uika

  1. Install Node.js 22 or later.
  2. Install the package:
    npm install -g @mariyaholic/uika
  3. Run the machine check:
    uika check
    The check shows runtimes, agent home folders and disk space.

To try Uika once without an install, run npx @mariyaholic/uika check. To update, run npm install -g @mariyaholic/uika@latest.

Install from source

  1. Clone the source repository:
    git clone https://github.com/mariyaholic/uika-public.git
    cd uika-public
  2. Run the machine check:
    node bin/uika.mjs check

To put the source checkout on your PATH, run npm install -g . inside the clone, or npm install -g github:mariyaholic/uika-public from anywhere. The source install is newer than the npm release.

Choose the estate root

Uika runs against an estate directory. The order is: --root <dir>, then UIKA_ESTATE_HOME, then the current directory.

# A: the tool lives inside the estate (monorepo pattern): the checkout IS the estate root
uika lint

# B: the CLI against a separate estate directory (public tool / private estate)
UIKA_ESTATE_HOME=~/estate uika docs version
# or: uika docs version --root ~/estate

The tool carries zero personal data. Your estate is your own directory: your registries, targets and archives. The source holds synthetic starting points in examples/.

Check what you need

Git is needed only by some commands:

CommandGit
deploy status, deploy install, deploy uninstall, deploy auto …, deploy hook-runRequired. They read commits, install hooks and set init.templateDir.
deploy targets, deploy adopt, deploy forgetNot used
findOptional. It uses git ls-files in Git roots and walks the tree otherwise.
lintOptional. The branch-name check is skipped outside a Git repository.
docs checkOptional. Git tells tracked from untracked link targets.
manuscriptus next --scan-refsOptional. It reads ADR numbers from other branches.
checkOptional. It probes for Git and reports its version, or that it is missing.
All other commandsNot used

Two learning commands use the gh command-line tool for their GitHub options: uika encore push, uika encore pull-github and uika aurora propagate --github. The rest of encore and aurora works on local files only.

Make an estate

  1. Make a new estate:
    uika init my-estate --apply
  2. Check the new estate:
    cd my-estate
    uika lint
  3. Copy the skills that you need from the skills/ folder of the source into my-estate/skills/. The init command does not copy skills.
  4. Validate the skills:
    uika skills validate --strict

The bootstrap creates an estate scaffold. Its ledger starts unclaimed, and it does not copy the bundled skills into your estate. Read the packaged skills/ folder, then choose the skills to copy into your estate's skills/ directory. Record your real harness handoff in WORKSTACK.md before you treat a session as complete.

For example, this is the small operating set for a new estate:

node -e "const fs = require('node:fs'); for (const name of ['freshness-scan', 'handoff-protocol', 'principle-prove-it-works', 'wrap-checklist']) fs.cpSync('skills/' + name, 'my-estate/skills/' + name, {recursive: true, force: false, errorOnExist: true});"
uika skills validate --root my-estate --strict

The copy refuses existing destinations, so local skill edits are preserved. Strict validation fails if no skills were discovered. Ordinary validation reports the empty library explicitly.

Write changes

Caution

A command that writes files does a dry run first. It writes only when you add --apply. Read the dry-run output before you add --apply.

Two commands are different:

If you use --apply and --dry-run together, the command stops with an error before it does anything.

Commands that write files (video sheet|frame|structure --out, figure render, eval run) are also dry runs until you pass --apply.

Keep a session honest

Uika defines a session protocol, not folklore:

  1. At the start, run a freshness scan. It lists files by modification time, newest first. Ask the estate if the files matter before you explore further.
  2. Read WORKSTACK.md in the repository root, if it is present.
  3. At the end, run the wrap checklist. It runs the checks, updates the ledger and stops.
  4. Record the handoff in WORKSTACK.md as a six-line entry: from, to, done, next, files, verify, blockers.

uika session check enforces this protocol.

Note

session check --stop records a one-byte, once-per-session sentinel. It goes inside an existing .git/ directory, or the OS temp directory. A Stop hook then blocks at most once per session.

Commands

CommandFunctionGit
initMakes a new estate. Flags: [dir], --name n, --apply.Not used
checkShows runtimes, agent home folders and disk space.Optional
lintChecks always-loaded file lines, law-block changes and skill hygiene. Flag: --strict.Optional
syncCopies estate configuration into a clean repository. Flags: --force, --apply.Not used
skillsvalidate checks the skill folders. place copies them into agent skill homes. Flags: --strict, --apply.Not used
auditReports variant-suffixed script clusters: audit [repo].Not used
find / whereFinds files and projects by project and modification time, and resolves project nicknames.Optional
path / layoutShows where a file goes in a repository of the estate.Not used
session checkChecks freshness, the hand-off and the wrap gate.Not used
adoptWrites the law block into a repository. Flags: --apply, --dry-run.Not used
deployCommit-triggered distribution: status, targets, adopt, forget, install, uninstall, auto, hook-run.Required
docsChecks, renders, inits, migrates and versions the Markdown files.Optional
homestatus and regen: the harness home-law files, for example ~/.codex/AGENTS.md or ~/.hermes.md.Not used
videols, qa, sheet, frame, structure, diff, prompt lint: find, check, sample and profile rendered films; lint a video prompt pack.Not used
figurecheck, render, ls, theme: deterministic SVG and HTML figures from *.figure.json specs.Not used
refls, show, hash, check: the reference registry and versioned content hashes.Not used
evalls, run, compare: your own grader tasks with train/test splits and a keep/revert verdict.Not used
manuscriptuscheck validates ADR numbers, sections, plain-prose rules and relative links. next --scan-refs picks the next number.Optional
encorelist, summary, lint, ingest, push, pull-github: collects session learnings and sends them to repositories.Not used; gh for GitHub
aurorasync and propagate: copies the law, the setlist and the learnings to other targets and repositories.Not used; gh for --github
ferrystatus, plan, stage, restore: moves heavy temporary files aside and puts them back with a SHA-256 check.Not used
unmaskcheck: reports interactive elements and implicit state changes in HTML and CSS.Not used

More detail on the media and data commands:

The dispatcher registers 24 commands. The package does not include the private estate layer: the usage tracker, the MCP, model, pot and prompt registries, the supply layer, the creative ledger and divergence commands, backup, limiter, the MT5 bridge and the tower bridge. For the full list, see the manual.

Use the skills library

skills/ contains 40 estate-authored skills in the Agent Skills format: one folder, one SKILL.md. Seventeen are the original operating and principle skills. Twenty-three are ports that cover creative work, media, figures, evaluation and workflow templates.

Third-party skills are not vendored. See NOTICE and the skills scope and provenance audit.

Six ports are templates with MANUAL.md setup guides. Media kits and raster export need optional tools that the CLI package does not install. Read each skill's requirements before you run its helpers.

To copy your estate's selected skills into its configured harness skill homes, run uika skills place --apply.

See where things live

PathContents
bin/uika.mjsThe CLI entry point.
src/Command modules and their node:test suites (*.test.mjs).
skills/The estate skills library.
templates/, schema/, examples/Scaffolding, JSON schemas and synthetic starting points.
docs/The manual, the harness matrix, the agent guide and the roadmap.
tools/Maintainer tools (the privacy scrub). Not packed.

Verify a checkout

Run these commands from the root of the checkout. All of them must pass.

npm test
npm run scrub
node bin/uika.mjs lint --strict
node bin/uika.mjs docs check --strict

The test suite includes package-content checks and an isolated tarball install.

Limits

Release changes

0.1.1 · 21 November 2026

0.1.0 · 20 November 2026

Reference

Last checked 21 November 2026 against source commit 3a1fdc8. The install, check, init and lint commands ran on Linux on that date. This page makes no claim about Windows or macOS.