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.

referencescheckpoint-handling.md

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

Checkpoint Handling Reference

Pause/resume behavior at workflow checkpoints for Gitea repositories.

Overview

Checkpoints are moments in the workflow where human review and decision-making is valuable. The skill pauses at these points, presents information, and waits for user direction.

Checkpoint Types

Decision Checkpoints

Require explicit user choice between options.

Examples:

  • TASK_SELECTED: Confirm or change task
  • REVIEWS_DONE: Fix issues now or defer

Validation Checkpoints

Verify a condition before proceeding.

Examples:

  • IMPL_COMPLETE: All tests passing?
  • PR_CREATED: CI passing? (verify via API or manually)

Information Checkpoints

Present status for awareness.

Examples:

  • Post-sync summary
  • Review results display

Checkpoint Definitions

TASK_SELECTED

Triggers after: next command

Display:

╔═══════════════════════════════════════════════════════╗
║  CHECKPOINT: Task Selection                           ║
╠═══════════════════════════════════════════════════════╣
║  Selected: [TASK-ID] - [Task Title]                   ║
║  Priority: [Level]                                    ║
║  Size: [Estimate]                                     ║
║  Branch: [suggested-branch]                           ║
║                                                       ║
║  Proceed with implementation?                         ║
╚═══════════════════════════════════════════════════════╝

User Options:

  • continue / yes → Proceed to implement
  • other / different → Return to task selection
  • stop / pause → Exit workflow

Auto-Continue: Never (always requires confirmation)


IMPL_COMPLETE

Triggers after: implement command completes

Display:

╔═══════════════════════════════════════════════════════╗
║  CHECKPOINT: Implementation Complete                  ║
╠═══════════════════════════════════════════════════════╣
║  Tests: [X] passing, [Y] failing                      ║
║  Coverage: [Z]%                                       ║
║  Build: [PASS/FAIL]                                   ║
║  Lint: [PASS/FAIL]                                    ║
║                                                       ║
║  Ready for code review?                               ║
╚═══════════════════════════════════════════════════════╝

User Options:

  • continue → Proceed to reviews
  • back → Continue implementing
  • stop → Exit workflow (save state)

Auto-Continue Condition:

  • All tests passing AND
  • Build succeeds AND
  • Lint passes

If all conditions met, can auto-continue with brief countdown.


REVIEWS_DONE

Triggers after: review-code and review-tests complete

Display:

╔═══════════════════════════════════════════════════════╗
║  CHECKPOINT: Reviews Complete                         ║
╠═══════════════════════════════════════════════════════╣
║  Code Review:                                         ║
║    Critical: [A] | High: [B] | Medium: [C] | Low: [D] ║
║  Test Review:                                         ║
║    Critical: [E] | High: [F] | Medium: [G] | Low: [H] ║
║                                                       ║
║  [If issues exist:]                                   ║
║  Top Issue: "[issue description]"                     ║
║                                                       ║
║  How to proceed?                                      ║
╚═══════════════════════════════════════════════════════╝

User Options:

  • fix all → Apply all recommendations
  • fix critical → Fix critical/high only, defer rest
  • defer all → Create tasks, proceed to PR
  • stop → Exit workflow

Auto-Continue Condition:

  • No critical issues AND
  • No high issues
  • (Auto-continue to PR prep)

Blocking Condition:

  • Critical issues present → MUST fix before PR

PR_CREATED

Triggers after: pr-prep command

Display:

╔═══════════════════════════════════════════════════════╗
║  CHECKPOINT: PR Created                               ║
╠═══════════════════════════════════════════════════════╣
║  PR: #[number] - [title]                              ║
║  URL: [GITEA_URL]/[owner]/[repo]/pulls/[number]       ║
║                                                       ║
║  CI Status: [Check via API or CI dashboard]           ║
║  Approvals: [X]/[Y] required                          ║
║                                                       ║
║  [Status-specific message]                            ║
╚═══════════════════════════════════════════════════════╝

User Options:

  • check → Refresh CI/approval status via API
  • merge → Proceed to merge (if ready)
  • stop → Exit (PR remains open)

Auto-Continue Condition:

  • CI passed (verified via API script) AND
  • Required approvals obtained

Blocking Conditions:

  • CI failed → Must fix
  • Missing approvals → Must wait

