All skills
jwynia avatar

/gitea-workflow

@99a8797
by J Wyniajwynia/agent-skills160 stars
20

Orchestrate agile development workflows for Gitea repositories using the tea CLI. Use when working with Gitea-hosted repos and asking to 'run the workflow', 'continue working', 'what's next', 'complete the task cycle', 'start my day', 'end the sprint', 'implement the next task', or wanting guided step-by-step development assistance. Keywords: workflow, orchestrate, agile, task cycle, sprint, daily, implement, review, PR, standup, retrospective, gitea, tea.

Use this Skill: https://skilld.dev/gh/jwynia/agent-skills/gitea-workflow

This session only. Nothing lands on disk.

referencesphasestask-cycle.md

≈3.7k tokens on demand. Your agent reads this file only when SKILL.md points to it.

Task Cycle Phase Reference

Complete flow for implementing a single task from selection to merge.

Overview

The task cycle is the primary workflow for development work. It takes a task from the ready queue through implementation, review, and merge.

TASK CYCLE FLOW
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

  START
    │
    ▼
┌─────────┐
│  sync   │ ─── Reality check: align docs with actual state
└────┬────┘
     │
     ▼
┌─────────┐
│  next   │ ─── Select highest priority ready task
└────┬────┘
     │
     ▼
╔═══════════════════════════════════════════════════════╗
║  CHECKPOINT: TASK_SELECTED                            ║
║  • Display task details                               ║
║  • Confirm selection or choose different task         ║
╚═══════════════════════════════════════════════════════╝
     │
     ▼
┌─────────────┐
│  implement  │ ─── Create worktree, TDD, build
└──────┬──────┘
       │
       ▼
╔═══════════════════════════════════════════════════════╗
║  CHECKPOINT: IMPL_COMPLETE                            ║
║  • Show test results and coverage                     ║
║  • Verify build status                                ║
║  • Confirm ready for review                           ║
╚═══════════════════════════════════════════════════════╝
       │
       ▼
┌─────────────┐     ┌───────────────┐
│ review-code │ ──▶ │ review-tests  │
└──────┬──────┘     └───────┬───────┘
       │                    │
       └────────┬───────────┘
                │
                ▼
╔═══════════════════════════════════════════════════════╗
║  CHECKPOINT: REVIEWS_DONE                             ║
║  • Display combined review results                    ║
║  • Critical issues block progress                     ║
║  • User decides: fix now or defer                     ║
╚═══════════════════════════════════════════════════════╝
                │
       ┌───────┴───────┐
       │  Has issues?  │
       └───────┬───────┘
         Yes   │   No
          ▼    │    │
┌──────────────────┐│
│apply-recommend's ││
└────────┬─────────┘│
         │          │
         └────┬─────┘
              │
              ▼
┌─────────────┐
│   pr-prep   │ ─── Validate, document, create PR
└──────┬──────┘
       │
       ▼
╔═══════════════════════════════════════════════════════╗
║  CHECKPOINT: PR_CREATED                               ║
║  • Display PR URL and CI status                       ║
║  • Wait for CI checks                                 ║
║  • Wait for approvals                                 ║
╚═══════════════════════════════════════════════════════╝
       │
       ▼
┌─────────────┐
│ pr-complete │ ─── Merge, cleanup worktree, update task status
└──────┬──────┘
       │
       ▼
┌───────────────────┐
│ update-backlog    │ ─── Update epic file, unblock dependents,
│ & project status  │     update project status
└──────┬────────────┘
       │
       ▼
    END

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Step-by-Step Details

Step 1: Sync (Reality Check)

Command: sync --last 1d --dry-run

Purpose: Ensure context network matches reality before starting work.

Actions:

  1. Check files changed recently
  2. Compare against documented task statuses
  3. Identify any completed but undocumented work
  4. Report sync findings

Outputs:

  • Sync report
  • Any tasks that should be marked complete
  • Warning if attempting duplicate work

Next Step: Proceed to task selection


Step 2: Next (Task Selection)

Command: next

Purpose: Identify the single best task to work on.

