Loading...
Loading...
Debug and fix task-related issues in STEEB app. This skill should be used when encountering task creation, completion, deletion, or state management problems in the STEEB task management system.
npx skill4agent add hiizzzo/steeb steeb-task-debuggeraddTaskTasktoggleTaskdeleteTask# Check current task state in console
console.log('Current tasks:', useTaskStore.getState().tasks);
# Check specific task properties
const task = useTaskStore.getState().tasks.find(t => t.id === 'task-id');
console.log('Task details:', task);
# Check store state
console.log('Store state:', useTaskStore.getState());// Test task creation
const testTask = {
title: 'Debug test task',
completed: false,
status: 'pending',
createdAt: new Date().toISOString()
};
await useTaskStore.getState().addTask(testTask);
// Test task toggle
const taskId = 'existing-task-id';
await useTaskStore.getState().toggleTask(taskId);
// Test task deletion
await useTaskStore.getState().deleteTask(taskId);toggleTaskdeleteTaskuseTaskStore// Add this pattern to prevent multiple clicks
const [isProcessing, setIsProcessing] = useState(false);
const handleTaskAction = async (taskId) => {
if (isProcessing) return;
setIsProcessing(true);
try {
await toggleTask(taskId);
} catch (error) {
console.error('Task action failed:', error);
} finally {
setIsProcessing(false);
}
};// Force re-render after store update
setForceUpdate(prev => prev + 1);
// Or use proper React state management
const { tasks, toggleTask } = useTaskStore();// Handle Firestore errors gracefully
try {
await FirestoreTaskService.updateTask(id, updates);
} catch (error) {
console.warn('Firestore sync failed, local changes kept:', error);
// Continue with local state only
}# Run quick task validation
python .claude/skills/steeb-task-debugger/scripts/quick_validate.py# Analyze task state consistency
python .claude/skills/steeb-task-debugger/scripts/analyze_task_state.pysrc/types/index.tssrc/store/useTaskStore.tssrc/services/firestoreTaskService.tssrc/components/Task*.tsx