Xpersona
L

LEIO SDLC

CLAWHUB · Unverified

强制指令:执行 Software Development Life Cycle (SDLC)。所有的代码修改、Bug 修复和功能实现,必须且只能通过启动本技能中的 orchestrator.py 来完成。严禁主 Agent (你) 绕过本技能直接去操作源码工作区。 Skill: LEIO SDLC Owner: leio9511 Summary: 强制指令:执行 Software Development Life Cycle (SDLC)。所有的代码修改、Bug 修复和功能实现,必须且只能通过启动本技能中的 orchestrator.py 来完成。严禁主 Agent (你) 绕过本技能直接去操作源码工作区。 Tags: latest:1.0.0 Version history: v1.0.0 | 2026-04-12T08:34:58.998Z | user Upgrade to v1.0, including Planner slice constraint fix and Auditor guardrails. v0.3.2 | 2026-03-20T02:39:46.329Z | auto leio-sdlc v0.3.2 - Expanded with 34 new files a

62
Rank
84
Safety
1.4k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.4K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17ebx3n7tt1g0qykqcc9yfqmx84qpf1:leio-sdlc
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-leio9511-leio-sdlc/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

115,125 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: leio-sdlc
version: 1.0.0
description: >
  强制指令:执行 Software Development Life Cycle (SDLC)。所有的代码修改、Bug 修复和功能实现,必须且只能通过启动本技能中的 orchestrator.py 来完成。严禁主 Agent (你) 绕过本技能直接去操作源码工作区。
---

# LEIO SDLC Runbook

【Job 并发隔离沙盘机制】(The Workspace-as-a-Job-Queue)
1. 规定:禁止将生成的 PR 扔到全局 `docs/PRs/` 里。所有执行任务必须在项目根目录创建 `.sdlc_runs/` 等隔离目录。
2. 规定:Orchestrator 会自动接管沙盒队列和并发调度。

【自解释纪律】:如果用户(Boss)向你提问关于 leio-sdlc 的内部逻辑、架构设计、状态机或错误处理机制,你**严禁凭空记忆或编造**。你必须立刻使用 `read` 工具读取 `ARCHITECTURE.md`,基于该说明书向用户解释。

## Invocation (Command Template)

The entire SDLC pipeline is fully automated and managed by `scripts/orchestrator.py`. 
Your ONLY job is to start the Orchestrator.

1. If you are unsure about the required parameters, use the `exec` tool to run:
   `python3 scripts/orchestrator.py --help`
   
2. Based on the help output and the user's intent, construct your execution command.

3. Use the `exec` tool with the parameter `background: true` to run the constructed command.

4. **Post-Execution Discipline (CRITICAL):** When the Orchestrator process ends (regardless of exit code 0 or 1), you MUST read its stdout log in the completion event. If you see the exact marker `[ACTION REQUIRED FOR MANAGER]`, you MUST strictly execute the instructions provided below that marker before ending your turn.

skills/pm-skill/SKILL.md

---
name: pm-skill
version: 1.0.0
description: 强制指令:扮演产品经理(PM)与架构师角色。当你和Boss讨论完毕,被要求撰写或生成 PRD 时,必须且只能按照本 Skill 的流程获取正确的文件路径,并亲自执笔写入。
---

# Product Manager (PM) AgentSkill

## Role Definition
You are a combination of a Product Manager and a Technical Architect. You synthesize the Problem Statement, Solution, Architecture, and Testing Strategy strictly from your co-pilot discussion with the Boss.

## Invocation (The Scaffold Pattern)

You MUST NOT blindly guess where to save the PRD. You MUST follow these exact steps:

1. **Get the Safe Path:** Use the `exec` tool to run the scaffold script:
   `python3 ~/.openclaw/workspace/projects/leio-sdlc/skills/pm-skill/scripts/init_prd.py --project <Target_Project_Name> --title "<Short_Title>"`
   *(Example: `--project AMS --title "Add_Retry_Logic"`)*

2. **Wait for Output:** The script will output a success message containing the **Absolute Path** to the PRD file (either a newly created blank template or an existing file).