Gitea-Specific:

  • CI status must be checked via API script or manually
  • Run: ./scripts/gitea-ci-status.sh owner repo $(git rev-parse HEAD)

PR_MERGED

Triggers after: pr-complete merge step

Display:

╔═══════════════════════════════════════════════════════╗
║  CHECKPOINT: PR Merged                                ║
╠═══════════════════════════════════════════════════════╣
║  Task: [TASK-ID] - [Title]                            ║
║  PR: #[number] - Merged ✓                             ║
║                                                       ║
║  Cleanup:                                             ║
║  - [x] Branch deleted                                 ║
║  - [x] Worktree removed                               ║
║  - [x] Task marked complete                           ║
║                                                       ║
║  Task cycle complete!                                 ║
╚═══════════════════════════════════════════════════════╝

User Options:

  • next → Start another task cycle
  • done → Exit workflow

Auto-Continue: Never (natural end of cycle)


Checkpoint Behavior Protocol

Standard Flow

1. COMMAND COMPLETES
        │
        ▼
2. GATHER CHECKPOINT DATA
   - Collect relevant metrics
   - Determine status
   - Check auto-continue conditions
        │
        ▼
3. DISPLAY CHECKPOINT
   - Show formatted checkpoint box
   - Present options
        │
        ▼
4. WAIT FOR INPUT
   - Parse user response
   - Map to action
        │
        ▼
5. EXECUTE ACTION
   - Continue to next step
   - Loop back to previous
   - Exit with state preserved

Auto-Continue Logic

if autoConditionsMet AND userPrefersAutoFlow:
    display "Auto-continuing in 5 seconds..."
    display "[Press any key to pause]"

    wait 5 seconds with interrupt check

    if no interrupt:
        proceed to next step
    else:
        show full checkpoint options

Interrupt Handling

At any checkpoint, user can:

  • Type response to take action
  • Type stop to exit
  • Press Ctrl+C to abort

State is preserved on any exit.


Checkpoint Configuration

User Preferences

Users may configure checkpoint behavior:

# .gitea-workflow/config.yaml
checkpoints:
  auto_continue: true          # Enable auto-continue when safe
  auto_continue_delay: 5       # Seconds before auto-continue
  verbose: false               # Show detailed checkpoint info
  require_confirmation:
    - TASK_SELECTED            # Always confirm these
    - PR_CREATED

Per-Invocation Override

# Disable auto-continue for this run
/gitea-workflow --no-auto

# Maximum verbosity
/gitea-workflow --verbose

# Skip non-critical checkpoints
/gitea-workflow --fast

State Preservation

When workflow is interrupted at a checkpoint:

  1. Current State Saved

    • Detected workflow state
    • Task context
    • Last completed step
    • Pending action
  2. Resume Information

    • How to continue: /gitea-workflow (auto-detects)
    • What will happen: [next step description]
  3. No Work Lost

    • All git commits preserved
    • All files in worktree preserved
    • PR remains open if created
    • Context network updated

Error at Checkpoint

When an error occurs:

╔═══════════════════════════════════════════════════════╗
║  ERROR: [Error Type]                                  ║
╠═══════════════════════════════════════════════════════╣
║  [Error description]                                  ║
║                                                       ║
║  Suggested Resolution:                                ║
║  1. [Step to fix]                                     ║
║  2. [Step to fix]                                     ║
║                                                       ║
║  After fixing, run: /gitea-workflow                   ║
║  (State will be detected automatically)               ║
╚═══════════════════════════════════════════════════════╝

Errors don't lose state - workflow can resume after fixing the issue.

Gitea-Specific Notes

CI Status at PR_CREATED Checkpoint

Since Gitea uses external CI systems, the checkpoint cannot directly query CI status like GitHub Actions. Instead:

  1. Use API Script:

    ./scripts/gitea-ci-status.sh owner repo $(git rev-parse HEAD)
  2. Check CI Dashboard: Navigate to your CI system (Drone, Woodpecker, Jenkins, etc.)

  3. Refresh Status: Type check at the checkpoint to re-query via API

PR URL Format

Gitea PR URLs follow the format:

[GITEA_URL]/[owner]/[repo]/pulls/[number]

Example: https://gitea.example.com/myorg/myrepo/pulls/42

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