.claude/skills/workflow/agent-shared-context/SKILL.md
Shared terminology, review cycle overview, and task state protocol reference for all agents. Preloaded into agent context to avoid duplication across agent prompts.
npx skillsauth add brdohman/agile-maestro agent-shared-contextInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
| Term | Definition |
|-|-|
| Claude Tasks | The TaskCreate, TaskUpdate, TaskGet, TaskList tool system |
| Epic | Top-level initiative (type: "epic") — subject: Epic: [Name] |
| Story | Phase or component (type: "story") — subject: Story: [Name] |
| Task | Individual work item (type: "task") — subject: Task: [Name] |
| Bug | Defect fix (type: "bug") — subject: Bug: [Name] |
| TechDebt | Maintenance work (type: "techdebt") — subject: TechDebt: [Name] |
Task: pending → in-progress → completed (NO review)
Story/Bug/TD: Dev → Code Review → QA → Product Review → completed
Epic: Dev → Code Review → QA → Product Review → Human UAT → completed
Rejection: review_result:"rejected" → Dev fixes → restart at code-review
Tasks complete directly — reviews happen at the Story level.
All TaskUpdate calls MUST follow .claude/rules/global/task-state-updates.md:
All metadata must use schema_version: "2.0". See skill v2-schema-reference for complete field tables.
| v1.0 Name | v2.0 Name | Purpose |
|-----------|-----------|---------|
| acceptance_criteria | local_checks | Task-specific verification (string array) |
| subtasks | checklist | Granular implementation steps |
| verify | validation_hint | Quick verification method |
| definition_of_done | (removed) | Now repo-level in CLAUDE.md, not per-task |
| — | completion_signal | When is this task done |
| — | ai_execution_hints | Guidance for AI agents |
| Field | Values | Purpose |
|-------|--------|---------|
| approval | "pending", "approved" | Human approval gate |
| blocked | true, false | Dependency blocking |
| review_stage | "code-review", "qa", "security", "product-review", "human-uat", null | Current review stage |
| review_result | "awaiting", "rejected", null | Result at current stage |
Tasks only have approval and blocked. Never set review_stage or review_result on Tasks.
Base comment (note, implementation, testing, handoff, review, fix):
{ "id": "C1", "timestamp": "[ISO8601]", "author": "[agent]-agent", "type": "[type]", "content": "[text]" }
Trackable comment (rejection only — adds resolution tracking):
{ "id": "C1", "timestamp": "[ISO8601]", "author": "[agent]-agent", "type": "rejection", "content": "[text]", "resolved": false, "resolved_by": null, "resolved_at": null }
For full comment templates by stage, see skill review-cycle.
When reviewing a Story, walk the primary user flow step-by-step. At each step ask: "Would the user know what to do next?" Document friction points.
Verify changes don't break existing flows. Check: do existing keyboard shortcuts still work? Does window resizing behave correctly? Do previously working features still function?
Can a new user figure out this feature without instructions? Is the information hierarchy clear? Are primary actions visually obvious?
When rejecting: explain the user impact, not just the technical issue. When approving: summarize what was delivered in user terms.
Before accepting planning output, verify ACs are: Observable (visible outcome), Testable (verifiable), Unique (no overlap), Complete (happy + error + edge case).
For each risk, evaluate: Probability (Low/Medium/High) x Impact (Low/Medium/High). Categories: Technical (can we build it?), Schedule (will it take longer?), Scope (will requirements change?), Resource (do we have the skills?).
Each story should be: Independent (minimal dependencies), Negotiable (scope can flex), Valuable (delivers user value), Estimable (team can size it), Small (fits in one build cycle), Testable (has verifiable ACs). If a story fails INVEST, split it.
Beyond surfaces-first, consider: Risk-first (tackle unknowns early), Learning-first (build the simplest version to validate assumptions), Dependency-first (unblock other stories). Default to surfaces-first; deviate only when risk or learning concerns override it.
testing
XCTest patterns for macOS Swift apps. Unit tests, async tests, Core Data tests, mock patterns, and assertion reference. Use when writing or reviewing tests.
tools
How to transition workflow state between review stages. Rules for setting review_stage and review_result fields on Stories and Epics.
documentation
Comment structure and rules for task workflow updates. Use when adding any comment to a task during implementation, review, or fix cycles.
testing
Validate task/story/epic/bug/techdebt metadata against schema v2.0. Run after TaskCreate or TaskUpdate to verify compliance. Returns pass/fail with actionable details.