3. **Fill in the Blanks:** Use the `read` tool to read the file at that absolute path, and then use the `edit` or `write` tool to update the document. You MUST strictly adhere to the structural headers provided in the file. 

## Documentation Discipline (CRITICAL)

- **BDD Acceptance Criteria:** In the Acceptance Criteria section, you MUST use BDD format (Given/When/Then) to define black-box behaviors. DO NOT write granular unit tests or implementation code here.
- **Testing Strategy:** In the Test Strategy section, write down macroscopic QA directives (e.g., "Mock the DB", "Use E2E Sandbox"). The downstream Planner will use this to generate the actual TDD unit test blueprint.
- **Framework Modifications:** If the request involves modifying protected SDLC framework scripts, explicitly list their paths in the Framework Modifications section.

## End of Task & Circuit Breaker (CRITICAL)
Once you have written and saved the PRD file, your active role as PM is **100% COMPLETE**.
1. **Trigger Auditor**: You must immediately call `spawn_auditor.py` to check your work.
2. **Circuit Breaker (NO YOLO)**: If the Auditor returns `{"status": "REJECTED"}`, Report the rejection reasons to the Boss, then you MUST immediately halt all further operations and WAIT for explicit instructions. DO NOT ATTEMPT TO AUTO-CORRECT.
3. **Wait for Launch**: If the Auditor returns `{"status": "APPROVED"}`, Notify the Boss of the successful audit, then you MUST immediately halt all further operations and WAIT for explicit authorization to execute.
4. **Baseline the PRD**: You MUST NOT use manual `git commit` or `sdlc.override`. To save the PRD baseline, you MUST use the official gateway: `python3 ~/.openclaw/skills/leio-sdlc/scripts/commit_state.py --files <Absolute_Path_To_PRD>`

TEMPLATES/scaffold/profiles/skill/SKILL.md

# SKILL

README.md

# LEIO SDLC (v1.0)

LEIO SDLC is a multi-agent Software Development Life Cycle (SDLC) engine for OpenClaw. It automates planning, coding, reviewing, and merging through a fully isolated, artifact-driven pipeline.

---

## 👨‍💻 人类使用指南 (Human Usage Guide)

基于 `leio-sdlc` 的自动化开发流程是一个高度人机协同的过程。请按照以下四个核心步骤驱动系统:

### 1. 需求探讨 (Ideation)
开发的起点永远是“人”。你(人类老板)需要直接在对话框里与小龙虾(主 Agent)聊项目,探讨你想做什么、解决什么痛点、预期达到什么效果。在这个阶段,把需求聊透彻是关键。

### 2. 撰写与红队审计 (PRD Authoring & Audit)
当你认为需求已经理清,直接给小龙虾下达指令:
> **“用 pm-skill 写 PRD 并过审”**

- 小龙虾会调用专属工具自动生成标准格式的文档,并亲自执笔把刚才聊的需求落实成结构化的 PRD。
- 写完后,它会唤醒内部的 **独立审计员 (Auditor)** 对这份 PRD 进行红队技术可行性审查。
- ⚠️ **防 YOLO (You Only Look Once) 避坑警告**:系统要求小龙虾在拿到 Auditor 的驳回意见后,必须停下来等你定夺。但大模型极易产生“狂飙”倾向——拿到修改意见后,它可能会擅自疯狂改写 PRD 直到刷出 Approve 为止。这种黑盒闭环虽然有时能跑通,但极易导致你最原始的需求发生严重偏移。如果你发现它在自作主张死循环,请立即扯动缰绳叫停!

### 3. 自动化流水线起爆 (Execution)
一旦 PRD 拿到了 Auditor 颁发的 `APPROVED`(通过)印章,你的工作就基本结束了。给小龙虾下达发车指令:
> **“用 sdlc 去执行这份 PRD”**

系统底层的自动档 (`orchestrator.py`) 将被挂入,它会自动调度背后的三驾马车:
- **Planner (架构师)**:负责把大需求切分成一个个可以 TDD 的小微 PR。
- **Coder (码农)**:负责写测试、写代码、跑到绿灯。
- **Reviewer (审查员)**:负责进行代码的安全与质量 Review。
它们会在后台默默把活全部干完,合并回代码库,并通过即时消息向你汇报进度。

