mxcli-setup-olc
v1.2.2
Published
Automates mxcli setup for Mendix projects — downloads mxcli binary, runs init, adds custom skills, and configures gitignore
Maintainers
Readme
mxcli-setup-olc
Automates mxcli setup for Mendix projects. Downloads the correct mxcli binary for your platform, initializes it with Claude Code and universal documentation, adds AI-agent skills, and sets up a tiered knowledge base that AI agents maintain across sessions.
Quick Start
Run from your Mendix project root:
npx mxcli-setup-olcOr with an explicit path:
npx mxcli-setup-olc /path/to/mendix-projectWhat It Does
- Downloads mxcli — fetches the latest release binary for your OS/architecture into
.tools/mxcli/ - Runs
mxcli init— initializes mxcli with Claude Code and universal documentation (AGENTS.md,.ai-context/skills/) - Creates
olc-config.json— configuration file to enable/disable features (see Configuration) - Adds AI skills — copies the Mendix Developer Skill and Mendix Review Checklist to
.ai-context/skills/ - Updates
.gitignore— appends entries for AI/mxcli generated files - Creates tiered knowledge base — generates a summary index and detail files for structured AI memory
- Wires up agent instructions — appends knowledge base and review checklist instructions to
AGENTS.mdandCLAUDE.md
Configuration
On first run, an olc-config.json file is created in the project root:
{
"IsKeepKnowledgebase": true,
"IsKeepReviewChecklist": true
}| Flag | Default | What it controls |
|---|---|---|
| IsKeepKnowledgebase | true | Creates and maintains the tiered knowledge base. When false, AI agents skip all knowledge base reads and writes. |
| IsKeepReviewChecklist | true | Adds the review checklist skill and notice. When false, AI agents skip project reviews. |
These flags control both setup-time (whether files are created) and runtime (whether AI agents use them). To disable a feature mid-project, set the flag to false — the AI agent checks olc-config.json before reading or updating the knowledge base or performing reviews.
How the Knowledge Base Works
The knowledge base uses a tiered structure to keep AI context efficient:
project-knowledge-base.md ← Summary index (read every session, <200 lines)
knowledge-base/
├── modules.md ← Module details (read when working on modules)
├── entities.md ← Entity relationships (read when working on domain model)
├── microflows.md ← Microflow traces (read when working on logic)
├── business-flow.md ← Business logic and process flows
└── archive.md ← Old/resolved entries (read only for history)AI agents are instructed to:
- Read the index at the start of every session (lightweight)
- Load detail files only when working on that specific area
- Write findings to the appropriate detail file, not the index
- Compress or archive entries when the index exceeds 200 lines
This prevents the knowledge base from growing unbounded and consuming excessive tokens.
Project Review
AI agents can review a completed Mendix project against a standardized checklist. Simply ask the agent:
"Review this project"
The agent reads the review checklist from .ai-context/skills/mendix-review-checklist.md and inspects the .mpr model across 9 categories:
- Module Structure — responsibility, naming, dependencies
- Domain Model — entities, attributes, associations
- Microflow Quality — naming conventions, logic, performance
- Page and UI Quality — structure, widgets, SCSS
- Security — access rules, least privilege, XPath constraints
- Navigation — menu structure, role-based visibility
- Integration — REST/SOAP error handling, credential storage
- Documentation — knowledge base completeness
- Git hygiene — gitignore, commit quality
Each check produces a PASS / WARN / FAIL / SKIP verdict. The agent generates a structured report saved to outputs/review-report-<date>.md.
The review checklist can be updated in assets/mendix-review-checklist.md to reflect evolving team standards.
CLI Usage
npx mxcli-setup-olc [project-path]
Arguments:
project-path Path to the Mendix project root (default: current directory)
Options:
--help, -h Show help
--version, -v Show versionGlobal Install
npm install -g mxcli-setup-olc
mxcli-setup-olcPrerequisites
- Node.js >= 14
- Internet access (downloads mxcli from GitHub releases)
- Run from a Mendix project directory
Supported Platforms
| OS | Architecture | |----|-------------| | Windows | x64, arm64 | | macOS | x64 (Intel), arm64 (Apple Silicon) | | Linux | x64, arm64 |
Re-running
Safe to run multiple times. It skips steps that are already done (existing binary, existing knowledge base, existing config) and only appends new .gitignore entries or agent instructions if they're missing. Features can be toggled anytime via olc-config.json.
