Skip to content

ghs-dev-loop

Act as an autonomous developer for a repository --- triage, analyze, implement, review, merge, and release in priority-driven cycles.

Skill Info

Version: 1.0.0 Arguments: [owner/repo] [--budget <N>] [--cycle single|continuous] [--include-health] [--include-deps]Trigger phrases: "dev loop", "be my developer", "autonomous developer", "work on my repo", "process all issues", "developer mode", "full dev loop", "maintain this repo", "handle everything", "automate development", "dev cycle"

What It Does

ghs-dev-loop replaces a human developer for a single repository. It processes work in priority-driven cycles: health maintenance, issue triage/analysis/implementation, code review, PR merging, dependency updates, and optional releases. Each cycle enforces human checkpoints for irreversible operations.

How It Differs from ghs-orchestrate

SkillScopeFocus
ghs-orchestrateMulti-repo pipelineHealth maintenance across repos
ghs-dev-loopSingle-repo developerFull issue lifecycle + health

Scope Boundary

Orchestrates only --- never directly modifies code. All mutations flow through existing skills.

Skill Dependency Map

Priority Queue

PriorityCategoryTrigger
P0Health criticalHealth score < 50%
P1Critical bugspriority:critical label
P2Health maintenanceHealth score < 80%
P3High-priority issuespriority:high label
P4Normal issuespriority:medium, priority:low, or unlabeled
P5DependenciesRenovate/bot PRs pending
P6ReleaseConfigured threshold met + --auto-release

Cycle Modes

ModeBehaviorUse When
singleRun one cycle, then stopManual invocation, testing
continuousRepeat until no work remainsBatch processing backlog
watchPoll for new issues at intervalLong-running maintenance

Checkpoint Gates

GateDefaultCan Disable?Why
Before health fixONYes (--no-checkpoint)Fixes create PRs
Before implement (High+)ONNoComplex changes need sign-off
Before mergeONYes (--auto-merge)Merging is irreversible
Before releaseONNoReleases are public and versioned

Process (Per Cycle)

  1. Pre-flight --- Auth, repo access, write permission, GSD, skill availability
  2. Load state --- Read state issue (GitHub Issue with ghs:state label), offer resume or fresh start
  3. Priority assessment --- Health score, issue inventory, dependency PRs
  4. Health maintenance --- If score < threshold: scan, fix, merge
  5. Issue processing --- For each issue (up to budget): triage, analyze, implement, review, merge
  6. Dependency management --- Review and merge Renovate/bot PRs
  7. Release decision --- If criteria met and --auto-release: draft release + checkpoint
  8. Cycle report --- Health delta, issues processed, PRs created/merged
  9. State update --- Write session entry to state issue (ghs:state GitHub Issue)
  10. Next cycle --- Stop, continue, or poll based on mode

Flags

FlagDefaultEffect
--budget N5Max issues per cycle
--continuousoffRepeat cycles until empty
--watch INTERVALoffPoll for new issues
--auto-mergeoffSkip merge checkpoint (non-High+ PRs)
--auto-releaseoffEnable release step (still checkpointed)
--no-checkpointoffDisable optional checkpoints
--health-threshold N80Score % below which maintenance triggers
--skip-healthoffSkip health maintenance
--skip-dependenciesoffSkip bot PR merging

Example

## Dev Loop: Cycle #1 --- phmatray/Formidable

### Health
  Score: 65% -> 82% (+17%)
  Fixed: 3 items (2 Tier 1, 1 Tier 2)
  PRs: #45, #46, #47 (merged)

### Issues Processed (4/5 budget)

| # | Issue | Action | Result | PR |
|---|-------|--------|--------|----|
| #12 | Login crash | Implement | [PASS] | #49 (merged) |
| #15 | Dark mode toggle | Implement | [PASS] | #50 (merged) |
| #18 | Refactor auth | Analyze | Deferred (VeryHigh --- next cycle) |
| #22 | Fix pagination | Implement | [PASS] | #51 (merged) |

### Dependencies
  Merged: 2 Renovate PRs (#41, #43)

---

Summary:
  Issues: 4 processed, 3 merged, 1 deferred
  Health: +17% improvement
  PRs created: 3, PRs merged: 8
  Next: 8 issues remaining, score at 82%

Cycle complete. To continue: /ghs-dev-loop --continuous phmatray/Formidable

Circuit Breaker

ConditionAction
3 failed implementations in one cycleStop issue processing, report failures
Health scan failsSkip maintenance, proceed with warning
Rate limit detectedPause cycle, report, offer resume
3 consecutive skill failuresStop cycle, preserve state issue

Routes To

Routes From

Technical Details

PropertyValue
Allowed toolsBash(gh:*), Bash(git:*), Read, Write, Edit, Glob, Grep, Skill
Spawns sub-agentsNo --- delegates to individual skills via Skill tool
Cycle budgetDefault 5 issues per cycle
Bias guardsAutomation, Sunk cost, Optimism, Anchoring, Completion, Availability
Requiresgh CLI (authenticated), git, all ghs-skills, GSD framework

Released under the MIT License.