بنقرة واحدة
rai-project-create
Set up governance for a new project. Use after rai init on a greenfield project.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Set up governance for a new project. Use after rai init on a greenfield project.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Interactive adapter setup for Jira and Confluence. Detects available backends, discovers projects/spaces, generates validated YAML config. 3-4 questions max.
Evaluate design proportionality using Beck's four rules. Use after implementation.
Root cause analysis using the method best suited to the bug. Phase 3 of bugfix pipeline.
Push branch, create MR, verify artifacts complete. Phase 7 of bugfix pipeline.
Execute fix tasks with TDD and all validation gates. Phase 5 of bugfix pipeline.
Decompose fix into atomic TDD tasks. Phase 4 of bugfix pipeline.
| name | rai-project-create |
| description | Set up governance for a new project. Use after rai init on a greenfield project. |
| allowed-tools | ["Read","Edit","Write","Grep","Glob","Bash(rai:*)"] |
| license | MIT |
| metadata | {"raise.work_cycle":"utility","raise.frequency":"on-demand","raise.fase":"","raise.prerequisites":"","raise.next":"session-start","raise.gate":"rai graph build produces 30+ governance nodes","raise.adaptable":"true","raise.version":"2.0.0","raise.visibility":"public"} |
Guide a developer through greenfield project setup via conversation. Collect project identity, requirements, constraints, and architecture, then fill 6 governance templates. Gate: rai graph build produces 30+ governance nodes.
When to use: After rai init on a new (greenfield) project with placeholder governance templates.
When to skip: Brownfield project with existing code → use /rai-project-onboard. Project not initialized → run rai init first.
Inputs: Project with rai init completed (governance/ exists). Developer's knowledge of what they're building.
ls governance/prd.md governance/vision.md governance/guardrails.md governance/backlog.md governance/architecture/system-context.md governance/architecture/system-design.md 2>/dev/null | wc -l
| Result | Action |
|---|---|
| 6 files | Continue |
| 0 files | Stop: "Run rai init first." |
| Source code exists | Suggest /rai-project-onboard instead |
Check for existing non-placeholder content — ask before overwriting.
Governance templates exist and ready to fill.Ask in sequence, adapting to ShuHaRi level:
main)Write all docs following parser contracts exactly. Graph parsers use regex — format must match.
Parser contracts (critical):
vision.md: Outcomes table with | **{Bold Name}** | {description} |. Regex: \|\s*\*\*([^*]+)\*\*\s*\|\s*(.+?)\s*\|prd.md: Requirements as ### RF-XX: Title. Regex: ^### (RF-\d+):\s*(.+)$guardrails.md: YAML frontmatter type: guardrails. Table with | ID | Level | Guardrail | Verification | Derived from |. ID format: {level}-{category}-{NNN}backlog.md: Header # Backlog: {name}. Epic rows | E{N} | ... |system-context.md: External interfaces tablesystem-design.md: YAML frontmatter type: architecture_design. layers must be a list of dicts — each with name, modules (list), and optionally description. NEVER write layers as plain strings (causes AttributeError: 'str' object has no attribute 'get' in graph build). Example:
layers:
- name: frontend
modules: [ui, components]
description: "User interface layer"
- name: backend
modules: [api, services]
description: "Business logic layer"
Update .raise/manifest.yaml with branch configuration.
rai graph build
rai graph query "requirement outcome guardrail" --types requirement,outcome,guardrail --limit 50
Need 30+ governance nodes total: requirements (~5-8), outcomes (~5-7), guardrails (~10-13), project (1), epics (~3-5).
| Result | Action |
|---|---|
| 30+ nodes | Gate passed → Step 5 |
| <30 nodes | Check format against parser contracts, fix specific doc, rebuild |
## Project Created: {project_name}
Governance: {N} outcomes, {N} requirements, {N} guardrails, {N} epics
Graph: {total} governance nodes
Next: /rai-session-start
| Item | Destination |
|---|---|
| Governance docs | governance/ (6 files) |
| Knowledge graph | .raise/rai/memory/index.json |
| Next | /rai-session-start |
/rai-project-onboardrai init/rai-project-onboard (brownfield)src/raise_cli/governance/parsers/*.pysrc/raise_cli/rai_base/governance/*.md/rai-session-start