clearmeasure-aisf-sample-apps/cmdemo1-fworker/factory-pr-approval

Claude Code and agent skill by clearmeasure-aisf-sample-apps/cmdemo1-fworker

Trust tier 3
  • community
Source check pending

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-approval

SKILL.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.

  1. factory.ps1 inspect-facts --item N — read facts, mandatory (reasons the script computed) and must_escalate.
  2. Start the factory-inspector subagent with: the item (title, body), the PR number, the whole inspect-facts output, and nothing else. Do not pass the implementer's or reviewers' conclusions.
  3. 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 with factory.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, labeled Needs 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 the code.

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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/clearmeasure-aisf-sample-apps/cmdemo1-fworker/factory-pr-approval/badge)](https://verified-skill.com/skills/clearmeasure-aisf-sample-apps/cmdemo1-fworker/factory-pr-approval)

Something wrong with this skill or its page? Tell us.