ShtukbaseStandard

Skill for agents

The shtukbase-standard skill: how an agent installs Basic, updates packages and runs checks.

On this site packages install from its registry: shtuk install <id> after install.sh. The commands below with a GitHub address work only with access to the Shtukbase repository, which is closed for now.

The standard is packages. The core: page, package, running an action. Everything else is packages in apps/standard/packages/<id>/ of the Shtukbase repository. The standard set is basic (the core and twelve packages: collections, frame, layers, contours, lenses, ontology, norms, tasks, decisions, owner, bugs). The package and lock format is the page base/package-format.md; the core package installs it.

The shtuk tool (apps/shtuk/, Bun, no dependencies) installs and checks packages. There are no other tools: the old Python flow (scripts/std, the registry, tools/checks) is in apps/standard/archive/; do not call it.

Commands

shtuk install https://github.com/Shtukbase/shtukbase.git#main:apps/standard/packages/basic --dir <project>
shtuk install <package-folder> --dir <project> [--dry-run]
shtuk update [<id>] --dir <project> [--dry-run]
shtuk list --dir <project>
shtuk check --dir <project>
shtuk run --dir <project> <package> <action>
shtuk init <folder> --blueprint <package>

In a working copy of the repository, shtuk is bun apps/shtuk/src/cli.ts. The main way is to install from git.

How the work goes

  1. New project. shtuk install …/basic --dir <folder>, then shtuk check: 0 failures. Need another package? Install it the same way. shtuk init --blueprint picks packages by the facts of the project.
  2. The project already exists (brownfield). Start with --dry-run: it shows which pages will be laid and which already exist. The order and the usual mismatches are in references/brownfield.md.
  3. Update. shtuk update --dry-run, then shtuk update, then shtuk check. The tool does not overwrite a page that was edited in the project: the page stays as it is and is marked edited.
  4. Check. shtuk check runs all checks of the installed packages. A failure is a finding, not a reason to turn the check off: fix the record, the project schema or (if the package was wrong) the package, and raise its version.
  5. Lenses. Actions of the lenses package: shtuk run --dir <project> lenses build builds the lenses of the project.

References

FileWhen
references/brownfield.mdyou install Basic into a project that already has pages
references/boundary.mdthe question is what this skill does and what shtukbase-operate does

What not to do

  • Do not edit .shtukbase/packages.lock by hand, except for the removed state.
  • Do not create a second collection for a kind that is already in the placement map /base/ontology/placement.md.
  • Anything outward (to a client, to publication) only after the owner's explicit "yes".
This page is built from skills/shtukbase-standard/SKILL.md.