### 4. 验收与闭环 (Verification)
在整个 SDLC 流程的最后,系统会拉起 **Verifier Agent (验收员)**。
- 验收员会拿着最开始的 PRD,去代码库里逐项对比验收。
- 如果一切符合预期,它会给出 `PASS`。
- 如果发现漏了需求或者实现有偏差,它会给出 `MISS`。对于 `MISS` 的结果,你需要回到 **第 2 步**,和小龙虾聊一聊 MISS 在了哪里,让它写一份专门的 Fix PRD,然后再让流水线跑一遍补丁。

---

## 🤖 Agent Runtime Instructions (系统核心运行说明)

**Note on Repository Structure:** This project actually contains a "Skill Kit" bundling two AgentSkills together:
1. `leio-sdlc`: The core automation engine.
2. `pm-skill`: The strict PRD authoring and initialization tool.

Both skills are deployed simultaneously using the `kit-deploy.sh` script.

### Core Architecture: Control Plane vs. Data Plane

As of v1.0, LEIO SDLC implements a strict separation of concerns to ensure the target codebase remains pristine during execution:

- **Data Plane (Working Directory)**: The target project's root folder (`--workdir`). This is where actual business code lives and where `git commit` / `git merge` operations happen. No SDLC runtime artifacts are stored here.
- **Control Plane (Global Run Directory)**: An isolated sandbox (`--global-dir`, default: `/root/.openclaw/workspace/.sdlc_runs_global`) that stores all AI runtime artifacts:
  - PR Contracts (Micro-slices)
  - `review_report.json` & `*.diff` files
  - `.coder_session` and state machine trackers
  - Forensic logs and quarantine states

### Configuration & Dynamic Merge

The framework uses a centralized configuration file located at `config/sdlc_config.json`.
- **Dynamic Updates**: During initialization, the engine merges missing keys from `sdlc_config.json.template` into the active config, ensuring seamless backward compatibility during framework upgrades.
- **`GLOBAL_RUN_DIR`**: The fallback path for the Control Plane if the `--global-dir` argument is omitted.

### Core Components (The Trio Model)

1. **The Planner (Micro-Slicing Engine)**:
   - Evaluate

ARCHITECTURE.md

# 🦞 leio-sdlc v0.2 架构白皮书 (Architecture Blueprint)

## 1. 核心设计哲学 (Core Philosophy)
v0.2 版本标志着 `leio-sdlc` 从“单步手动触发脚本”正式跃升为**“全自动、状态机驱动、具备自愈能力的智能体流水线 (Agentic Microservice Engine)”**。
- **解耦 (Decoupling)**:剥离 PM 职责(冷热分离、防上下文污染)。引擎的唯一合法输入是硬盘上已存在的 `PRD.md`,不再处理模糊的聊天上下文。将 PM 的需求梳理过程(热对话)与 SDLC 的严格执行过程(冷指令)物理隔离,防止前端闲聊污染开发链路的上下文。
- **目录即沙盘、文件即队列 (Workspace-as-a-Job-Queue)**:不使用内存或数据库保存状态。每个 PRD 拥有专属的执行沙盘(如 `.sdlc/jobs/Feature_X/`)。该沙盘内各 Markdown PR 合约文件的状态 (`status: open | blocked | closed`) 构成了当前需求的局部消息队列。这天然隔离了不同业务模块的并发冲突。
- **物理熔断与降维打击 (Circuit Breaker & Adaptive Re-slicing)**:当大模型智商触顶陷入死循环时,系统绝不无限重试,而是物理销毁现场,并要求上游重新“切碎”任务。

---

## 2. 全生命周期状态机 (The Lifecycle State Machine)

### 2.0 任务初始化与防并发污染 (Job Isolation)
为了支持多需求并行开发,禁止将 PR 散落在全局的 `docs/PRs/` 目录。
- **触发**:执行 `./run.sh --prd docs/PRDs/Feature_X.md`。
- **Job 隔离**:引擎在项目根目录自动创建该 PRD 的专属队列空间 `.sdlc/jobs/Feature_X/`。
- **拆分下发**:Planner 将生成的 PR 合约按顺序放入该专属目录,如 `.sdlc/jobs/Feature_X/01_DB.md`。

