openclaw/skills/kb-review/SKILL.md
Review SRS knowledge base documents against the actual codebase to find inaccuracies.
Do not hardcode an absolute SRS path. Resolve SRS_ROOT dynamically:
SRS_ROOT env is set and contains trunk/src, use it.trunk/src, use that.~/git/srs/trunk/src exists, use ~/git/srs.All paths below are relative to $SRS_ROOT.
Key paths:
memory/srs-*.md (in the workspace/openclaw dir)trunk/src/ (subdirs: app, core, kernel, protocol, utest, main)trunk/3rdparty/st-srs/trunk/conf/full.confStep 1: Identify target document and section
List files matching memory/srs-*.md and present them to the user. Ask the user which document and which section to review — let the user type the section name freely (do not list sections for them to pick from).
Step 2: Read the document section
Read the chosen section text fully.
Step 3: Identify and load all relevant source code
Analyze the section content — every function name, struct, config directive, protocol, file, or mechanism mentioned. Then:
st-develop skill for ST/coroutine codeThe goal: have every piece of code the section describes loaded in context before reviewing.
Step 4: Review and report issues
Compare every claim in the document against the loaded source code. Check for:
Present findings as a numbered list. For each issue:
If the section is accurate, say so — don't invent issues.
Step 5: Ask if user wants corrections applied
After presenting issues, ask if the user wants to apply fixes to the document. Only edit with explicit approval.