agentleFS
martincjarvismartincjarvis/development-skills/skills/agent-workitem-automation/SKILL.md

agent-workitem-automation

Skill4 starsChanged 10 months agoMITView on GitHub

Use when an agent is asked to autonomously manage a work item and must resolve task board source, platform CLI, or step updates across GitHub, Azure DevOps, or Jira.

The file

Show its rules and text

We split this skill into the rules it gives an agent

69 rules. About 0 are common, 57 are distinctive, and 12 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈57

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 12

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Treat the work item system as the source of truth and keep progress visible at all times.

    line 13
  2. Very specific:

    If an issue-driven workflow is required (work item comments, approvals, evidence tracking), use issue-driven-delivery.

    line 20
  3. Distinctive:

    Discovery: Read README.md, locate Work Items section, infer platform from URL

    line 33
  4. Distinctive:

    Setup: Verify CLI is installed and authenticated for the platform

    line 34
  5. Distinctive:

    Verify completion: Use verification-before-completion for all acceptance criteria

    line 39
  6. Very specific:

    Read README.md and locate Work Items section with Taskboard: <url>.

    line 48
  7. Very specific:

    Verify CLI is installed for the platform (gh, ado, jira).

    line 54
  8. Distinctive:

    Verify CLI is authenticated with appropriate permissions.

    line 55
  9. Distinctive:

    If any setup fails, stop and request human assistance.

    line 57
  10. Distinctive:

    Update issue checklist when a task completes.

    line 64
  11. Very specific:

    Verify all acceptance criteria are met using superpowers:verification-before-completion.

    line 69
  12. Distinctive:

    Update the taskboard issue with completion evidence (see Taskboard Update Procedures).

    line 70
  13. Distinctive:

    If any criteria are unclear or evidence incomplete, hand off to human.

    line 73
  14. Distinctive:

    Before applying any configuration or prompting for setup, check for existing state.

    line 77
  15. Distinctive:

    Check these patterns before prompting:

    line 82
  16. Distinctive:

    When existing configuration is detected:

    line 93
  17. Distinctive:

    Taskboard URL exists: Use it directly, do not prompt for platform choice.

    line 95
  18. Distinctive:

    Work Items section exists: Do not offer to add one.

    line 98
  19. Distinctive:

    Only prompt when detection fails or configuration is incomplete.

    line 100
  20. Distinctive:

    Use the validation script to check configuration state:

    line 104
  21. Distinctive:

    Start when a comment mentions the agent and includes a task verb (for example, "manage", "handle", "take", "own").

    line 122
  22. Distinctive:

    Before making changes, use brainstorming to confirm:

    line 136
  23. Distinctive:

    Do not proceed until these are explicit.

    line 142
  24. Distinctive:

    After confirming platform and tooling choices, capture them as discoverable records:

    line 146
  25. Very specific:

    README Work Items section: Add Taskboard: <url> for immediate discoverability.

    line 148
  26. Very specific:

    ADR (Architecture Decision Record): Create docs/decisions/NNNN-taskboard-platform.md documenting the platform choice, rationale, and …

    line 149
  27. Very specific:

    Read README.md and locate a section titled Work Items.

    line 190
  28. Distinctive:

    If the section is missing, prompt the user and add the section near the top of README (after the title and before other sections).

    line 192
  29. Distinctive:

    If the URL is not recognised, stop and ask the user to confirm the platform.

    line 205
  30. Distinctive:

    Before reading or updating tickets, ensure the CLI is installed and authenticated.

    line 209
  31. Distinctive:

    If the CLI is missing, run its setup flow using the official install steps.

    line 211
  32. Distinctive:

    If authentication is missing, run the CLI auth flow.

    line 212
  33. Distinctive:

    If setup requires interactive input you cannot complete, stop and ask for help.

    line 213
  34. Distinctive:

    Remove the symlink after the task is complete.

    line 223
  35. Distinctive:

    When creating AGENTS.md in a new repo, include references to prerequisite skills repositories and where they should be cloned.

    line 229
  36. Distinctive:

    Do not assume these repos are already installed.

    line 242
  37. Very specific:

    Create or update the CI workflow to trigger agent CLIs from ticket events.

    line 247
  38. Very specific:

    Avoid duplicating delivery workflows already covered by issue-driven-delivery.

    line 248
  39. Distinctive:

    Prefer non-interactive CLI usage in CI.

    line 255
  40. Distinctive:

    If a task is completed, update the issue body checklist.

    line 266
  41. Distinctive:

    If it is part of the current plan, post a follow-up comment.

    line 268
  42. Distinctive:

    If it is a follow-on task, create a new top-level ticket.

    line 269
  43. Distinctive:

    When all steps in the current plan are complete and all required PRs are merged:

    line 273
  44. Very specific:

    Verify completion using superpowers:verification-before-completion.

    line 275
  45. Distinctive:

    Ensure the taskboard issue is updated with completion evidence.

    line 277
  46. Distinctive:

    If issue requires multiple PRs, keep open until all scope delivered or remaining work moved to new ticket.

    line 280
  47. Distinctive:

    Do not leave work items open after all work complete.

    line 282
  48. Distinctive:

    If any acceptance criteria are unclear or evidence is incomplete, hand off to a human instead of closing.

    line 284
  49. Distinctive:

    Keep the taskboard issue synchronized with delivery progress at all times.

    line 289
  50. Distinctive:

    PR Links: Add PR links to issue body or comments when opened.

    line 295
  51. Distinctive:

    Blocker Notes: Document blockers immediately in issue comments.

    line 296
  52. Distinctive:

    All checklist items marked complete

    line 301
  53. Distinctive:

    Post Completion Comment: Use the completion template below.

    line 304
  54. Very specific:

    Update Labels: Add completion label (e.g., done, delivered).

    line 305
  55. Distinctive:

    Final Verification: All acceptance criteria verified with evidence.

    line 309
  56. Distinctive:

    All in-scope work is delivered

    line 311
  57. Distinctive:

    All required PRs are merged

    line 312
  58. Distinctive:

    Follow-on Tickets: Create new tickets for out-of-scope work discovered.

    line 315
  59. Distinctive:

    Do NOT close the work item if:

    line 341
  60. Distinctive:

    Before opening a PR, confirm evidence using appropriate verification type:

    line 350
  61. Distinctive:

    Must show applied evidence with commit SHAs and file links

    line 354
  62. Distinctive:

    Must state: "This is analytical verification (process-only)"

    line 361
  63. Very specific:

    Read README -> Work Items -> Taskboard: https://github.com/org/repo.

    line 370
  64. Distinctive:

    Update the issue checklist when a task completes.

    line 373
  65. Distinctive:

    Document what was attempted in each cycle.

    line 448
  66. Distinctive:

    When scope creep detected:

    line 462
  67. Distinctive:

    Document current progress and evidence.

    line 464
  68. Distinctive:

    Do not proceed with expanded scope without explicit approval.

    line 467
  69. Distinctive:

    Ensure CLI install + auth

    line 497

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Agent Work Item Automation

