factory
Skill2 starsChanged 6 months agoMITView on GitHub
AI Software Factory — end-to-end pipeline from approved ticket to deployed test environment. Chains readiness gate → develop (factory mode) → PR → CI deploy. Reduces human touchpoints from 5+ to 2.
- Commits and pushes
9 other projects use a version of this.
Adopted by
Most recently taken up by
- oleg-koval/factorytheir own version, first seen Sep 29, 2026
- boston-harness-group/remote-factorytheir own version, first seen Sep 2, 2026
- xavierforge/skillstheir own version, first seen Aug 19, 2026
- RubyEyedReaper/Odin-Skillstheir own version, first seen Aug 15, 2026
- owainlewis/blueprinttheir own version, first seen Aug 15, 2026
- BuilderIO/skillstheir own version, first seen Jul 23, 2026
Other versions9 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 9
- BuilderIO/skills★ 4.5ksame name
- owainlewis/blueprint★ 410same name
- popmechanic/VibesOS★ 135same name
- boston-harness-group/remote-factory★ 72same name
- rafagomes/ai-workflow★ 9same name
- xavierforge/skills★ 4same name
- berth-dev/berth★ 1same name
- oleg-koval/factory★ 1same name
- RubyEyedReaper/Odin-Skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository45 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- improveSkill
- teamSkill
- ccf-architecture-contractSkill
- ccf-build-and-envSkill
- ccf-change-controlSkill
- ccf-debugging-playbookSkill
- ccf-doc-sync-campaignSkill
- ccf-dogfood-and-driftSkill
- ccf-domain-referenceSkill
- ccf-failure-archaeologySkill
- ccf-onboarding-tourSkill
- ccf-parity-playbookSkill
- ccf-release-and-installSkill
- ccf-testing-and-qaSkill
- improveSkill
- teamSkill
- add-referenceSkill
- ai-updateSkill
- app-blueprintSkill
- buildSkill
- check-readinessSkill
- deploySkill
- developSkill
- draft-storySkill
- error-analyzeSkill
- fetch-docsSkill
- generate-internal-appSkill
- impactSkill
- improveSkill
- indexSkill
- iterative-reviewSkill
- merge-resolveSkill
- mock-endpointSkill
- planSkill
- promoteSkill
- refine-storySkill
- scaffold-design-systemSkill
- searchSkill
- setupSkill
- teamSkill
- skill-nameSkill
- update-trackerSkill
- validateSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. 0 are common, 14 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 9 edited versions we read keep these.
14
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 89
Worktree: always (no prompt)
- Distinctive: line 98
Before creating the PR, optionally validate the full deployment locally.
- Distinctive: line 101
Salesforce: Create scratch org, deploy, run tests
- Very specific: line 102
Node.js/Python: Run full test suite, build, lint
- Distinctive: line 104
Generic: Run project's validation script
- Distinctive: line 108
If validation fails (max 3 attempts):
- Distinctive: line 113
After 3 failures → halt and notify.
- Distinctive: line 117
Only after validation passes:
- Distinctive: line 135
After PR is created, two things happen automatically:
- Distinctive: line 139
If CI deployment fails, errors are posted as PR comments.
- Distinctive: line 144
After merge, CI handles:
- Distinctive: line 152
Wait for human to complete manual config
- Distinctive: line 213
Factory mode writes memory: when:
- Distinctive: line 229
When a factory PR can't merge (another PR merged to base branch first):
- Distinctive: line 233
If resolution is uncertain → halts and notifies for human review
“Common” is measured: kept by at least 6 in 10 of the 9 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Factory
End-to-end AI Software Factory: readiness → develop → PR → CI deploy to test environment.
Usage
/factory TICKET-1234
/factory 1234Overview
The factory pipeline automates the full path from an approved ticket to code deployed in a test environment for review. It chains existing skills with factory-mode defaults that eliminate manual decision points.
Human Touchpoints (reduced from 5+ to 2)
- Architect/PM drafts ticket —
/draft-storyresolves all open questions → ticket is "Ready for Sprint" - Code review — reviewer approves PR. Code is already deployed in test environment (by CI).
- Smoke test — users validate in staging after auto-deploy
Everything else is automated.
Architecture
Developer Terminal (Claude Code) │ CI/CD (automatic)
─────────────────────────────────────┼──────────────────────────────────
│
/factory TICKET-xxx │
├─ /check-readiness │
├─ Create worktree + branch │
├─ Scaffold + implement │
├─ /validate (code standards only) │
├─ Fix code standards issues │
├─ Commit + push │
├─ Create PR (factory label) ─────┼──► CI validate workflow
└─ /improve (background) │
│ ├─ Deploy to test environment
│ ├─ Run tests
│ └─ Post PR comment with env link
│
Review ─┼──► Reviewer tests in environment
│
PR Approved ──┼──► CI auto-merge workflow
│
PR Merged ──┼──► CI deploy workflow
│ ├─ Deploy to staging
│ ├─ Notify team
│ └─ Update ticket statePipeline Classification
The readiness gate classifies tickets into two paths:
| Type | Meaning | Deploy behavior |
| Auto | All changes deployable via CI/CD | Full automation through staging |
| Semi-auto | Requires manual configuration | Pipeline pauses → notifies manual steps → human confirms → deploy |
Execution
Step 1: Parse Input
Extract ticket ID from input. Accept TICKET-1234 or just 1234.
Step 2: Readiness Gate
Invoke /check-readiness TICKET-{id} --factory.
The --factory flag means:
- On FAIL: automatically post gap report to tracker, transition to "needs info" state, and stop
- On PASS: continue to Step 3. Save the classification (auto/semi-auto) for the PR label.
If readiness fails:
Factory halted — TICKET-{id} not ready. Gap report posted to tracker. Ticket returned to architect.
Step 3: Develop (Factory Mode)
Invoke /develop TICKET-{id} --factory.
Factory mode defaults (no user prompts):
- Worktree: always (no prompt)
- Validation: code standards only — no deployment (CI handles it)
- Tracker update: automatic
- PR label:
factoryadded automatically (+factory-semi-autoif classified)
Step 4: Pre-Push Validation (Optional)
BLOCKING GATE: Do NOT push or create a PR until this step passes.
Before creating the PR, optionally validate the full deployment locally. This catches deployment errors before human review.
The implementation depends on your deployment target:
- Salesforce: Create scratch org, deploy, run tests
- Node.js/Python: Run full test suite, build, lint
- Docker: Build image, run container tests
- Generic: Run project's validation script
{{FACTORY_LOCAL_VALIDATION}}
If validation fails (max 3 attempts):
- Parse the error
- Fix the source
- Retry
After 3 failures → halt and notify.
Step 5: Push & Create PR
Only after validation passes:
git push -u origin {branch}
gh pr create --base {{BASE_BRANCH}} --assignee @me \
--title "{TICKET_ID}: {Story Title}" \
--label "factory" \
--body "$(cat <<'EOF'
## Summary
- {short summary of changes}
[Ticket: {TICKET_ID}]({{TRACKER_TICKET_URL}})
EOF
)"Step 6: Wait for CI + Code Review
After PR is created, two things happen automatically:
- CI/CD deploys to test environment and posts PR comment with link
- Reviewer tests the code, then approves or requests changes
If CI deployment fails, errors are posted as PR comments. Developer fixes locally and pushes.
Step 7: Deploy to Staging (Post-Merge)
Auto tickets
After merge, CI handles:
- Deploy to staging
- Notify team
- Update ticket state
Semi-auto tickets
After merge:
- Post notification listing manual config steps
- Wait for human to complete manual config
- Human confirms → deploy
Step 8: Report Completion
Factory pipeline complete for TICKET-{id}.
Phase Status Readiness PASS ({auto/semi-auto}) Branch {worktree_path} Implementation Complete Code Standards PASS Local Validation PASS PR {pr_url} CI Deploy Pending (CI/CD) Staging Deploy {Auto on merge / Pending manual steps}
Step 9: Framework Improvement (Background)
Spawn /improve in the background per the pattern in /develop Phase 9. This never blocks the factory pipeline — it runs after the completion report.
Execution Logging
Each factory run produces structured logs in docs/stories/{TICKET_ID}/:
| File | Content |
execution-log.md | Phase-by-phase timestamps, outcomes, durations |
build-log.md | Validation failures and fix attempts |
execution-log.md Format
# Factory Execution Log — TICKET-{id}
## Run: {timestamp}
| Phase | Started | Duration | Outcome |
|-------|---------|----------|---------|
| Readiness | {time} | {duration} | PASS (auto) |
| Branch | {time} | {duration} | Created worktree |
| Scaffold | {time} | {duration} | {n} files generated |
| Implement | {time} | {duration} | {n} components created |
| Validate (standards) | {time} | {duration} | PASS |
| Validate (deploy) | {time} | {duration} | PASS |
| PR | {time} | {duration} | #{pr_number} |
Total: {total_duration}
## Components Created
{list from solutions-components.md}Memory Integration
Factory mode reads memory for:
- Worktree preferences (always worktree in factory, but naming convention matters)
- Known build fixes (preventive application before validation)
- Environment aliases (for local validation target)
Factory mode writes memory when:
- A non-obvious build fix is discovered during fix attempts
- A new deployment pattern is established
Halt Conditions
| Condition | Action |
| Readiness gate fails | Return to architect, post gap report |
| Code standards fail after 3 attempts | Halt, notify team |
| Local validation fails after 3 attempts | Halt, notify team |
| PR merge conflict | Run /merge-resolve TICKET-{id} to auto-resolve |
| CI deployment failure | Error posted as PR comment |
Merge Conflict Auto-Resolution
When a factory PR can't merge (another PR merged to base branch first):
/merge-resolvereads both features' story docs to understand intent- Applies per-file-type resolution rules (source code: merge methods; permissions: union; config: deduplicate)
- Pushes resolved result → CI re-validates
- If resolution is uncertain → halts and notifies for human review
Halt Notification
{{NOTIFY_HALT_FACTORY}}
Edge Cases
| Scenario | Behavior |
| No ticket ID provided | Ask for it |
| Ticket already has open PR | Skip to review gate, warn user |
| Ticket already in staging/UAT | Skip, inform user |
| Worktree already exists | Reuse existing worktree |
| Factory label already on PR | Skip labeling |
| Auth not configured | Prompt user, halt |
| Notification webhook not set | Warn, skip notification, continue |
| PR has merge conflicts | Attempt auto-resolve, halt if complex |
Related Skills
/check-readiness— readiness gate (Step 2)/develop— implementation pipeline (Step 3)/improve— manual framework improvement (Step 9 runs this automatically)/deploy— manual deployment alternative/validate— code standards validation (called by/develop)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

