Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
jwynia avatar

Gitea Coordinator

  • 297 installs
  • 133 repo stars
  • Updated February 24, 2026
  • jwynia/agent-skills

gitea-coordinator is a Claude Code orchestrator skill that batches groomed backlog tasks across self-hosted Gitea repositories by spawning worker agents, merging pull requests sequentially, and verifying builds for devel

About

gitea-coordinator is a Claude Code orchestrator skill at version 1.0 that coordinates multiple worker agents to implement groomed backlog tasks in self-hosted Gitea repositories. The skill executes six workflow phases—discovery, planning, execution, merging, verification, and summary—reading ready tasks from a context-network backlog, spawning workers through Claude Code's Task tool, and delegating code changes to the gitea-workflow skill. Workers write progress to .coordinator/workers/{worker-id}/progress.json while the coordinator queues pull requests, merges them sequentially with the Gitea Tea CLI, deletes feature branches, and runs npm build and npm test verification after all merges complete. Command-line flags including --dry-run, --parallel, --max-workers (default 2), --autonomous, and --supervised control batch execution without allowing parallel merges. Developers reach for gitea-coordinator when several groomed backlog items need autonomous implementation on Gitea with coordinated merges and post-merge regression checks.

  • Gitea API
  • PR automation
  • Issue management
  • Self-hosted Git
  • Webhook flows

Gitea Coordinator by the numbers

  • 297 all-time installs (skills.sh)
  • +3 installs in the week ending Aug 2, 2026 (Skillselion tracking)
  • Ranked #140 of 733 Git & Pull Requests skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/jwynia/agent-skills --skill gitea-coordinator

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs297
repo stars133
Last updatedFebruary 24, 2026
Repositoryjwynia/agent-skills

How do you batch-implement Gitea backlog tasks with agents?

Coordinate agent workflows with self-hosted Gitea repos: manage issues, pull requests, branches, and webhooks for teams running Gitea instead of GitHub.

Who is it for?

Developers running self-hosted Gitea with a context-network backlog who need several ready tasks implemented autonomously with sequential PR merges and post-merge verification.

Skip if: Single-task edits, GitHub-hosted repositories, or environments lacking git, the Tea CLI, Claude Code's Task tool, and a structured backlog.

When should I use this skill?

Multiple backlog tasks are marked ready and need autonomous batch implementation on a Gitea repository with coordinated worker agents and sequential merges.

What you get

Merged Gitea pull requests on main, .coordinator/state.json session state, worker progress.json files, and a verification report with build and test status.

  • Merged Gitea pull requests on main branch
  • Post-merge verification report with build and test results
  • .coordinator/state.json session tracking file

By the numbers

  • Defines 6 workflow phases from discovery through summary
  • Ships version 1.0 with 4 reference documentation files
  • Defaults to --max-workers 2 and retries failed tests up to 2 times

Files

SKILL.mdMarkdownGitHub ↗

Gitea Coordinator

Orchestrates multiple worker agents to implement groomed tasks from the backlog in Gitea repositories, handling task assignment, progress monitoring, merge coordination, and verification.

Core Principle

Coordinate, don't implement. The coordinator assigns tasks to workers, monitors their progress, coordinates merges, and verifies results. Workers execute the actual implementation via the gitea-workflow skill.

Quick Reference

When to Use

  • Working with a Gitea-hosted repository
  • Multiple ready tasks in the backlog need implementation
  • You want autonomous batch execution of development work
  • You need coordinated merges to avoid conflicts
  • You want progress tracking across multiple tasks

Invocation

/gitea-coordinator                    # Auto-discover and execute ready tasks
/gitea-coordinator TASK-001 TASK-002  # Execute specific tasks
/gitea-coordinator --dry-run          # Preview execution plan only
/gitea-coordinator --parallel         # Run workers in parallel
/gitea-coordinator --sequential       # Run workers one at a time (default)

Flags

FlagDescriptionDefault
--sequentialExecute tasks one at a timeYes
--parallelExecute tasks concurrentlyNo
--max-workers NMaximum concurrent workers2
--dry-runShow plan without executingNo
--autonomousAuto-continue at all checkpointsYes
--supervisedPause after each task completesNo
--verboseShow all worker updatesNo
--summary-onlyShow major milestones onlyYes

