Bundled Script Generalization
This file documents what changes are made when generalizing scripts for the bundled location (src/mekara/bundled/scripts/).
All Scripts
Standard conversions that apply to ALL scripts when bundling:
@docs/docs/standards/X.md→@standard:X(the docs path doesn't exist in user projects)
Bundled Standards
Bundled standards (src/mekara/bundled/standards/) are verbatim copies of the docs versions (docs/docs/standards/) with the frontmatter and import Version line removed. The <Version /> placeholder is resolved at runtime from pyproject.toml.
Installation Transformations
When mekara install commands copies bundled scripts to ~/.mekara/scripts/nl/:
- Standards are installed to
~/.mekara/standards/ @standard:namereferences in commands are replaced with@~/.mekara/standards/name.mdso Claude Code's@file reference mechanism can resolve them directly
Bundled Compiled Scripts
For scripts listed on this page, the bundled compiled file may intentionally differ from .mekara/scripts/compiled/ because the bundled NL source is intentionally generalized. In those bundled compiled files, the Source: line should point at src/mekara/bundled/scripts/nl/....
If a bundled NL script is not intentionally generalized (i.e. it's not present on this page), the bundled compiled script should stay exactly aligned with the canonical source script, including the Source: line.
Individual Scripts
start.md
Removed:
git submodule update --init --recursivefor private fontspoetry install --with dev→ replaced with generic dependency examplespnpm --dir docs/ i --frozen-lockfilefor docs dependencies- Two-terminal workflow (docs server + claude) → simplified to single terminal
Kept:
mekara/branch prefix- Claude settings copy to new worktree
finish.md
Removed:
- Specific tool commands (
poetry install --with dev,pnpm --dir docs/ install --frozen-lockfile) → replaced with generic package manager examples - Pre-commit hook specific instructions → generalized to "formatter/linter"
- Poetry-specific environment issues (VSCode terminal environment leaking between worktrees)
- Python-specific test directory references (
pyproject.toml,tests/location) - Poetry virtual environment cleanup (
poetry env remove --all) → made conditional with examples - Hardcoded repository name (
meksys-dev/mekara) → replaced with placeholder (<owner>/<repo>) - Reference to docs subdirectory as requiring separate pnpm install
Kept:
- Worktree workflow
/merge-mainscript call- GitHub PR workflow with auto-merge
.claude/settings.local.jsonsyncing (made conditional)main/directory name- CI checks concept (generalized)
systematize.md
Removed:
- Mekara-specific documentation paths (
docs/docs/usage/standard-mekara-workflow.md) - Decision logic for standard vs mekara-specific commands (bundled version assumes all commands are project-specific)
- Inline command template structure → now references
@standard:command
Kept:
- Documentation update requirement in step 5 (now always targets
docs/docs/development/workflows.md) - All workflow structure and systematization principles
- Key Principles section with guidance on command writing
project:systematize.md
Removed:
- Inline template structure details → now references
@standard:command
Kept:
- All repo-setup-specific guidance
- Stack-agnostic requirements
- Documentation update references
project:release.md
Removed:
- "Python package for PyPI release" intro → replaced with generic "prepare a release"
python scripts/check-external-links.py(mekara-specific script) → replaced with generic "if the project has a link checker, run it"pyproject.toml/[tool.poetry]references → generalized to "version file (e.g., pyproject.toml, Cargo.toml, package.json)"poetry build+tarchecks for mekara's bundled scripts → replaced with generic build tool examples- TestPyPI publish commands,
pip install --index-url ...,mekara --versionverification → replaced with generic "publish to appropriate registry" instructions - Duplicate "Step 5" numbering bug fixed (publish step renumbered to Step 6)
Kept:
- Step 0 clean main branch check (generic)
- Step 1 version gathering (generic)
- Step 4 Docusaurus snapshot (made conditional — "if the project uses Docusaurus versioning")
- Key Principles (removed TestPyPI-specific principle, kept verify-before-publish and user-publishes-manually)
teardown-worktree.md
Changed:
poetry env remove --all→ made conditional: only needed for tools that store environments outside the worktree (Poetry, Pipenv). Tools that store inside the worktree (.venv,node_modules,target/) are already cleaned up by therm -rfin step 4.
Kept:
- All git worktree removal steps (universal)
- Remote branch deletion (universal)
setup-worktree.md
Removed:
poetry install --with dev→ replaced with generic dependency examples (Poetry, pip, npm, pnpm, Rust, Go)pnpm --dir docs/ i --frozen-lockfile(docs dependency install) → removed entirely
Kept:
mekara/branch prefix and worktree creation.claude/settings.local.jsoncopy to new worktree- Key Principles (updated to reference Step 2 only)
standardize.md
Changed:
- Step 4 documentation targets:
.mekaraversion points to bothdocs/docs/standards/workflow.md(for standard workflow commands) anddocs/docs/development/workflows.md(for mekara-specific commands). Bundled version points only todocs/docs/development/workflows.md(the generic per-project workflows doc).
Kept:
- All workflow structure and standardization principles
recursive-self-improvement.md
Removed:
- Nothing - script was already fully generic
Kept:
- All workflow structure
.mekara/scripts/nl/and.mekara/scripts/compiled/paths (standard across all mekara projects)- Commit requirement
- All guidelines for updates