Agent skill

Taskflow

by LeoYeAI in LeoYeAI/openclaw-master-skills

Structured project/task management for OpenClaw agents — markdown-first authoring, SQLite-backed querying, bidirectional sync, CLI, Apple Notes integration.

MITAuto-check passedProductivity & Automation

Install Taskflow

skills CLI
$ npx skills add LeoYeAI/openclaw-master-skills --skill taskflow -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install LeoYeAI/openclaw-master-skills taskflow --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/taskflow .claude/skills/taskflow && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
taskflow
GitHub stars
2.2k
Token cost
~6.5k tokens
SKILL.md length
2,116 words
Files
17 (incl. scripts)
Skills in repo
1,215
Repo updated
First seen
Licence
MIT

At a glance

Structured project/task management for OpenClaw agents — markdown-first authoring, SQLite-backed querying, bidirectional sync, CLI, Apple Notes integration.

  • Works in 7 steps: Set environment variable → Link the CLI → Run the setup wizard → …
  • Tasks that involve Task management
  • SKILL.md covers Security, Setup, First Run and Directory Layout, plus 6 more sections
  • Runs JavaScript scripts from its folder; calls node and sqlite3

What it does

Taskflow is an agent skill from LeoYeAI/openclaw-master-skills. Structured project/task management for OpenClaw agents — markdown-first authoring, SQLite-backed querying, bidirectional sync, CLI, Apple Notes integration.

Its SKILL.md is about 6.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 22 other files, including scripts (for example `README.md`, `_meta.json` and `examples/DASHBOARD-HOWTO.md`).

It sits in Productivity & Automation, covering Task management. It works with SQLite. The repository describes itself as: 🧠 Curated collection of 1209+ best OpenClaw skills — weekly updated by MyClaw.ai. The licence is MIT.

When your agent uses it

  • Tasks that involve Task management

Example prompts

  • “/taskflow”

Requirements

  • Node.js

Workflow steps

7 steps, taken from the step headings in SKILL.md.

  1. Set environment variable
  2. Link the CLI
  3. Run the setup wizard
  4. Add a block to PROJECTS.md
  5. Create the task file
  6. Optionally create a plan file
  7. DB row (auto-created on first sync)

What it can do on your machine

Read from SKILL.md and the folder at commit e5199b5. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 5 files in scripts/ (JavaScript, from the files we listed), which the agent can run.

    Shell commands in SKILL.md call:

    • node
    • sqlite3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Taskflow loads about 6.5k tokens when it runs. Until then it costs about 41 tokens; SKILL.md has 2,116 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~41
When it runs · the whole SKILL.md, loaded when a task matches
~6.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from LeoYeAI/openclaw-master-skills at commit e5199b5, republished under its MIT licence (© LeoYeAI). 2,116 words, ~6,506 tokens.