Overview

Treat the work item system as the source of truth and keep progress visible at all times. If you cannot prove context or tooling, stop and fix that first.

REQUIRED SUB-SKILL: superpowers:brainstorming REQUIRED SUB-SKILL: superpowers:test-driven-development REQUIRED SUB-SKILL: superpowers:verification-before-completion

If an issue-driven workflow is required (work item comments, approvals, evidence tracking), use issue-driven-delivery.

When to Use

  • Agent is asked to autonomously manage a work item (GitHub, Azure DevOps, or Jira)
  • Comment mentions the agent with a task verb (e.g., "manage", "handle", "take", "own")
  • Need to resolve task board source, platform CLI, or step updates
  • Automating delivery flow across ticketing systems
  • Setting up CI/CD workflows triggered by ticket events

Core Workflow

  1. Discovery: Read README.md, locate Work Items section, infer platform from URL
  2. Setup: Verify CLI is installed and authenticated for the platform
  3. Load ticket: Fetch issue details, comments, acceptance criteria, and related PRs
  4. Execute step: Determine and execute only the next required step
  5. Post update: Comment with Summary, Evidence, Next Step, and Hand-off status
  6. Update checklist: Mark completed items in the issue body
  7. Verify completion: Use verification-before-completion for all acceptance criteria
  8. Close or hand-off: Close when complete with evidence, or hand off to human if blocked

End-to-End Autonomous Delivery Flow

Autonomous delivery follows four explicit phases:

Phase 1: Discovery

  1. Read README.md and locate Work Items section with Taskboard: <url>.
  2. Infer platform from URL (GitHub, Azure DevOps, Jira).
  3. Load ticket details, comments, acceptance criteria, and related PRs.

