raise-cli 2.2.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (264) hide show
  1. raise_cli/__init__.py +38 -0
  2. raise_cli/__main__.py +30 -0
  3. raise_cli/adapters/__init__.py +91 -0
  4. raise_cli/adapters/declarative/__init__.py +26 -0
  5. raise_cli/adapters/declarative/adapter.py +267 -0
  6. raise_cli/adapters/declarative/discovery.py +94 -0
  7. raise_cli/adapters/declarative/expressions.py +150 -0
  8. raise_cli/adapters/declarative/reference/__init__.py +1 -0
  9. raise_cli/adapters/declarative/reference/github.yaml +143 -0
  10. raise_cli/adapters/declarative/schema.py +98 -0
  11. raise_cli/adapters/filesystem.py +299 -0
  12. raise_cli/adapters/mcp_bridge.py +10 -0
  13. raise_cli/adapters/mcp_confluence.py +246 -0
  14. raise_cli/adapters/mcp_jira.py +405 -0
  15. raise_cli/adapters/models.py +205 -0
  16. raise_cli/adapters/protocols.py +180 -0
  17. raise_cli/adapters/registry.py +90 -0
  18. raise_cli/adapters/sync.py +149 -0
  19. raise_cli/agents/__init__.py +14 -0
  20. raise_cli/agents/antigravity.yaml +8 -0
  21. raise_cli/agents/claude.yaml +8 -0
  22. raise_cli/agents/copilot.yaml +8 -0
  23. raise_cli/agents/copilot_plugin.py +124 -0
  24. raise_cli/agents/cursor.yaml +7 -0
  25. raise_cli/agents/roo.yaml +8 -0
  26. raise_cli/agents/windsurf.yaml +8 -0
  27. raise_cli/artifacts/__init__.py +30 -0
  28. raise_cli/artifacts/models.py +43 -0
  29. raise_cli/artifacts/reader.py +55 -0
  30. raise_cli/artifacts/renderer.py +104 -0
  31. raise_cli/artifacts/story_design.py +69 -0
  32. raise_cli/artifacts/writer.py +45 -0
  33. raise_cli/backlog/__init__.py +1 -0
  34. raise_cli/backlog/sync.py +115 -0
  35. raise_cli/cli/__init__.py +3 -0
  36. raise_cli/cli/commands/__init__.py +3 -0
  37. raise_cli/cli/commands/_resolve.py +153 -0
  38. raise_cli/cli/commands/adapters.py +362 -0
  39. raise_cli/cli/commands/artifact.py +137 -0
  40. raise_cli/cli/commands/backlog.py +333 -0
  41. raise_cli/cli/commands/base.py +31 -0
  42. raise_cli/cli/commands/discover.py +551 -0
  43. raise_cli/cli/commands/docs.py +130 -0
  44. raise_cli/cli/commands/doctor.py +177 -0
  45. raise_cli/cli/commands/gate.py +223 -0
  46. raise_cli/cli/commands/graph.py +1086 -0
  47. raise_cli/cli/commands/info.py +81 -0
  48. raise_cli/cli/commands/init.py +746 -0
  49. raise_cli/cli/commands/journal.py +167 -0
  50. raise_cli/cli/commands/mcp.py +524 -0
  51. raise_cli/cli/commands/memory.py +467 -0
  52. raise_cli/cli/commands/pattern.py +348 -0
  53. raise_cli/cli/commands/profile.py +59 -0
  54. raise_cli/cli/commands/publish.py +80 -0
  55. raise_cli/cli/commands/release.py +338 -0
  56. raise_cli/cli/commands/session.py +528 -0
  57. raise_cli/cli/commands/signal.py +410 -0
  58. raise_cli/cli/commands/skill.py +350 -0
  59. raise_cli/cli/commands/skill_set.py +145 -0
  60. raise_cli/cli/error_handler.py +158 -0
  61. raise_cli/cli/main.py +163 -0
  62. raise_cli/compat.py +66 -0
  63. raise_cli/config/__init__.py +41 -0
  64. raise_cli/config/agent_plugin.py +105 -0
  65. raise_cli/config/agent_registry.py +233 -0
  66. raise_cli/config/agents.py +120 -0
  67. raise_cli/config/ide.py +32 -0
  68. raise_cli/config/paths.py +379 -0
  69. raise_cli/config/settings.py +180 -0
  70. raise_cli/context/__init__.py +42 -0
  71. raise_cli/context/analyzers/__init__.py +16 -0
  72. raise_cli/context/analyzers/models.py +36 -0
  73. raise_cli/context/analyzers/protocol.py +43 -0
  74. raise_cli/context/analyzers/python.py +292 -0
  75. raise_cli/context/builder.py +1569 -0
  76. raise_cli/context/diff.py +213 -0
  77. raise_cli/context/extractors/__init__.py +13 -0
  78. raise_cli/context/extractors/skills.py +121 -0
  79. raise_cli/core/__init__.py +37 -0
  80. raise_cli/core/files.py +66 -0
  81. raise_cli/core/text.py +174 -0
  82. raise_cli/core/tools.py +441 -0
  83. raise_cli/discovery/__init__.py +50 -0
  84. raise_cli/discovery/analyzer.py +691 -0
  85. raise_cli/discovery/drift.py +355 -0
  86. raise_cli/discovery/scanner.py +1687 -0
  87. raise_cli/doctor/__init__.py +4 -0
  88. raise_cli/doctor/checks/__init__.py +1 -0
  89. raise_cli/doctor/checks/environment.py +110 -0
  90. raise_cli/doctor/checks/project.py +238 -0
  91. raise_cli/doctor/fix.py +80 -0
  92. raise_cli/doctor/models.py +56 -0
  93. raise_cli/doctor/protocol.py +43 -0
  94. raise_cli/doctor/registry.py +100 -0
  95. raise_cli/doctor/report.py +141 -0
  96. raise_cli/doctor/runner.py +95 -0
  97. raise_cli/engines/__init__.py +3 -0
  98. raise_cli/exceptions.py +215 -0
  99. raise_cli/gates/__init__.py +19 -0
  100. raise_cli/gates/builtin/__init__.py +1 -0
  101. raise_cli/gates/builtin/coverage.py +52 -0
  102. raise_cli/gates/builtin/lint.py +48 -0
  103. raise_cli/gates/builtin/tests.py +48 -0
  104. raise_cli/gates/builtin/types.py +48 -0
  105. raise_cli/gates/models.py +40 -0
  106. raise_cli/gates/protocol.py +41 -0
  107. raise_cli/gates/registry.py +141 -0
  108. raise_cli/governance/__init__.py +11 -0
  109. raise_cli/governance/extractor.py +412 -0
  110. raise_cli/governance/models.py +134 -0
  111. raise_cli/governance/parsers/__init__.py +35 -0
  112. raise_cli/governance/parsers/_convert.py +38 -0
  113. raise_cli/governance/parsers/adr.py +274 -0
  114. raise_cli/governance/parsers/backlog.py +356 -0
  115. raise_cli/governance/parsers/constitution.py +119 -0
  116. raise_cli/governance/parsers/epic.py +323 -0
  117. raise_cli/governance/parsers/glossary.py +316 -0
  118. raise_cli/governance/parsers/guardrails.py +345 -0
  119. raise_cli/governance/parsers/prd.py +112 -0
  120. raise_cli/governance/parsers/roadmap.py +118 -0
  121. raise_cli/governance/parsers/vision.py +116 -0
  122. raise_cli/graph/__init__.py +1 -0
  123. raise_cli/graph/backends/__init__.py +57 -0
  124. raise_cli/graph/backends/api.py +137 -0
  125. raise_cli/graph/backends/dual.py +139 -0
  126. raise_cli/graph/backends/pending.py +84 -0
  127. raise_cli/handlers/__init__.py +3 -0
  128. raise_cli/hooks/__init__.py +54 -0
  129. raise_cli/hooks/builtin/__init__.py +1 -0
  130. raise_cli/hooks/builtin/backlog.py +216 -0
  131. raise_cli/hooks/builtin/gate_bridge.py +83 -0
  132. raise_cli/hooks/builtin/jira_sync.py +127 -0
  133. raise_cli/hooks/builtin/memory.py +117 -0
  134. raise_cli/hooks/builtin/telemetry.py +72 -0
  135. raise_cli/hooks/emitter.py +184 -0
  136. raise_cli/hooks/events.py +262 -0
  137. raise_cli/hooks/protocol.py +38 -0
  138. raise_cli/hooks/registry.py +117 -0
  139. raise_cli/mcp/__init__.py +33 -0
  140. raise_cli/mcp/bridge.py +218 -0
  141. raise_cli/mcp/models.py +43 -0
  142. raise_cli/mcp/registry.py +77 -0
  143. raise_cli/mcp/schema.py +41 -0
  144. raise_cli/memory/__init__.py +58 -0
  145. raise_cli/memory/loader.py +247 -0
  146. raise_cli/memory/migration.py +241 -0
  147. raise_cli/memory/models.py +169 -0
  148. raise_cli/memory/writer.py +598 -0
  149. raise_cli/onboarding/__init__.py +103 -0
  150. raise_cli/onboarding/bootstrap.py +324 -0
  151. raise_cli/onboarding/claudemd.py +17 -0
  152. raise_cli/onboarding/conventions.py +742 -0
  153. raise_cli/onboarding/detection.py +374 -0
  154. raise_cli/onboarding/governance.py +443 -0
  155. raise_cli/onboarding/instructions.py +672 -0
  156. raise_cli/onboarding/manifest.py +201 -0
  157. raise_cli/onboarding/memory_md.py +399 -0
  158. raise_cli/onboarding/migration.py +207 -0
  159. raise_cli/onboarding/profile.py +624 -0
  160. raise_cli/onboarding/skill_conflict.py +100 -0
  161. raise_cli/onboarding/skill_manifest.py +176 -0
  162. raise_cli/onboarding/skills.py +437 -0
  163. raise_cli/onboarding/workflows.py +101 -0
  164. raise_cli/output/__init__.py +28 -0
  165. raise_cli/output/console.py +394 -0
  166. raise_cli/output/formatters/__init__.py +9 -0
  167. raise_cli/output/formatters/adapters.py +135 -0
  168. raise_cli/output/formatters/discover.py +439 -0
  169. raise_cli/output/formatters/skill.py +298 -0
  170. raise_cli/publish/__init__.py +3 -0
  171. raise_cli/publish/changelog.py +80 -0
  172. raise_cli/publish/check.py +179 -0
  173. raise_cli/publish/version.py +172 -0
  174. raise_cli/rai_base/__init__.py +22 -0
  175. raise_cli/rai_base/framework/__init__.py +7 -0
  176. raise_cli/rai_base/framework/methodology.yaml +233 -0
  177. raise_cli/rai_base/governance/__init__.py +1 -0
  178. raise_cli/rai_base/governance/architecture/__init__.py +1 -0
  179. raise_cli/rai_base/governance/architecture/domain-model.md +20 -0
  180. raise_cli/rai_base/governance/architecture/system-context.md +34 -0
  181. raise_cli/rai_base/governance/architecture/system-design.md +24 -0
  182. raise_cli/rai_base/governance/backlog.md +8 -0
  183. raise_cli/rai_base/governance/guardrails.md +17 -0
  184. raise_cli/rai_base/governance/prd.md +25 -0
  185. raise_cli/rai_base/governance/vision.md +16 -0
  186. raise_cli/rai_base/identity/__init__.py +8 -0
  187. raise_cli/rai_base/identity/core.md +119 -0
  188. raise_cli/rai_base/identity/perspective.md +119 -0
  189. raise_cli/rai_base/memory/__init__.py +7 -0
  190. raise_cli/rai_base/memory/patterns-base.jsonl +55 -0
  191. raise_cli/schemas/__init__.py +3 -0
  192. raise_cli/schemas/journal.py +49 -0
  193. raise_cli/schemas/session_state.py +117 -0
  194. raise_cli/session/__init__.py +5 -0
  195. raise_cli/session/bundle.py +820 -0
  196. raise_cli/session/close.py +268 -0
  197. raise_cli/session/journal.py +119 -0
  198. raise_cli/session/resolver.py +126 -0
  199. raise_cli/session/state.py +187 -0
  200. raise_cli/skills/__init__.py +44 -0
  201. raise_cli/skills/locator.py +141 -0
  202. raise_cli/skills/name_checker.py +199 -0
  203. raise_cli/skills/parser.py +145 -0
  204. raise_cli/skills/scaffold.py +212 -0
  205. raise_cli/skills/schema.py +132 -0
  206. raise_cli/skills/skillsets.py +195 -0
  207. raise_cli/skills/validator.py +197 -0
  208. raise_cli/skills_base/__init__.py +80 -0
  209. raise_cli/skills_base/contract-template.md +60 -0
  210. raise_cli/skills_base/preamble.md +37 -0
  211. raise_cli/skills_base/rai-architecture-review/SKILL.md +137 -0
  212. raise_cli/skills_base/rai-debug/SKILL.md +171 -0
  213. raise_cli/skills_base/rai-discover/SKILL.md +167 -0
  214. raise_cli/skills_base/rai-discover-document/SKILL.md +128 -0
  215. raise_cli/skills_base/rai-discover-scan/SKILL.md +147 -0
  216. raise_cli/skills_base/rai-discover-start/SKILL.md +145 -0
  217. raise_cli/skills_base/rai-discover-validate/SKILL.md +142 -0
  218. raise_cli/skills_base/rai-docs-update/SKILL.md +142 -0
  219. raise_cli/skills_base/rai-doctor/SKILL.md +120 -0
  220. raise_cli/skills_base/rai-epic-close/SKILL.md +165 -0
  221. raise_cli/skills_base/rai-epic-close/templates/retrospective.md +68 -0
  222. raise_cli/skills_base/rai-epic-design/SKILL.md +146 -0
  223. raise_cli/skills_base/rai-epic-design/templates/design.md +24 -0
  224. raise_cli/skills_base/rai-epic-design/templates/scope.md +76 -0
  225. raise_cli/skills_base/rai-epic-plan/SKILL.md +153 -0
  226. raise_cli/skills_base/rai-epic-plan/_references/sequencing-strategies.md +67 -0
  227. raise_cli/skills_base/rai-epic-plan/templates/plan-section.md +49 -0
  228. raise_cli/skills_base/rai-epic-run/SKILL.md +208 -0
  229. raise_cli/skills_base/rai-epic-start/SKILL.md +136 -0
  230. raise_cli/skills_base/rai-epic-start/templates/brief.md +34 -0
  231. raise_cli/skills_base/rai-mcp-add/SKILL.md +176 -0
  232. raise_cli/skills_base/rai-mcp-remove/SKILL.md +120 -0
  233. raise_cli/skills_base/rai-mcp-status/SKILL.md +147 -0
  234. raise_cli/skills_base/rai-problem-shape/SKILL.md +138 -0
  235. raise_cli/skills_base/rai-project-create/SKILL.md +144 -0
  236. raise_cli/skills_base/rai-project-onboard/SKILL.md +162 -0
  237. raise_cli/skills_base/rai-quality-review/SKILL.md +189 -0
  238. raise_cli/skills_base/rai-research/SKILL.md +143 -0
  239. raise_cli/skills_base/rai-research/references/research-prompt-template.md +317 -0
  240. raise_cli/skills_base/rai-session-close/SKILL.md +176 -0
  241. raise_cli/skills_base/rai-session-start/SKILL.md +110 -0
  242. raise_cli/skills_base/rai-story-close/SKILL.md +198 -0
  243. raise_cli/skills_base/rai-story-design/SKILL.md +203 -0
  244. raise_cli/skills_base/rai-story-design/references/tech-design-story-v2.md +293 -0
  245. raise_cli/skills_base/rai-story-implement/SKILL.md +115 -0
  246. raise_cli/skills_base/rai-story-plan/SKILL.md +135 -0
  247. raise_cli/skills_base/rai-story-review/SKILL.md +178 -0
  248. raise_cli/skills_base/rai-story-run/SKILL.md +282 -0
  249. raise_cli/skills_base/rai-story-start/SKILL.md +166 -0
  250. raise_cli/skills_base/rai-story-start/templates/story.md +38 -0
  251. raise_cli/skills_base/rai-welcome/SKILL.md +134 -0
  252. raise_cli/telemetry/__init__.py +42 -0
  253. raise_cli/telemetry/schemas.py +285 -0
  254. raise_cli/telemetry/writer.py +217 -0
  255. raise_cli/tier/__init__.py +0 -0
  256. raise_cli/tier/context.py +134 -0
  257. raise_cli/viz/__init__.py +7 -0
  258. raise_cli/viz/generator.py +406 -0
  259. raise_cli-2.2.1.dist-info/METADATA +433 -0
  260. raise_cli-2.2.1.dist-info/RECORD +264 -0
  261. raise_cli-2.2.1.dist-info/WHEEL +4 -0
  262. raise_cli-2.2.1.dist-info/entry_points.txt +40 -0
  263. raise_cli-2.2.1.dist-info/licenses/LICENSE +190 -0
  264. raise_cli-2.2.1.dist-info/licenses/NOTICE +4 -0
