Describe how your business works in a way that humans and machines can both interpret reliably.
OrgScript is a human-readable, AI-friendly description language for business logic, operational processes, rules, roles, and state transitions. It sits between plain-language documentation and technical execution as a shared, text-first source of truth.
OrgScript is designed for operators, team leads, analysts, and engineers who need a shared, text-first source of truth for business logic.
- A shared text layer for business logic
- Readable by people
- Parseable by software
- Stable in Git and code review
- Structured for AI analysis, validation, and export
- Not a general-purpose programming language
- Not a workflow engine
- Not free-form prose or narrative documentation
- Not a replacement for implementation code
Assuming you have the OrgScript CLI installed:
# 1. Check a complete example end to end
orgscript check ./examples/craft-business-lead-to-order.orgs
# 2. Generate a diagram
orgscript export mermaid ./examples/craft-business-lead-to-order.orgs
# 3. Generate a stakeholder-friendly summary
orgscript export markdown ./examples/craft-business-lead-to-order.orgsIf you want the fastest first read, start with:
If you are new to OrgScript, this is the intended reading path:
- docs/manifesto.md - Why OrgScript exists.
- docs/language-principles.md - The design constraints and non-negotiable rules.
- spec/language-spec.md - The canonical language definition.
- docs/orgscript-for-humans.md - How to write maintainable OrgScript files.
- docs/orgscript-for-ai.md - How tools and AI must interpret OrgScript without guessing.
The normative language reference is:
Supporting docs exist to help people adopt, use, and govern the language. If implementation and docs ever disagree, the canonical spec wins.
OrgScript is intentionally artifact-first. A single .orgs file can produce multiple useful outputs:
- Source logic in plain text
- Validation and linting diagnostics
- Mermaid diagrams
- Markdown summaries
- HTML documentation
- AI-ready structured JSON exports
Generated examples live under:
The main showcase flow is:
- Source: craft-business-lead-to-order.orgs
- Mermaid demo: docs/demos/mermaid/craft-business-lead-to-order.mermaid.md
- Markdown demo: docs/demos/markdown/craft-business-lead-to-order.summary.md
process: step-by-step operational workflowsstateflow: legal states and transitionsrule: cross-cutting constraints and requirementsrole: permission boundariespolicy: context-driven or time-driven behaviorevent: named triggers with reactionsmetric: tracked business measures
orgscript validate <file> [--json]
orgscript lint <file> [--json]
orgscript check <file> [--json]
orgscript format <file> [--check]
orgscript export json <file>
orgscript export markdown <file>
orgscript export mermaid <file>
orgscript export html <file>
orgscript export context <file>
orgscript analyze <file> [--json]If you want to contribute to the tooling or language, this is a practical sequence:
- Read examples/README.md
- Run
orgscript checkon a real example - Inspect generated Mermaid or Markdown output
- Read the canonical spec
- Use docs/governance.md before proposing core language changes
npm test
npm run check:all
npm run demo:generate- VS Code extension: editors/vscode
- Governance: docs/governance.md
- Language evolution: docs/language-evolution.md
- Changelog: CHANGELOG.md
Apache-2.0