Optional TaskFlow integration for WebGen projects
Detects if TaskFlow plugin is available and offers optional task tracking for WebGen projects. If user accepts, it initializes tasks at start, updates status at each checkpoint, and generates completion summaries. Gracefully degrades if TaskFlow is missing.
/plugin marketplace add gaurangrshah/gsc-plugins/plugin install webgen@gsc-pluginsThis skill inherits all available tools. When active, it can use any tool Claude has access to.
Purpose: Enable optional task management for WebGen projects when TaskFlow plugin is available.
Integration Type: Non-breaking, opt-in
This skill provides TaskFlow integration WITHOUT breaking WebGen when TaskFlow is unavailable.
Rules:
At webgen session start, check for TaskFlow:
# Method 1: Check for taskflow plugin directory
if [ -d "$HOME/.claude/plugins/local-plugins/taskflow" ]; then
TASKFLOW_AVAILABLE=true
else
TASKFLOW_AVAILABLE=false
fi
# Method 2: Try to locate task command
if command -v task-init &> /dev/null; then
TASKFLOW_AVAILABLE=true
fi
Store result in session context:
taskflow_available: true|falsetaskflow_enabled: true|false (user's choice)After requirements confirmed (Checkpoint 1):
## CHECKPOINT 1 COMPLETE
**Project:** {project-name}
**Type:** {project-type}
**Output:** {output-dir}
**TaskFlow Detected:**
I detected TaskFlow is available. Would you like to track this project with tasks?
- **Yes** - Initialize task tracking, break requirements into tasks
- **No** - Continue with standard WebGen workflow
What would you like to do?
If user declines:
Understood. Proceeding with standard WebGen workflow...
If user accepts:
✅ TaskFlow enabled for this project.
Initializing task tracking...
Trigger: User accepts TaskFlow integration
Actions:
Implementation:
cd {output-dir}
# Initialize TaskFlow
/task-init
# Option A: Parse requirements.md as PRD (if structured)
if [ -f "docs/requirements.md" ]; then
/task-parse docs/requirements.md
fi
# Option B: Create tasks manually from requirements
# (Use if requirements not in PRD format)
Task Structure from Requirements:
{
"tasks": [
{
"id": 1,
"title": "Conduct competitive research",
"description": "Research {industry} competitors and extract design patterns",
"status": "pending",
"priority": "high",
"phase": "research",
"acceptanceCriteria": [
"3+ competitors analyzed",
"Research saved to research/competitive-analysis.md"
]
},
{
"id": 2,
"title": "Scaffold project architecture",
"description": "Initialize {tech-stack} project with proper structure",
"status": "pending",
"priority": "high",
"phase": "architecture",
"dependencies": [1],
"acceptanceCriteria": [
"Project structure created",
"Dev server running",
"Infrastructure verified"
]
},
{
"id": 3,
"title": "Implement {component-name}",
"description": "Generate {component-name} component",
"status": "pending",
"priority": "medium",
"phase": "implementation",
"dependencies": [2]
}
]
}
At each checkpoint:
Before starting phase:
/task-status {task-id} in_progress
During implementation:
/task-next for prioritizationAfter phase complete:
/task-status {task-id} done
Example for Checkpoint 4 (Implementation):
Starting Implementation phase...
# Update TaskFlow
/task-status 3 in_progress
# Generate components
[Component generation...]
# Mark subtasks complete
/task-status 3.1 done # Hero component
/task-status 3.2 done # Features section
/task-status 3.3 done # CTA component
# Mark main task complete
/task-status 3 done
✅ Implementation complete
At project completion:
Implementation:
# List any incomplete tasks
/task-list --status pending,in_progress
# Mark project complete
/task-status {final-task-id} done
# Generate summary
/task-list --summary
Include in final report:
## CHECKPOINT 5 COMPLETE: Project finished
**Project Summary:**
- Location: {output-dir}
- Stack: {tech-stack}
- Preview: {url}
**Task Summary:**
- Total tasks: {count}
- Completed: {completed}
- Time tracked: {duration}
- Phases: Research → Architecture → Implementation → Legal → Final
**Deliverables:**
[Standard webgen deliverables...]
| Command | When | Purpose |
|---|---|---|
/task-init | Checkpoint 1 | Initialize task tracking |
/task-parse <prd> | Checkpoint 1 (optional) | Parse structured requirements |
/task-status <id> <status> | Each checkpoint | Update task status |
/task-list | Any phase | View current tasks |
/task-next | Implementation | Get recommended next task |
/task-show <id> | Any phase | View task details |
/task-expand <id> | Complex tasks | Break into subtasks |
| WebGen Phase | TaskFlow Status |
|---|---|
| Not started | pending |
| In progress | in_progress |
| Complete | done |
| Blocked (code review issues) | blocked |
| Skipped (legal pages) | deferred |
{
"id": 1,
"title": "Conduct competitive research",
"description": "Research fintech competitors and extract patterns",
"status": "in_progress",
"priority": "high",
"subtasks": [
{
"id": "1.1",
"title": "Research Betterment",
"status": "done"
},
{
"id": "1.2",
"title": "Research Wealthfront",
"status": "in_progress"
},
{
"id": "1.3",
"title": "Extract design patterns",
"status": "pending"
}
],
"acceptanceCriteria": [
"3+ competitors analyzed",
"Research saved to research/competitive-analysis.md",
"Design patterns documented"
]
}
{
"id": 2,
"title": "Scaffold project architecture",
"description": "Initialize React + Vite + Tailwind project",
"status": "pending",
"priority": "high",
"dependencies": [1],
"subtasks": [
{
"id": "2.1",
"title": "Create project structure",
"status": "pending"
},
{
"id": "2.2",
"title": "Run pnpm install",
"status": "pending"
},
{
"id": "2.3",
"title": "Verify dev server",
"status": "pending"
}
],
"acceptanceCriteria": [
"Project structure created",
"Dependencies installed",
"Dev server running on port 5173"
]
}
{
"id": 3,
"title": "Implement landing page components",
"description": "Generate all landing page sections",
"status": "pending",
"priority": "high",
"dependencies": [2],
"subtasks": [
{
"id": "3.1",
"title": "Hero component",
"status": "pending"
},
{
"id": "3.2",
"title": "Features section",
"status": "pending"
},
{
"id": "3.3",
"title": "Trust indicators",
"status": "pending"
},
{
"id": "3.4",
"title": "Pricing section",
"status": "pending"
},
{
"id": "3.5",
"title": "CTA section",
"status": "pending"
}
],
"acceptanceCriteria": [
"All components generated with docstrings",
"Code review passed",
"Accessibility compliant",
"Preview screenshot captured"
]
}
# User requests TaskFlow integration
User: "Use TaskFlow for this project"
# Detection fails
Agent: "I don't see TaskFlow installed on this system.
Would you like to:
1. Continue with standard WebGen workflow
2. Install TaskFlow first (provide instructions)
What would you like to do?"
# Graceful degradation
if ! /task-init 2>/dev/null; then
echo "TaskFlow command failed. Continuing with standard workflow..."
TASKFLOW_ENABLED=false
fi
Never crash WebGen due to TaskFlow issues.
In webgen session metadata:
{
"project": "investwise - webgen",
"taskflow": {
"available": true,
"enabled": true,
"initialized": true,
"task_count": 12,
"current_task": 3,
"current_phase": "implementation"
}
}
# When resuming session
Agent: "Resuming InvestWise project..."
# Check TaskFlow state
if taskflow.enabled:
current_task = /task-show {current_task}
"TaskFlow Status:
- Current task: #{current_task.id} - {current_task.title}
- Status: {current_task.status}
- Progress: {completed}/{total} tasks complete
Should I continue with task #{current_task.id}?"
For Users:
For Agents:
/task-next)User: /webgen fintech landing page for InvestWise
Agent: [Detects TaskFlow]
TaskFlow detected. Track this project with tasks? (y/n)
User: y
Agent: ✅ TaskFlow enabled
Initializing task tracking...
/task-init
Created .tasks/ directory
Initialized master tag
Creating tasks from requirements...
Tasks created:
1. [pending] Conduct competitive research (high priority)
2. [pending] Scaffold project architecture (high priority, depends on #1)
3. [pending] Implement landing page components (medium, depends on #2)
4. [pending] Generate legal pages (low, depends on #3)
5. [pending] Final documentation (low, depends on #4)
Starting with task #1...
/task-status 1 in_progress
[Conducts research...]
/task-status 1 done
✅ Research complete
Moving to task #2...
/task-status 2 in_progress
[Scaffolds project...]
/task-status 2 done
✅ Architecture complete
Moving to task #3...
/task-status 3 in_progress
Implementing components...
- /task-status 3.1 done # Hero
- /task-status 3.2 done # Features
- /task-status 3.3 done # CTA
/task-status 3 done
✅ Implementation complete
[Continues through remaining tasks...]
## FINAL REPORT
**Task Summary:**
- Total: 5 tasks, 12 subtasks
- All tasks complete ✅
- No blockers encountered
- Phases: Research → Architecture → Implementation → Legal → Final
Project complete!
Potential improvements for future versions:
Effort Estimation:
Tag-Based Organization:
Template Integration:
Cross-Session Resume:
Parallel Component Generation:
Integration is successful when:
✅ TaskFlow detected reliably (no false negatives) ✅ User can decline without breaking workflow ✅ WebGen works identically with/without TaskFlow ✅ Tasks accurately reflect webgen phases ✅ Task statuses stay synchronized with actual progress ✅ Final report includes meaningful task summary ✅ No errors when TaskFlow unavailable ✅ Commands fail gracefully with clear messaging
Version: 1.0.0 Created: 2025-12-13 Status: Active
Implement GDPR-compliant data handling with consent management, data subject rights, and privacy by design. Use when building systems that process EU personal data, implementing privacy controls, or conducting GDPR compliance reviews.