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.
In this repository67 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- agents-onboardingSkill
- architecture-testingSkill
- aspire-integration-testingSkill
- automated-standards-enforcementSkill
- best-practice-introductionSkill
- branching-strategy-and-conventionsSkill
- broken-windowSkill
- change-risk-rollbackSkill
- ci-cd-conformanceSkill
- component-boundary-ownershipSkill
- contract-consistency-validationSkill
- csharp-best-practicesSkill
- deployment-provenanceSkill
- documentation-as-codeSkill
- documentation-scaffoldSkill
- dotnet-bespoke-code-minimisationSkill
- dotnet-best-practicesSkill
- dotnet-domain-primitivesSkill
- dotnet-efcore-practicesSkill
- dotnet-healthchecksSkill
- dotnet-logging-serilogSkill
- dotnet-mapping-standardSkill
- dotnet-open-source-first-governanceSkill
- dotnet-source-generation-firstSkill
- dotnet-specification-patternSkill
- dotnet-testing-assertionsSkill
- environment-traceabilitySkill
- finishing-a-development-branch-iddSkill
- greenfield-baselineSkill
- impacted-scope-enforcementSkill
- incremental-change-impactSkill
- incremental-deploymentSkill
- innersource-governance-bootstrapSkill
- issue-driven-deliverySkill
- library-extraction-stabilisationSkill
- local-dev-experienceSkill
- markdown-authorSkill
- modern-csharp-coding-standardsSkill
- monorepo-orchestration-setupSkill
- observability-logging-baselineSkill
- pair-programmingSkill
- persona-switchingSkill
- process-skill-routerSkill
- quality-gate-enforcementSkill
- release-tagging-planSkill
- repo-best-practices-bootstrapSkill
- repository-foundation-bootstrapSkill
- requirements-gatheringSkill
- runtime-tooling-validationSkill
- safe-brownfield-refactorSkill
- scoped-colocationSkill
- security-processesSkill
- selective-build-testSkill
- semantic-version-impactSkill
- session-awareSkill
- skills-first-workflowSkill
- static-analysis-securitySkill
- structured-review-workflowSkill
- The first 60 shown.
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
- Distinctive: line 13
Treat the work item system as the source of truth and keep progress visible at all times.
- Very specific: line 20
If an issue-driven workflow is required (work item comments, approvals, evidence tracking), use issue-driven-delivery.
- Distinctive: line 33
Discovery: Read README.md, locate Work Items section, infer platform from URL
- Distinctive: line 34
Setup: Verify CLI is installed and authenticated for the platform
- Distinctive: line 39
Verify completion: Use verification-before-completion for all acceptance criteria
- Very specific: line 48
Read README.md and locate Work Items section with Taskboard: <url>.
- Very specific: line 54
Verify CLI is installed for the platform (gh, ado, jira).
- Distinctive: line 55
Verify CLI is authenticated with appropriate permissions.
- Distinctive: line 57
If any setup fails, stop and request human assistance.
- Distinctive: line 64
Update issue checklist when a task completes.
- Very specific: line 69
Verify all acceptance criteria are met using superpowers:verification-before-completion.
- Distinctive: line 70
Update the taskboard issue with completion evidence (see Taskboard Update Procedures).
- Distinctive: line 73
If any criteria are unclear or evidence incomplete, hand off to human.
- Distinctive: line 77
Before applying any configuration or prompting for setup, check for existing state.
- Distinctive: line 82
Check these patterns before prompting:
- Distinctive: line 93
When existing configuration is detected:
- Distinctive: line 95
Taskboard URL exists: Use it directly, do not prompt for platform choice.
- Distinctive: line 98
Work Items section exists: Do not offer to add one.
- Distinctive: line 100
Only prompt when detection fails or configuration is incomplete.
- Distinctive: line 104
Use the validation script to check configuration state:
- Distinctive: line 122
Start when a comment mentions the agent and includes a task verb (for example, "manage", "handle", "take", "own").
- Distinctive: line 136
Before making changes, use brainstorming to confirm:
- Distinctive: line 142
Do not proceed until these are explicit.
- Distinctive: line 146
After confirming platform and tooling choices, capture them as discoverable records:
- Very specific: line 148
README Work Items section: Add Taskboard: <url> for immediate discoverability.
- Very specific: line 149
ADR (Architecture Decision Record): Create docs/decisions/NNNN-taskboard-platform.md documenting the platform choice, rationale, and …
- Very specific: line 190
Read README.md and locate a section titled Work Items.
- Distinctive: line 192
If the section is missing, prompt the user and add the section near the top of README (after the title and before other sections).
- Distinctive: line 205
If the URL is not recognised, stop and ask the user to confirm the platform.
- Distinctive: line 209
Before reading or updating tickets, ensure the CLI is installed and authenticated.
- Distinctive: line 211
If the CLI is missing, run its setup flow using the official install steps.
- Distinctive: line 212
If authentication is missing, run the CLI auth flow.
- Distinctive: line 213
If setup requires interactive input you cannot complete, stop and ask for help.
- Distinctive: line 223
Remove the symlink after the task is complete.
- Distinctive: line 229
When creating AGENTS.md in a new repo, include references to prerequisite skills repositories and where they should be cloned.
- Distinctive: line 242
Do not assume these repos are already installed.
- Very specific: line 247
Create or update the CI workflow to trigger agent CLIs from ticket events.
- Very specific: line 248
Avoid duplicating delivery workflows already covered by issue-driven-delivery.
- Distinctive: line 255
Prefer non-interactive CLI usage in CI.
- Distinctive: line 266
If a task is completed, update the issue body checklist.
- Distinctive: line 268
If it is part of the current plan, post a follow-up comment.
- Distinctive: line 269
If it is a follow-on task, create a new top-level ticket.
- Distinctive: line 273
When all steps in the current plan are complete and all required PRs are merged:
- Very specific: line 275
Verify completion using superpowers:verification-before-completion.
- Distinctive: line 277
Ensure the taskboard issue is updated with completion evidence.
- Distinctive: line 280
If issue requires multiple PRs, keep open until all scope delivered or remaining work moved to new ticket.
- Distinctive: line 282
Do not leave work items open after all work complete.
- Distinctive: line 284
If any acceptance criteria are unclear or evidence is incomplete, hand off to a human instead of closing.
- Distinctive: line 289
Keep the taskboard issue synchronized with delivery progress at all times.
- Distinctive: line 295
PR Links: Add PR links to issue body or comments when opened.
- Distinctive: line 296
Blocker Notes: Document blockers immediately in issue comments.
- Distinctive: line 301
All checklist items marked complete
- Distinctive: line 304
Post Completion Comment: Use the completion template below.
- Very specific: line 305
Update Labels: Add completion label (e.g., done, delivered).
- Distinctive: line 309
Final Verification: All acceptance criteria verified with evidence.
- Distinctive: line 311
All in-scope work is delivered
- Distinctive: line 312
All required PRs are merged
- Distinctive: line 315
Follow-on Tickets: Create new tickets for out-of-scope work discovered.
- Distinctive: line 341
Do NOT close the work item if:
- Distinctive: line 350
Before opening a PR, confirm evidence using appropriate verification type:
- Distinctive: line 354
Must show applied evidence with commit SHAs and file links
- Distinctive: line 361
Must state: "This is analytical verification (process-only)"
- Very specific: line 370
Read README -> Work Items -> Taskboard: https://github.com/org/repo.
- Distinctive: line 373
Update the issue checklist when a task completes.
- Distinctive: line 448
Document what was attempted in each cycle.
- Distinctive: line 462
When scope creep detected:
- Distinctive: line 464
Document current progress and evidence.
- Distinctive: line 467
Do not proceed with expanded scope without explicit approval.
- Distinctive: line 497
Ensure CLI install + auth
≈ “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.
Files
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
- Discovery: Read README.md, locate Work Items section, infer platform from URL
- Setup: Verify CLI is installed and authenticated for the platform
- Load ticket: Fetch issue details, comments, acceptance criteria, and related PRs
- Execute step: Determine and execute only the next required step
- Post update: Comment with Summary, Evidence, Next Step, and Hand-off status
- Update checklist: Mark completed items in the issue body
- Verify completion: Use verification-before-completion for all acceptance criteria
- 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
- Read
README.mdand locateWork Itemssection withTaskboard: <url>. - Infer platform from URL (GitHub, Azure DevOps, Jira).
- Load ticket details, comments, acceptance criteria, and related PRs.
Phase 2: Setup
- Verify CLI is installed for the platform (
gh,ado,jira). - Verify CLI is authenticated with appropriate permissions.
- Confirm required skills are available (brainstorming, TDD, verification).
- If any setup fails, stop and request human assistance.
Phase 3: Execution
- Determine the next required step from ticket context.
- Execute only one step per cycle; keep changes minimal.
- Post a step update comment with Summary, Evidence, Next Step, Hand-off.
- Update issue checklist when a task completes.
- Repeat until all acceptance criteria are addressed.
Phase 4: Completion
- Verify all acceptance criteria are met using
superpowers:verification-before-completion. - Update the taskboard issue with completion evidence (see Taskboard Update Procedures).
- Post final summary comment with all evidence links.
- Close the work item when verified complete.
- 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:
| Item | Detection Pattern | If Found |
| Work Items section | grep -q "^## Work Items" README.md | Skip section creation |
| Taskboard URL | grep -q "Taskboard:" README.md | Use existing URL |
| Platform CLI | command -v gh/ado/jira | Skip CLI install prompt |
| CLI authentication | gh auth status / ado auth status | Skip auth prompt |
Deference Rules
When existing configuration is detected:
- Taskboard URL exists: Use it directly, do not prompt for platform choice.
- CLI installed: Proceed to authentication check without install prompt.
- CLI authenticated: Proceed directly to ticket operations.
- 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: READYSee 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:
@claudeand@codex@agentaliases 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:
- README Work Items section: Add
Taskboard: <url>for immediate discoverability. - ADR (Architecture Decision Record): Create
docs/decisions/NNNN-taskboard-platform.mddocumenting 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 repoThis ensures future agents and team members understand the decision context.
Work Item Discovery
- Read
README.mdand locate a section titledWork Items. - Expect a single line:
Taskboard: <url>. - 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:
| Platform | Example domain patterns | CLI |
| GitHub | github.com | gh |
| Azure DevOps | dev.azure.com, visualstudio.com | ado |
| Jira | atlassian.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-skillsRemove 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
- Claude:
- 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)
- Claude:
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
- Load ticket details, comments, and related PRs from the CLI.
- Determine the next required step (or identify a missing decision).
- Execute only the next step; keep changes minimal.
- Post a step update comment using the template below.
- If a task is completed, update the issue body checklist.
- 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:
- Verify completion using
superpowers:verification-before-completion. - Post a final update comment with evidence and completion summary.
- Ensure the taskboard issue is updated with completion evidence.
- Close the work item when all in-scope work is delivered, acceptance criteria are met, and no blockers remain.
- If issue requires multiple PRs, keep open until all scope delivered or remaining work moved to new ticket.
- 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
- Checklist Updates: Mark items complete in issue body as tasks finish.
- Step Comments: Post update comment after each significant step.
- PR Links: Add PR links to issue body or comments when opened.
- Blocker Notes: Document blockers immediately in issue comments.
On Task Completion
- Update Issue Body: Edit issue description to reflect final state:
- All checklist items marked complete
- Summary of what was delivered
- Links to merged PRs
- Post Completion Comment: Use the completion template below.
- Update Labels: Add completion label (e.g.,
done,delivered).
On Work Item Close
- Final Verification: All acceptance criteria verified with evidence.
- Close Issue: Close only when:
- All in-scope work is delivered
- All required PRs are merged
- Evidence links are documented
- No blockers remain
- 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.
- Read README ->
Work Items->Taskboard: https://github.com/org/repo. - Select
gh, verify install/auth, then fetch issue details and comments. - Identify the next step, execute it, then post a step update comment.
- Update the issue checklist when a task completes.
- 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:
- Repeated Failures: Same error occurring across cycles without resolution.
- Circular Dependencies: Step A requires B, B requires C, C requires A.
- Blocked Resources: External dependency not responding or unavailable.
- Unclear Requirements: Repeated clarification requests without answers.
- Scope Expansion: Each cycle reveals more work without convergence.
Loop Recovery Actions
Before triggering hand-off:
- Document what was attempted in each cycle.
- Identify the specific blocker or pattern.
- List what information or decision would unblock progress.
- Post hand-off comment with full context.
Scope Creep Detection
Trigger hand-off when work expands beyond original acceptance criteria:
- New Requirements: User adds scope mid-delivery.
- Hidden Complexity: Implementation reveals undocumented dependencies.
- Integration Issues: Work affects systems not in original scope.
- Timeline Impact: Remaining work exceeds reasonable single-session effort.
When scope creep detected:
- Document current progress and evidence.
- Identify in-scope vs out-of-scope items.
- Propose: complete in-scope and create follow-on tickets, or pause for re-planning.
- 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)
| Excuse | Reality |
| "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
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
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.

