Install
Requirements
Section titled “Requirements”- Node.js
>=24.15.0 - npm for the primary global install path
- A Git repository when you want reviewable project memory
Check your runtime:
node --versionnpm --versionInstall globally
Section titled “Install globally”npm install -g mdkgmdkg --versionThe supported public-alpha install path uses the globally installed CLI. One-off runners such as npx, pnpm dlx, and bunx may be useful later, but verify them in your own tooling before documenting them for a team.
Package-manager notes:
- The npm package publishes the
mdkgbinary and validates global install in package smoke tests. - Keep one canonical global CLI on your machine when comparing behavior across repos.
- If a repo pins a local toolchain, use the repo docs first and then compare with
mdkg --version. - Do not put npm tokens, registry credentials, or private package config in mdkg graph nodes or checkpoints.
- Low dependency is part of mdkg’s security posture: Markdown and Git stay authoritative, generated caches are rebuildable, and optional SQLite-backed state remains local infrastructure.
Initialize a repo
Section titled “Initialize a repo”mdkg init --agentmdkg indexmdkg statusmdkg validatemdkg index builds rebuildable access caches. Markdown files remain the durable source of truth.
Expected result:
.mdkg/exists and contains repo-owned project memory.- agent startup guidance exists for coding agents.
mdkg statusreports graph, git, selected-goal, cache, and optional project DB state.mdkg validateeither passes or gives actionable warnings/errors to fix before closeout.
Customize after init
Section titled “Customize after init”Use .mdkg/config.json for organization-specific overlays after the first
init. Keep the mdkg CLI kernel installed from npm, then let repo config describe
local standards and generated mirror targets.
Common customization surfaces:
- organization standards and local core-doc preferences in
.mdkg/config.json - canonical skills under
.mdkg/skills/ - arbitrary contained skill mirror target paths configured from
.mdkg/config.json COLLABORATION.mdas the canonical operator profileHUMAN.mdas a one-release legacy alias for older prompts
Preview scaffold changes before applying them:
mdkg upgrademdkg upgrade --jsonmdkg upgrade --applymdkg upgrade --apply updates mdkg-managed assets only after the dry-run receipt
is reviewable. It preserves local overlays, customized docs, customized skills,
and configured mirror paths instead of turning every repo into a fork of mdkg.
For capability files, use canonical MANIFEST.md naming in new work. Legacy
SPEC.md files and mdkg spec ... commands remain compatibility aliases for
one release, but new docs and skills should prefer mdkg manifest ... and
mdkg new manifest.
Next, run the quickstart or read Local-first and Low-dependency before introducing mdkg to a larger repo.
v0.5.2 · Pre-v1 public alpha
Install or upgrade mdkg
Install the current package, then preview mdkg-managed changes before applying them to an existing repository.
npm install -g mdkg@latest
mdkg upgrade
mdkg upgrade --apply
mdkg validate