Toilettage du backlog avec MCP : repérer les tâches obsolètes et les nettoyer
Identify tasks with no recent activity, suggest next actions, and optionally add comments asking for clarification. This workflow helps you keep your backlog clean and actionable by surfacing tasks that need attention or should be archived.
Ce que ce workflow permet
Backlog grooming with MCP helps maintain a healthy task backlog:
Résultats clés
- Stale task detection: Find tasks with no recent activity or updates
- Action suggestions: Get AI-recommended next steps for stale tasks
- Clarification requests: Optionally add comments asking for updates
- Archive candidates: Identify tasks that should be closed or archived
- Backlog health: Maintain an actionable, up-to-date task list
Prérequis
Before using this workflow, ensure you have:
- Corcava MCP server configured in your AI assistant
- API key with read access to tasks and comments
- For adding comments: API key with write permissions
- Tasks in your backlog that may need grooming
Workflow pas à pas
Step 1: Find Tasks with No Recent Activity
Start by identifying tasks that haven't been updated recently:
Stale Task Detection Prompt
What the AI does:
- Calls
list_tasksto get all tasks - Filters tasks by
updated_atdate (older than 30 days) - Groups stale tasks by project or status
- Presents list of stale tasks with context
Step 2: Check Task Comments for Activity
Verify if tasks have recent comments even if the task itself wasn't updated:
Comment Activity Check Prompt
What the AI does:
- For each stale task, calls
list_task_comments - Checks comment timestamps
- Categorizes tasks: no comments, old comments, or truly stale
- Presents activity summary
Step 3: Suggest Next Actions
Get AI recommendations for what to do with stale tasks:
Action Suggestion Prompt
What the AI does:
- Analyzes task details (title, description, status, project)
- Considers task age and context
- Suggests appropriate actions with reasoning
- Presents action plan for review
Step 4: Add Clarification Comments (Optional, with Preview)
⚠️ Always Preview Comments Before Adding
Never let AI add comments without showing what will be posted. Use this pattern:
- Preview First: Show comment text before executing
- Confirmation Token: Require "CONFIRM" before calling add_task_comment
- Review Content: Display comment text for review
- Verify Task: Confirm task ID and title before commenting
Safe Comment Addition Prompt
What the AI does:
- Drafts comment text for each task (e.g., "This task hasn't been updated in 30+ days. What's the current status?")
- Shows preview: "Task: [Title], Comment: [Text]"
- Waits for "CONFIRM"
- Only after confirmation, calls
add_task_commentfor each task - Confirms comments were added
Complete Workflow Prompts
Here are complete, copy-paste ready prompts:
Standard Backlog Grooming
Use this when: You want to review stale tasks without making changes
Backlog Grooming with Comments
Use this when: You want to actively reach out about stale tasks
Archive Candidates
Use this when: You want to identify tasks to archive
Workflow Variants
Variant 1: Project-Specific Grooming
Focus grooming on a specific project:
What happens: AI filters by project first, then applies grooming logic
Variant 2: Status-Based Grooming
Focus on tasks in a specific status:
What happens: AI filters by status, then identifies stale items
Variant 3: Assignee-Based Grooming
Find stale tasks assigned to specific people:
What happens: AI filters by assignee, checks activity, suggests actions
Suggested Actions for Stale Tasks
Here are common actions the AI might suggest:
✅ Add Clarification Comment
When: Task might still be relevant but needs status update
Comment example: "This task hasn't been updated in 30+ days. What's the current status? Is this still relevant?"
Tool: add_task_comment (with confirmation)
🔄 Reassign Task
When: Original assignee is no longer working on it
Action: Update assignee_id to new owner
Tool: update_task (with confirmation)
📝 Update Status
When: Task status is outdated
Action: Change status to "blocked" or "done" if appropriate
Tool: update_task (with confirmation)
🗑️ Close/Archive
When: Task is obsolete or no longer relevant
Action: Update status to "done" or delete if truly obsolete
Tool: update_task or delete_task (with strong confirmation)
Example: Complete Backlog Grooming Session
Here's a real example of how a backlog grooming session flows:
User Prompt
AI Response
Stale Tasks Found (8 tasks)
Tasks Needing Clarification (5 tasks):
- Implement dark mode (Last updated: 45 days ago, No comments) - Suggested: Add comment asking for status
- Update user guide (Last updated: 38 days ago, Old comments) - Suggested: Reassign or close
Tasks to Archive (3 tasks):
- Old feature request (Last updated: 90 days ago, No activity) - Suggested: Close/archive
Next Steps:
Would you like me to draft clarification comments for the 5 tasks that need updates? I'll show you the comments first before adding them.
Safety Patterns
⚠️ Confirmation Rules for Write Operations
When grooming includes adding comments or updating tasks:
- Always preview: Show comment text or changes before executing
- Require explicit confirmation: Use "CONFIRM" token before any writes
- Batch carefully: Show full list of comments/changes before applying
- One at a time for critical actions: For deletions or major changes, handle individually
Troubleshooting
No Stale Tasks Found
Symptom: AI reports no stale tasks
Possible causes:
- All tasks have been updated recently
- Time threshold is too short (try 60 days instead of 30)
- Tasks are in a different workspace
Fix: Adjust time threshold or check different projects
Too Many Stale Tasks
Symptom: Hundreds of stale tasks found
Possible causes:
- Backlog hasn't been groomed in a long time
- Many old tasks that should be archived
Fix: Focus on specific projects or statuses first, then expand
Related Tools
This workflow uses these Corcava MCP tools:
list_tasks
Find tasks by date filters
get_task
Get task details including last updated date
list_task_comments
Check comment activity on stale tasks
add_task_comment
Add clarification comments (with confirmation)
update_task
Update status or reassign (with confirmation)
Related Use Cases
Start Grooming Your Backlog
Connect your AI assistant to Corcava and keep your backlog clean