Actions:

  1. Read ready task queue
  2. Apply priority ordering
  3. Select highest priority available task
  4. Display task summary

Outputs:

  • Task ID and title
  • Priority and size
  • Suggested branch name

Triggers Checkpoint: TASK_SELECTED


Checkpoint: TASK_SELECTED

Display:

╔═══════════════════════════════════════════════════════╗
║  CHECKPOINT: Task Selection                           ║
╠═══════════════════════════════════════════════════════╣
║  Selected: [TASK-ID] - [Task Title]                   ║
║  Priority: [High/Medium/Low]                          ║
║  Size: [trivial/small/medium]                         ║
║  Branch: task/[TASK-ID]-[description]                 ║
║                                                       ║
║  Proceed with implementation?                         ║
║  [continue] [other task] [stop]                       ║
╚═══════════════════════════════════════════════════════╝

User Responses:

  • continue: Proceed to implement
  • other task: Return to task selection
  • stop: Exit workflow

Step 3: Implement (TDD Development)

Command: implement [TASK-ID]

Purpose: Test-driven implementation in isolated worktree.

Actions:

  1. Create worktree at .worktrees/[TASK-ID]/
  2. Create feature branch task/[TASK-ID]-description
  3. Write tests FIRST (mandatory)
  4. Implement to make tests pass
  5. Run full test suite
  6. Verify build succeeds
  7. Commit all changes

Outputs:

  • Working implementation
  • Passing tests
  • Coverage report
  • Build status

Triggers Checkpoint: IMPL_COMPLETE


Checkpoint: IMPL_COMPLETE

Display:

╔═══════════════════════════════════════════════════════╗
║  CHECKPOINT: Implementation Complete                  ║
╠═══════════════════════════════════════════════════════╣
║  Tests: 15 passing                                    ║
║  Coverage: 87% (+12% new code)                        ║
║  Build: SUCCESS                                       ║
║  Linting: PASS                                        ║
║                                                       ║
║  Ready for code review?                               ║
║  [continue] [back] [stop]                             ║
╚═══════════════════════════════════════════════════════╝

Auto-Continue Condition: All tests pass AND build succeeds


Step 4: Review (Quality Validation)

Commands: review-code --uncommitted, review-tests --uncommitted

Purpose: Validate implementation quality.

Actions:

  1. Run code quality review
  2. Run test quality review
  3. Identify issues by severity
  4. Generate recommendations

Outputs:

  • Combined review report
  • Issues categorized by severity
  • Specific recommendations

Triggers Checkpoint: REVIEWS_DONE


Checkpoint: REVIEWS_DONE

Display:

╔═══════════════════════════════════════════════════════╗
║  CHECKPOINT: Reviews Complete                         ║
╠═══════════════════════════════════════════════════════╣
║  Code Review:                                         ║
║    Critical: 0 | High: 1 | Medium: 3 | Low: 5         ║
║  Test Review:                                         ║
║    Critical: 0 | High: 0 | Medium: 2 | Low: 1         ║
║                                                       ║
║  High Priority: "Missing error handling in UserAPI"   ║
║                                                       ║
║  How to proceed?                                      ║
║  [fix all] [fix critical/high] [defer all] [stop]    ║
╚═══════════════════════════════════════════════════════╝

Decision Logic:

  • Critical issues: MUST fix before proceeding
  • High issues: STRONGLY RECOMMENDED to fix
  • Medium/Low: Can defer to follow-up tasks

Step 5: Apply Recommendations (Conditional)

Command: apply-recommendations [review-output]

Purpose: Intelligently apply fixes and create follow-up tasks.

Actions:

  1. Triage recommendations
  2. Apply quick fixes immediately
  3. Create tasks for complex issues
  4. Re-run validation

Outputs:

  • Applied fixes summary
  • Created follow-up tasks
  • Updated validation status

Next Step: Proceed to PR prep


Step 6: PR Prep (Create Pull Request)

Command: pr-prep

Purpose: Validate and create pull request.

