clearmeasure-aisf-sample-apps/cmdemo1-fworker/factory-pr-approval
Claude Code and agent skill by clearmeasure-aisf-sample-apps/cmdemo1-fworker
- community
Checking that the SKILL.md file is still in the repository.
Use when an item in Functional Testing has a recorded PASS verdict and the merge policy is peer-approved (the verdict returned next "approve", or a work offer says needs-approval). Gets the facts, runs the factory inspector subagent, and submits its verdict through the gateway. Never merges.
Install
npx vskill@latest install clearmeasure-aisf-sample-apps/cmdemo1-fworker/factory-pr-approvalSKILL.md
The same SKILL.md was published earlier as clearmeasure-aisf-sample-apps/cmdemo1-fworker/factory-pr-approval.
PR approval
Runs in an inspector session started by a bot job (item.assigned with job: "bot-job"): first factory.ps1 accept --item N --assignment <id> --role inspector. This session holds only the inspector item token; it can read facts and approve, never merge. After the verdict is submitted the session ends.
The merge policy (mergePolicy in the gateway's config) decides whether this step exists: with auto the verdict goes straight to merge; with peer-approved an independent identity must approve the current head first.
factory.ps1 inspect-facts --item N— readfacts,mandatory(reasons the script computed) andmust_escalate.- Start the
factory-inspectorsubagent with: the item (title, body), the PR number, the wholeinspect-factsoutput, and nothing else. Do not pass the implementer's or reviewers' conclusions. - Save the inspector's answer to a file and submit it:
factory.ps1 approve-pr --item N --pr P --text-file <file>. The gateway reads the last line.
APPROVE→ exit 0,next: "merge": the approval was submitted to GitHub by the reviewer identity. Continue withfactory.ps1 merge --item N --pr P.REQUEST CHANGES→ the item goes back to Development as a demotion carrying the findings. Stop.ESCALATE→ exit 0,outcome: "held": the item is parked, labeledNeeds Human Review, and a comment lists the reasons. Stop. A person approves the PR on GitHub; the sweep releases the hold and offers the merge.- exit 10
escalation-required: the script found a mandatory reason and refused an APPROVE. Submit again with the inspector's escalation (ask the inspector to restate its verdict as ESCALATE including the mandatory reasons). - exit 10
approver-is-author,stale-head,held,no-pass-verdict: stop and report thecode.
Never: approve or merge by any route except these verbs; change the inspector's text to turn a finding into an approval; clear a hold (only a person's GitHub approval does).
Model for each subagent (cost first, automatic)
Before starting any subagent, ask the ladder: factory.ps1 model-for --role subagent --item N. It returns {tier, name, model, alias, effort, reasons}: pass model to the Agent tool (an Agent tool that accepts only short names gets alias: haiku, sonnet, opus or fable). The gateway raises the tier by itself when the item shows a loop (a relaunch, repeated review findings, a demotion, fix-forward rounds, or three or more refused gate calls); a machine's own models.json decides which model sits on each rung. Default ladder: haiku 5.5 at xhigh, then sonnet 5.5 at medium, then opus 5.5 at medium. Never choose a model by judgement; never lower a tier. mode: "fixed" means the machine pins a model: use it as returned. mode: "profile" (the testing profile: haiku at low effort, for items labelled factory test and for automated test runs) is pinned too and never climbs: use it as returned even if the item loops.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugin/skills/factory-pr-approval/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/clearmeasure-aisf-sample-apps/cmdemo1-fworker/factory-pr-approval)