Phase 2: Setup

  1. Verify CLI is installed for the platform (gh, ado, jira).
  2. Verify CLI is authenticated with appropriate permissions.
  3. Confirm required skills are available (brainstorming, TDD, verification).
  4. If any setup fails, stop and request human assistance.

Phase 3: Execution

  1. Determine the next required step from ticket context.
  2. Execute only one step per cycle; keep changes minimal.
  3. Post a step update comment with Summary, Evidence, Next Step, Hand-off.
  4. Update issue checklist when a task completes.
  5. Repeat until all acceptance criteria are addressed.

Phase 4: Completion

  1. Verify all acceptance criteria are met using superpowers:verification-before-completion.
  2. Update the taskboard issue with completion evidence (see Taskboard Update Procedures).
  3. Post final summary comment with all evidence links.
  4. Close the work item when verified complete.
  5. If any criteria are unclear or evidence incomplete, hand off to human.

Detection and Deference

Before applying any configuration or prompting for setup, check for existing state. This prevents re-prompting for already-configured repositories and respects prior decisions.

Existing Configuration Detection

Check these patterns before prompting:

ItemDetection PatternIf Found
Work Items sectiongrep -q "^## Work Items" README.mdSkip section creation
Taskboard URLgrep -q "Taskboard:" README.mdUse existing URL
Platform CLIcommand -v gh/ado/jiraSkip CLI install prompt
CLI authenticationgh auth status / ado auth statusSkip auth prompt

Deference Rules

When existing configuration is detected:

  1. Taskboard URL exists: Use it directly, do not prompt for platform choice.
  2. CLI installed: Proceed to authentication check without install prompt.
  3. CLI authenticated: Proceed directly to ticket operations.
  4. Work Items section exists: Do not offer to add one.

Only prompt when detection fails or configuration is incomplete.

Validation Script

Use the validation script to check configuration state:

# Check all prerequisites at once
./scripts/validate-setup.sh

# Example output:
# README Work Items: CONFIGURED (github.com/org/repo)
# Platform: GitHub
# CLI (gh): INSTALLED
# Auth: AUTHENTICATED
# Status: READY

See scripts/validate-setup.sh for the full validation script.

Invocation Signals

Start when a comment mentions the agent and includes a task verb (for example, "manage", "handle", "take", "own"). If the intent is unclear, ask for confirmation before acting.

Accept agent identifiers by CLI name:

  • @claude and @codex
  • @agent aliases to the primary agent

Supported phrases include "manage this ticket", "handle this ticket", or "own this issue" and should start refinement, planning, and orchestration.

Brainstorming Gate

Before making changes, use brainstorming to confirm:

  • Ticketing system and taskboard source
  • CI/CD system for automation
  • Agent CLIs to configure and which is primary

Do not proceed until these are explicit.

Decision Capture

After confirming platform and tooling choices, capture them as discoverable records:

  1. README Work Items section: Add Taskboard: <url> for immediate discoverability.
  2. ADR (Architecture Decision Record): Create docs/decisions/NNNN-taskboard-platform.md documenting the platform choice, rationale, and alternatives considered.

Example ADR structure:

# ADR-NNNN: Taskboard Platform Selection

## Status

Accepted

## Context

Project needs work item tracking for agent automation.

## Decision

Use GitHub Issues as the taskboard platform.

## Rationale

- Repository already on GitHub
- gh CLI provides full API access
- Team familiar with GitHub workflow

## Alternatives Considered

- Azure DevOps: Would require separate authentication
- Jira: Additional licensing cost

## Consequences

- Agents use `gh` CLI for all work item operations
- Work Items section in README points to GitHub repo

This ensures future agents and team members understand the decision context.

Work Item Discovery

  1. Read README.md and locate a section titled Work Items.
  2. Expect a single line: Taskboard: <url>.
  3. If the section is missing, prompt the user and add the section near the top of README (after the title and before other sections).

Platform Resolution

Infer platform from the task board URL:

PlatformExample domain patternsCLI
GitHubgithub.comgh
Azure DevOpsdev.azure.com, visualstudio.comado
Jiraatlassian.net, jira.jira

If the URL is not recognised, stop and ask the user to confirm the platform.

CLI Setup (Auto)

Before reading or updating tickets, ensure the CLI is installed and authenticated.

  • If the CLI is missing, run its setup flow using the official install steps.
  • If authentication is missing, run the CLI auth flow.
  • If setup requires interactive input you cannot complete, stop and ask for help.