@@ -0,0 +1,433 @@
1
+ Metadata-Version: 2.4
2
+ Name: raise-cli
3
+ Version: 2.2.1
4
+ Summary: RaiSE CLI - Reliable AI Software Engineering governance framework
5
+ Project-URL: Homepage, https://raiseframework.ai
6
+ Project-URL: Documentation, https://docs.raiseframework.ai
7
+ Project-URL: Repository, https://github.com/humansys/raise
8
+ Project-URL: Changelog, https://github.com/humansys/raise/blob/main/CHANGELOG.md
9
+ Author-email: Emilio Osorio <emilio@humansys.ai>
10
+ License: Apache-2.0
11
+ License-File: LICENSE
12
+ License-File: NOTICE
13
+ Keywords: ai,cli,governance,methodology,software-engineering
14
+ Classifier: Development Status :: 4 - Beta
15
+ Classifier: Intended Audience :: Developers
16
+ Classifier: License :: OSI Approved :: Apache Software License
17
+ Classifier: Programming Language :: Python :: 3
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Programming Language :: Python :: 3.13
20
+ Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
21
+ Classifier: Topic :: Software Development :: Quality Assurance
22
+ Requires-Python: >=3.12
23
+ Requires-Dist: atlassian-python-api>=3.41.0
24
+ Requires-Dist: authlib>=1.3.0
25
+ Requires-Dist: certifi>=2024.7.4
26
+ Requires-Dist: cryptography>=46.0.5
27
+ Requires-Dist: logfire-api>=4.0
28
+ Requires-Dist: networkx>=3.6.1
29
+ Requires-Dist: pydantic-settings>=2.2.0
30
+ Requires-Dist: pydantic>=2.6.0
31
+ Requires-Dist: pyyaml>=6.0.1
32
+ Requires-Dist: raise-core==2.2.1
33
+ Requires-Dist: requests>=2.32.4
34
+ Requires-Dist: rich>=13.7.0
35
+ Requires-Dist: tree-sitter-javascript>=0.25.0
36
+ Requires-Dist: tree-sitter-language-pack>=0.13.0
37
+ Requires-Dist: tree-sitter-php>=0.24.1
38
+ Requires-Dist: tree-sitter-svelte>=1.0.2
39
+ Requires-Dist: tree-sitter-typescript>=0.23.2
40
+ Requires-Dist: tree-sitter>=0.25.2
41
+ Requires-Dist: typer>=0.12.0
42
+ Requires-Dist: urllib3>=2.6.3
43
+ Provides-Extra: csharp
44
+ Requires-Dist: tree-sitter-c-sharp>=0.23.1; extra == 'csharp'
45
+ Provides-Extra: dev
46
+ Requires-Dist: bandit>=1.7.8; extra == 'dev'
47
+ Requires-Dist: httpx>=0.27.0; extra == 'dev'
48
+ Requires-Dist: pyright>=1.1.350; extra == 'dev'
49
+ Requires-Dist: pytest-cov>=4.1.0; extra == 'dev'
50
+ Requires-Dist: pytest>=8.0.0; extra == 'dev'
51
+ Requires-Dist: raise-server; extra == 'dev'
52
+ Requires-Dist: ruff>=0.4.0; extra == 'dev'
53
+ Provides-Extra: mcp
54
+ Requires-Dist: mcp<2,>=1.26; extra == 'mcp'
55
+ Provides-Extra: observability
56
+ Requires-Dist: logfire>=4.0; extra == 'observability'
57
+ Description-Content-Type: text/markdown
58
+
59
+ # RaiSE
60
+
61
+ [![CI](https://github.com/humansys/raise/actions/workflows/ci.yml/badge.svg)](https://github.com/humansys/raise/actions/workflows/ci.yml)
62
+
63
+ **Reliable AI Software Engineering** — Ship quality software at AI speed.
64
+
65
+ > *Raise your craft, feature by feature.*
66
+
67
+ ---
68
+
69
+ ## What is RaiSE?
70
+
71
+ RaiSE is a methodology + toolkit for professional developers who use AI assistants. It solves the problem of AI-generated code that's fast but inconsistent: governance that works naturally, validation at every step, and memory that persists across sessions.
72
+
73
+ **The RaiSE Triad:**
74
+
75
+ ```
76
+ RaiSE Engineer
77
+ (You - Strategy, Judgment, Ownership)
78
+
79
+ │ collaborates with
80
+
81
+ Rai
82
+ (AI Partner - Execution + Memory)
83
+
84
+ │ governed by
85
+
86
+ RaiSE
87
+ (Methodology + Toolkit)
88
+ ```
89
+
90
+ **Rai** is your AI collaborator — not a generic assistant, but a partner trained in the discipline of reliable AI software engineering. Rai remembers your patterns, calibrates to your velocity, and maintains coherence across sessions.
91
+
92
+ ---
93
+
94
+ ## Developer Onboarding
95
+
96
+ ### Prerequisites
97
+
98
+ - **Python 3.12 or 3.13** (3.14 not yet supported)
99
+ - [Claude Code](https://claude.ai/claude-code) CLI installed and configured
100
+ - Git
101
+
102
+ ### Quick Install
103
+
104
+ ```bash
105
+ # Recommended: pipx (isolates dependencies)
106
+ pipx install raise-cli
107
+
108
+ # Alternative: pip (use a virtual environment)
109
+ pip install raise-cli
110
+
111
+ # Alternative: uv
112
+ uv tool install raise-cli
113
+
114
+ # Verify
115
+ rai --version
116
+ ```
117
+
118
+ **macOS:** Don't use the system Python. Install Python 3.12+ via `brew install python@3.13` or pyenv first.
119
+
120
+ **Windows:** Use WSL (Ubuntu/Debian):
121
+ ```bash
122
+ sudo apt update && sudo apt install pipx -y
123
+ pipx ensurepath
124
+ # Close and reopen terminal
125
+ pipx install raise-cli
126
+ ```
127
+
128
+ ### Development Setup
129
+
130
+ ```bash
131
+ # 1. Clone and checkout the development branch
132
+ git clone https://github.com/humansys/raise.git
133
+ cd raise-commons
134
+ git checkout dev
135
+
136
+ # 2. Create venv and install in development mode
137
+ uv venv && uv pip install -e ".[dev]"
138
+
139
+ # 3. Verify installation
140
+ rai --help
141
+ ```
142
+
143
+ ### Onboarding with Rai
144
+
145
+ Once installed, open Claude Code in the project directory and run:
146
+
147
+ ```
148
+ /rai-welcome
149
+ ```
150
+
151
+ This single command will:
152
+ - **Detect your situation** (new developer, returning developer, etc.)
153
+ - **Create your profile** (`~/.rai/developer.yaml`) with your name and pattern prefix
154
+ - **Build the knowledge graph** so Rai has project context
155
+ - **Scaffold `CLAUDE.local.md`** for your personal Claude Code instructions
156
+ - **Optionally customize** communication preferences (language, style)
157
+ - **Verify everything works**
158
+
159
+ After welcome completes, start working:
160
+
161
+ ```
162
+ /rai-session-start
163
+ ```
164
+
165
+ This loads your context, memory, and proposes focused work.
166
+
167
+ ### What You Get
168
+
169
+ | Shared (committed) | Personal (gitignored) |
170
+ |--------------------|-----------------------|
171
+ | Patterns (`.raise/rai/memory/patterns.jsonl`) | Session history (`.raise/rai/personal/sessions/`) |
172
+ | Governance docs | Session state (`.raise/rai/personal/session-state.yaml`) |
173
+ | Skills, methodology | Calibration data (`.raise/rai/personal/calibration.jsonl`) |
174
+ | Work artifacts | Knowledge graph (`.raise/rai/memory/index.json`) |
175
+
176
+ Each developer builds their own personal context through working sessions. Pattern IDs are developer-prefixed (e.g., PAT-A-001 for Alice, PAT-B-001 for Bob) to prevent collisions in shared repositories.
177
+
178
+ ---
179
+
180
+ ## Usage
181
+
182
+ ### Initialize RaiSE on Your Project
183
+
184
+ ```bash
185
+ # Navigate to your existing project
186
+ cd your-project
187
+
188
+ # Initialize RaiSE governance structure
189
+ rai init --detect
190
+
191
+ # Open Claude Code and run onboarding
192
+ /rai-welcome
193
+ ```
194
+
195
+ This scaffolds the `.raise/` directory, detects your project's conventions (language, testing framework, linting), and builds the knowledge graph.
196
+
197
+ ### Daily Workflow
198
+
199
+ A typical session follows this pattern:
200
+
201
+ ```
202
+ 1. /rai-session-start # Load context, see what's pending
203
+ 2. /rai-story-start # Create branch, define scope
204
+ 3. /rai-story-design # Design the approach (recommended)
205
+ 4. /rai-story-plan # Break into atomic tasks
206
+ 5. /rai-story-implement # TDD execution with validation gates
207
+ 6. /rai-story-review # Retrospective, capture patterns
208
+ 7. /rai-story-close # Merge, cleanup
209
+ 8. /rai-session-close # Persist learnings for next session
210
+ ```
211
+
212
+ You don't need to complete all steps in one session — Rai remembers where you left off.
213
+
214
+ ### What Rai Remembers
215
+
216
+ - **Patterns** — Reusable insights learned from your work (e.g., "always validate config at boundaries")
217
+ - **Calibration** — Your velocity, strengths, growth edges
218
+ - **Session history** — What you worked on, decisions made, items deferred
219
+ - **Coaching corrections** — Mistakes Rai made and learned from
220
+
221
+ Each session builds on the last. Over time, Rai becomes a more effective collaborator for your specific codebase and working style.
222
+
223
+ ---
224
+
225
+ ## Available Skills
226
+
227
+ Skills are structured processes that guide AI-assisted development. Run them as `/skill-name` in Claude Code. There are currently 37 skills.
228
+
229
+ ### Session Lifecycle
230
+ | Skill | Purpose |
231
+ |-------|---------|
232
+ | `/rai-welcome` | One-time developer onboarding |
233
+ | `/rai-session-start` | Begin a session with memory and context |
234
+ | `/rai-session-close` | End a session, persist learnings |
235
+
236
+ ### Story Lifecycle
237
+ | Skill | Purpose |
238
+ |-------|---------|
239
+ | `/rai-story-start` | Initialize a story with branch and scope |
240
+ | `/rai-story-design` | Create lean specs for complex stories |
241
+ | `/rai-story-plan` | Decompose into atomic tasks |
242
+ | `/rai-story-implement` | Execute with TDD and validation gates |
243
+ | `/rai-story-review` | Retrospective and learnings |
244
+ | `/rai-story-close` | Merge, cleanup, tracking |
245
+ | `/rai-story-run` | Chain the full story lifecycle |
246
+
247
+ ### Epic Lifecycle
248
+ | Skill | Purpose |
249
+ |-------|---------|
250
+ | `/rai-epic-start` | Initialize an epic scope and directory |
251
+ | `/rai-epic-design` | Design multi-story epics |
252
+ | `/rai-epic-plan` | Sequence stories into plans |
253
+ | `/rai-epic-close` | Epic retrospective and metrics |
254
+ | `/rai-epic-run` | Execute epic lifecycle phases |
255
+
256
+ ### Discovery Skills
257
+ | Skill | Purpose |
258
+ |-------|---------|
259
+ | `/rai-discover` | Run the full discovery pipeline |
260
+ | `/rai-discover-start` | Initialize codebase discovery |
261
+ | `/rai-discover-scan` | Extract and describe components |
262
+ | `/rai-discover-validate` | Validate synthesized descriptions with human review |
263
+ | `/rai-discover-document` | Generate architecture docs from discovery data |
264
+
265
+ ### Project Skills
266
+ | Skill | Purpose |
267
+ |-------|---------|
268
+ | `/rai-welcome` | One-time developer onboarding |
269
+ | `/rai-project-create` | Guide greenfield project setup |
270
+ | `/rai-project-onboard` | Guide brownfield project onboarding |
271
+
272
+ ### Analysis & Quality
273
+ | Skill | Purpose |
274
+ |-------|---------|
275
+ | `/rai-research` | Epistemologically rigorous research |
276
+ | `/rai-debug` | Root cause analysis (5 Whys, Ishikawa) |
277
+ | `/rai-bugfix` | Structured bugfix workflow |
278
+ | `/rai-quality-review` | Critical code review with external auditor perspective |
279
+ | `/rai-architecture-review` | Evaluate design proportionality and necessity |
280
+ | `/rai-problem-shape` | Guided problem definition at portfolio level |
281
+ | `/rai-doctor` | Diagnose and fix RaiSE project health issues |
282
+
283
+ ### MCP Integration
284
+ | Skill | Purpose |
285
+ |-------|---------|
286
+ | `/rai-mcp-add` | Add an MCP server to the project |
287
+ | `/rai-mcp-remove` | Remove an MCP server from the project |
288
+ | `/rai-mcp-status` | Check MCP server health and status |
289
+
290
+ ### Maintenance
291
+ | Skill | Purpose |
292
+ |-------|---------|
293
+ | `/rai-docs-update` | Sync architecture docs with code |
294
+ | `/rai-framework-sync` | Sync framework files across locations |
295
+ | `/rai-publish` | Structured release workflow with quality gates |
296
+ | `/rai-skill-create` | Create new skills with framework integration |
297
+ | `/rai-skillset-manage` | Manage skill sets |
298
+
299
+ ---
300
+
301
+ ## CLI Commands
302
+
303
+ The `rai` CLI provides deterministic operations:
304
+
305
+ ```bash
306
+ # Build Rai's knowledge graph from project artifacts
307
+ rai graph build
308
+
309
+ # Query governance concepts
310
+ rai graph context mod-session
311
+
312
+ # Query Rai's memory
313
+ rai graph query "velocity patterns"
314
+
315
+ # Validate the memory graph (structural + completeness)
316
+ rai graph validate
317
+
318
+ # Visualize the memory graph as interactive HTML
319
+ rai graph viz # Opens in browser
320
+ rai graph viz --output graph.html # Custom output path
321
+
322
+ # List releases and their associated epics
323
+ rai release list
324
+
325
+ # Start a session (creates profile on first run)
326
+ rai session start --name "YourName" --project "$(pwd)" --context
327
+
328
+ # Close a session
329
+ rai session close --state-file /tmp/session-output.yaml --project "$(pwd)"
330
+ ```
331
+
332
+ ---
333
+
334
+ ## Repository Structure
335
+
336
+ ```
337
+ raise-commons/
338
+ ├── .claude/skills/ # Claude Code skills (37 skills)
339
+
340
+ ├── framework/ # Public textbook (concepts, reference)
341
+ │ ├── reference/ # Constitution, glossary, philosophy
342
+ │ ├── concepts/ # Core concepts (katas, gates, artifacts)
343
+ │ └── getting-started/ # Greenfield/brownfield guides
344
+
345
+ ├── .raise/ # Framework engine
346
+ │ ├── rai/ # Rai's memory and personal data
347
+ │ │ ├── memory/ # Patterns, knowledge graph (shared)
348
+ │ │ └── personal/ # Sessions, calibration (per-developer, gitignored)
349
+ │ ├── katas/ # Process definitions
350
+ │ ├── gates/ # Validation criteria
351
+ │ ├── templates/ # Artifact scaffolds
352
+ │ └── skills/ # Legacy skill definitions
353
+
354
+ ├── governance/ # Project governance
355
+ │ ├── architecture/ # Module docs, system design
356
+ │ └── solution/ # Vision, guardrails, business case
357
+
358
+ ├── src/raise_cli/ # CLI toolkit (Python)
359
+
360
+ ├── work/ # Work in progress
361
+ │ └── epics/ # Epic directories containing story artifacts
362
+
363
+ └── dev/ # Framework maintenance
364
+ ├── decisions/ # ADRs (Architecture Decision Records)
365
+ └── parking-lot.md # Ideas and tangents for later
366
+ ```
367
+
368
+ ---
369
+
370
+ ## Branch Model
371
+
372
+ ```
373
+ main (stable releases)
374
+ └── dev (development)
375
+ └── story/s{N}.{M}/{name}
376
+ ```
377
+
378
+ - Work on `dev` (development branch)
379
+ - Stories branch from and merge to `dev`
380
+ - Epics are logical containers (directory + tracker), not branches
381
+ - `main` receives releases from `dev`
382
+
383
+ ---
384
+
385
+ ## Core Concepts
386
+
387
+ | Concept | Description |
388
+ |---------|-------------|
389
+ | **RaiSE Engineer** | You — the human who directs AI-assisted development |
390
+ | **Rai** | AI partner with memory, calibration, and accumulated judgment |
391
+ | **Skill** | Structured Claude Code prompt for a methodology phase |
392
+ | **Validation Gate** | Quality checkpoint with specific criteria |
393
+ | **Guardrail** | Constraint that guides AI behavior |
394
+ | **ShuHaRi** | Mastery levels (beginner → practitioner → master) that adapt Rai's verbosity |
395
+
396
+ See the full [Glossary](framework/reference/glossary.md) for canonical terminology.
397
+
398
+ ---
399
+
400
+ ## Key Principles
401
+
402
+ From the [Constitution](framework/reference/constitution.md):
403
+
404
+ 1. **Humans Define, Machines Execute** — Specs are source of truth
405
+ 2. **Governance as Code** — Standards versioned in Git
406
+ 3. **Validation Gates** — Quality checked at each phase
407
+ 4. **Observable Workflow** — Every decision traceable
408
+ 5. **Jidoka** — Stop on defects, don't accumulate errors
409
+
410
+ ---
411
+
412
+ ## Status
413
+
414
+ Current stable release: `v2.2.0`. The framework is being used in production.
415
+
416
+ For CLI reference documentation, see the [CLI Quick Reference](framework/reference/cli-reference.md).
417
+
418
+ We value your feedback:
419
+
420
+ - **Questions?** Open an [issue](https://github.com/humansys/raise/issues)
421
+ - **Found a bug?** Open an [issue](https://github.com/humansys/raise/issues) with reproduction steps
422
+ - **Ideas?** We want to hear them — open an issue or reach out directly
423
+
424
+ ---
425
+
426
+ ## License
427
+
428
+ [Apache-2.0](LICENSE)
429
+
430
+ ---
431
+
432
+ *RaiSE — Reliable AI Software Engineering*
433
+ *Neither is complete alone.*