Manage tasks as markdown files in tasks/ with an INDEX.md summary.
Minimize context usage: read INDEX.md first, individual files only when needed.
Run the init script once to create the directory structure:
bash skills/smart-tasks/scripts/init-tasks.sh
This creates tasks/, tasks/active/, tasks/done/, tasks/archive/,
tasks/INDEX.md, and tasks/.meta.json. Idempotent — safe to re-run.
After init, apply workspace integration changes from
workspace-integration.md with user approval.
tasks/INDEX.md — active task summary table (~1-2KB). Read every session.tasks/.meta.json — tracks nextId counter and known categories.tasks/active/ — individual task files (one per task).tasks/done/ — completed tasks (kept 30 days).tasks/archive/YYYY-QN/ — long-term storage.For full format specs see file-structure.md.
When the user mentions deadlines, todos, or things to do in conversation,
propose creating a task. No special commands needed — use natural language.
Examples of triggers:
tasks/.meta.json to get nextId.T-{nextId} zero-padded to 3 digits (e.g., T-001).tasks/active/{ID}_{slug}.md using the format in(related files, people, timeline analysis).
nextId in .meta.json. Add new category if not already listed.tasks/INDEX.md — insert row in the correct section.tasks/active/.status: done and completed: {today} in the task file.tasks/active/ to tasks/done/.tasks/active/.Recommend a sequence with reasoning.
Only when explicitly requested. Move to tasks/done/ with status: cancelled
rather than deleting the file. Remove from INDEX.md.
INDEX.md is the single-read entry point for task awareness.
# Tasks Index
> Last updated: YYYY-MM-DD
> Active: N | Overdue: N | Due this week: N
## 🔴 Overdue
| ID | Title | Due | Priority | Category |
|----|-------|-----|----------|----------|
## 🟡 Due This Week
| ID | Title | Due | Priority | Category |
|----|-------|-----|----------|----------|
## 📋 Later
| ID | Title | Due | Priority | Category |
|----|-------|-----|----------|----------|
## 📊 Summary
Last updated to today.| Active tasks | ~Size | Action |
|---|---|---|
| ------------- | ------- | -------- |
| 1–20 | ~1KB | Keep as-is |
| 20–50 | ~2.5KB | Abbreviate Later section (title + due only) |
| 50+ | ~5KB+ | Split into category indexes (INDEX-{category}.md) |
Read context-strategy.md for details on:
Key rule: If INDEX.md alone can answer the question, do NOT read individual files.
Set up scheduled briefings and alerts. All cron jobs use Sonnet-class models.
See cron-templates.md for:
archive cleanup (done/ 30+ days → archive/)
| Transition | Trigger | Action |
|---|---|---|
| ----------- | --------- | -------- |
| active → done | User marks complete | Move file, update INDEX |
| done → archive | 30 days elapsed | Weekly review moves to archive/YYYY-QN/ |
| archive | — | Never in INDEX. Access only via search. |
Each task is a markdown file with YAML frontmatter.
See task-format.md for:
This skill does NOT modify files outside its own directory.
See workspace-integration.md for
recommended changes to AGENTS.md, SOUL.md, and HEARTBEAT.md (diff format).
Apply these with user approval during setup.
relevant tasks during conversation.
Create self-improving/tasks.md for task-specific learnings.
共 1 个版本