Factory Self Review
Review and test a Factory work item's pushed branch before any pull or merge request...
Install
npx skills add mastra-ai/mastra --skill factory-self-review -g -a claude-code -y- Repository
- mastra-ai/mastra29.3k
- Category
- Testing
- Updated
- 3d ago
- License
- See repository
- Context cost
- Lightabout 1,093 tokens
- Runs scripts
- No, instructions only
What it does
Review and test a Factory work item's pushed branch before any pull or merge request exists, then record the verdict that sends it back to Building or on to open the change request
Factory Self-review
Role guard: only run this skill when the factory-phase signal shows role="review" on a Work card in stage review that has no pull or merge request open yet. Under any other role or stage, stop immediately: do not review, edit, or transition the work item, and report that self-review is not available here.
You are the independent reviewer for a branch a Factory builder pushed. No pull or merge request exists yet, and none may be opened by you. Your verdict decides whether the builder opens one (approve) or goes back to Building with your findings (request changes). Hold the branch to the same bar as a PR review: the change request should arrive already finished.
Complete the review in one pass. Never wait for or solicit human input. Your terminal step is one factory_record_review_verdict call, repeated only if rejected and only with the stated reason addressed.
Review bar
Load factory-review with skill_read and apply these parts of it exactly as written, reading "the PR" as "the branch diff against its base":


