All skills
jwynia avatar

/agile-workflow

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

Orchestrate agile development workflows by invoking commands in sequence with checkpoint-based flow control. This skill should be used when the user asks to 'run the workflow', 'continue working', 'what's next', 'complete the task cycle', 'start my day', 'end the sprint', 'implement the next task', or wants guided step-by-step development assistance. Platform-agnostic git-only workflow without PR integration. Keywords: workflow, orchestrate, agile, task cycle, sprint, daily, implement, review, merge, standup, retrospective, git.

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

This session only. Nothing lands on disk.

referencescommandsmerge-complete.md

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

Merge Complete Command Reference

Merge feature branch to main, cleanup worktree, and update task status.

Purpose

Complete the merge lifecycle: merge to main, cleanup branches and worktrees, mark task as complete.

When Used in Workflow

  • Task Cycle: Final step after merge-prep validation

Prerequisites

  • All validation checks passed in merge-prep
  • Branch is up-to-date with main
  • No merge conflicts

Completion Process

Phase 1: Pre-Merge Check

# Navigate to worktree
cd .worktrees/[TASK-ID]/

# Verify on correct branch
git branch --show-current  # Should be task/[TASK-ID]-*

# Verify clean state
git status --porcelain  # Should be empty

# Final test run
npm test
npm run build

Phase 2: Merge to Main

# Switch to main repo (not worktree)
cd /path/to/main/repo

# Update main
git checkout main
git pull --rebase origin main

# Merge feature branch (squash recommended)
git merge --squash task/[TASK-ID]-description

# Create merge commit with descriptive message
git commit -m "[TASK-ID]: [Task Title]

Implements [feature description].

Changes:
- [Change 1]
- [Change 2]

Tests: All passing
"

# Push to origin
git push origin main

Alternative: Standard merge (preserves commit history)

git merge --no-ff task/[TASK-ID]-description -m "[TASK-ID]: [Task Title]"
git push origin main

Phase 3: Worktree Cleanup

# Navigate out of worktree
cd /path/to/main/repo

# Remove worktree
git worktree remove .worktrees/[TASK-ID]/

# Verify removal
git worktree list

# Prune stale references
git worktree prune

Phase 4: Branch Cleanup

# Delete local feature branch
git branch -d task/[TASK-ID]-description

# Delete remote feature branch
git push origin --delete task/[TASK-ID]-description

Phase 5: Update Task Status

CRITICAL: After merge, status updates happen ON MAIN

# Ensure on main
git checkout main

# Update task file
# - Status: completed
# - Completed: [current date]
# - Merge commit: [commit hash]

# Update status indexes
# - Remove from in-progress.md
# - Add to completed.md

# Commit status update
git add context-network/backlog/
git commit -m "Complete: [TASK-ID] merged to main"
git push origin main

Note: This is the ONLY command that commits to main because:

  • Feature branch has already been reviewed
  • We're just recording completion in the backlog
  • Feature branch and worktree no longer exist
  • This is administrative bookkeeping

Phase 6: Update Backlog Epic File and Project Status

CRITICAL: Persist progress to source-of-truth documentation.

Without this phase, internal tracking (worker progress files, coordinator state) diverges from the backlog and project status files that humans and future sessions rely on.

# Ensure on main
git checkout main
Step 1: Update task status in the backlog epic file
# Locate the epic file that contains this task
# e.g., context-network/backlog/by-epic/E1-feature-name.md

# Change the task's status from "ready" (or "in-progress") to "complete"
# Update any completion metadata (date, commit hash)
Step 2: Update epic-level progress
# Recalculate the epic's completion count
# e.g., "Status: In Progress (22/28 complete)" → "Status: In Progress (23/28 complete)"
# If all tasks complete, update epic status to "Complete"
Step 3: Unblock dependent tasks
# Check if any tasks in the epic were blocked on the just-completed task
# If so, update their status from "blocked" to "ready"
# Example: If TASK-023 was blocked by TASK-022, and TASK-022 is now complete,
#          change TASK-023 status to "ready"
Step 4: Update project status file
# Update context/status.md (or equivalent project status file) with:
# - Current project phase
# - Epic progress table (tasks completed / total per epic)
# - Recently completed work
# - Active/upcoming work summary
Step 5: Commit documentation updates
git add context-network/backlog/ context/status.md
git commit -m "docs: Update backlog and project status after [TASK-ID] completion"
git push origin main

Why this phase exists: Internal tracking files (.coordinator/state.json, worker progress files) are ephemeral and session-scoped. The backlog epic files and project status are the persistent source of truth. Skipping this phase causes documented state to drift from reality — future sessions will see stale "ready" statuses for already-completed tasks.

Error Handling

Merge Conflicts

1. cd /path/to/main/repo
2. git checkout main
3. git pull
4. git merge --squash task/[TASK-ID]-description
5. Resolve conflicts
6. git add . && git commit
7. git push

Tests Fail on Main After Merge

# Revert the merge
git revert HEAD
git push origin main

# Return to worktree to fix
cd .worktrees/[TASK-ID]/
# Fix issues
# Re-run merge process

Worktree Already Removed

# Just clean up branch
git branch -D task/[TASK-ID]-description
git push origin --delete task/[TASK-ID]-description

Output Format

## Task Merged Successfully!

**Task:** [TASK-ID] - [Task Title]
**Commit:** [commit-hash]
**Status:** Completed

### Cleanup Complete
- [x] Merged to main
- [x] Feature branch deleted
- [x] Worktree removed
- [x] Task status updated
- [x] Backlog indexes updated
- [x] Epic file updated (task marked complete, dependents unblocked)
- [x] Project status file updated

### Next Available Tasks
[Top 3 ready tasks from backlog]

Rollback Procedure

If issues discovered after merge:

# Revert the merge commit
git revert [merge-commit-sha]
git push origin main

# Task will need to be reopened
# Update status back to in-progress

Orchestration Notes

After completion:

  • Task cycle is complete
  • Can immediately start next task cycle
  • Consider running /discovery to capture learnings
  • Consider /retrospective for larger tasks

Source: SKILL.md on GitHub

1 warning14d5 checks · Risk SAFE
  • Gen Agent Trust Hub14d

    This skill provides a structured agile workflow for software development using Git. It guides agents through task selection, TDD-based implementation, quality reviews, and merging. No security risks were detected.

  • Socket14d

    No alerts

  • Snyk14d

    Risk: LOW · No issues

  • Runlayer7mo

    19/21 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
Other metadata
compatibility
Requires git and a context network with backlog structure. Works with any git hosting provider.
metadata
{
  "author": "agent-skills",
  "version": "2.0",
  "type": "orchestrator",
  "mode": "generative",
  "domain": "agile-software"
}

README badge

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