微算力 · API 导航与自营网关
API 接入 EN
未登录登录
✨

LEIO SDLC

LEIO SDLC · v0.1.1
安全 unknown 级 作者 leio9511 公开目录收录
1.1k 下载 0 安装 3.1k 收藏 1 浏览

简介

LEIO SDLC

原始描述

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

通过你的 Agent 添加

安装目录:leio-sdlc/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/leio-sdlc/
Codex CLI~/.codex/skills/leio-sdlc/
DeepSeek Harness~/.agents/skills/leio-sdlc/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

技能正文


name: leio-sdlc version: 0.1.1 description: > Execute a multi-agent Software Development Life Cycle (SDLC) framework. Triggers on: "start a new project", "code this feature", "review this PR", "merge the code", "resume", "handle failure".

LEIO SDLC Runbook

【Job 并发隔离沙盘机制】(The Workspace-as-a-Job-Queue)

  1. 规定:禁止将生成的 PR 扔到全局 docs/PRs/ 里。所有执行任务必须在项目根目录创建 .sdlc/jobs/<PRD_文件名(无后缀)>/ 目录。
  2. 规定:Planner 生成的所有 PR 合约必须写在这个目录下。Manager 也只轮询这个目录。

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

Queue Polling Engine (Continuous Processing)

As the Manager, you are a continuous state machine. When processing a job directory, you MUST execute a while loop logic:

  1. Run python3 scripts/get_next_pr.py --job-dir <job_dir> to fetch the next open PR.

  2. If it returns [QUEUE_EMPTY], you exit your loop and report completion.

  3. If it returns a PR file path, you must execute the full SDLC lifecycle for that PR:

    a) Spawn Coder (Command Template 2).

    b) Spawn Reviewer (Command Template 3).

    c) Merge Code (Command Template 4).

    d) Update Status: python3 scripts/update_pr_status.py --pr-file <pr_file> --status closed.

  4. Repeat from step 1.

CRITICAL CODER DELEGATION DISCIPLINE (Token-Optimized CI):

When spawning a Coder, you MUST explicitly enforce the following rule in your delegation instructions:

"You must execute ./preflight.sh yourself in your sandbox. If it fails (Red Phase), you must continuously fix the code and re-run ./preflight.sh until it outputs ✅ PREFLIGHT SUCCESS. Absolutely NO returning to the Manager with red lights or failing tests!"

This skill provides a multi-agent Software Development Life Cycle (SDLC) framework for OpenClaw. It replaces theoretical API endpoints with explicit, copy-pasteable bash command templates.

STRICT DIRECTIVE TO MANAGER: You MUST copy these commands exactly into your exec tool. Do not invent your own sessions_spawn arguments. WARNING: The Manager MUST NOT use code modification tools (edit, write, or shell text manipulation like sed, awk, echo >) to fix code directly. All code fixes MUST be routed back to the Coder via a "Revision" state.

Command Template 1: Spawning a Planner (Plan)

Use this to generate PR Contracts based on PRDs. PRE-CONDITION GUARD: The pipeline's ONLY valid entry point is an existing PRD_*.md file path. The Manager MUST physically verify the existence of a PRD_*.md file in docs/PRDs/. You are NOT a Product Manager and MUST NOT generate PRDs from dialogue. The first step is to read the existing PRD, and then spawn the Planner.

To spawn a planner, use the exec tool to run: python3 {baseDir}/scripts/spawn_planner.py --prd-file <path_to_prd>

Command Template 2: Spawning a Coder (Code)

Use this to execute coding tasks based on PR Contracts.

To spawn a coder, use the exec tool to run: python3 {baseDir}/scripts/spawn_coder.py --pr-file <path_to_pr> --prd-file <path_to_prd>

Command Template 2b: Spawning a Coder for Revision (Correction Loop)

python3 {baseDir}/scripts/spawn_coder.py --pr-file <path_to_pr> --prd-file <path_to_prd> --feedback-file <path_to_review_report>

If the Reviewer generates a Review_Report.md containing [ACTION_REQUIRED], do NOT merge. You must execute a Correction Loop: run the Coder Revision command (Command Template 2b), then run the Reviewer command again. Repeat this loop up to MAX_REVISIONS times (default 5, unless instructed otherwise) or until [LGTM] is given.

Command Template 3: Start Review Session (Review)

Use this to review code changes against the PR Contract. To spawn a reviewer, use the exec tool to run: python3 {baseDir}/scripts/spawn_reviewer.py --pr-file <path_to_pr> --diff-target <base_hash>..<latest_hash>

Command Template 4: Merge and Deploy (Merge)

Use this to merge approved changes into the master branch. PRE-CONDITION GUARD: The Manager MUST verify that a Reviewer has reviewed the specific commit hash and issued an "Approved" status. Merging without a Reviewer's explicit approval is a critical violation. To merge approved code, use the exec tool to run: python3 {baseDir}/scripts/merge_code.py --branch <branch_name> --review-file <path_to_review_report> [--force-lgtm] Manager has Override Authority. If the Reviewer is stuck in an infinite nitpicky loop giving [ACTION_REQUIRED], you can pass --force-lgtm to bypass the [LGTM] requirement and merge anyway.

Command Template 5: Issue Tracking

To update an issue status, use the exec tool to run: python3 {baseDir}/scripts/update_issue.py --issue-id <ID> --status <new_status>

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

没有标签

同类 Skill