# constitution > Load and confirm core principles, guardrails, and project context for MacroFlow sessions. - Author: David Blaszyk - Repository: acornsoft/luna-foundry-public - Version: 20260123173557 - Stars: 0 - Forks: 0 - Last Updated: 2026-02-06 - Source: https://github.com/acornsoft/luna-foundry-public - Web: https://mule.run/skillshub/@@acornsoft/luna-foundry-public~constitution:20260123173557 --- --- persona: luna use-case: macroflow version: 1.0.26021.1 name: constitution description: Load and confirm core principles, guardrails, and project context for MacroFlow sessions. --- persona: luna use-case: macroflow # Constitution Skill ## Overview The Constitution phase establishes the foundational principles, constraints, and manifesto for the project. It ensures alignment with Grok-native ecosystem, xAI principles, and truth-seeking development. For business problem/solution development and analysis, this phase sets the stage for neutral Markdown capture by roles like Functional Consultant, Azure Solution Architect, etc., ensuring time-boxed (32-hour) analysis and ADO MCP integration. ## Purpose - Define project vision and core values for requirements capture - Establish technical and operational constraints (e.g., neutral Markdown, no branding) - Align with Grok/xAI first principles and role-based collaboration - Set the tone for lean, mean, truth-seeking development from raw notes to analysis ## Inputs - High-level project requirements (business problems, solutions) - Stakeholder goals (e.g., client-neutral docs) - Existing patterns, constraints, and role assignments ## Process 1. **OS Detection & Cross-Platform Setup**: Detect operating system (Windows/macOS/Linux) and load platform-specific requirements. Display current OS and confirm cross-platform compatibility. 2. **Shell Strategy Confirmation**: Clarify PowerShell as primary (cross-platform .NET development, object-oriented scripting) with BASH as secondary (Unix tool integration, legacy compatibility). 3. Review manifesto and Grok principles, confirming Grok-only stack and truth-seeking. 4. Identify key constraints: 32-hour time-box for analysis, neutral Markdown (no branding), ADO MCP for work items, role-specific domains (e.g., SAP for ERP, Azure for cloud). 5. Define success criteria: Complete analysis Markdown ready for Plan phase, with ADO links. 6. Assign roles and orchestration: Functional Consultant for raw notes, Requirements Specialist for framework; Luna agent loads guardrails and prompts alignment. 7. Configure MCP servers: Ensure acornsoftDevOpsServer and ecolabDevOpsServer are set for multi-instance ADO access in analysis/forensics. 8. Check dependencies: Confirm VS Code Insiders/VS Code with skills, PowerShell 7+, Node.js, Pandoc, Azure CLI, Azure DevOps CLI, required extensions (GitHub Copilot, vscode-awesome-copilot, Mermaid Markdown Syntax Highlighting), MCP support, repos, and ADO PAT are installed/configured based on detected OS; test VS Code (code --version) and VS Code Insiders (code-insiders --version) versions; if not, provide OS-specific installation guidance. Verify access to Azure DevOps via MCP Server (acornsoftDevOpsServer, ecolabDevOpsServer in mcp.json) for work item tracking and artifact links. Ensure multiline fields (e.g., System.Description, System.History, Microsoft.VSTS.TCM.ReproSteps, Microsoft.VSTS.Common.Resolution) default to Markdown format at the organizational level for consistent rendering; if not configured, run az devops invoke to set them to Markdown. Confirm Luna Foundry setup complete (run setup-luna-foundry.ps1). Enforce standard directory structure: Create/check docs/Analysis/ with subfolders for topics (e.g., Topic-Research/Topic-Analysis.md) for evolving analysis artifacts; if missing, prompt to create or auto-generate template. 9. Interactive Analysis Setup: Ask user if they plan to conduct analysis in this workspace. If yes, prompt for topic(s) (e.g., "Vantage D365 Dual Write"). For each topic, create docs/Analysis/Topic-Research/Topic-Analysis.md with template sections (Overview, Diagrams, Requirements, Next Steps). Align structure across multiple analyses if provided. 10. Document foundational decisions: Output constitutional framework with principles, roles, and boundaries. ## Outputs - Constitutional framework document (neutral Markdown) - Key principles, constraints, and role assignments - Dependency confirmation (e.g., VS Code, PowerShell 7, Node.js, Pandoc, extensions, repos setup) - Alignment confirmation with xAI ecosystem and ADO integration - Confirmation of multiline field formats set to Markdown (e.g., System.Description, System.History) ## Grok Integration Use Grok for first-principles reasoning to validate foundations. Temperature: 0.7 for creative alignment. Luna sub-agents (e.g., @Constitution) auto-load and enforce. ## Next Phase Proceed to Clarify when foundations are established, using MacroFlow-Analysis.md as a real-world example for iteration. ## Instructions 1. Load manifesto, Grok-native constraints, and current project context. 2. Confirm guardrails: xAI/Grok stack, C# primacy, vertical slices, Apple-like UX. 3. Reference key patterns: CQRS, Repository, Strategy, Composition over Inheritance. 4. Output immutable rules applied globally. ## Examples - Input: Start MacroFlow for new project. - Output: Summary of loaded context and constraints. ## Learned Patterns - Always start sessions with Constitution for consistency. - Integrate with Grok modes for reasoning.