|
2 | 2 |
|
3 | 3 | **Describe how your business works in a way humans and machines both understand.** |
4 | 4 |
|
5 | | -OrgScript is a human-readable, AI-friendly description language for business logic, operational processes, rules, roles, and state transitions. It provides a shared, structured layer between plain-language documentation and technical execution. |
| 5 | +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. |
6 | 6 |
|
7 | | ---- |
| 7 | +## What It Is |
8 | 8 |
|
9 | | -## Why OrgScript? |
| 9 | +- A shared text layer for business logic |
| 10 | +- Readable by people |
| 11 | +- Parseable by software |
| 12 | +- Stable in Git |
| 13 | +- Useful for AI analysis, validation, and export |
10 | 14 |
|
11 | | -- **Shared Truth**: Teams get logic they can read and review directly in Git. |
12 | | -- **AI-Ready**: Reliable context for LLMs and agents without guessing from unstructured prose. |
13 | | -- **Artifact-First**: Generate diagrams, summaries, and HTML docs from a single source. |
14 | | -- **CI/CD Ready**: Validate, lint, and check logic integrity in your pipeline. |
| 15 | +## What It Is Not |
15 | 16 |
|
16 | | -## Quick Start |
| 17 | +- Not a general-purpose programming language |
| 18 | +- Not a workflow engine |
| 19 | +- Not free-form prose |
| 20 | +- Not a replacement for implementation code |
17 | 21 |
|
18 | | -### Installation |
| 22 | +## Quickstart In 60 Seconds |
19 | 23 |
|
20 | 24 | ```bash |
21 | | -# Global installation |
22 | | -npm install -g . |
| 25 | +# 1. Check an example end to end |
| 26 | +orgscript check ./examples/craft-business-lead-to-order.orgs |
23 | 27 |
|
24 | | -# Or run via npx |
25 | | -npx orgscript --help |
| 28 | +# 2. Generate a diagram |
| 29 | +orgscript export mermaid ./examples/craft-business-lead-to-order.orgs |
| 30 | + |
| 31 | +# 3. Generate a stakeholder-friendly summary |
| 32 | +orgscript export markdown ./examples/craft-business-lead-to-order.orgs |
26 | 33 | ``` |
27 | 34 |
|
28 | | -### Usage |
| 35 | +If you want the fastest first read, start with: |
29 | 36 |
|
30 | | -```bash |
31 | | -# 1. Comprehensive health check (validate + lint + format-check) |
32 | | -orgscript check ./examples/hiring-process.orgs |
| 37 | +- [craft-business-lead-to-order.orgs](c:\Users\DanielKlas\OneDrive - Tischlermeister Daniel Klas\All Company - Dokumente\2_AREAS\AREA_IT_Infrastruktur\Entwicklung\OrgScript\examples\craft-business-lead-to-order.orgs) |
| 38 | +- [examples/README.md](c:\Users\DanielKlas\OneDrive - Tischlermeister Daniel Klas\All Company - Dokumente\2_AREAS\AREA_IT_Infrastruktur\Entwicklung\OrgScript\examples\README.md) |
33 | 39 |
|
34 | | -# 2. Structural Metrics & Analysis (WP1) |
35 | | -orgscript analyze ./examples/hiring-process.orgs |
| 40 | +## Read This In Order |
36 | 41 |
|
37 | | -# 3. Export AI Context (WP2) |
38 | | -orgscript export context ./examples/hiring-process.orgs > logic-context.json |
| 42 | +If you are new to OrgScript, this is the intended reading path: |
39 | 43 |
|
40 | | -# 4. Generate Visual Support |
41 | | -orgscript export mermaid ./examples/craft-business-lead-to-order.orgs |
42 | | -orgscript export html ./examples/order-approval.orgs |
43 | | -``` |
| 44 | +1. [docs/manifesto.md](c:\Users\DanielKlas\OneDrive - Tischlermeister Daniel Klas\All Company - Dokumente\2_AREAS\AREA_IT_Infrastruktur\Entwicklung\OrgScript\docs\manifesto.md) |
| 45 | + Why OrgScript exists. |
| 46 | +2. [docs/language-principles.md](c:\Users\DanielKlas\OneDrive - Tischlermeister Daniel Klas\All Company - Dokumente\2_AREAS\AREA_IT_Infrastruktur\Entwicklung\OrgScript\docs\language-principles.md) |
| 47 | + The design constraints and non-negotiable rules. |
| 48 | +3. [spec/language-spec.md](c:\Users\DanielKlas\OneDrive - Tischlermeister Daniel Klas\All Company - Dokumente\2_AREAS\AREA_IT_Infrastruktur\Entwicklung\OrgScript\spec\language-spec.md) |
| 49 | + The canonical language definition. |
| 50 | +4. [docs/orgscript-for-humans.md](c:\Users\DanielKlas\OneDrive - Tischlermeister Daniel Klas\All Company - Dokumente\2_AREAS\AREA_IT_Infrastruktur\Entwicklung\OrgScript\docs\orgscript-for-humans.md) |
| 51 | + How to write maintainable OrgScript files. |
| 52 | +5. [docs/orgscript-for-ai.md](c:\Users\DanielKlas\OneDrive - Tischlermeister Daniel Klas\All Company - Dokumente\2_AREAS\AREA_IT_Infrastruktur\Entwicklung\OrgScript\docs\orgscript-for-ai.md) |
| 53 | + How tools and AI must interpret OrgScript without guessing. |
| 54 | + |
| 55 | +## Canonical Source Of Truth |
| 56 | + |
| 57 | +The normative language reference is: |
| 58 | + |
| 59 | +- [spec/language-spec.md](c:\Users\DanielKlas\OneDrive - Tischlermeister Daniel Klas\All Company - Dokumente\2_AREAS\AREA_IT_Infrastruktur\Entwicklung\OrgScript\spec\language-spec.md) |
| 60 | + |
| 61 | +Supporting docs are there to help people adopt, use, and govern the language. If implementation and docs ever disagree, the canonical spec wins. |
| 62 | + |
| 63 | +## From Source To Artifact |
| 64 | + |
| 65 | +OrgScript is intentionally artifact-first. A single `.orgs` file can produce multiple useful outputs: |
44 | 66 |
|
45 | | -## The Artifact Flow |
| 67 | +1. Source logic in plain text |
| 68 | +2. Validation and linting results |
| 69 | +3. Mermaid diagrams |
| 70 | +4. Markdown summaries |
| 71 | +5. HTML documentation |
| 72 | +6. AI-ready structured exports |
46 | 73 |
|
47 | | -OrgScript transforms simple text into powerful operational assets: |
| 74 | +Generated examples live under: |
48 | 75 |
|
49 | | -1. **Source (`.orgs`)**: A diff-friendly, indentation-based logic source. |
50 | | -2. **Analysis**: Numerical metrics and complexity hints for your processes. |
51 | | -3. **Diagram (Mermaid)**: Automatic workflow and state-diagram generation. |
52 | | -4. **Summary (Markdown)**: Concise, stakeholder-ready documentation. |
53 | | -5. **Docs (HTML)**: Professional-grade static documentation site. |
54 | | -6. **AI Context**: Bundled logic package optimized for agent ingest. |
| 76 | +- [docs/demos](c:\Users\DanielKlas\OneDrive - Tischlermeister Daniel Klas\All Company - Dokumente\2_AREAS\AREA_IT_Infrastruktur\Entwicklung\OrgScript\docs\demos) |
| 77 | + |
| 78 | +## Hero Demo |
| 79 | + |
| 80 | +The main showcase flow is: |
| 81 | + |
| 82 | +- Source: [craft-business-lead-to-order.orgs](c:\Users\DanielKlas\OneDrive - Tischlermeister Daniel Klas\All Company - Dokumente\2_AREAS\AREA_IT_Infrastruktur\Entwicklung\OrgScript\examples\craft-business-lead-to-order.orgs) |
| 83 | +- Mermaid demo: [docs/demos/mermaid/craft-business-lead-to-order.mermaid.md](c:\Users\DanielKlas\OneDrive - Tischlermeister Daniel Klas\All Company - Dokumente\2_AREAS\AREA_IT_Infrastruktur\Entwicklung\OrgScript\docs\demos\mermaid\craft-business-lead-to-order.mermaid.md) |
| 84 | +- Markdown demo: [docs/demos/markdown/craft-business-lead-to-order.summary.md](c:\Users\DanielKlas\OneDrive - Tischlermeister Daniel Klas\All Company - Dokumente\2_AREAS\AREA_IT_Infrastruktur\Entwicklung\OrgScript\docs\demos\markdown\craft-business-lead-to-order.summary.md) |
55 | 85 |
|
56 | 86 | ## Core Blocks |
57 | 87 |
|
58 | | -- `process`: Step-by-step operational workflows. |
59 | | -- `stateflow`: State transitions and lifecycle management. |
60 | | -- `rule`: Cross-cutting guardrails and validation. |
61 | | -- `role`: Permission boundaries (`can`, `cannot`). |
62 | | -- `policy`: Governance and SLA requirements. |
63 | | -- `metric`: Performance and data tracking definitions. |
| 88 | +- `process`: step-by-step operational workflows |
| 89 | +- `stateflow`: legal states and transitions |
| 90 | +- `rule`: cross-cutting constraints and requirements |
| 91 | +- `role`: permission boundaries |
| 92 | +- `policy`: context-driven or time-driven behavior |
| 93 | +- `event`: named triggers with reactions |
| 94 | +- `metric`: tracked business measures |
| 95 | + |
| 96 | +## CLI Quick Reference |
| 97 | + |
| 98 | +```bash |
| 99 | +orgscript validate <file> [--json] |
| 100 | +orgscript lint <file> [--json] |
| 101 | +orgscript check <file> [--json] |
| 102 | +orgscript format <file> [--check] |
| 103 | +orgscript export json <file> |
| 104 | +orgscript export markdown <file> |
| 105 | +orgscript export mermaid <file> |
| 106 | +orgscript export html <file> |
| 107 | +orgscript export context <file> |
| 108 | +orgscript analyze <file> [--json] |
| 109 | +``` |
| 110 | + |
| 111 | +## Developer Path |
64 | 112 |
|
65 | | -## Integration & Ecosystem |
| 113 | +For most contributors, the best practical sequence is: |
66 | 114 |
|
67 | | -- **VS Code Extension**: Official highlighting and language support under `editors/vscode`. |
68 | | -- **Quality Automation**: CI checks for tests and example validation live in `.github/workflows`. |
69 | | -- **Showcase**: Generated demo artifacts live in `docs/demos` and can be rebuilt locally with `npm run demo:generate`. |
| 115 | +1. Read [examples/README.md](c:\Users\DanielKlas\OneDrive - Tischlermeister Daniel Klas\All Company - Dokumente\2_AREAS\AREA_IT_Infrastruktur\Entwicklung\OrgScript\examples\README.md) |
| 116 | +2. Run `orgscript check` on a real example |
| 117 | +3. Inspect generated Mermaid or Markdown output |
| 118 | +4. Read the canonical spec |
| 119 | +5. Use [docs/governance.md](c:\Users\DanielKlas\OneDrive - Tischlermeister Daniel Klas\All Company - Dokumente\2_AREAS\AREA_IT_Infrastruktur\Entwicklung\OrgScript\docs\governance.md) before proposing core language changes |
70 | 120 |
|
71 | 121 | ## Testing |
72 | 122 |
|
73 | 123 | ```bash |
74 | | -npm test # Run core logic tests |
75 | | -npm run check:all # Verify all examples |
76 | | -npm run demo:generate # Regenerate all showcase artifacts |
| 124 | +npm test |
| 125 | +npm run check:all |
| 126 | +npm run demo:generate |
77 | 127 | ``` |
78 | 128 |
|
| 129 | +## Ecosystem |
| 130 | + |
| 131 | +- VS Code extension: [editors/vscode](c:\Users\DanielKlas\OneDrive - Tischlermeister Daniel Klas\All Company - Dokumente\2_AREAS\AREA_IT_Infrastruktur\Entwicklung\OrgScript\editors\vscode) |
| 132 | +- Governance: [docs/governance.md](c:\Users\DanielKlas\OneDrive - Tischlermeister Daniel Klas\All Company - Dokumente\2_AREAS\AREA_IT_Infrastruktur\Entwicklung\OrgScript\docs\governance.md) |
| 133 | +- Language evolution: [docs/language-evolution.md](c:\Users\DanielKlas\OneDrive - Tischlermeister Daniel Klas\All Company - Dokumente\2_AREAS\AREA_IT_Infrastruktur\Entwicklung\OrgScript\docs\language-evolution.md) |
| 134 | +- Changelog: [CHANGELOG.md](c:\Users\DanielKlas\OneDrive - Tischlermeister Daniel Klas\All Company - Dokumente\2_AREAS\AREA_IT_Infrastruktur\Entwicklung\OrgScript\CHANGELOG.md) |
| 135 | + |
79 | 136 | ## License |
80 | 137 |
|
81 | 138 | Apache-2.0 |
0 commit comments