---

Workflow Phases

Phase 1: Discovery

Read the backlog to find tasks ready for implementation.

Actions:
1. Read context/backlog/ for task files
2. Filter to status: ready
3. Parse task metadata (priority, size, dependencies)
4. Sort by priority (high → medium → low)
5. Present findings

Output: List of ready tasks with metadata

Phase 2: Planning

Create an execution plan based on task characteristics.

Actions:
1. Determine execution mode (sequential or parallel)
2. Check for task dependencies (A must complete before B)
3. Assign tasks to workers in priority order
4. Generate worker instructions

Output: Execution plan with task assignments

Checkpoint: TASKS_DISCOVERED

  • Display: Ready tasks and proposed execution plan
  • Auto-continue: If --autonomous flag and tasks found
  • Options: continue, reorder, exclude [TASK-ID], stop

Phase 3: Execution

Spawn and monitor worker agents.

For SEQUENTIAL mode:
  for each task in queue:
    1. Spawn worker with Task tool
    2. Worker runs gitea-workflow for the task
    3. Monitor progress via file system
    4. When complete: proceed to merge phase
    5. On failure: handle error, decide continue/stop

For PARALLEL mode:
  1. Spawn workers up to max_workers
  2. Monitor all workers concurrently
  3. As workers complete: queue their PRs for merge
  4. Spawn next worker if tasks remain
  5. Continue until all tasks processed

Checkpoint: WORKER_COMPLETE (per worker)

  • Display: Worker summary, PR number, next action
  • Auto-continue: If successful and --autonomous
  • Options: continue, retry, skip, stop

Phase 4: Merging

Execute merges sequentially to avoid conflicts.

Actions:
1. For each completed PR in merge queue:
   a. git checkout main && git pull
   b. Merge PR (via tea pulls merge or git merge)
   c. Verify merge succeeded
   d. Delete feature branch
2. If conflict: pause and alert user

Output: All PRs merged to main

Phase 5: Verification

Verify system integrity after all merges.

Actions:
1. git checkout main && git pull --rebase
2. npm run build (verify build passes)
3. npm test (run full test suite)
4. Check for regressions
5. Generate verification report

Output: Verification status (PASSED/FAILED)

Checkpoint: VERIFIED

  • Display: Test results, build status
  • Auto-continue: If all tests pass
  • Options: done, investigate, revert

Phase 6: Summary

Generate comprehensive completion report.

Output:
- Tasks completed with PR numbers and commits
- Metrics (workers spawned, PRs merged, tests added)
- Verification status
- Remaining backlog tasks

---

Worker Protocol

Workers are spawned using Claude Code's Task tool and run gitea-workflow for their assigned task.

Worker Instruction Template

See templates/worker-instruction.md

Key requirements for workers: 1. Run gitea-workflow with autonomous mode 2. Write progress to .coordinator/workers/{worker-id}/progress.json 3. Do NOT self-merge - signal ready-to-merge status instead 4. Handle all gitea-workflow checkpoints automatically

Progress Tracking

Workers report progress via file system:

// .coordinator/workers/worker-1/progress.json
{
  "worker_id": "worker-1",
  "task_id": "TASK-006",
  "status": "in_progress|completed|failed|ready-to-merge",
  "phase": "implement|review|pr-prep|pr-complete",
  "pr_number": null,
  "branch": "task/TASK-006-description",
  "last_update": "2026-01-20T10:15:00Z",
  "milestones": [
    {"phase": "implement", "timestamp": "..."},
    {"phase": "review", "timestamp": "..."}
  ]
}

---

State Tracking

The coordinator maintains state in .coordinator/state.json:

{
  "session_id": "coord-2026-01-20-abc123",
  "state": "EXECUTING",
  "config": {
    "execution_mode": "sequential",
    "autonomy_level": "autonomous"
  },
  "tasks": {
    "queued": ["TASK-008"],
    "in_progress": ["TASK-007"],
    "completed": ["TASK-006"],
    "failed": []
  },
  "workers": [...],
  "merge_queue": [],
  "verification": null
}

See references/state-tracking.md for details.

---

Failure Handling

Failure TypeDetectionRecovery
Worker failsProgress shows failedOffer retry, skip, or abort
Tests failnpm test exits non-zeroWorker retries up to 2x
Merge conflictgit merge failsPause, alert user
Verification failsPost-merge tests failOffer investigate or revert

