Mekara-Specific Workflows
This page documents workflows specific to developing mekara itself, as opposed to the standard mekara workflow that applies to all projects using mekara.
Bundled Script Management
Generalizing Scripts for Bundled Distribution
When mekara ships bundled scripts in src/mekara/bundled/scripts/, these must work for all projects, not just mekara. Use /mekara:generalize-bundled-script <script-name> to:
- Read standards and generalization guidance
- Compare source and bundled versions
- Strip mekara-specific patterns and add generic instructions
- Update both bundled NL and compiled versions
- Document what was stripped in the guidance file
See bundled-script-generalization.md for what was stripped from each script.
Script Organization
.mekara/scripts/nl/- Mekara's own customized scripts (source of truth for this repo)docs/wiki/- Documentation copy of generic scripts usable for any project, not just Mekara, with frontmatter (synced bidirectionally)src/mekara/bundled/scripts/nl/- Generic versions shipped with mekara (edited independently)src/mekara/bundled/scripts/compiled/- Compiled Python versions (must be updated alongside NL)
The pre-commit hook syncs between .mekara/scripts/nl/ and docs/wiki/, validates bundled NL/compiled pairs are updated together, and alerts when changes in one location might need corresponding changes in another.
PyPI Releases
Use /project:release to prepare a release for PyPI:
- Updates package version in
pyproject.toml - Builds and verifies the package
- Provides instructions for TestPyPI and real PyPI publishing
The command prepares everything but leaves the actual publishing step manual. Always test on TestPyPI before publishing to real PyPI.