rlm-workflow
1
总安装量
1
周安装量
#47176
全站排名
安装命令
npx skills add https://github.com/doubleuuser/rlm-workflow --skill rlm-workflow
Agent 安装分布
amp
1
opencode
1
kimi-cli
1
codex
1
github-copilot
1
gemini-cli
1
Skill 文档
RLM Workflow
Overview
Implement repository work using the canonical RLM process in .agent/PLANS.md, with invocation conventions from .codex/AGENTS.md. Treat repository artifacts as the source of truth and keep prompts as path-based commands.
Install Bootstrap
Run the bootstrap script when this skill is added to a repository:
powershell -ExecutionPolicy Bypass -File .agents/skills/rlm-workflow/scripts/install-rlm-workflow.ps1 -RepoRoot .
The script performs installation-time setup:
- Creates
.codex/rlm/scaffold (.codex/rlm/.gitkeep) and required global files if missing. - Guarantees
.agent/PLANS.mdexists after installation. - Adds explicit RLM workflow references to
.codex/AGENTS.md. - Explicitly inserts:
Triggers on RLM requests like Implement requirement 'run-id' and phase-specific commands. - Refreshes the auto-generated installed skills section when
.codex/scripts/update-agents-skills.ps1exists. - Upserts full canonical RLM workflow content into
.agent/PLANS.mdfromreferences/plans-canonical.md(skip with-SkipPlansUpdate).
Read Order
- Read
.codex/AGENTS.mdintro sections for local invocation conventions. - Read
.agent/PLANS.mdfor canonical phase rules and requirements. - If AGENTS wording and PLANS wording differ, follow PLANS (AGENTS declares PLANS canonical) and note the mismatch in the current phase artifact when relevant.
Trigger Examples
Implement requirement '2026-02-07-some-change'Run RLM Phase 3 for .codex/rlm/2026-02-07-some-change/Create .codex/rlm/<run-id>/02-to-be-plan.md with Coverage and Approval gatesUpdate tests and lock Phase 5 artifact for this run
Invocation Mode
- Single-command mode:
- On
Implement requirement '<run-id>', resolve run folder and execute phases sequentially. - Pause only for manual QA sign-off in Phase 6.
- On
- Single-phase mode:
- On
Run RLM Phase N, execute only that phase and write only that phase outputs, but only when all required earlier phases are lock-valid.
- On
Single-Command Contract (Mandatory)
- Resolve run folder at
.codex/rlm/<run-id>/. - If run folder or
00-requirements.mdis missing, stop and ask for it. Do not invent requirements. - Auto-resume from current state:
- If a phase artifact exists as
DRAFTor with failing gates, resume that phase. - If a phase artifact is missing, create it for the next phase in sequence.
- Never back-edit locked prior-phase artifacts.
- If a phase artifact exists as
- Execute in order: Phase 2 through Phase 8.
- For Phase 6:
- Write
05-manual-qa.mdwith scenarios inDRAFT. - Pause and request user results/sign-off.
- On next invocation, record results, lock Phase 6, then continue to Phase 7 and 8.
- Write
Phase Transition Guardrail (Mandatory, Hard Stop)
- Before starting Phase
N, validate the lock chain for all prior phases (2..N-1) using.agent/PLANS.md. - A prior phase is considered lock-valid only when its base artifact and phase-local addenda are
LOCKED, includeLockedAtandLockHash, and end withCoverage: PASSandApproval: PASS. - If any prior phase is not lock-valid, do not create or update later-phase artifacts.
- Resume the earliest failing phase and repair it until lock-valid, then continue.
- Never start Phase 7 or 8 unless
05-manual-qa.mdis lock-valid. - The only intentional pause is Manual QA in Phase 6; all other pauses are blockers.
Sequential Phase Isolation (Mandatory, No Parallel Phase Work)
- The workflow is strictly sequential: exactly one active phase per run at any time.
- Active phase = the earliest phase whose base artifact is missing or not lock-valid.
- Do not create, update, or lock artifacts for any later phase while the active phase is unresolved.
- Never keep more than one phase base artifact in
DRAFTat the same time. - If multiple phase artifacts are
DRAFT, treat only the earliestDRAFTphase as active; laterDRAFTartifacts are invalid parallel prework and must not be continued until the active phase is lock-valid. - After the active phase is lock-valid, continue sequentially and recreate/overwrite any invalid later-phase
DRAFTartifacts only when those phases become active.
Run Folder and Artifacts
- Primary run path:
.codex/rlm/<run-id>/ - Per-run artifacts:
00-requirements.md01-as-is.md02-to-be-plan.md03-implementation-summary.md04-test-summary.md05-manual-qa.mdaddenda/
- Global artifacts:
.codex/DECISIONS.md.codex/STATE.md
Phase Execution Protocol
- Identify phase input base files from
.agent/PLANS.md. - Expand each input to effective input: base file plus stage-local addenda in lexical order.
- Read all effective inputs before drafting output.
- Create/update the phase artifact with required header fields:
Run,Phase,Status,Inputs,Outputs,Scope note
- Include a
Traceabilitysection mapping eachR#to where it is addressed and evidenced. - End with
Coverage GateandApproval Gate, each concluding with explicitPASSorFAIL. - Keep
Status: DRAFTuntil both gates pass. - On pass, lock artifact:
- Set
Status: LOCKED - Add
LockedAt(ISO8601) - Add
LockHash(SHA-256 of the file content)
- Set
Use references/artifact-template.md for exact header and gate scaffolding.
Mandatory PLANS Sections to Enforce
Always enforce these sections from .agent/PLANS.md when applicable:
Large requirements: Implementation sub-phases (required when scope is large or risky)Playwright tagging for RLM runs and implementation sub-phases (required)Testing discipline (TDD + Playwright)sections for Phase 3, 4, and 5RLM single-command orchestration ("Implement requirement '<run-id>'")Run folder resolutionPhase auto-resume and phase selectionPhase transition hard-stop lock chain (required)Strict sequential phase execution (no parallel phase work)Manual QA stop (the only intentional pause)Locking rules for single-command execution
Immutability and Addenda
- Never edit a locked prior-phase artifact.
- If a gap is discovered in a locked upstream artifact, create an upstream-gap addendum in the current phase.
- Addendum naming:
- Stage-local:
<base>.addendum-01.md - Upstream-gap:
<current>.upstream-gap.<prior>.addendum-01.md
- Stage-local:
- Lock all addenda created in the active phase when that phase locks.
Phase Expectations
- Phase 1 (
00-requirements.md)- Define stable IDs
R1..RnandOOS1..OOSn. - Define observable acceptance criteria for each
R#.
- Define stable IDs
- Phase 2 (
01-as-is.md)- Provide novice-runnable repro, current behavior, code pointers, known unknowns.
- Phase 3 (
02-to-be-plan.md)- Produce ExecPlan-grade plan with concrete file edits, commands, tests, manual QA scenarios.
- Add implementation sub-phases (
SP1,SP2, …) when scope/risk is large.
- Phase 4 (
03-implementation-summary.md)- Record what changed, where, and why.
- Phase 5 (
04-test-summary.md)- Record concrete validation commands, results, and requirement coverage.
- Phase 6 (
05-manual-qa.md)- Pause for user sign-off; record observed outcomes and explicit approval.
- Phase 7 and 8
- Update
.codex/DECISIONS.md, then.codex/STATE.md.
- Update
Manual QA Pause Rule
Pause only during Phase 6 for explicit user validation/sign-off. Do not pause for approval in other phases when gates can be evaluated mechanically.
Operating Rules
- Keep prompts short and path-based; keep substantive requirements and plans in repo documents.
- Use deterministic, reproducible commands for implementation and validation.
- If required input is missing, create the minimal current-phase addendum; do not back-edit locked history.