Repository navigation
Description
Summary
A session in an ordinary interactive conversation cannot run finalize-pr, because the skill carries disable-model-invocation: true (workflow/skills/finalize-pr/SKILL.md:4, the rule in workflow/skills/AGENTS.md:8). When asked to raise a PR, the model falls back to a hand-written gh pr create and skips the whole pipeline: simplify, review, conditional security review, docs sync, and step 7's body, including the mandatory ## Preview section. sydevs/SahajCloud#1238 shipped with no preview links this way. Only review-pr flags the gap (a should-fix on a missing link), and only once the review loop reaches the PR.
Approach
Remove disable-model-invocation: true from workflow/skills/finalize-pr/SKILL.md:4. A session asked to raise or refresh a PR then runs the whole pipeline, rather than a bare gh pr create.
- Keep the trigger narrow. Rewrite the skill's
descriptionso it fires only when the user has asked to open or refresh a PR. A stray phrase firing a skill that pushes is the reason for the AGENTS.md rule. - Every pipeline step keeps its existing gates. Nothing here changes what the loop's own invocations of
finalize-prdo. - Add the exception to the rule in
workflow/skills/AGENTS.md:8, with adocs/why.mdentry naming the failure (a PR opened with no Preview section and none of the pipeline). Without it, the next skill audit will putdisable-model-invocationback.
Acceptance criteria
- In an interactive session in a consumer repo, a request such as "raise a PR for this" runs the
finalize-prpipeline instead of a baregh pr create. - A PR opened that way in a repo whose
.claude/workflow.jsonhaspreviewUrlcarries a## Previewsection built by step 7's rules, including fixture-cited links wherefixtureis declared. - The loop's own invocations of
finalize-pr(implement-ticket, address-review) behave exactly as before. -
finalize-prcarries nodisable-model-invocation.workflow/skills/AGENTS.mdnames the exception, anddocs/why.mdcarries its story.
Verification checklist
-
claude plugin validate(or the repo's plugin-validation CI job) passes on the changed frontmatter. - In a SahajCloud worktree with one local commit touching
src/components/admin/, ask an interactive session to "raise a PR". The opened PR's body has a## Previewsection whose links matchfixture.linkwith the PR number filled in. - The same request in SahajAtlasWordpress (no preview) opens a PR with the Preview section omitted.
- Ask an interactive session something that mentions "PR" without asking it to open one, e.g. "what does this PR change?".
finalize-prdoes not fire.
Decisions
- How should a model-invoked session reach the PR pipeline? → Make
finalize-pritself model-invocable, rather than extracting step 7 into a helper, so an interactive PR gets simplify, review, security review and docs sync too (Ardnived, 2026-11-20)
Notes
- Considered and set aside, though either can still sit on top later as a cheaper backstop: a PreToolUse hook that blocks
gh pr createwithout## Previewin repos withpreviewUrl, and a dispatcher step onpull_request.openedthat adds fixture links to a body with none. - Found on feat(admin): explain who can edit a manager, and add a Need help? link to the header SahajCloud#1238 (2026-11-20).
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Hold Until
Projects
- StatusShow more project fieldsDone
Activity
Ardnived commentedon Nov 20, 2026
@sydevs-bot implement
sydevs-bot commentedon Nov 20, 2026
🤖 no session running
approved by Ardnived
recent dispatches
Written by the sydevs dispatcher. Sessions never edit this comment.