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, commanduika- Runtime
- Node.js 22 or later, no npm dependencies
- Source
- mariyaholic/uika-public, commit
3a1fdc8 - License
- MIT
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 fromUIKA_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.mdfile of a repository. It has a SHA-256 fingerprint. Do not edit the text between the markers. - Skill
- A folder with a
SKILL.mdfile. The source has 40 skills. - Hand-off
- A six-line entry in
WORKSTACK.mdthat records what a session did and what to do next.
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
- Install Node.js 22 or later.
- Install the package:
npm install -g @mariyaholic/uika - Run the machine check:
The check shows runtimes, agent home folders and disk space.uika check
To try Uika once without an install, run npx @mariyaholic/uika check. To update, run npm install -g @mariyaholic/uika@latest.
Install from source
- Clone the source repository:
git clone https://github.com/mariyaholic/uika-public.git cd uika-public - 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
- Node.js 22 or later. Uika has zero npm runtime dependencies. It uses Node built-ins only.
- The included CI workflow targets Node 22 on Linux, Windows and macOS. Run
npm testfor the revision you use and check its CI results. A Linux test run alone does not verify native Windows or macOS behavior. - Optional media tools, provider setup and live harness integrations need separate checks in your environment.
- No archive tool is needed. Version 0.1.1 does not pack skills into zips. The Windows-only
skills packleg was removed (see the manual, part 6).
Git is needed only by some commands:
| Command | Git |
|---|---|
deploy status, deploy install, deploy uninstall, deploy auto …, deploy hook-run | Required. They read commits, install hooks and set init.templateDir. |
deploy targets, deploy adopt, deploy forget | Not used |
find | Optional. It uses git ls-files in Git roots and walks the tree otherwise. |
lint | Optional. The branch-name check is skipped outside a Git repository. |
docs check | Optional. Git tells tracked from untracked link targets. |
manuscriptus next --scan-refs | Optional. It reads ADR numbers from other branches. |
check | Optional. It probes for Git and reports its version, or that it is missing. |
| All other commands | Not 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
- Make a new estate:
uika init my-estate --apply - Check the new estate:
cd my-estate uika lint - Copy the skills that you need from the
skills/folder of the source intomy-estate/skills/. Theinitcommand does not copy skills. - 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
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:
deploy hook-runwrites when Git runs it as a post-commit hook. You install this hook with--apply.session check --stopwrites a one-byte marker file.
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:
- 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.
- Read
WORKSTACK.mdin the repository root, if it is present. - At the end, run the wrap checklist. It runs the checks, updates the ledger and stops.
- Record the handoff in
WORKSTACK.mdas a six-line entry: from, to, done, next, files, verify, blockers.
uika session check enforces this protocol.
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
| Command | Function | Git |
|---|---|---|
init | Makes a new estate. Flags: [dir], --name n, --apply. | Not used |
check | Shows runtimes, agent home folders and disk space. | Optional |
lint | Checks always-loaded file lines, law-block changes and skill hygiene. Flag: --strict. | Optional |
sync | Copies estate configuration into a clean repository. Flags: --force, --apply. | Not used |
skills | validate checks the skill folders. place copies them into agent skill homes. Flags: --strict, --apply. | Not used |
audit | Reports variant-suffixed script clusters: audit [repo]. | Not used |
find / where | Finds files and projects by project and modification time, and resolves project nicknames. | Optional |
path / layout | Shows where a file goes in a repository of the estate. | Not used |
session check | Checks freshness, the hand-off and the wrap gate. | Not used |
adopt | Writes the law block into a repository. Flags: --apply, --dry-run. | Not used |
deploy | Commit-triggered distribution: status, targets, adopt, forget, install, uninstall, auto, hook-run. | Required |
docs | Checks, renders, inits, migrates and versions the Markdown files. | Optional |
home | status and regen: the harness home-law files, for example ~/.codex/AGENTS.md or ~/.hermes.md. | Not used |
video | ls, qa, sheet, frame, structure, diff, prompt lint: find, check, sample and profile rendered films; lint a video prompt pack. | Not used |
figure | check, render, ls, theme: deterministic SVG and HTML figures from *.figure.json specs. | Not used |
ref | ls, show, hash, check: the reference registry and versioned content hashes. | Not used |
eval | ls, run, compare: your own grader tasks with train/test splits and a keep/revert verdict. | Not used |
manuscriptus | check validates ADR numbers, sections, plain-prose rules and relative links. next --scan-refs picks the next number. | Optional |
encore | list, summary, lint, ingest, push, pull-github: collects session learnings and sends them to repositories. | Not used; gh for GitHub |
aurora | sync and propagate: copies the law, the setlist and the learnings to other targets and repositories. | Not used; gh for --github |
ferry | status, plan, stage, restore: moves heavy temporary files aside and puts them back with a SHA-256 check. | Not used |
unmask | check: reports interactive elements and implicit state changes in HTML and CSS. | Not used |
More detail on the media and data commands:
videoneedsffmpegandffprobeonPATH, orUIKA_FFMPEGandUIKA_FFPROBE, for everything exceptls,diffandprompt lint.figurerenders with guards and a provenance manifest. PNG and PDF output needs Playwright, which is not bundled.ref hash <id> --jsonprints a read-only baseline for review.evalreads tasks fromlabs/eval/tasks/*.json. No model API is called by uika.docs migrate [repo] [--apply]repairs legacy repositories. It strips pasted law, folds a hand-writtenCLAUDE.mdintoAGENTS.mdand keeps.bak-<date>backups.
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
| Path | Contents |
|---|---|
bin/uika.mjs | The 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
- The commands, the
estate.jsonfields, the law-block format and the harness mappings can change before version 1.0. - Version 0.1.1 is a developer preview. Uika supplies the estate, the skills and the session layer. The harness provides model execution, tool access and its own authorization controls.
- Uika does not run a model. The agent tool runs the model and controls access. Provider setup and live harness integrations need separate verification.
- A test run on Linux does not verify Windows or macOS.
- Do not put real agent home folders or credentials in examples.
Release changes
0.1.1 · 21 November 2026
- Changed: the package is published on npm as
@mariyaholic/uika. Before this release, you ran Uika from a source checkout. - Fixed:
uika --helplistsauditas its own command. - Fixed: the plain-prose check no longer reports headings below the first level, or table cells that use a dash as an empty value.
0.1.0 · 20 November 2026
- Added: the skills library, with 23 ports that join the original 17, for 40 skills in total.
- Added:
uika video,uika figure,uika refanduika eval.