Skills for the Ralph autonomous agent system - Generate PRDs and convert them to prd.json format for autonomous execution
npx claudepluginhub jnyross/1-3testSkills for the Ralph autonomous agent system - Generate PRDs and convert them to prd.json format for autonomous execution
Code Factory is a repo control-plane for autonomous coding + deterministic review.
This template implements the full pattern:
All control-plane policy lives in ARCHITECTURE.yaml under control_plane:
riskTierRulesmergePolicydocsDriftRulesreviewAgentremediationAgentbrowserEvidenceharnessGapLoopbranchProtectionControl Plane workflow (.github/workflows/preflight.yml) runs jobs in this order:
risk-policy-gateCI Pipeline, harness-smoke, Browser Evidencerisk-policy-finalizeFor high tier changes, the gate auto-applies the PR label high-risk.
Greptile runs as the code review agent via GitHub App. Install the Greptile app and configure greptile.json in the repo root. The policy gate uses Greptile's check run directly (useCheckConclusionOnly: true).
greptile-event-handler workflow (.github/workflows/greptile-event-handler.yml) triggers on Greptile check completion: remediation (on failure) and auto-resolve of bot-only threads (on success).
scripts/control-plane/risk-policy-gate.mjs enforces:
sha:<head>For UI-sensitive paths, Browser Evidence requires a valid manifest:
harness/browser-evidence/manifest.jsonARCHITECTURE.yamlCapture uses Playwright to take real screenshots of required flows. If no BROWSER_EVIDENCE_BASE_URL is set, the capture script builds and serves the flowchart app locally.
Generate/update evidence manifest:
npm run harness:ui:capture-browser-evidence
npm run harness:ui:verify-browser-evidence
In CI, capture + verify are both run in Browser Evidence job.
harness-gap-loop workflow:
harness-gap issue when a production-regression issue appearsnpm run harness:weekly-metrics)npm run typecheck
npm run lint
npm test
npm run build:ci --if-present
npm run harness:legal-chat:smoke
npm run harness:ui:pre-pr
npm run harness:ui:capture-browser-evidence
npm run harness:ui:verify-browser-evidence
npm run harness:risk-tier
npm run harness:weekly-metrics
npm run spec:normalize
npm run spec:validate
npm run spec:check
In this template, typecheck, lint, and test delegate to the flowchart subproject.
greptile.json exists in the repo root (this template includes a default).statusCheck: true in greptile.json so the policy gate can enforce the Greptile check.checkName: "Greptile" and useCheckConclusionOnly: true (check conclusion is authoritative).Merge blocking is enforced via GitHub branch protection requiring risk-policy-finalize.
code-factory applies this automatically when it creates the GitHub repo (default behavior).node scripts/control-plane/apply-branch-protection.mjs owner/repo
Note: GitHub may require a paid plan (or public repo) for private-repo branch protection.
Optional, disabled by default:
ENABLE_REMEDIATION=trueREMEDIATION_ENGINE, REMEDIATION_CODEX_MODEL, REMEDIATION_VALIDATE_CMDWhen enabled, failed Greptile checks trigger deterministic in-branch remediation:
codex/claude/opencode/custom)ARCHITECTURE.yamlAGENTS.mdprd.jsonprogress.txt (auto-created by ralph.sh on first run).cursorrulesCLAUDE.md.agent/rules/CodeFactory.mdprompt_template.txtchatgpt_architecture_prd_prompt.txtchatgpt_prd_format_prompt.txtnpm install -g @jnyross/code-factory
Default (local scaffold + create/push GitHub repo):
code-factory my-next-app ~/Projects
Development marketplace for Superpowers core skills library
Harness-native ECC skills, hooks, rules, MCP conventions, and operator workflows
Open Design — local-first design app exposed to coding agents over MCP. Install once with your agent's plugin command and projects/files/skills are reachable through stdio.