Skill Source Setup (Local and Remote)

For development, a local symlink to the skills repo is acceptable:

ln -s <path-to-development-skills>/skills ~/.codex/skills/development-skills

Remove the symlink after the task is complete.

For remote agents (CI), clone the skills repo for the duration of the run and configure the agent to scan that path. When the task is complete, documentation must reference the default branch instead of the feature branch.

When creating AGENTS.md in a new repo, include references to prerequisite skills repositories and where they should be cloned. Use the agent's default skill location pattern. For example:

  • Superpowers: https://github.com/obra/superpowers
    • Claude: ~/.claude/superpowers
    • Codex: ~/.codex/superpowers (Windows: %USERPROFILE%\.codex\superpowers)
    • Bootstrap: Follow installation instructions from repository
  • development-skills: https://github.com/mcj-coder/development-skills
    • Claude: ~/.claude/skills/development-skills
    • Codex: ~/.codex/skills/development-skills (Windows: %USERPROFILE%\.codex\skills\development-skills)

Do not assume these repos are already installed. Reference the agent's installation guide for platform-specific paths.

Workflow Integration (Minimal)

Create or update the CI workflow to trigger agent CLIs from ticket events. Avoid duplicating delivery workflows already covered by issue-driven-delivery. Keep this focused on:

  • Event trigger (for example, issue comment)
  • CLI invocation for the primary agent
  • Evidence comment back to the issue

Prefer non-interactive CLI usage in CI. Examples:

  • claude -p "<prompt>"
  • codex exec "<command or prompt>"

Core Execution Loop

  1. Load ticket details, comments, and related PRs from the CLI.
  2. Determine the next required step (or identify a missing decision).
  3. Execute only the next step; keep changes minimal.
  4. Post a step update comment using the template below.
  5. If a task is completed, update the issue body checklist.
  6. Trigger the next step:
    • If it is part of the current plan, post a follow-up comment.
    • If it is a follow-on task, create a new top-level ticket.

Delivery Completion (Autonomous)

When all steps in the current plan are complete and all required PRs are merged:

  1. Verify completion using superpowers:verification-before-completion.
  2. Post a final update comment with evidence and completion summary.
  3. Ensure the taskboard issue is updated with completion evidence.
  4. Close the work item when all in-scope work is delivered, acceptance criteria are met, and no blockers remain.
  5. If issue requires multiple PRs, keep open until all scope delivered or remaining work moved to new ticket.
  6. Do not leave work items open after all work complete.

If any acceptance criteria are unclear or evidence is incomplete, hand off to a human instead of closing.

Taskboard Update Procedures

Keep the taskboard issue synchronized with delivery progress at all times.

During Execution

  1. Checklist Updates: Mark items complete in issue body as tasks finish.
  2. Step Comments: Post update comment after each significant step.
  3. PR Links: Add PR links to issue body or comments when opened.
  4. Blocker Notes: Document blockers immediately in issue comments.

On Task Completion

  1. Update Issue Body: Edit issue description to reflect final state:
    • All checklist items marked complete
    • Summary of what was delivered
    • Links to merged PRs
  2. Post Completion Comment: Use the completion template below.
  3. Update Labels: Add completion label (e.g., done, delivered).

On Work Item Close

  1. Final Verification: All acceptance criteria verified with evidence.
  2. Close Issue: Close only when:
    • All in-scope work is delivered
    • All required PRs are merged
    • Evidence links are documented
    • No blockers remain
  3. Follow-on Tickets: Create new tickets for out-of-scope work discovered.

Completion Comment Template

## Delivery Complete

**Summary:**
- <what was delivered>

**Evidence:**
- PR merged: <link>
- Commit SHAs: <sha1>, <sha2>
- Tests passing: <link or command output>
- Verification: <link to verification comment or checklist>

**Acceptance Criteria:**
- [x] <criterion 1> - verified by <evidence>
- [x] <criterion 2> - verified by <evidence>

**Follow-on Work:**
- <none> or <ticket links for out-of-scope items>

Closure Prevention Rules

Do NOT close the work item if:

  • Any acceptance criterion lacks verification evidence
  • Required PRs are not merged
  • Tests are failing
  • Blockers are unresolved
  • Evidence links are missing or broken
  • Scope was partially delivered without follow-on tickets