See references/failure-handling.md for details.

---

Integration with gitea-workflow

The coordinator spawns workers that execute gitea-workflow:

gitea-coordinator (orchestrator)
    │
    ├── Worker 1 → gitea-workflow --task TASK-006
    ├── Worker 2 → gitea-workflow --task TASK-007
    └── Worker 3 → gitea-workflow --task TASK-008

Key integration points:

  • Workers run gitea-workflow in autonomous mode
  • Coordinator handles merges (workers create PRs but don't merge)
  • Progress synced via file system
  • Coordinator runs verification after all merges

---

Anti-Patterns

AP1: Parallel Merges

Pattern: Merging multiple PRs simultaneously Problem: Creates merge conflicts, corrupts main branch Fix: Always merge sequentially, pull before each merge

AP2: Worker Self-Merge

Pattern: Workers merge their own PRs Problem: Race conditions, uncoordinated merges Fix: Workers signal ready-to-merge, coordinator executes merges

AP3: No Verification

Pattern: Skipping post-merge verification Problem: Regressions go undetected Fix: Always run full test suite after merges complete

---

Example Interaction

User: /gitea-coordinator

Coordinator: Discovering ready tasks...

Found 2 ready tasks:
1. TASK-006 - Persistent Message Status (medium priority, medium size)
2. TASK-007 - Add Unit Tests (high priority, large size)

Execution Plan:
- Mode: sequential
- Order: TASK-006 → TASK-007

Proceed? [continue/reorder/stop]

User: continue

Coordinator: Starting TASK-006...
[Spawns Worker 1]

**Milestone**: TASK-006 - PR #123 created, CI passing

Coordinator: Merging PR #123...
**Milestone**: TASK-006 complete (commit abc123)

Coordinator: Starting TASK-007...
[Spawns Worker 2]

**Milestone**: TASK-007 - PR #124 created, CI passing

Coordinator: Merging PR #124...
**Milestone**: TASK-007 complete (commit def456)

Coordinator: Running verification...
- Build: PASSED
- Tests: 47/47 passing
- Coverage: 82%

## Summary
Tasks completed: 2
- TASK-006: PR #123 merged (commit abc123)
- TASK-007: PR #124 merged (commit def456)

Verification: PASSED

---

Integration Graph

Inbound (From Other Skills)

Source SkillTriggerAction
requirements-elaborationTasks groomedCoordinator can execute
gitea-agileBacklog readyCoordinator discovers tasks

Outbound (To Other Skills)

This ActionTriggers SkillFor
Spawn workergitea-workflowTask implementation
Verification failsresearchDebug investigation

Complementary Skills

SkillRelationship
gitea-workflowWorkers execute this skill
gitea-agileManages backlog this reads

---

Design Constraints

  • Requires Claude Code's Task tool for spawning workers
  • Workers cannot directly communicate with each other
  • File system used for progress coordination
  • Sequential merges only (parallel merges disabled)
  • Assumes context network backlog structure

What You Do NOT Do

  • Implement tasks directly (workers do this)
  • Merge PRs in parallel (always sequential)
  • Skip verification (always verify after merges)
  • Continue after critical failures without user consent

Related skills

How it compares

Choose gitea-coordinator over platform-agnostic agile-coordinator when the target repository is self-hosted Gitea and Tea CLI pull-request workflows are required.

FAQ

What does gitea-coordinator require to run?

gitea-coordinator requires git, the Gitea Tea CLI (tea), a context network with a backlog structure, and Claude Code's Task tool for spawning worker agents. Workers execute the gitea-workflow skill while the coordinator handles merges and verification.

How does gitea-coordinator avoid merge conflicts?

gitea-coordinator always merges pull requests sequentially—never in parallel. Workers create PRs and signal ready-to-merge status, then the coordinator checks out main, pulls, merges via tea or git, and deletes feature branches before starting the next merge.

Can gitea-coordinator run tasks in parallel?

gitea-coordinator supports --parallel mode to spawn up to --max-workers concurrent workers (default 2), but merges remain strictly sequential. Use --dry-run to preview the execution plan without spawning workers or merging pull requests.

Git & Pull Requestsgitintegrations

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.