home / skills / yellinzero / aico / aico-pm-story-acceptance
This skill verifies frontend and backend task completion for a story and updates acceptance criteria checkboxes accordingly.
npx playbooks add skill yellinzero/aico --skill aico-pm-story-acceptanceReview the files below or copy the command above to add this skill to your agents.
---
name: aico-pm-story-acceptance
description: |
Verify and close stories after frontend/backend tasks are completed. Check ALL related task files, update story acceptance criteria checkboxes.
UNIQUE VALUE: Ensures BOTH frontend AND backend tasks are verified before closing story. Prevents premature story closure.
Use this skill when:
- Frontend or backend notifies "task completed, please verify"
- User asks to "verify story", "accept story", "close story", "mark story done"
- Need to check if a story can be marked as complete
- User asks "is story X done?", "can we close story X?"
CRITICAL: Must check BOTH frontend tasks (docs/reference/frontend/tasks/) AND backend tasks (docs/reference/backend/tasks/) before closing.
Output: Update story file checkboxes from `- [ ]` to `- [x]`
---
# Story Acceptance
## Language Configuration
Before generating any content, check `aico.json` in project root for `language` field to determine the output language. If not set, default to English.
## Process
1. **Identify the story**: Get story ID (e.g., S-001) from notification or user
2. **Read the story**: Load `docs/reference/pm/stories/{story-id}.md`
3. **Find related tasks**:
- Check `docs/reference/frontend/tasks/` for frontend tasks
- Check `docs/reference/backend/tasks/` for backend tasks
4. **Verify all tasks completed**:
- All task statuses should be `β
completed`
- No `β³ pending` or `π in_progress` tasks remaining
5. **Update story**:
- If ALL tasks completed β Update acceptance criteria `- [ ]` to `- [x]`
- If partial β Report progress, list incomplete tasks
## Verification Checklist
```markdown
## Story: S-XXX
### Frontend Tasks
- [x] docs/reference/frontend/tasks/s-xxx.md - All completed
### Backend Tasks
- [x] docs/reference/backend/tasks/s-xxx.md - All completed
### Result: β
Ready to close / β³ Waiting for tasks
```
## Task Status Mapping
| Task Status | Meaning |
| ---------------- | ----------------- |
| `β
completed` | Task done |
| `π in_progress` | Currently working |
| `β³ pending` | Not started |
## Story Update Format
When all tasks are complete, update the story file:
```markdown
## Acceptance Criteria
- [x] Criterion 1 (was `- [ ]`)
- [x] Criterion 2 (was `- [ ]`)
- [x] Criterion 3 (was `- [ ]`)
```
## Decision Logic
```
Has frontend tasks? ββYesββ> Check frontend/tasks/{story}.md
β β
No All completed?
β β β
βΌ Yes No
Has backend tasks? ββYesββ> Check backend/tasks/{story}.md
β β
No All completed?
β β β
βΌ Yes No
All checks passed? ββββββββββββββ β
β β
Yes No
β β
βΌ βΌ
Update story checkboxes Report incomplete tasks
```
## Key Rules
- MUST check BOTH frontend and backend tasks before closing
- ONLY update story when ALL related tasks are completed
- ALWAYS report which tasks are still pending if not ready to close
- Use exact checkbox format: `- [x]` for completed, `- [ ]` for pending
## Output Examples
### All Complete
```
## Story S-001 Acceptance Result
β
**Ready to Close**
### Task Check
- Frontend: 3/3 completed
- Backend: 2/2 completed
Story acceptance criteria updated.
```
### Partial Complete
```
## Story S-001 Acceptance Result
β³ **Waiting for Tasks**
### Task Check
- Frontend: 3/3 completed β
- Backend: 1/2 completed β³
### Incomplete Tasks
- [ ] Backend Task 2: Implement API endpoint
```
## Common Mistakes
- β Close story with pending tasks β β
Check ALL related tasks first
- β Only check frontend OR backend β β
Check BOTH if story has both
- β Forget to update checkboxes β β
Always update `- [ ]` to `- [x]`
This skill verifies and closes PM stories by checking both frontend and backend task files, then updates the story acceptance criteria checkboxes. It prevents premature closure by requiring all related tasks under docs/reference/frontend/tasks/ and docs/reference/backend/tasks/ to be completed before marking a story done. The skill reports progress and lists any incomplete tasks when closure is not yet possible.
Identify the story ID and load docs/reference/pm/stories/{story-id}.md. Inspect all related task files in docs/reference/frontend/tasks/ and docs/reference/backend/tasks/ and read their status markers (β completed, π in_progress, β³ pending). If every referenced frontend and backend task is completed, update the story file acceptance criteria checkboxes from - [ ] to - [x]. If any task is incomplete, return a concise report showing progress and the specific pending tasks.
What if a story has only frontend tasks?
You still must check backend tasks directory; if none exist for that story, only frontend checks are required. Update acceptance only when all present tasks are β completed.
How are statuses recognized?
Task files must use the status markers β completed, π in_progress, or β³ pending. The skill uses these exact markers to determine readiness.