Download SKILL.mdSave it as .claude/skills/taskflow/SKILL.md (or your agent's skills folder). This skill also uses 16 other files; get the full folder from GitHub.
name
taskflow
description
Structured project/task management for OpenClaw agents — markdown-first authoring, SQLite-backed querying, bidirectional sync, CLI, Apple Notes integration.

TaskFlow — Agent Skill Reference

TaskFlow gives any OpenClaw agent a structured project/task/plan system with markdown-first authoring, SQLite-backed querying, and bidirectional sync.

Principle: Markdown is canonical. Edit tasks/*.md directly. The SQLite DB is a derived index, not the source of truth.


Security

OPENCLAW_WORKSPACE Trust Boundary

OPENCLAW_WORKSPACE is a high-trust value. All TaskFlow scripts resolve file paths from it, and the CLI and sync daemon use it to locate the SQLite database, markdown task files, and log directory.

Rules for safe use:

  1. Set it only from trusted, controlled sources. The value must come from:

    • Your own shell profile (.zshrc, .bashrc, /etc/environment)
    • The systemd user unit Environment= directive in a template you control
    • The macOS LaunchAgent EnvironmentVariables dictionary you installed

    Never accept OPENCLAW_WORKSPACE from:

    • User-supplied CLI arguments or HTTP request parameters
    • Untrusted config files read at runtime
    • Any external input that has not been explicitly validated
  2. Validate the path exists before use. Any script that reads OPENCLAW_WORKSPACE should confirm the directory exists before proceeding:

    js
    import { existsSync } from 'node:fs'
    import path from 'node:path'
    
    const workspace = process.env.OPENCLAW_WORKSPACE
    if (!workspace) {
      console.error('OPENCLAW_WORKSPACE is not set. Aborting.')
      process.exit(1)
    }
    if (!existsSync(workspace)) {
      console.error(`OPENCLAW_WORKSPACE path does not exist: ${workspace}`)
      process.exit(1)
    }
    // Resolve to absolute path to neutralize any relative-path tricks
    const safeWorkspace = path.resolve(workspace)
  3. Do not construct paths from untrusted input. Even with a valid OPENCLAW_WORKSPACE, never concatenate unvalidated user input onto it (e.g. path.join(workspace, userSlug, '../../../etc/passwd')). Use path.resolve() and check that the resolved path starts with the workspace root:

    js
    function safeJoin(base, ...parts) {
      const resolved = path.resolve(base, ...parts)
      if (!resolved.startsWith(path.resolve(base) + path.sep)) {
        throw new Error(`Path traversal attempt detected: ${resolved}`)
      }
      return resolved
    }
  4. Treat OPENCLAW_WORKSPACE as a local system path only. It must point to a directory on the local filesystem. Remote paths (NFS mounts, network shares) may work but are outside the tested configuration and could introduce TOCTOU (time-of-check/time-of-use) race conditions.


Setup

1. Set environment variable

Add to your shell profile (.zshrc, .bashrc, etc.):

bash
export OPENCLAW_WORKSPACE="/path/to/your/.openclaw/workspace"

All TaskFlow scripts and the CLI resolve paths from this variable. Without it, they fall back to process.cwd(), which is almost never what you want.

See also: OPENCLAW_WORKSPACE Trust Boundary above for security requirements.

bash
ln -sf {baseDir}/scripts/taskflow-cli.mjs /opt/homebrew/bin/taskflow  # macOS (Apple Silicon)
# or: ln -sf {baseDir}/scripts/taskflow-cli.mjs /usr/local/bin/taskflow
3. Run the setup wizard
bash
taskflow setup

The wizard handles the rest: creates workspace directories, walks you through adding your first project(s), initializes the database, syncs, and optionally installs the macOS LaunchAgent for periodic sync.

Alternative — manual setup:

<details>
<summary>Manual steps (if you prefer explicit control)</summary>
bash
# Create workspace dirs
mkdir -p "$OPENCLAW_WORKSPACE/tasks" "$OPENCLAW_WORKSPACE/plans" "$OPENCLAW_WORKSPACE/memory" "$OPENCLAW_WORKSPACE/logs"

# Bootstrap the DB schema
taskflow init

# Create PROJECTS.md and tasks/<slug>-tasks.md manually (see templates/)

# Sync markdown → DB
taskflow sync files-to-db

# Verify
taskflow status
</details>

First Run

For agents (OpenClaw / AI)

When a user asks you to set up TaskFlow or you detect it has not been initialized:

  1. Detect state. Check for $OPENCLAW_WORKSPACE/PROJECTS.md and $OPENCLAW_WORKSPACE/memory/taskflow.sqlite.
  2. If clean slate: Ask the user for their first project name and description, then run:
    bash
    taskflow setup --name "Project Name" --desc "One-liner description"
    Follow up by running taskflow status to confirm.
  3. If PROJECTS.md exists but no DB: Run taskflow setup (it detects the state automatically and offers to init + sync).
  4. If both exist: Run taskflow status — already set up.
  5. After setup, update AGENTS.md with the new project slug so future sessions discover it via cat PROJECTS.md.
For humans (CLI)
bash
taskflow setup

The interactive wizard will:

  • Detect your existing workspace state
  • Walk you through naming your first project(s)
  • Create PROJECTS.md and tasks/<slug>-tasks.md from templates
  • Initialize the SQLite database and sync
  • Offer to install the periodic-sync daemon (LaunchAgent on macOS, systemd timer on Linux) for automatic 60s sync

Non-interactive (scripted installs):

bash
taskflow setup --name "My Project" --desc "What it does"

Passing --name skips all interactive prompts (daemon install is also skipped in non-interactive mode).


Directory Layout

<workspace>/
├── PROJECTS.md                      # Project registry (one ## block per project)
├── tasks/<slug>-tasks.md            # Task list per project
├── plans/<slug>-plan.md             # Optional: architecture/design doc per project
└── taskflow/
    ├── SKILL.md                     # This file
    ├── scripts/
    │   ├── taskflow-cli.mjs         # CLI entry point (symlink target)
    │   ├── task-sync.mjs            # Bidirectional markdown ↔ SQLite sync
    │   ├── init-db.mjs              # Bootstrap SQLite schema (idempotent)
    │   ├── export-projects-overview.mjs  # JSON export of project/task state
    │   └── apple-notes-export.mjs   # Optional: project state → Apple Notes (macOS only)
    ├── templates/                   # Starter files for new projects
    ├── schema/
    │   └── taskflow.sql             # Full DDL
    └── system/
        ├── com.taskflow.sync.plist.xml  # Periodic sync (macOS LaunchAgent)
        ├── taskflow-sync.service        # Periodic sync (Linux systemd user unit)
        └── taskflow-sync.timer          # Systemd timer (60s interval)
<workspace>/
└── taskflow.config.json                 # Apple Notes config (auto-created on first notes run)

Creating a Project

Follow this full checklist when creating a new project:

1. Add a block to PROJECTS.md
markdown
## <slug>
- Name: <Human-Readable Name>
- Status: active
- Description: One-sentence description of the project.
  • slug is lowercase, hyphenated (e.g., my-project). It becomes the canonical project ID everywhere.
  • Valid status values: active, paused, done.
2. Create the task file

Copy taskflow/templates/tasks-template.md → tasks/<slug>-tasks.md and update the project name in the heading.

The file must contain these five section headers in this order:

markdown
# <Project Name> — Tasks

## In Progress
## Pending Validation
## Backlog
## Blocked
## Done
3. Optionally create a plan file

Copy taskflow/templates/plan-template.md → plans/<slug>-plan.md for architecture docs, design decisions, and phased roadmaps. Plan files are not synced to SQLite — they are reference-only for the agent.

4. DB row (auto-created on first sync)

You do not need to manually insert into the projects table. The sync engine auto-creates the project row from PROJECTS.md on the next files-to-db run. If you want to be explicit via Node.js, use a parameterized statement:

js
// Safe: parameterized insert — no string interpolation in the SQL
db.prepare(`INSERT INTO projects (id, name, description, status)
            VALUES (:id, :name, :description, 'active')`)
  .run({ id: slug, name: projectName, description: projectDesc })

Task Line Format

Every task line follows this exact format:

- [x| ] (task:<id>) [<priority>] [<owner>] <title>
FieldDetails
[ ] / [x]Open / completed. Sync drives status from section header, not this checkbox.
(task:<id>)Task ID. Format: <slug>-NNN (zero-padded 3-digit). Sequential per project.
[<priority>]Required. Must come before owner tag. See priority table below.
[<owner>]Optional. Agent/model tag (e.g., codex, sonnet, claude).
<title>Human-readable task title.
⚠️ Tag Order Rule

Priority tag MUST come before owner tag. The sync parser is positional — it reads the first [Px] bracket as priority, and the next [tag] as owner. Swapping them will misparse the task.

⚠️ Title Sanitization Rules

Task titles must be plain text only. Before writing any user-supplied string as a task title, apply the following rules:

  1. Reject lines that look like section headers. A title may not start with one or more # characters followed by a space (e.g. # My heading, ## Done). These would corrupt the sync parser's section detection.

  2. Reject the exact section header strings even without leading whitespace:

    • In Progress, Pending Validation, Backlog, Blocked, Done
    • Comparison must be case-insensitive.
  3. Escape or strip markdown special characters that have structural meaning in the task file:

    CharacterRiskSafe action
    #Looks like a headerStrip or reject
    - (dash + space at line start)Looks like a list item / taskStrip leading -
    [ ] / [x]Looks like a checkboxEscape brackets: \[ \]
    ] / [ aloneCan corrupt (task:id) parseEscape: \[ \]
    Newlines (\n, \r)Creates multi-line titlesStrip / reject
  4. Maximum length. Titles should be ≤ 200 characters. Truncate or reject longer strings.

Example sanitization (Node.js):

js
// Safe: sanitize a user-supplied task title before writing to markdown
function sanitizeTitle(raw) {
  if (typeof raw !== 'string') throw new TypeError('title must be a string')

  // Strip newlines
  let title = raw.replace(/[\r\n]+/g, ' ').trim()

  // Reject lines that look like section headers (# Heading or bare header words)
  if (/^#{1,6}\s/.test(title)) {
    throw new Error('Title may not start with a markdown heading (#)')
  }
  const BANNED_HEADERS = /^(in progress|pending validation|backlog|blocked|done)$/i
  if (BANNED_HEADERS.test(title)) {
    throw new Error('Title may not be a reserved section header name')
  }

  // Escape structural markdown characters
  title = title
    .replace(/\[/g, '\\[')
    .replace(/\]/g, '\\]')

  // Enforce length limit
  if (title.length > 200) {
    throw new Error('Title exceeds 200 character limit')
  }

  return title
}

These rules apply whenever a task title comes from any external or user-supplied source (CLI args, API payloads, file imports). Titles hard-coded by agents in their own sessions are low-risk but should still avoid structural characters.

✅ Correct: - [ ] (task:myproject-007) [P1] [codex] Implement search ❌ Wrong: - [ ] (task:myproject-007) [codex] [P1] Implement search

Priority Levels (Configurable)
TagDefault Meaning
P0Critical — must do now, blocks everything
P1High — important, do soon
P2Normal — standard priority (default)
P3Low — nice to have
P9Someday — no urgency, parking lot

Priorities are configurable per-installation but the tags themselves (P0–P3, P9) are what the sync engine validates.

Optional Note Lines

A note can follow a task line as an indented - note: line:

markdown
- [ ] (task:myproject-003) [P1] [codex] Implement auth flow
  - note: blocked on API key from vendor

Known limitation (v1): Notes are one-way. Removing or editing a note in markdown does not propagate to the DB. This is tracked for a post-MVP fix.

Example Task File Section
markdown
## In Progress
- [ ] (task:myproject-001) [P1] [codex] Wire up OAuth login
  - note: PR open, needs review

## Backlog
- [ ] (task:myproject-002) [P2] Add rate limiting middleware
- [ ] (task:myproject-003) [P3] Write integration tests

Adding a New Task

  1. Determine the next ID. Scan the task file for the highest existing <slug>-NNN and increment by 1. Or query SQLite using a parameterized statement (never interpolate the slug into SQL strings):

    js
    // Node.js — safe, parameterized
    const db = new DatabaseSync(dbPath)
    const row = db
      .prepare(`SELECT MAX(CAST(SUBSTR(id, LENGTH(:slug) + 2) AS INTEGER)) AS max_seq
                FROM tasks_v2
                WHERE project_id = :slug`)
      .get({ slug: projectSlug })
    const nextSeq = (row.max_seq ?? 0) + 1
    const nextId  = `${projectSlug}-${String(nextSeq).padStart(3, '0')}`

    ⚠️ Never construct SQL by string interpolation. Use db.prepare() with named or positional parameters (? or :name) for all values that come from external input. This applies even for read-only queries.

  2. Append the task line to the correct section (## Backlog for new work, ## In Progress if starting immediately).

  3. Format the line using the exact format above. No trailing spaces. Priority tag before owner tag.


Updating Task Status

Move the task line from its current section to the target section in the markdown file.

Target StateMove to Section
Started / picked up## In Progress
Needs human review## Pending Validation
Not started yet## Backlog
Waiting on dependency## Blocked
Finished## Done

Also flip the checkbox: [ ] for active states, [x] for Done (and optionally Pending Validation).

The periodic sync (60s) will pick up the change and update SQLite automatically. To force an immediate sync:

bash
node taskflow/scripts/task-sync.mjs files-to-db

Querying Tasks

Simple: Read the markdown file directly
bash
cat tasks/<slug>-tasks.md

For a quick in-session view, just read the relevant section.

Show full SKILL.md (897 more words)Show less
Advanced: Query SQLite

⚠️ SQL Safety Rule: Any query that incorporates a variable value (project slug, task ID, status string, etc.) must use parameterized statements — not string interpolation. The sqlite3 CLI examples below use only static, hardcoded literal values and are shown as diagnostic/inspection tools only. For programmatic use, always use the Node.js db.prepare() API with bound parameters.

sqlite3 CLI (static queries — for manual inspection only)
bash
# All in-progress tasks across all projects (by priority)
# Safe: 'in_progress' is a static literal, not a variable
sqlite3 "$OPENCLAW_WORKSPACE/memory/taskflow.sqlite" \
  "SELECT id, project_id, priority, title
   FROM tasks_v2
   WHERE status = 'in_progress'
   ORDER BY priority, project_id;"

# Task count by status per project (no variables — safe for CLI)
sqlite3 "$OPENCLAW_WORKSPACE/memory/taskflow.sqlite" \
  "SELECT project_id, status, COUNT(*) AS count
   FROM tasks_v2
   GROUP BY project_id, status
   ORDER BY project_id, status;"

Do not embed shell variables directly in the SQL string (e.g. WHERE project_id = '$SLUG'). That pattern is SQL injection waiting to happen. Use the Node.js API with parameters instead.

Node.js API — parameterized queries (required for programmatic use)
js
import { DatabaseSync } from 'node:sqlite'
import path from 'node:path'

const dbPath = path.join(process.env.OPENCLAW_WORKSPACE, 'memory', 'taskflow.sqlite')
const db = new DatabaseSync(dbPath)
db.exec('PRAGMA foreign_keys = ON')

// ── Backlog for a specific project ─────────────────────────────
// :slug is a named parameter — never interpolated into the SQL string
const backlog = db
  .prepare(`SELECT id, priority, title
            FROM tasks_v2
            WHERE project_id = :slug AND status = 'backlog'
            ORDER BY priority`)
  .all({ slug: 'my-project' })  // value bound at runtime, never in SQL string

// ── Audit trail for a specific task ────────────────────────────
const transitions = db
  .prepare(`SELECT from_status, to_status, actor, at
            FROM task_transitions_v2
            WHERE task_id = ?
            ORDER BY at`)
  .all('my-project-007')  // positional parameter — also safe

// ── Write: update task status ───────────────────────────────────
// NEVER: db.exec(`UPDATE tasks_v2 SET status='${newStatus}' WHERE id='${id}'`)
// ALWAYS:
db.prepare(`UPDATE tasks_v2 SET status = :status, updated_at = datetime('now')
            WHERE id = :id`)
  .run({ status: 'done', id: 'my-project-007' })
CLI Quick Reference
bash
# Terminal summary: all projects + task counts by status
taskflow status

# Add a task in markdown with automatic next ID
taskflow add taskflow "Implement quick add command" --priority P1 --owner codex

# List current tasks for a project (excludes done by default)
taskflow list taskflow
taskflow list --project "TaskFlow" --all
taskflow list task --status backlog,pending_validation --json

# JSON export of full project/task state (for dashboards, integrations)
node taskflow/scripts/export-projects-overview.mjs

# Detect drift between markdown and DB (exit 1 if mismatch)
node taskflow/scripts/task-sync.mjs check

# Sync markdown → DB (normal direction; run after editing task files)
node taskflow/scripts/task-sync.mjs files-to-db

# Sync DB → markdown (run after programmatic DB updates)
node taskflow/scripts/task-sync.mjs db-to-files
Apple Notes Export (Optional — macOS Only)

TaskFlow can maintain a live Apple Note with your current project status. The note is rendered as rich HTML and written via AppleScript.

bash
# Push current status to Apple Notes (creates note on first run)
taskflow notes

On first run (or during taskflow setup), a new note is created in the configured folder and its Core Data ID is saved to:

$OPENCLAW_WORKSPACE/taskflow.config.json

Config schema:

json
{
  "appleNotesId":     "x-coredata://...",
  "appleNotesFolder": "Notes",
  "appleNotesTitle":  "TaskFlow - Project Status"
}

Important — never delete the shared note. The note is always edited in-place. Deleting and recreating it generates a new Core Data ID and breaks any existing share links. If the note is accidentally deleted, taskflow notes will create a new one and update the config automatically.

For hourly auto-refresh, add a cron entry:

bash
# Run: crontab -e
0 * * * * OPENCLAW_WORKSPACE=/path/to/workspace /path/to/node /path/to/taskflow/scripts/apple-notes-export.mjs

Or install a dedicated LaunchAgent (macOS) targeting apple-notes-export.mjs with an hourly StartInterval of 3600.

This feature is entirely optional and macOS-specific. On other platforms, taskflow notes exits gracefully with a message.


Memory Integration Rules

These rules keep daily memory logs clean and prevent duplication.

✅ Do
  • Reference task IDs in daily memory logs when you complete or advance work:
    Completed `myproject-007` (OAuth login). Moved `myproject-008` to In Progress.
  • Keep memory entries narrative — what happened, what you decided, what's next.
❌ Do Not
  • Never duplicate the backlog in daily memory files. tasks/<slug>-tasks.md is the single source of truth for all pending work. Memory files should not list what's left to do.
  • Do not track task state changes in memory (e.g., "Task 007 is now in progress"). Only note meaningful progress events or decisions.
  • Do not create new tasks in memory files. Add them to the task file directly.
Pattern: Loading Project Context

At the start of a session involving a project:

  1. cat PROJECTS.md — identify the project slug and status
  2. cat tasks/<slug>-tasks.md — load current task state
  3. cat plans/<slug>-plan.md — load architecture context (if it exists)
  4. Begin work. Record task ID references in memory at session end.

Periodic Sync Daemon

The sync daemon runs task-sync.mjs files-to-db every 60 seconds in the background. This means markdown edits are automatically reflected in SQLite within a minute.

  • Logs: logs/taskflow-sync.stdout.log and logs/taskflow-sync.stderr.log (relative to workspace)
  • Lock: Advisory TTL lock in sync_state table prevents concurrent syncs
  • Conflict resolution: Last-write-wins per sync direction
Quickest install (auto-detects OS)
bash
taskflow install-daemon

This detects your platform and installs the appropriate unit. On macOS it installs and loads the LaunchAgent; on Linux it writes systemd user units and enables the timer.

macOS — LaunchAgent (manual steps)

Templates: taskflow/system/com.taskflow.sync.plist.xml

  1. Copy taskflow/system/com.taskflow.sync.plist.xml → ~/Library/LaunchAgents/com.taskflow.sync.plist
  2. Replace {{workspace}} with the absolute path to your workspace (no trailing slash)
  3. Replace {{node}} with the path to your node binary (which node)
  4. Load: launchctl load ~/Library/LaunchAgents/com.taskflow.sync.plist
  5. Verify: launchctl list | grep taskflow

Uninstall:

bash
launchctl unload ~/Library/LaunchAgents/com.taskflow.sync.plist
rm ~/Library/LaunchAgents/com.taskflow.sync.plist
Linux — systemd user timer (manual steps)

Templates: taskflow/system/taskflow-sync.service and taskflow/system/taskflow-sync.timer

bash
# Create the user unit directory
mkdir -p ~/.config/systemd/user

# Copy templates, replacing placeholders
sed -e "s|{{workspace}}|$OPENCLAW_WORKSPACE|g" \
    -e "s|{{node}}|$(which node)|g" \
    taskflow/system/taskflow-sync.service > ~/.config/systemd/user/taskflow-sync.service

sed -e "s|{{workspace}}|$OPENCLAW_WORKSPACE|g" \
    -e "s|{{node}}|$(which node)|g" \
    taskflow/system/taskflow-sync.timer  > ~/.config/systemd/user/taskflow-sync.timer

# Enable and start
systemctl --user daemon-reload
systemctl --user enable --now taskflow-sync.timer

Verify:

bash
systemctl --user status taskflow-sync.timer
journalctl --user -u taskflow-sync.service

Uninstall:

bash
systemctl --user disable --now taskflow-sync.timer
rm ~/.config/systemd/user/taskflow-sync.{service,timer}
systemctl --user daemon-reload

Note: systemd user units require a login session. To run them without an interactive session (e.g. on a server), enable lingering: loginctl enable-linger $USER


Section Header → DB Status Map

Markdown HeaderDB status value
## In Progressin_progress
## Pending Validationpending_validation
## Backlogbacklog
## Blockedblocked
## Donedone

Section headers are fixed. Do not rename them. The sync parser maps these exact strings.


Known Quirks

Things that work but might trip you up:

  • MAX(id) is lexicographic. Task IDs are text, so SELECT MAX(id) works only because IDs are zero-padded (-001, -002). If you create -1 instead of -001, sequencing breaks. Always zero-pad to 3 digits.
  • Checkbox state is decorative. Status comes from which ## section a task lives under, not whether it's [x] or [ ]. The sync engine ignores the checkbox on read. On write-back, done tasks get [x], everything else gets [ ].
  • Notes survive deletion. If you remove a - note: line from markdown, the old note stays in the DB (COALESCE preserves it). This is intentional for v1 -- notes are one-way display. To truly clear a note, update the DB directly.
  • Lock TTL is 60 seconds. If a sync crashes without releasing the lock, the next run will be blocked for up to 60s. The SIGTERM/SIGINT handlers try to clean up, but a kill -9 won't. The lock auto-expires.
  • Auto-project creation derives names from slugs. If sync encounters a task file with no matching projects row, it creates one with a name like "My Project" from slug "my-project". The name might not be what you want -- fix it in PROJECTS.md and re-sync.
  • Tag order is strict. [P1] [codex] works. [codex] [P1] silently assigns codex as... nothing useful. Priority tag must come first.

Known Limitations (v1)

  • Notes are one-way (markdown → DB). Removing a note in markdown does not clear it in DB.
  • db-to-files rewrites all project task files, even unchanged ones.
  • One task file per project (1:1 mapping). Multiple files per project is post-MVP.
  • Periodic sync daemon: macOS (LaunchAgent) and Linux (systemd user timer) are supported. Run taskflow install-daemon to install.
  • Node.js 22.5+ required (node:sqlite). No Python fallback in v1.

Quick Cheat Sheet

New project:   PROJECTS.md block + tasks/<slug>-tasks.md + optional plans/<slug>-plan.md
New task:      taskflow add <project> "title" (or append manually to section)
Update status: Move line to correct ## section, flip checkbox if needed
Query simple:  cat tasks/<slug>-tasks.md
Query complex: Use db.prepare('SELECT ... WHERE id = ?').all(id) — never interpolate variables into SQL
CLI status:    taskflow status
CLI add:       taskflow add dashboard "Fix cron panel" --priority P1 --owner codex
Force sync:    node taskflow/scripts/task-sync.mjs files-to-db
Memory rule:   Reference IDs in logs; never copy backlog into memory

© LeoYeAI, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 16 other files (scripts) in skills/taskflow of LeoYeAI/openclaw-master-skills.

  • SKILL.md
  • README.md
  • _meta.json
  • examples/DASHBOARD-HOWTO.md
  • examples/export-schema.json
  • launchagents/com.taskflow.sync.plist.xml
  • package.json
  • schema/taskflow.sql
  • scripts/apple-notes-export.mjs
  • scripts/export-projects-overview.mjs
  • scripts/init-db.mjs
  • scripts/task-sync.mjs
  • scripts/taskflow-cli.mjs
  • system/com.taskflow.sync.plist.xml
  • templates/PROJECTS-template.md
  • … and 2 more

Open the folder on GitHubat commit e5199b5

Compare with similar skills

Taskflow next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Taskflow compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Taskflow this skillLeoYeAI/openclaw-master-skills2.2k—~6.5kAutomated safety check: PassMIT
No Nonsense Taskssundial-org/awesome-openclaw-skills663—~835Automated safety check: PassNone
Kanbancyanluna-git/cyanluna.skills183—~3.6kAutomated safety check: PassMIT
Retinuejklthinking/retinue112—~279Automated safety check: PassMIT
Kanban Initcyanluna-git/cyanluna.skills183—~1.3kAutomated safety check: PassMIT
Task Backlog Managermp-web3/claude-starter-kit109—~1.2kAutomated safety check: NotesMIT

Similar skills

  • No Nonsense Tasks

    sundial-org/awesome-openclaw-skills

    No-nonsense task manager using SQLite. An agent skill from sundial-org/awesome-openclaw-skills.

    663 GitHub stars~835 tokensUpdated 7 mo ago
    Productivity & AutomationAuto-check passed
  • Kanban

    cyanluna-git/cyanluna.skills

    Manage project tasks in a local SQLite DB (~/.claude/kanban-dbs/{project}.db).

    183 GitHub stars~3.6k tokensUpdated 3 mo ago
    Productivity & AutomationAuto-check passed
  • Retinue

    jklthinking/retinue

    Coordinate work through a local Retinue workspace using its MCP tools.

    112 GitHub stars~279 tokensUpdated 2 days ago
    Productivity & AutomationAuto-check passed
  • Kanban Init

    cyanluna-git/cyanluna.skills

    Initialize the current project in local SQLite kanban. An agent skill from cyanluna-git/cyanluna.skills.

    183 GitHub stars~1.3k tokensUpdated 3 mo ago
    Productivity & AutomationAuto-check passed
  • Task Backlog Manager

    mp-web3/claude-starter-kit

    Keeps a personal task backlog in SQLite behind a /tasks command that adds, reviews, completes and measures tasks against a list of long-term problems.

    109 GitHub stars~1.2k tokensUpdated 6 mo ago
    Productivity & AutomationAuto-check: notes
  • Track Campaigns

    Othmane-Khadri/YALC-the-GTM-operating-system

    Poll Unipile / Instantly for the status of running campaigns, advance sequence steps that are due, and sync results to Notion.

    317 GitHub stars~491 tokensUpdated 1 mo ago
    Productivity & AutomationAuto-check: notes

More from LeoYeAI/openclaw-master-skills

All 1,215 skills in this repo
  • DevOps Pipeline Management

    LeoYeAI/openclaw-master-skills

    Manages pipelines on a DevOps quality and efficiency platform through its OpenAPI: list workspaces and templates, create, update, run and cancel pipelines, and read run records.

    2.2k GitHub stars~4.2k tokensUpdated 2 mo ago
    Auto-check: notes
  • Feishu Document Collaboration

    LeoYeAI/openclaw-master-skills

    Patches OpenClaw's Feishu extension so an edited document triggers an isolated agent session that reads the doc and replies inline, turning it into a live chat space.

    2.2k GitHub stars~2k tokensUpdated 2 mo ago
    Auto-check passed
  • Files Memory System

    LeoYeAI/openclaw-master-skills

    Multi-context memory management system for OpenClaw agents with group-isolated storage, global shared memory, workspace organization, and group-specific skills isolation.

    2.2k GitHub stars~3.8k tokensUpdated 2 mo ago
    Auto-check passed
  • GEO-Claw AI Visibility Agent

    LeoYeAI/openclaw-master-skills

    Runs a brand's AI-search visibility work end to end: diagnosing how AI platforms represent it, repositioning it, producing AI-optimized content and monitoring ongoing mentions.

    2.2k GitHub stars~4.7k tokensUpdated 2 mo ago
    Auto-check passed
  • Google Workspace CLI

    LeoYeAI/openclaw-master-skills

    Installs and authenticates the gws CLI, then automates Gmail, Drive, Sheets, Calendar, Docs, Chat and Tasks with ready-made recipes, persona bundles and security audits.

    2.2k GitHub stars~2.6k tokensUpdated 2 mo ago
    Auto-check: notes
  • HealthFit Health Advisors

    LeoYeAI/openclaw-master-skills

    Runs four advisor roles, a fitness coach, nutritionist, data analyst and TCM practitioner, to build a health profile and track workouts, diet and wellness over time.

    2.2k GitHub stars~4.4k tokensUpdated 2 mo ago
    Auto-check passed

Works with

Questions about Taskflow

What does Taskflow do?

Structured project/task management for OpenClaw agents — markdown-first authoring, SQLite-backed querying, bidirectional sync, CLI, Apple Notes integration. Taskflow is an agent skill from LeoYeAI/openclaw-master-skills. Structured project/task management for OpenClaw agents — markdown-first authoring, SQLite-backed querying, bidirectional sync, CLI, Apple Notes integration.

When should I use Taskflow?

Taskflow fits situations like: tasks that involve Task management.

How do I install Taskflow in Claude Code?

Run `npx skills add LeoYeAI/openclaw-master-skills --skill taskflow -a claude-code`. Or copy the skill folder (skills/taskflow in LeoYeAI/openclaw-master-skills) into .claude/skills/taskflow in your project. Claude Code loads it when a task matches its description.

How do I install Taskflow in Codex?

Run `npx skills add LeoYeAI/openclaw-master-skills --skill taskflow -a codex`. Or copy the skill folder (skills/taskflow in LeoYeAI/openclaw-master-skills) into .agents/skills/taskflow in your project. Codex loads it when a task matches its description.

Can I use Taskflow in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add LeoYeAI/openclaw-master-skills --skill taskflow -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/taskflow, .gemini/skills/taskflow, .github/skills/taskflow and .opencode/skills/taskflow in your project.

What does Taskflow need to run?

Going by SKILL.md and its folder, Taskflow needs JavaScript for the scripts in its folder and the command-line tools its instructions call (node and sqlite3). Our summary lists: Node.js.

Does Taskflow access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Taskflow safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Taskflow use?

Taskflow is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Taskflow use?

About 6.5k tokens (SKILL.md is roughly 26k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Taskflow?

Skills that share tags, products or a category with Taskflow: No Nonsense Tasks (sundial-org/awesome-openclaw-skills, 663 stars), Kanban (cyanluna-git/cyanluna.skills, 183 stars), Retinue (jklthinking/retinue, 112 stars) and Kanban Init (cyanluna-git/cyanluna.skills, 183 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Taskflow?

LeoYeAI (a GitHub user) maintains it in LeoYeAI/openclaw-master-skills, which has 2,158 GitHub stars. The repository holds 1,215 skills in this directory. The repository was last updated on July 20, 2026.

Source: LeoYeAI/openclaw-master-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.