/factory:factory-policiesfrom factory
Enforces two mandatory policies: prototype-first before building features, and a mandatory review loop with merge gate before merging PRs. Use before building any feature or merging any PR.
Ships in factory. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Two rules govern every feature build and every pull request in the software factory.
Before coding any feature:
factory-prototyper agent: real screens, realistic mock data, all reachable states (empty, loading, error, toggled), and key interactions working.factory proto add --product <key> --feature "<name>" --file <proto.html> --thread <id> --look-at "..." (served on 127.0.0.1 by factory serve), and wait for explicit validation from the owner. Passing your own checks is not validation.docs/DECISIONS.md or the feature brief); the factory-builder agent and implementation must follow those recorded decisions over any preference.factory proto built <id> --pr <N>.See BRIEF.md and RESULT.md in this skill directory for the standard build brief and result package templates used by factory-triage and factory-builder.
Every PR goes through the full loop before it can be merged. The PreToolUse merge gate hook (hooks/merge_gate.py) enforces step 4 by blocking gh pr merge and gh api .../pulls/<n>/merge unless the exact head SHA carries factory/review=success from a trusted account (FACTORY_REVIEW_TRUSTED, review.trusted in factory config, or the active gh login).
factory review plan <owner/repo>#<pr> first to get the enabled lenses, model per lens, quota-routed account, and max rounds. Untriaged PRs use the high plan; a migration or auth path needs at least high. The money tier, any PR touching a money path and any PR whose signals cannot be read are locked to every lens and at least 2 rounds (overrides cannot lower a money lock).simplify is in the plan, run the factory-simplifier agent on the PR diff (reuse, simplification, efficiency, altitude) with its planned model. Apply behaviour-preserving fixes and push them first so reviewers inspect the simplified head.factory-reviewer agents in parallel for every reviewer lens in the plan (with each lens's planned model, falling back to the next healthy account per factory quota route if quota is hit) at the exact head SHA, and record verdicts with factory review record <owner/repo>#<pr> <sha> --lens <lens> --model <model> --file <json>. Fix actionable findings, push, and repeat on the new head SHA until a round finds nothing actionable. After the plan's max rounds with remaining blockers or unresolved disagreements, stop and escalate to the owner with factory ask. The plan is a floor: a reviewer still adds the security or money lens when the diff calls for it.gh api repos/<owner>/<repo>/statuses/<full-head-sha> \
-f state=success \
-f context=factory/review \
-f description="review loop clean after K round(s)"
A new push changes the head SHA and invalidates the status, requiring a new review round.factory ask --project <id> --kind action for the owner to merge (or hand back for the owner/merge flow), and wait.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
prototype-first, review-loop, merge-gate, pr-policy, build-policy
npx claudepluginhub artguru-tech-team/factory-oss --plugin factory4 skills in this plugin
/factoryUse in every agent session that works on a planned project (a roadmap row, a build with phases, a metric loop, the bug lane), and whenever you need a decision from the owner. Keeps the factory dashboard true through the `factory` CLI: plan and progress, project updates, questions for the owner and their answers. Triggers: starting work on a roadmap row, a PR opened or merged, an experiment finished, 'ask the owner', 'I need a decision', 'update the dashboard', 'post an update', a blocker, 'delegate a task', 'which account or model runs this'./intakeUse when you sit in a team's WhatsApp or Telegram group and a teammate reports a bug: talk it through, then file it as an `intake` issue with `factory intake file`. Triggers: a bug report in the team chat, a teammate says 'it is broken', 'the app crashed', 'payments fail', someone pastes a recording link, 'file this', 'open a ticket for this'./release-managerFollow the daily release manager plan for a product. Triggers on a message starting "Release manager (factory release plan", "Release manager (factory release queue" or "Release manager (factory release comms", or when asked to run a release-manager release. Covers branch cutting, release-risk review, status gates, merging, migrations, deploy verification, the health and signal watch, rollback and reporting for every product registered with `factory release product add`.Other plugins' skills for the same job