Before opening a PR, confirm evidence using appropriate verification type:

Concrete Changes (code, configuration, documentation files):

  • Must show applied evidence with commit SHAs and file links
  • Example: "TDD applied: failing test [SHA1], implementation [SHA2]"
  • See Verification Types for checklist

Process-Only (planning, reviews, requirements):

  • Analytical verification acceptable with issue comment links
  • Must state: "This is analytical verification (process-only)"
  • See Verification Types for checklist

Determine type: Did work modify repository files? Yes=Concrete, No=Process-only

Example

Scenario: Comment says "@agent manage this ticket" on a GitHub issue.

  1. Read README -> Work Items -> Taskboard: https://github.com/org/repo.
  2. Select gh, verify install/auth, then fetch issue details and comments.
  3. Identify the next step, execute it, then post a step update comment.
  4. Update the issue checklist when a task completes.
  5. Post a follow-up comment for the next planned step.

Step Update Comment Template

Summary:
- <one or two bullets>

Evidence/Links:
- <ticket comment, commit, PR, logs, or note that no code change occurred>

Next Step:
- <explicit next action>

Hand-off/Blocker:
- <none> or <what decision is needed>

Hand-off Triggers

Hand off to a human when:

  • Risk or ambiguity is high (security, cost, production impact).
  • Scope creep is detected (work exceeds acceptance criteria).
  • Loop detection triggers (see below).
  • Evidence requirements cannot be satisfied.
  • Acceptance criteria are unclear or contradictory.

Hand-off Comment Template

## Hand-off Required

**Reason:** <why human decision needed>

**Context:**
- Work completed: <summary>
- Current state: <where things stand>
- Evidence gathered: <links>

**Decision Needed:**
- <specific question or decision required>

**Options Considered:**
- Option A: <description and tradeoffs>
- Option B: <description and tradeoffs>

**Recommendation:** <if any>

Loop Detection

Trigger hand-off when either condition occurs:

  • 3 consecutive cycles without meaningful progress, or
  • 60 minutes of active attempts.

Meaningful progress includes: plan changes, code changes, test results, or a resolved decision recorded on the ticket.

Loop Detection Indicators

Watch for these patterns that indicate a loop:

  1. Repeated Failures: Same error occurring across cycles without resolution.
  2. Circular Dependencies: Step A requires B, B requires C, C requires A.
  3. Blocked Resources: External dependency not responding or unavailable.
  4. Unclear Requirements: Repeated clarification requests without answers.
  5. Scope Expansion: Each cycle reveals more work without convergence.

Loop Recovery Actions

Before triggering hand-off:

  1. Document what was attempted in each cycle.
  2. Identify the specific blocker or pattern.
  3. List what information or decision would unblock progress.
  4. Post hand-off comment with full context.

Scope Creep Detection

Trigger hand-off when work expands beyond original acceptance criteria:

  1. New Requirements: User adds scope mid-delivery.
  2. Hidden Complexity: Implementation reveals undocumented dependencies.
  3. Integration Issues: Work affects systems not in original scope.
  4. Timeline Impact: Remaining work exceeds reasonable single-session effort.

When scope creep detected:

  1. Document current progress and evidence.
  2. Identify in-scope vs out-of-scope items.
  3. Propose: complete in-scope and create follow-on tickets, or pause for re-planning.
  4. Do not proceed with expanded scope without explicit approval.

Common Mistakes

  • Skipping the Work Items section or guessing the platform.
  • Continuing without CLI setup or auth confirmation.
  • Posting updates without evidence links.
  • Working multiple steps at once instead of one step per cycle.
  • Failing to create a follow-on ticket when scope increases.
  • Closing a ticket without verified evidence.

Red Flags - STOP

  • Skipping the README task board check.
  • Proceeding without CLI install/auth confirmation.
  • Posting updates without evidence or next step.
  • Repeating cycles without new evidence or outcomes.

Rationalisations (and Reality)

ExcuseReality
"We can assume GitHub"Use the task board link to prove platform.
"I'll set up the CLI later"Setup and auth must happen first.
"No need to update the ticket yet"The ticket is the source of truth.

Quick Reference

  • Read README -> Work Items -> Taskboard: <url>
  • Infer platform -> pick gh / ado / jira
  • Ensure CLI install + auth
  • One step -> comment template -> update checklist
  • Hand-off on risk, scope creep, or loop trigger

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.