LexCoding Skill Triggers
PR Review Sync Requests
- If a user asks to fetch/view/sync/refresh PR comments, review comments, review threads, or unresolved review items (for example “拉取最新 PR 评论”, “看看 review 评论”), treat it as a
fetch-pr-reviewsrequest. - For comment-sync/read requests, run
fetch-pr-reviewsfirst.
Thread Resolution Requests
- If a user message contains
TH-<digits>(for exampleTH-2780866886), treat it as a request to resolve a PR review thread. - Default workflow: use
resolve-pr-commentsin proposal-only mode (generate/fill S6, then stop for user review).
Checklist Freshness Rule
- If
.lexcoding/prs/<pr_number>/s5_review_checklist.mdor.lexcoding/prs/<pr_number>/s5_unresolved_checklist.mdis missing or stale, runfetch-pr-reviewsfirst, then continue withresolve-pr-comments.
PR Selection Defaults
- Unless the user specifies a PR number, use the current branch PR.
- If the user asks for the “latest PR” and the current branch has no PR, use the latest
OPENPR and state that assumption.
Two-Phase Rule for resolve-pr-comments
- Phase 1: generate/fill S6 proposal and ask the user to review.
- Phase 2: execute code/doc changes only after explicit user approval.
- Do not mark threads as resolved (
lexcoding pr sync --state resolved) before implementation is complete and user confirms. - If the user asks only for “方案/建议/怎么改”, do not execute code changes in the same step.