Actions:

  1. Run full validation suite
  2. Generate PR description
  3. Push to remote
  4. Create PR via GitHub CLI
  5. Update task status to in-review

Outputs:

  • PR number and URL
  • CI status
  • Review request

Triggers Checkpoint: PR_CREATED


Checkpoint: PR_CREATED

Display:

╔═══════════════════════════════════════════════════════╗
║  CHECKPOINT: PR Created                               ║
╠═══════════════════════════════════════════════════════╣
║  PR: #123 - [TASK-ID]: [Task Title]                   ║
║  URL: https://github.com/org/repo/pull/123            ║
║                                                       ║
║  CI Status: Running...                                ║
║  Approvals: 0/1 required                              ║
║                                                       ║
║  Waiting for CI and approval...                       ║
║  [check status] [stop]                                ║
╚═══════════════════════════════════════════════════════╝

Auto-Continue Condition: CI passes AND required approvals obtained


Step 7: PR Complete (Merge and Cleanup)

Command: pr-complete [PR-NUMBER]

Purpose: Merge PR and clean up.

Actions:

  1. Verify CI and approvals
  2. Squash merge to main
  3. Delete feature branch
  4. Remove worktree
  5. Update task status to completed
  6. Update backlog indexes

Outputs:

  • Merge confirmation
  • Cleanup status
  • Task completion record

Next Step: Update backlog and project status


Step 8: Update Backlog Epic File and Project Status

Command: Part of pr-complete (Phase 6)

Purpose: Persist progress to the source-of-truth documentation files so future sessions see accurate state.

Actions:

  1. Update task status in the backlog epic file (ready → complete)
  2. Recalculate epic-level progress counts
  3. Unblock dependent tasks (blocked → ready) if their blockers are now complete
  4. Update project status file (context/status.md) with current phase, epic progress, and recent changes
  5. Commit and push documentation updates

Outputs:

  • Updated epic file with accurate task statuses
  • Newly unblocked tasks moved to ready
  • Current project status reflecting actual progress

Why this step exists: Without it, internal tracking (.coordinator/state.json, worker progress files) diverges from the backlog and project status files. This caused 22 merged tasks to remain marked as "ready" in one real-world project.

Next Step: Workflow complete


Error Handling

Test Failures

  • Stop at IMPL_COMPLETE checkpoint
  • Must fix tests before proceeding
  • Cannot skip to review

CI Failures

  • Stop at PR_CREATED checkpoint
  • Fix in worktree
  • Push updates
  • Wait for CI to re-run

Merge Conflicts

  • Stop at PR_CREATED checkpoint
  • Pull latest main into worktree
  • Resolve conflicts
  • Push updates
  • Continue to merge

Review Blocks

  • Stop at REVIEWS_DONE checkpoint
  • Address critical issues
  • Cannot proceed with critical issues unfixed

Timing Expectations

Step Typical Duration
Sync 1-2 minutes
Next < 1 minute
Implement 30 min - 4 hours
Reviews 5-15 minutes
Apply Recommendations 5-30 minutes
PR Prep 5-10 minutes
PR Complete 2-5 minutes

Total: Variable based on task complexity

Source: SKILL.md on GitHub

3 warnings14d5 checks · Risk SAFE
  • Gen Agent Trust Hub14d

    The skill orchestrates agile workflows for Gitea repositories using the 'tea' CLI and local shell scripts. It manages the development lifecycle from task selection to PR completion. The analysis identified a risk of indirect prompt injection due to the ingestion of untrusted data from backlog files and Gitea API responses without sanitization.

  • Socket14d

    1 alert: gptAnomaly

  • Snyk14d

    Risk: MEDIUM · 1 issue

  • Runlayer7mo

    23/23 files flagged

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 99a8797. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Dormantupdated 8 months ago
compatibility
Requires git, Gitea Tea CLI (tea), and a context network with backlog structure.
Other metadata
metadata
{
  "author": "agent-skills",
  "version": "1.0",
  "type": "orchestrator",
  "mode": "generative",
  "domain": "agile-software"
}

README badge

README badge for jwynia/agent-skills/gitea-workflow