### 🟢 Green Path (顺风局 / 理想流)
1. **Queue Polling**: 引擎仅扫描当前专属目录 `.sdlc/jobs/Feature_X/` 下处于 `status: open` 的工单。
2. **Branching**: 引擎签出新分支 `git checkout -b feature/PR_001_DB`。
3. **Coding**: 引擎拉起 Coder,Coder 读取 PR 合约并修改代码,提交 Commit。
4. **Reviewing**: 引擎生成 Diff,拉起 Reviewer。Reviewer 痛快地输出 `[LGTM]`。
5. **Merging**: 引擎将代码 Merge 进 master,删除 feature 分支。
6. **Closing**: 引擎将 `PR_001_DB.md` 的状态修改为 `status: closed`。引擎轮询下一个 open 的 PR。

### 🟨 Yellow Path (纠错流 / 局部自愈)
*触发条件:Coder 写出了 Bug 或未满足验收标准。*
1. **Review Rejection**: Reviewer 审查 Diff 后,输出 `[ACTION_REQUIRED]` 并附带修改意见。
2. **Correction Loop**: 引擎**不合并代码**,而是将修改意见追加到上下文,**第二次拉起 Coder** 继续在当前 feature 分支上修改。
3. **Threshold**: 这个循环最多允许发生 **MAX_REVISIONS (默认 5 次)**。如果在 MAX_REVISIONS (默认 5 次)内 Reviewer 给出了 `[LGTM]`,则回归 Green Path。

### 🟥 Red Path (死亡循环 / 熔断与降维重构)
*触发条件:Yellow Path 连续失败 MAX_REVISIONS (默认 5 次),或者 Coder 执行超时 (Timeout/Token Cap 触顶)。*
1. **Hard Abort (物理斩首)**: 引擎判定当前分支已被“剧毒污染 (Toxic Branch)”。立刻执行强杀。
2. **Tabula Rasa (恢复出厂设置)**: 执行 `git reset --hard` 和 `git clean -fd`,强制切换回 master,并**彻底删除**那个被污染的 feature 分支 (`git branch -D`)。
3. **Status Update**: 将该 PR 的状态改为 `status: blocked`。
4. **Adaptive Re-slicing (动态切片)**: 
   - 引擎拿着失败日志,**定向拉起 Planner**。
   - 下达指令:“`PR_001_DB.md` 任务过于复杂导致 Coder 崩溃。请将该任务拆解为 2-3 个更小的、职责更单一的 Micro-PRs。”
   - Planner 生成 `PR_001a.md` 和 `PR_001b.md` (`status: open`)。
5. **Queue Resumes**: 引擎重新扫描队列,发现新的、更简单的 open PR,流水线继续运转。

---

## 3. 测试覆盖矩阵 (Testing Matrix for v0.2)
为了保证这套精密仪器的绝对可靠,v0.2 将构建以下 3 层沙盒测试:

1. **`test_e2e_green_path.sh` (已完成雏形 ISSUE-024)**
   - **目的**: 测试无障碍连播能力。
   - **验证**: 提供包含 2 个简单 PR 的环境,验证引擎能否自动轮询,依次拉起 Coder 和 Reviewer,最终完成 2 次 Merge。

2. **`test_e2e_yellow_path.sh` (即将开展 ISSUE-025)**
   - **目的**: 测试打回重做机制 (Review-Correction Loop)。
   - **验证**: 故意在沙盒注入一个挑剔的“假 Reviewer (Mock)”,强制前两次输出 `[ACTION_REQUIRED]`,第三次才输出 `[LGTM]`。断言引擎是否成功发起了 MAX_REVISIONS (默认 5 次)循环而不崩溃。

3. **`test_e2e_red_path.sh` (终极抗压测试)**
   - **目的**: 测试熔断与动态切片能力。
   - **验证**: 注入“死锁 Coder”或“永远拒绝的 Reviewer”,强制触发 MAX_REVISIONS (默认 5 次)阈值。断言引擎是否执行了 `git branch -D` 清理现场,并

Sponsored

Ads related to LEIO SDLC and adjacent AI workflows.