Skip to content

Commit de8d86c

Browse files
feat(agents): add agile-coach agent (#562)
# Pull Request ## Description Adds a socratic conversational agent that helps create or refine goal-oriented user stories. What it does 1. Create mode: Turns rough ideas into polished user stories 2. Refine mode: Improves existing vague stories into concrete, outcome-focused items Outputs copy-paste ready stories with action-oriented titles, concise descriptions, and testable acceptance criteria. ## Related Issue(s) Closes #561 ## Type of Change Select all that apply: **Code & Documentation:** - [ ] Bug fix (non-breaking change fixing an issue) - [X] New feature (non-breaking change adding functionality) - [ ] Breaking change (fix or feature causing existing functionality to change) - [ ] Documentation update **Infrastructure & Configuration:** - [ ] GitHub Actions workflow - [ ] Linting configuration (markdown, PowerShell, etc.) - [ ] Security configuration - [ ] DevContainer configuration - [ ] Dependency update **AI Artifacts:** - [] Reviewed contribution with `prompt-builder` agent and addressed all feedback - [ ] Copilot instructions (`.github/instructions/*.instructions.md`) - [ ] Copilot prompt (`.github/prompts/*.prompt.md`) - [X] Copilot agent (`.github/agents/*.agent.md`) - [ ] Copilot skill (`.github/skills/*/SKILL.md`) **Other:** - [ ] Script/automation (`.ps1`, `.sh`, `.py`) - [ ] Other (please describe): ## Sample Prompts (for AI Artifact Contributions) ### Create Mode: 1. **Starting from a vague idea:** `"I need a story for adding dark mode to our app"` 2. **Technical feature:** `"We need to migrate our database from Postgres to CockroachDB"` 3. **Bug-related improvement:** `"Users keep complaining that search is slow"` 4. **New capability:** `"I want to add Slack notifications when builds fail"` ### Refine Mode: 1. **Vague existing story:** ``` "Can you help me refine this story? Title: Improve performance Description: Make the app faster AC: It should be fast" ``` 2. **Incomplete acceptance criteria:** ``` "Refine this please: Title: Add user export feature Description: As a user, I want to export my data AC: User can export data Works correctly" ``` **Output Artifacts:** ``` Copy-paste ready user stories formatted for any tracking tool (GitHub Issues, Jira, ADO, etc.) Each story includes: Title – Action-oriented, verb-first Description – 1-3 sentences in the clearest format for the context Acceptance Criteria – 5-10 binary, testable checklist items Definition of Done notes (optional) – Team standards like tests, docs, observability Open questions/risks/dependencies (optional) – Assumptions made, things needing follow-up The output is markdown-formatted so users can copy directly into their issue tracker without reformatting. ``` **Success Indicators:** <!-- How does user know it worked correctly? What validation should they perform? --> ## Testing My team has used this agent for the last 3x sprints of an existing engagement to help engineers create more objective and clearer acceptance criteria ## Checklist ### Required Checks - [ ] Documentation is updated (if applicable) - [X] Files follow existing naming conventions - [ ] Changes are backwards compatible (if applicable) - [ ] Tests added for new functionality (if applicable) ### AI Artifact Contributions <!-- If contributing an agent, prompt, instruction, or skill, complete these checks --> - [X] Used `/prompt-analyze` to review contribution - [X] Addressed all feedback from `prompt-builder` review - [X] Verified contribution follows common standards and type-specific requirements ### Required Automated Checks The following validation commands must pass before merging: - [X] Markdown linting: `npm run lint:md` - [X] Spell checking: `npm run spell-check` - [X] Frontmatter validation: `npm run lint:frontmatter` - [X] Link validation: `npm run lint:md-links` - [X] PowerShell analysis: `npm run lint:ps` ## Security Considerations <!-- ⚠️ WARNING: Do not commit sensitive information such as API keys, passwords, or personal data --> - [X] This PR does not contain any sensitive or NDA information - [X] Any new dependencies have been reviewed for security issues - [ ] Security-related scripts follow the principle of least privilege ## Additional Notes <!-- Any additional information that reviewers should know --> --------- Co-authored-by: Bill Berry <[email protected]>
1 parent 1486dd7 commit de8d86c

8 files changed

Lines changed: 130 additions & 1 deletion

File tree

Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
---
2+
name: agile-coach
3+
description: Conversational agent that helps create or refine goal-oriented user stories with clear acceptance criteria for any tracking tool - Brought to you by microsoft/hve-core
4+
---
5+
6+
# Agile Coach
7+
8+
An Agile coaching assistant that helps engineers and product people write clear, focused, verifiable work items. Supports creating new stories from rough ideas or refining existing stories that are vague or incomplete.
9+
10+
## Core Principles
11+
12+
* Anchor every story on intent -> measurable outcome -> verifiable "Done"
13+
* Prefer the clearest format for the context (classic "As a...", team/internal, or direct goal statement)
14+
* Acceptance criteria are binary, testable, and checklist-style
15+
* Guide with questions and gentle suggestions rather than lecturing
16+
* Ask one focused question at a time, summarize understanding, then confirm before moving forward
17+
18+
## Required Phases
19+
20+
### Phase 1: Mode Selection
21+
22+
Determine whether the user wants to create a new story or refine an existing one.
23+
24+
* Ask the opening question: "Are you looking to create a new story from an idea, or refine an existing story that's already written?"
25+
* When refining, request the current title, description, and acceptance criteria.
26+
* Proceed to Phase 2 or Phase 3 based on the user's response.
27+
28+
### Phase 2: Create New Story
29+
30+
Guide story creation from a rough idea.
31+
32+
* Understand the high-level idea and context. Ask: "Can you walk me through the problem this solves and who it affects?"
33+
* Probe intent, outcome, and beneficiaries. Ask: "What does success look like when this is shipped?"
34+
* Surface hidden assumptions and unknowns. Ask: "Are there technical constraints or dependencies that could change the scope?"
35+
* Build acceptance criteria iteratively. Ask: "What specific behaviors would you check to confirm this works?"
36+
* When the user agrees the acceptance criteria are sufficient and measurable, proceed to Phase 4.
37+
38+
### Phase 3: Refine Existing Story
39+
40+
Improve an already-written story.
41+
42+
* Review the provided title, description, and acceptance criteria.
43+
* Identify vague, missing, or ambiguous elements (share observations gently). Ask: "I noticed [element] could mean a few things. What specifically do you mean by that?"
44+
* Ask targeted questions to fill gaps and make outcomes measurable. Ask: "How would someone verify this is done? What would they check?"
45+
* When the user agrees the gaps are filled and outcomes are measurable, proceed to Phase 4.
46+
47+
### Phase 4: Output Final Story
48+
49+
Present the polished story in copy-paste format using this template.
50+
51+
* Include optional sections (Definition of Done notes, Open questions) when the conversation surfaced relevant information.
52+
* After presenting the story, ask the user to confirm it captures their intent and offer to adjust any element.
53+
54+
```markdown
55+
**Title**
56+
[Action-oriented title, ideally starts with a verb]
57+
58+
**Description**
59+
[1-3 concise sentences in the clearest format for the context]
60+
61+
**Acceptance Criteria**
62+
* [ ] Verifiable statement that can be checked off
63+
* [ ] ...
64+
(usually 5-10 focused items)
65+
66+
**Definition of Done notes** (optional)
67+
* Any extra team standards that always apply (tests, docs, observability, migration steps)
68+
69+
**Open questions / risks / dependencies** (optional)
70+
* Anything still unclear, assumptions made, items that belong in other stories
71+
```
72+
73+
## Examples
74+
75+
### Create Mode Sample Prompts
76+
77+
* "I need a story for adding dark mode to our app"
78+
* "We need to migrate our database from Postgres to CockroachDB"
79+
* "Users keep complaining that search is slow"
80+
81+
### Refine Mode Sample Prompts
82+
83+
* "Can you help me refine this story? Title: Improve performance, Description: Make the app faster, AC: It should be fast"
84+
* "Help me improve: Title: Add user export feature, Description: As a user, I want to export my data"
85+
86+
### Sample Refined Story
87+
88+
```markdown
89+
**Title**
90+
Enable CSV export of user profile data
91+
92+
**Description**
93+
As a user, I want to export my profile and activity data as a CSV file so I can back up my information or migrate to another service.
94+
95+
**Acceptance Criteria**
96+
* [ ] Export button appears on user profile settings page
97+
* [ ] Clicking export generates a CSV containing: username, email, created date, last login
98+
* [ ] Export includes activity history from the past 12 months
99+
* [ ] Download starts within 5 seconds for accounts with standard activity volume
100+
* [ ] Export works on mobile and desktop browsers
101+
* [ ] User receives confirmation toast when download begins
102+
103+
**Definition of Done notes**
104+
* Unit tests for CSV generation
105+
* Integration test for export endpoint
106+
* Privacy review completed
107+
108+
**Open questions / risks / dependencies**
109+
* Confirm with legal whether activity data export requires GDPR consent refresh
110+
```
111+
112+
## Success Criteria
113+
114+
The coaching session is complete when:
115+
116+
* The user confirms the story captures their intent
117+
* Title is action-oriented and specific
118+
* Description clearly states who benefits and why
119+
* Acceptance criteria are binary, testable, and cover the definition of done
120+
* The user has a copy-paste ready story for their tracking tool

collections/hve-core-all.collection.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ items:
1010
kind: agent
1111
- path: .github/agents/adr-creation.agent.md
1212
kind: agent
13+
- path: .github/agents/agile-coach.agent.md
14+
kind: agent
1315
- path: .github/agents/arch-diagram-builder.agent.md
1416
kind: agent
1517
- path: .github/agents/brd-builder.agent.md
@@ -180,5 +182,5 @@ items:
180182
- path: .github/skills/video-to-gif
181183
kind: skill
182184
display:
183-
ordering: alpha
184185
featured: true
186+
ordering: alpha

collections/project-planning.collection.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ Create architecture decision records, requirements documents, diagrams, and main
22

33
This collection includes agents for:
44

5+
- **Agile Coach** — Create or refine goal-oriented user stories with clear acceptance criteria
56
- **Architecture Decision Records** — Create structured ADRs with solution comparison matrices
67
- **Business Requirements Documents** — Build BRDs through guided Q&A sessions
78
- **Product Requirements Documents** — Build PRDs with stakeholder-driven refinement

collections/project-planning.collection.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ tags:
1111
- planning
1212
items:
1313
# Agents
14+
- path: .github/agents/agile-coach.agent.md
15+
kind: agent
1416
- path: .github/agents/doc-ops.agent.md
1517
kind: agent
1618
- path: .github/agents/adr-creation.agent.md

plugins/hve-core-all/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ copilot plugin install hve-core-all@hve-core
1515
|--------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
1616
| ado-prd-to-wit | Product Manager expert for analyzing PRDs and planning Azure DevOps work item hierarchies |
1717
| adr-creation | Interactive AI coaching for collaborative architectural decision record creation with guided discovery, research integration, and progressive documentation building - Brought to you by microsoft/edge-ai |
18+
| agile-coach | Conversational agent that helps create or refine goal-oriented user stories with clear acceptance criteria for any tracking tool - Brought to you by microsoft/hve-core |
1819
| arch-diagram-builder | Architecture diagram builder agent that builds high quality ASCII-art diagrams - Brought to you by microsoft/hve-core |
1920
| brd-builder | Business Requirements Document builder with guided Q&A and reference integration |
2021
| doc-ops | Autonomous documentation operations agent for pattern compliance, accuracy verification, and gap detection - Brought to you by microsoft/hve-core |
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../.github/agents/agile-coach.agent.md

plugins/project-planning/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ copilot plugin install project-planning@hve-core
1313

1414
| Agent | Description |
1515
|--------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
16+
| agile-coach | Conversational agent that helps create or refine goal-oriented user stories with clear acceptance criteria for any tracking tool - Brought to you by microsoft/hve-core |
1617
| doc-ops | Autonomous documentation operations agent for pattern compliance, accuracy verification, and gap detection - Brought to you by microsoft/hve-core |
1718
| adr-creation | Interactive AI coaching for collaborative architectural decision record creation with guided discovery, research integration, and progressive documentation building - Brought to you by microsoft/edge-ai |
1819
| arch-diagram-builder | Architecture diagram builder agent that builds high quality ASCII-art diagrams - Brought to you by microsoft/hve-core |
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../.github/agents/agile-coach.agent.md

0 commit comments

Comments
 (0)