[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6JE7J4Z2PCVVE4YZXY7CP44":3,"skill-same:01M6JE7J4Z2PCVVE4YZXY7CP44":61},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":22,"publishedAt":33,"linkOnly":34,"markdownContent":35,"markdownBody":36,"frontMatter":37,"refName":39,"commitSha":40,"skillDirectory":41,"forksCount":42,"repositoryHtmlUrl":43,"repositoryHomepageUrl":44,"ownerHtmlUrl":45,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":46,"install":47,"resources":60},"01M6JE7J4Z2PCVVE4YZXY7CP44","notion-tasks",null,"Create, manage, and complete tasks in Seyed and Appie Notion task databases while preserving task schemas and conventions.","S3YED\u002Fappie-kit","S3YED","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F62743867?v=4","01M6JBKBRRVP6KMS0VWZ27T3R6","01M6JBKBX0KG30284PW1DBYJT1",14,"MIT","https:\u002F\u002Fgithub.com\u002FS3YED\u002Fappie-kit\u002Fblob\u002Fmaster\u002Fskills\u002Fintegrations\u002Fnotion-tasks\u002FSKILL.md",[17],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[23,24,25,26,27,28,29,30,31,32],"notion","tasks","notion tasks","create","integrations","databases","manage","task","conventions","complete","2026-11-10 10:12:30",false,"---\nname: notion-tasks\ndescription: \"Create, manage, and complete tasks in Seyed and Appie Notion task databases while preserving task schemas and conventions.\"\nversion: 1.0.0\ncategory: integrations\n---\n\n# Notion Tasks Skill\n\n*How Appies manage tasks in Notion*\n\n## Purpose\n\nComprehensive guide for creating, managing, and completing tasks in the Notion Tasks database. This is the central task management system for all Appies.\n\n---\n\n## Database Overview\n\n**Tasks Database**\n- **Database ID:** set `NOTION_TASKS_DATABASE_ID` in the environment\n- **Data Source ID:** set `NOTION_TASKS_DATA_SOURCE_ID` in the environment. Use this for queries.\n- **API Version:** `2025-09-03`\n\n### Task Properties\n\n| Property | Type | Description |\n|----------|------|-------------|\n| **Task** | Title | Task name\u002Fdescription |\n| **Status** | Status | Not started, In progress, Done, Blocked |\n| **Assignee** | Relation | Links to Appie Status pages |\n| **Priority** | Select | High, Medium, Low |\n| **Due date** | Date | Task deadline |\n| **Label** | Multi-select | Categories\u002Ftags |\n| **Project** | Rich Text | Project name |\n| **Estimated Hours** | Number | Time estimate |\n\n---\n\n## Appie Status Pages\n\nEach Appie has a status page in the Status database that tasks can be assigned to:\n\n| Appie | Status Page ID | Bot |\n|-------|---------------|-----|\n| **Appie-1 (Mac)** | `\u003Cyour-appie-1-notion-id>` | @your_bot_1 |\n| **Appie-2 (DO)** | `\u003Cyour-appie-2-notion-id>` | @your_bot_2 |\n| **Appie-3 (DO)** | `\u003Cyour-appie-3-notion-id>` | @your_bot_3 |\n| **You** | `\u003Cyour-notion-id>` | (human) |\n\n---\n\n## Task Workflow\n\n### The Complete Lifecycle\n\n```\n1. Task Created (Not started)\n   ↓\n2. Appie assigns to self + sets \"In Progress\"\n   ↓\n3. Appie works on task\n   ↓\n4. Appie adds documentation to task body\n   ↓\n5. Appie shows work to Seyed for review\n   ↓\n6. After approval → Mark as \"Done\"\n```\n\n### Rules\n\n1. **Always assign before starting** - Set Assignee relation\n2. **Set to In Progress** - Update status when you begin\n3. **Document your work** - Add what you did to task body\n4. **Show for review** - Message Seyed with summary\n5. **Wait for approval** - Don't mark Done until confirmed\n6. **Push to GitHub** - Commit code\u002Fdocs before marking Done\n\n---\n\n## API Usage\n\n### Setup\n\n```javascript\nconst https = require('https');\nconst fs = require('fs');\n\nconst NOTION_TOKEN = fs.readFileSync(process.env.HOME + '\u002F.config\u002Fnotion\u002Fapi_key', 'utf8').trim();\nconst TASKS_DATA_SOURCE_ID = process.env.NOTION_TASKS_DATA_SOURCE_ID;\n\nfunction notionRequest(path, method = 'POST', body = null) {\n  return new Promise((resolve, reject) => {\n    const options = {\n      hostname: 'api.notion.com',\n      port: 443,\n      path: path,\n      method: method,\n      headers: {\n        'Authorization': `Bearer ${NOTION_TOKEN}`,\n        'Notion-Version': '2025-09-03',\n        'Content-Type': 'application\u002Fjson'\n      },\n      timeout: 15000\n    };\n\n    const req = https.request(options, (res) => {\n      let data = '';\n      res.on('data', (chunk) => { data += chunk; });\n      res.on('end', () => resolve(JSON.parse(data)));\n    });\n\n    req.on('error', reject);\n    req.on('timeout', () => { req.destroy(); reject(new Error('Request timeout')); });\n    if (body) req.write(JSON.stringify(body));\n    req.end();\n  });\n}\n```\n\n### Query Tasks\n\n```javascript\nasync function getTasks(filters = {}) {\n  const body = {\n    page_size: 100\n  };\n\n  \u002F\u002F Add filters if provided\n  if (Object.keys(filters).length > 0) {\n    body.filter = filters;\n  }\n\n  const result = await notionRequest(\n    `\u002Fv1\u002Fdata_sources\u002F${TASKS_DATA_SOURCE_ID}\u002Fquery`, \n    'POST', \n    body\n  );\n\n  return result.results;\n}\n\n\u002F\u002F Get all unfinished tasks\nconst unfinished = await getTasks({\n  property: 'Status',\n  status: {\n    does_not_equal: 'Done'\n  }\n});\n\n\u002F\u002F Get tasks assigned to Appie-3\nconst myTasks = await getTasks({\n  property: 'Assignee',\n  relation: {\n    contains: '\u003Cyour-appie-3-notion-id>'\n  }\n});\n\n\u002F\u002F Get high priority tasks\nconst urgent = await getTasks({\n  property: 'Priority',\n  select: {\n    equals: 'High'\n  }\n});\n```\n\n### Find Specific Task\n\n```javascript\nasync function findTask(taskTitle) {\n  const result = await notionRequest(\n    `\u002Fv1\u002Fdata_sources\u002F${TASKS_DATA_SOURCE_ID}\u002Fquery`,\n    'POST',\n    {\n      filter: {\n        property: 'Task',\n        title: {\n          contains: taskTitle\n        }\n      }\n    }\n  );\n\n  return result.results[0] || null;\n}\n\nconst task = await findTask('Build Morning Brief');\n```\n\n### Create Task\n\n```javascript\nasync function createTask(title, options = {}) {\n  const properties = {\n    Task: {\n      title: [{ \n        type: 'text', \n        text: { content: title }\n      }]\n    },\n    Status: {\n      status: { name: options.status || 'Not started' }\n    }\n  };\n\n  \u002F\u002F Add optional properties\n  if (options.priority) {\n    properties.Priority = { select: { name: options.priority }};\n  }\n\n  if (options.due) {\n    properties['Due date'] = { date: { start: options.due }};\n  }\n\n  if (options.assignee) {\n    properties.Assignee = { relation: [{ id: options.assignee }]};\n  }\n\n  if (options.project) {\n    properties.Project = { \n      rich_text: [{ \n        type: 'text', \n        text: { content: options.project }\n      }]\n    };\n  }\n\n  const result = await notionRequest('\u002Fv1\u002Fpages', 'POST', {\n    parent: { \n      type: 'database_id',\n      database_id: process.env.NOTION_TASKS_DATABASE_ID\n    },\n    properties\n  });\n\n  return result;\n}\n\n\u002F\u002F Example: Create task\nawait createTask('Deploy new feature', {\n  priority: 'High',\n  due: '2026-02-20',\n  assignee: '\u003Cyour-appie-3-notion-id>', \u002F\u002F Appie-3\n  project: 'Command Center'\n});\n```\n\n### Update Task Status\n\n```javascript\nasync function updateTaskStatus(pageId, status) {\n  await notionRequest(`\u002Fv1\u002Fpages\u002F${pageId}`, 'PATCH', {\n    properties: {\n      Status: {\n        status: { name: status }\n      }\n    }\n  });\n}\n\n\u002F\u002F Mark task as In Progress\nawait updateTaskStatus(task.id, 'In progress');\n\n\u002F\u002F Mark task as Done\nawait updateTaskStatus(task.id, 'Done');\n```\n\n### Assign Task to Appie\n\n```javascript\nasync function assignTask(pageId, appieStatusId) {\n  await notionRequest(`\u002Fv1\u002Fpages\u002F${pageId}`, 'PATCH', {\n    properties: {\n      Assignee: {\n        relation: [{ id: appieStatusId }]\n      }\n    }\n  });\n}\n\n\u002F\u002F Assign to Appie-3\nawait assignTask(task.id, '\u003Cyour-appie-3-notion-id>');\n```\n\n### Add Documentation to Task\n\n```javascript\nasync function documentTask(pageId, documentation) {\n  await notionRequest(`\u002Fv1\u002Fblocks\u002F${pageId}\u002Fchildren`, 'PATCH', {\n    children: [\n      {\n        object: 'block',\n        type: 'heading_2',\n        heading_2: {\n          rich_text: [{ \n            type: 'text', \n            text: { content: '✅ Completed by Appie-3' }\n          }]\n        }\n      },\n      {\n        object: 'block',\n        type: 'paragraph',\n        paragraph: {\n          rich_text: [{ \n            type: 'text', \n            text: { content: documentation }\n          }]\n        }\n      }\n    ]\n  });\n}\n\nconst doc = `\nCreated: skills\u002Fnotion-tasks\u002FSKILL.md (15KB)\n\nWhat it includes:\n- Complete task workflow\n- API usage examples\n- Helper scripts\n- Best practices\n\nLocation: `\u003Crepo>\u002Fskills\u002Fnotion-tasks\u002F`\nCommit: abc1234\nDate: 2026-02-16\n`;\n\nawait documentTask(task.id, doc);\n```\n\n---\n\n## Helper Scripts\n\n### Task Workflow Tool\n\n**Location:** `$TOOLS_DIR\u002Ftask-workflow.js`\n\n#### Start a Task\n```bash\nnode \"$TOOLS_DIR\u002Ftask-workflow.js\" start \"Task Title\"\n```\n\nWhat it does:\n1. Finds task by title\n2. Assigns to Appie-3\n3. Sets status to \"In Progress\"\n\n#### Finish a Task\n```bash\nnode \"$TOOLS_DIR\u002Ftask-workflow.js\" finish \"Task Title\" \"Documentation text\"\n```\n\nWhat it does:\n1. Finds task by title\n2. Adds documentation to task body\n3. Marks as \"Done\"\n\n#### Programmatic Usage\n\n```javascript\nconst { startTask, finishTask } = require('.\u002Ftools\u002Ftask-workflow.js');\n\n\u002F\u002F Start task\nawait startTask('Build new feature');\n\n\u002F\u002F ... do the work ...\n\n\u002F\u002F Finish task with documentation\nawait finishTask('Build new feature', `\nCreated: features\u002Fnew-thing\u002F\nFiles: 5 files, 1,200 lines\nTested: ✅ All tests pass\nCommit: abc1234\n`);\n```\n\n---\n\n## Common Patterns\n\n### Daily Task Check\n\n```javascript\n\u002F\u002F Get today's tasks\nasync function getTodaysTasks(appieId) {\n  const today = new Date().toISOString().split('T')[0];\n  \n  const tasks = await getTasks({\n    and: [\n      {\n        property: 'Assignee',\n        relation: { contains: appieId }\n      },\n      {\n        property: 'Status',\n        status: { does_not_equal: 'Done' }\n      }\n    ]\n  });\n\n  return tasks.filter(task => {\n    const due = task.properties['Due date']?.date?.start;\n    return due && due \u003C= today;\n  });\n}\n```\n\n### Overdue Tasks\n\n```javascript\nasync function getOverdueTasks() {\n  const today = new Date().toISOString().split('T')[0];\n  \n  const tasks = await getTasks({\n    and: [\n      {\n        property: 'Status',\n        status: { does_not_equal: 'Done' }\n      }\n    ]\n  });\n\n  return tasks.filter(task => {\n    const due = task.properties['Due date']?.date?.start;\n    return due && due \u003C today;\n  });\n}\n```\n\n### Task Summary\n\n```javascript\nasync function getTaskSummary(appieId) {\n  const allTasks = await getTasks({\n    property: 'Assignee',\n    relation: { contains: appieId }\n  });\n\n  const summary = {\n    total: allTasks.length,\n    notStarted: 0,\n    inProgress: 0,\n    done: 0,\n    blocked: 0\n  };\n\n  allTasks.forEach(task => {\n    const status = task.properties.Status?.status?.name || 'Not started';\n    \n    if (status === 'Not started') summary.notStarted++;\n    else if (status === 'In progress') summary.inProgress++;\n    else if (status === 'Done') summary.done++;\n    else if (status === 'Blocked') summary.blocked++;\n  });\n\n  return summary;\n}\n```\n\n---\n\n## Best Practices\n\n### 1. One Task, One Thing\n- Break big tasks into smaller ones\n- Each task should be completable in \u003C 1 day\n- Use projects to group related tasks\n\n### 2. Clear Titles\n```\n❌ \"Fix stuff\"\n❌ \"Work on website\"\n✅ \"Fix login timeout on Peakspring site\"\n✅ \"Add file explorer API to Command Center\"\n```\n\n### 3. Always Estimate\n- Add estimated hours to help with planning\n- Review estimates weekly to improve accuracy\n\n### 4. Document Everything\n- What you built\n- Where files are located\n- How to test it\n- Commit hash\n- Known issues\n\n### 5. Keep Status Current\n- Update to \"In Progress\" when you start\n- Update to \"Blocked\" if stuck (with reason)\n- Update to \"Done\" only after approval\n\n### 6. Use Labels\n- Label tasks by type: `bug`, `feature`, `documentation`\n- Label by client: `Peakspring`, `Fiatballers`, `Weblyfe`\n- Label by skill: `n8n`, `automation`, `design`\n\n---\n\n## Integration with Other Systems\n\n### Morning Brief\n\nThe daily brief pulls from Tasks:\n```javascript\nconst todaysTasks = await getTodaysTasks(APPIE_ID);\nconst overdue = await getOverdueTasks();\n\nconst brief = `\nTOP PRIORITIES TODAY:\n${todaysTasks.map(t => `- [ ] ${t.properties.Task.title[0].plain_text}`).join('\\n')}\n\n⚠️ OVERDUE:\n${overdue.map(t => `- ${t.properties.Task.title[0].plain_text}`).join('\\n')}\n`;\n```\n\n### Goal-Based Task Generation\n\nWhen creating tasks from goals:\n```javascript\nconst phases = breakdownGoal(goal);\n\nfor (const phase of phases) {\n  for (const task of phase.tasks) {\n    await createTask(task.title, {\n      project: goal.name,\n      priority: task.priority,\n      due: task.due,\n      assignee: determineAssignee(task)\n    });\n  }\n}\n```\n\n### Command Center Dashboard\n\nThe dashboard shows task stats:\n```javascript\napp.get('\u002Fapi\u002Ftasks\u002Fsummary', async (req, res) => {\n  const summary = await getTaskSummary(APPIE_ID);\n  res.json(summary);\n});\n```\n\n---\n\n## Troubleshooting\n\n### Task Not Found\n```javascript\n\u002F\u002F Search is case-sensitive and uses \"contains\"\n\u002F\u002F Try partial match:\nconst tasks = await getTasks({\n  property: 'Task',\n  title: { contains: 'Morning' }\n});\n```\n\n### Can't Update Status\n```javascript\n\u002F\u002F Make sure status name matches exactly:\n\u002F\u002F ✅ \"In progress\" (lowercase p)\n\u002F\u002F ❌ \"In Progress\" (will fail)\n\n\u002F\u002F Valid statuses:\n- \"Not started\"\n- \"In progress\"\n- \"Done\"\n- \"Blocked\"\n```\n\n### Assignee Not Working\n```javascript\n\u002F\u002F Use the STATUS PAGE ID, not database ID:\nconst APPIE3_STATUS_ID = '\u003Cyour-appie-3-notion-id>';\n\nawait notionRequest(`\u002Fv1\u002Fpages\u002F${pageId}`, 'PATCH', {\n  properties: {\n    Assignee: {\n      relation: [{ id: APPIE3_STATUS_ID }] \u002F\u002F Array of objects!\n    }\n  }\n});\n```\n\n### Rate Limiting\n```javascript\n\u002F\u002F Notion API: 3 requests\u002Fsecond\n\u002F\u002F Add delay between operations:\n\nfor (const task of tasks) {\n  await updateTask(task);\n  await new Promise(resolve => setTimeout(resolve, 350)); \u002F\u002F 350ms delay\n}\n```\n\n---\n\n## See Also\n\n- `tools\u002Ftask-workflow.js` - Automated task workflow\n- `tools\u002Fdaily-brief\u002F` - Morning brief integration\n- `systems\u002Fgoal-based-tasks\u002F` - Goal → Task generation\n- `MEMORY.md` - Task completion tracking\n\n---\n\n*\"A task without documentation is a task that never happened.\"*\n","# Notion Tasks Skill\n\n*How Appies manage tasks in Notion*\n\n## Purpose\n\nComprehensive guide for creating, managing, and completing tasks in the Notion Tasks database. This is the central task management system for all Appies.\n\n---\n\n## Database Overview\n\n**Tasks Database**\n- **Database ID:** set `NOTION_TASKS_DATABASE_ID` in the environment\n- **Data Source ID:** set `NOTION_TASKS_DATA_SOURCE_ID` in the environment. Use this for queries.\n- **API Version:** `2025-09-03`\n\n### Task Properties\n\n| Property | Type | Description |\n|----------|------|-------------|\n| **Task** | Title | Task name\u002Fdescription |\n| **Status** | Status | Not started, In progress, Done, Blocked |\n| **Assignee** | Relation | Links to Appie Status pages |\n| **Priority** | Select | High, Medium, Low |\n| **Due date** | Date | Task deadline |\n| **Label** | Multi-select | Categories\u002Ftags |\n| **Project** | Rich Text | Project name |\n| **Estimated Hours** | Number | Time estimate |\n\n---\n\n## Appie Status Pages\n\nEach Appie has a status page in the Status database that tasks can be assigned to:\n\n| Appie | Status Page ID | Bot |\n|-------|---------------|-----|\n| **Appie-1 (Mac)** | `\u003Cyour-appie-1-notion-id>` | @your_bot_1 |\n| **Appie-2 (DO)** | `\u003Cyour-appie-2-notion-id>` | @your_bot_2 |\n| **Appie-3 (DO)** | `\u003Cyour-appie-3-notion-id>` | @your_bot_3 |\n| **You** | `\u003Cyour-notion-id>` | (human) |\n\n---\n\n## Task Workflow\n\n### The Complete Lifecycle\n\n```\n1. Task Created (Not started)\n   ↓\n2. Appie assigns to self + sets \"In Progress\"\n   ↓\n3. Appie works on task\n   ↓\n4. Appie adds documentation to task body\n   ↓\n5. Appie shows work to Seyed for review\n   ↓\n6. After approval → Mark as \"Done\"\n```\n\n### Rules\n\n1. **Always assign before starting** - Set Assignee relation\n2. **Set to In Progress** - Update status when you begin\n3. **Document your work** - Add what you did to task body\n4. **Show for review** - Message Seyed with summary\n5. **Wait for approval** - Don't mark Done until confirmed\n6. **Push to GitHub** - Commit code\u002Fdocs before marking Done\n\n---\n\n## API Usage\n\n### Setup\n\n```javascript\nconst https = require('https');\nconst fs = require('fs');\n\nconst NOTION_TOKEN = fs.readFileSync(process.env.HOME + '\u002F.config\u002Fnotion\u002Fapi_key', 'utf8').trim();\nconst TASKS_DATA_SOURCE_ID = process.env.NOTION_TASKS_DATA_SOURCE_ID;\n\nfunction notionRequest(path, method = 'POST', body = null) {\n  return new Promise((resolve, reject) => {\n    const options = {\n      hostname: 'api.notion.com',\n      port: 443,\n      path: path,\n      method: method,\n      headers: {\n        'Authorization': `Bearer ${NOTION_TOKEN}`,\n        'Notion-Version': '2025-09-03',\n        'Content-Type': 'application\u002Fjson'\n      },\n      timeout: 15000\n    };\n\n    const req = https.request(options, (res) => {\n      let data = '';\n      res.on('data', (chunk) => { data += chunk; });\n      res.on('end', () => resolve(JSON.parse(data)));\n    });\n\n    req.on('error', reject);\n    req.on('timeout', () => { req.destroy(); reject(new Error('Request timeout')); });\n    if (body) req.write(JSON.stringify(body));\n    req.end();\n  });\n}\n```\n\n### Query Tasks\n\n```javascript\nasync function getTasks(filters = {}) {\n  const body = {\n    page_size: 100\n  };\n\n  \u002F\u002F Add filters if provided\n  if (Object.keys(filters).length > 0) {\n    body.filter = filters;\n  }\n\n  const result = await notionRequest(\n    `\u002Fv1\u002Fdata_sources\u002F${TASKS_DATA_SOURCE_ID}\u002Fquery`, \n    'POST', \n    body\n  );\n\n  return result.results;\n}\n\n\u002F\u002F Get all unfinished tasks\nconst unfinished = await getTasks({\n  property: 'Status',\n  status: {\n    does_not_equal: 'Done'\n  }\n});\n\n\u002F\u002F Get tasks assigned to Appie-3\nconst myTasks = await getTasks({\n  property: 'Assignee',\n  relation: {\n    contains: '\u003Cyour-appie-3-notion-id>'\n  }\n});\n\n\u002F\u002F Get high priority tasks\nconst urgent = await getTasks({\n  property: 'Priority',\n  select: {\n    equals: 'High'\n  }\n});\n```\n\n### Find Specific Task\n\n```javascript\nasync function findTask(taskTitle) {\n  const result = await notionRequest(\n    `\u002Fv1\u002Fdata_sources\u002F${TASKS_DATA_SOURCE_ID}\u002Fquery`,\n    'POST',\n    {\n      filter: {\n        property: 'Task',\n        title: {\n          contains: taskTitle\n        }\n      }\n    }\n  );\n\n  return result.results[0] || null;\n}\n\nconst task = await findTask('Build Morning Brief');\n```\n\n### Create Task\n\n```javascript\nasync function createTask(title, options = {}) {\n  const properties = {\n    Task: {\n      title: [{ \n        type: 'text', \n        text: { content: title }\n      }]\n    },\n    Status: {\n      status: { name: options.status || 'Not started' }\n    }\n  };\n\n  \u002F\u002F Add optional properties\n  if (options.priority) {\n    properties.Priority = { select: { name: options.priority }};\n  }\n\n  if (options.due) {\n    properties['Due date'] = { date: { start: options.due }};\n  }\n\n  if (options.assignee) {\n    properties.Assignee = { relation: [{ id: options.assignee }]};\n  }\n\n  if (options.project) {\n    properties.Project = { \n      rich_text: [{ \n        type: 'text', \n        text: { content: options.project }\n      }]\n    };\n  }\n\n  const result = await notionRequest('\u002Fv1\u002Fpages', 'POST', {\n    parent: { \n      type: 'database_id',\n      database_id: process.env.NOTION_TASKS_DATABASE_ID\n    },\n    properties\n  });\n\n  return result;\n}\n\n\u002F\u002F Example: Create task\nawait createTask('Deploy new feature', {\n  priority: 'High',\n  due: '2026-02-20',\n  assignee: '\u003Cyour-appie-3-notion-id>', \u002F\u002F Appie-3\n  project: 'Command Center'\n});\n```\n\n### Update Task Status\n\n```javascript\nasync function updateTaskStatus(pageId, status) {\n  await notionRequest(`\u002Fv1\u002Fpages\u002F${pageId}`, 'PATCH', {\n    properties: {\n      Status: {\n        status: { name: status }\n      }\n    }\n  });\n}\n\n\u002F\u002F Mark task as In Progress\nawait updateTaskStatus(task.id, 'In progress');\n\n\u002F\u002F Mark task as Done\nawait updateTaskStatus(task.id, 'Done');\n```\n\n### Assign Task to Appie\n\n```javascript\nasync function assignTask(pageId, appieStatusId) {\n  await notionRequest(`\u002Fv1\u002Fpages\u002F${pageId}`, 'PATCH', {\n    properties: {\n      Assignee: {\n        relation: [{ id: appieStatusId }]\n      }\n    }\n  });\n}\n\n\u002F\u002F Assign to Appie-3\nawait assignTask(task.id, '\u003Cyour-appie-3-notion-id>');\n```\n\n### Add Documentation to Task\n\n```javascript\nasync function documentTask(pageId, documentation) {\n  await notionRequest(`\u002Fv1\u002Fblocks\u002F${pageId}\u002Fchildren`, 'PATCH', {\n    children: [\n      {\n        object: 'block',\n        type: 'heading_2',\n        heading_2: {\n          rich_text: [{ \n            type: 'text', \n            text: { content: '✅ Completed by Appie-3' }\n          }]\n        }\n      },\n      {\n        object: 'block',\n        type: 'paragraph',\n        paragraph: {\n          rich_text: [{ \n            type: 'text', \n            text: { content: documentation }\n          }]\n        }\n      }\n    ]\n  });\n}\n\nconst doc = `\nCreated: skills\u002Fnotion-tasks\u002FSKILL.md (15KB)\n\nWhat it includes:\n- Complete task workflow\n- API usage examples\n- Helper scripts\n- Best practices\n\nLocation: `\u003Crepo>\u002Fskills\u002Fnotion-tasks\u002F`\nCommit: abc1234\nDate: 2026-02-16\n`;\n\nawait documentTask(task.id, doc);\n```\n\n---\n\n## Helper Scripts\n\n### Task Workflow Tool\n\n**Location:** `$TOOLS_DIR\u002Ftask-workflow.js`\n\n#### Start a Task\n```bash\nnode \"$TOOLS_DIR\u002Ftask-workflow.js\" start \"Task Title\"\n```\n\nWhat it does:\n1. Finds task by title\n2. Assigns to Appie-3\n3. Sets status to \"In Progress\"\n\n#### Finish a Task\n```bash\nnode \"$TOOLS_DIR\u002Ftask-workflow.js\" finish \"Task Title\" \"Documentation text\"\n```\n\nWhat it does:\n1. Finds task by title\n2. Adds documentation to task body\n3. Marks as \"Done\"\n\n#### Programmatic Usage\n\n```javascript\nconst { startTask, finishTask } = require('.\u002Ftools\u002Ftask-workflow.js');\n\n\u002F\u002F Start task\nawait startTask('Build new feature');\n\n\u002F\u002F ... do the work ...\n\n\u002F\u002F Finish task with documentation\nawait finishTask('Build new feature', `\nCreated: features\u002Fnew-thing\u002F\nFiles: 5 files, 1,200 lines\nTested: ✅ All tests pass\nCommit: abc1234\n`);\n```\n\n---\n\n## Common Patterns\n\n### Daily Task Check\n\n```javascript\n\u002F\u002F Get today's tasks\nasync function getTodaysTasks(appieId) {\n  const today = new Date().toISOString().split('T')[0];\n  \n  const tasks = await getTasks({\n    and: [\n      {\n        property: 'Assignee',\n        relation: { contains: appieId }\n      },\n      {\n        property: 'Status',\n        status: { does_not_equal: 'Done' }\n      }\n    ]\n  });\n\n  return tasks.filter(task => {\n    const due = task.properties['Due date']?.date?.start;\n    return due && due \u003C= today;\n  });\n}\n```\n\n### Overdue Tasks\n\n```javascript\nasync function getOverdueTasks() {\n  const today = new Date().toISOString().split('T')[0];\n  \n  const tasks = await getTasks({\n    and: [\n      {\n        property: 'Status',\n        status: { does_not_equal: 'Done' }\n      }\n    ]\n  });\n\n  return tasks.filter(task => {\n    const due = task.properties['Due date']?.date?.start;\n    return due && due \u003C today;\n  });\n}\n```\n\n### Task Summary\n\n```javascript\nasync function getTaskSummary(appieId) {\n  const allTasks = await getTasks({\n    property: 'Assignee',\n    relation: { contains: appieId }\n  });\n\n  const summary = {\n    total: allTasks.length,\n    notStarted: 0,\n    inProgress: 0,\n    done: 0,\n    blocked: 0\n  };\n\n  allTasks.forEach(task => {\n    const status = task.properties.Status?.status?.name || 'Not started';\n    \n    if (status === 'Not started') summary.notStarted++;\n    else if (status === 'In progress') summary.inProgress++;\n    else if (status === 'Done') summary.done++;\n    else if (status === 'Blocked') summary.blocked++;\n  });\n\n  return summary;\n}\n```\n\n---\n\n## Best Practices\n\n### 1. One Task, One Thing\n- Break big tasks into smaller ones\n- Each task should be completable in \u003C 1 day\n- Use projects to group related tasks\n\n### 2. Clear Titles\n```\n❌ \"Fix stuff\"\n❌ \"Work on website\"\n✅ \"Fix login timeout on Peakspring site\"\n✅ \"Add file explorer API to Command Center\"\n```\n\n### 3. Always Estimate\n- Add estimated hours to help with planning\n- Review estimates weekly to improve accuracy\n\n### 4. Document Everything\n- What you built\n- Where files are located\n- How to test it\n- Commit hash\n- Known issues\n\n### 5. Keep Status Current\n- Update to \"In Progress\" when you start\n- Update to \"Blocked\" if stuck (with reason)\n- Update to \"Done\" only after approval\n\n### 6. Use Labels\n- Label tasks by type: `bug`, `feature`, `documentation`\n- Label by client: `Peakspring`, `Fiatballers`, `Weblyfe`\n- Label by skill: `n8n`, `automation`, `design`\n\n---\n\n## Integration with Other Systems\n\n### Morning Brief\n\nThe daily brief pulls from Tasks:\n```javascript\nconst todaysTasks = await getTodaysTasks(APPIE_ID);\nconst overdue = await getOverdueTasks();\n\nconst brief = `\nTOP PRIORITIES TODAY:\n${todaysTasks.map(t => `- [ ] ${t.properties.Task.title[0].plain_text}`).join('\\n')}\n\n⚠️ OVERDUE:\n${overdue.map(t => `- ${t.properties.Task.title[0].plain_text}`).join('\\n')}\n`;\n```\n\n### Goal-Based Task Generation\n\nWhen creating tasks from goals:\n```javascript\nconst phases = breakdownGoal(goal);\n\nfor (const phase of phases) {\n  for (const task of phase.tasks) {\n    await createTask(task.title, {\n      project: goal.name,\n      priority: task.priority,\n      due: task.due,\n      assignee: determineAssignee(task)\n    });\n  }\n}\n```\n\n### Command Center Dashboard\n\nThe dashboard shows task stats:\n```javascript\napp.get('\u002Fapi\u002Ftasks\u002Fsummary', async (req, res) => {\n  const summary = await getTaskSummary(APPIE_ID);\n  res.json(summary);\n});\n```\n\n---\n\n## Troubleshooting\n\n### Task Not Found\n```javascript\n\u002F\u002F Search is case-sensitive and uses \"contains\"\n\u002F\u002F Try partial match:\nconst tasks = await getTasks({\n  property: 'Task',\n  title: { contains: 'Morning' }\n});\n```\n\n### Can't Update Status\n```javascript\n\u002F\u002F Make sure status name matches exactly:\n\u002F\u002F ✅ \"In progress\" (lowercase p)\n\u002F\u002F ❌ \"In Progress\" (will fail)\n\n\u002F\u002F Valid statuses:\n- \"Not started\"\n- \"In progress\"\n- \"Done\"\n- \"Blocked\"\n```\n\n### Assignee Not Working\n```javascript\n\u002F\u002F Use the STATUS PAGE ID, not database ID:\nconst APPIE3_STATUS_ID = '\u003Cyour-appie-3-notion-id>';\n\nawait notionRequest(`\u002Fv1\u002Fpages\u002F${pageId}`, 'PATCH', {\n  properties: {\n    Assignee: {\n      relation: [{ id: APPIE3_STATUS_ID }] \u002F\u002F Array of objects!\n    }\n  }\n});\n```\n\n### Rate Limiting\n```javascript\n\u002F\u002F Notion API: 3 requests\u002Fsecond\n\u002F\u002F Add delay between operations:\n\nfor (const task of tasks) {\n  await updateTask(task);\n  await new Promise(resolve => setTimeout(resolve, 350)); \u002F\u002F 350ms delay\n}\n```\n\n---\n\n## See Also\n\n- `tools\u002Ftask-workflow.js` - Automated task workflow\n- `tools\u002Fdaily-brief\u002F` - Morning brief integration\n- `systems\u002Fgoal-based-tasks\u002F` - Goal → Task generation\n- `MEMORY.md` - Task completion tracking\n\n---\n\n*\"A task without documentation is a task that never happened.\"*\n",{"name":5,"version":38,"category":27,"description":7},"1.0.0","master","8ec37df6d71fb664ea19d32c079e7d3ff931a8e0","skills\u002Fintegrations\u002Fnotion-tasks",3,"https:\u002F\u002Fgithub.com\u002FS3YED\u002Fappie-kit","https:\u002F\u002Fweblyfe.ai","https:\u002F\u002Fgithub.com\u002FS3YED","2026-08-27 01:54:02",{"source":8,"skillName":5,"commands":48,"prompt":58,"zipAvailable":59},[49,52,55],{"tool":50,"command":51},"npx","npx skills add S3YED\u002Fappie-kit --skill notion-tasks",{"tool":53,"command":54},"bunx","bunx skills add S3YED\u002Fappie-kit --skill notion-tasks",{"tool":56,"command":57},"pnpm","pnpm dlx skills add S3YED\u002Fappie-kit --skill notion-tasks","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FS3YED\u002Fappie-kit\u002Fblob\u002Fmaster\u002Fskills\u002Fintegrations\u002Fnotion-tasks\u002FSKILL.md",true,[],[62,94,129,155,186,211],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":75,"publishedAt":33},"01M6JFD4M6N4DSGC7TXEJ5R3J2","ai-music","AI music generation and audio tools: HeartMuLa lyrics-to-music generation, songwriting craft (+ Suno prompts), and audio spectrogram\u002Ffeature visualization.","https:\u002F\u002Fgithub.com\u002FS3YED\u002Fappie-kit\u002Fblob\u002Fmaster\u002Fskills\u002Fwethlete\u002Fai-music\u002FSKILL.md",[68,71,74],{"categoryNo":69,"categoryName":70,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000013","分析与可视化",{"categoryNo":72,"categoryName":73,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000016","图像与多媒体",{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},[76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93],"music","ai music","humanizer","visualization","Tools","Audio","hermes","hermes agent","songwriting","suno","lyrics","prompts","heartmula","craft","generation","feature","ai music generation","music generation",{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":108,"publishedAt":33},"01M6JFCZE4XNFQFMNZDHKHT5V5","agentic-webdesign-design-system-ingestion","Use v0 Design Systems 2.0, Bolt Design System Agents, or Lovable to generate production UI from a client's real design system components — not generic Tailwind. Use when building a client website where brand consistency matters.","https:\u002F\u002Fgithub.com\u002FS3YED\u002Fappie-kit\u002Fblob\u002Fmaster\u002Fskills\u002Fweb-design\u002Fagentic-webdesign-design-system-ingestion\u002FSKILL.md",[100,103],{"categoryNo":101,"categoryName":102,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000015","视觉设计",{"categoryNo":104,"categoryName":105,"taxonomyType":106,"taxonomyTypeDesc":107},"01JBSEEDCAT000000000000032","设计师","PROFESSION","适用职业",[109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128],"design","agentic","design system","system","ingestion","webdesign","agentic webdesign design system ingestion","components","generate","design systems","website","ui","Tailwind","bolt","lovable","v0","design-system","wed","design system components","appie",{"skillNo":130,"name":131,"nameZh":6,"description":132,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":133,"categories":134,"keywords":137,"publishedAt":33},"01M6JFCVPX3913CFAS6QQJ33ZB","agentic-webdesign-agent-elements","Use 21st.dev Agent Elements — 25 shadcn\u002Fui components purpose-built for AI agent UIs. Tool cards (Bash, Edit, Search, Plan, Subagent, MCP), chat, input, streaming. Open source, shadcn-registry install, no runtime lock-in.","https:\u002F\u002Fgithub.com\u002FS3YED\u002Fappie-kit\u002Fblob\u002Fmaster\u002Fskills\u002Fweb-design\u002Fagentic-webdesign-agent-elements\u002FSKILL.md",[135,136],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},{"categoryNo":104,"categoryName":105,"taxonomyType":106,"taxonomyTypeDesc":107},[110,138,114,139,140,141,116,142,143,144,145,146,147,148,149,150,151,152,153,154],"elements","agentic webdesign agent elements","MCP","ai agent","registry","search","streaming","open source","open","Bash","plan","subagent","edit","install","input","lock","source",{"skillNo":156,"name":157,"nameZh":6,"description":158,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":159,"categories":160,"keywords":165,"publishedAt":33},"01M6JFCQC7H65M9QJ6TRE71BS1","vercel-deployment","Deploy static sites and frontends to Vercel — handles both CLI and REST API paths, including the CLI token sanitization workaround.","https:\u002F\u002Fgithub.com\u002FS3YED\u002Fappie-kit\u002Fblob\u002Fmaster\u002Fskills\u002Fsoftware-development\u002Fvercel-deployment\u002FSKILL.md",[161,164],{"categoryNo":162,"categoryName":163,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000011","运维与部署",{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},[166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185],"deployment","vercel deployment","vercel","macos","cli","linux","windows","deploy","vercel deploy","REST","api","site","deploy to vercel","token","rest api","host","sites","paths","sanitization","static site",{"skillNo":187,"name":188,"nameZh":6,"description":189,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":190,"categories":191,"keywords":193,"publishedAt":33},"01M6JFCM4SMTXBM5A01BK2YQG1","software-quality-workflows","Umbrella workflow for TDD, debugging, code simplification, spikes, pre-commit review, and debugger-assisted investigation.","https:\u002F\u002Fgithub.com\u002FS3YED\u002Fappie-kit\u002Fblob\u002Fmaster\u002Fskills\u002Fsoftware-development\u002Fsoftware-quality-workflows\u002FSKILL.md",[192],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},[194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210],"workflows","quality","software","software quality workflows","review","tdd","workflow","commit","debugging","code","debugger","pre-commit","investigation","code simplification","user","simplification","for",{"skillNo":212,"name":213,"nameZh":6,"description":214,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":215,"categories":216,"keywords":224,"publishedAt":33},"01M6JFCGD0M6CEATY01W7YN6DB","react-component-refactoring","Safely refactor large React components into smaller, maintainable pieces using proven patterns","https:\u002F\u002Fgithub.com\u002FS3YED\u002Fappie-kit\u002Fblob\u002Fmaster\u002Fskills\u002Fsoftware-development\u002Freact-component-refactoring\u002FSKILL.md",[217,220,223],{"categoryNo":218,"categoryName":219,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000007","代码审查",{"categoryNo":221,"categoryName":222,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000009","前端开发",{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},[225,226,227,228,229,230,231,232,169,233,234,116,235,172,236,203,237,238,239,240],"react","component","refactoring","component refactoring","react component","react component refactoring","frontend","writing","safe","typescript","react components","modular","refactor","simplify","patterns","test-driven-development"]