Skip to content
Productivity
Skill

/add-task

Use when you want to quickly capture a new task in the vault from a title, with optional priority and due date.

From plugin
vault-pkm
156 skills3 agents2 commands2 hooks

Claude Code

$ npx -y skills add AdrianV101/obsidian-pkm-plugin --skill add-task --agent claude-code

SKILL.md

add-task.SKILL.md
name: add-task
description: Use when you want to quickly capture a new task in the vault from a title, with optional priority and due date.

Add Task — Fast Vault Task Capture

Create a task note with minimal friction. Duplicate check → create → confirm. Done in one pass.

Step 1: Resolve Task Details

Extract from skill arguments or the user's message:

| Field | Source | Default | |---|---|---| | **title** | args / message | required — ask if missing | | **priority** | args | `normal` | | **due** | args (any recognisable date) | none | | **description** | remaining text after title/priority/due | none |

Priority shorthands: `h` / `hi` / `high` → `high`; `u` / `urg` / `urgent` → `urgent`; `l` / `lo` / `low` → `low`; anything else → `normal`.

Step 2: Detect Project

Read CLAUDE.md for the `# PKM: <path>` line (regex: `/^#\s+PKM:\s*(.+)$/m`):

  • **Matched**: use the vault project path (e.g., `01-Projects/Obsidian-MCP`)
  • **No match**: ask which project, or offer `00-Inbox` for unassigned tasks

Task path: `<project>/tasks/<kebab-title>.md`

  • `<kebab-title>` = title lowercased, spaces → `-`, strip characters other than `a-z0-9-`
  • `<project-folder-name>` for the `project:` frontmatter field is the **basename** of the vault path (e.g., `Obsidian-MCP` from `01-Projects/Obsidian-MCP`)

Step 3: Duplicate Check

vault_semantic_search({ query: "<title>", folder: "<project>", limit: 3, threshold: 0.7 })

If unavailable (no `VAULT_PKM_OPENAI_KEY`):

vault_search({ query: "<title>", folder: "<project>" })
vault_query({ type: "task", folder: "<project>" })

If a similar task exists (similarity > 0.8 or exact/near-exact title in search results): > "Similar task found: `<path>` — `<title>`. Create a new one anyway, or skip?"

If skipping, exit cleanly. If creating anyway, proceed.

Step 4: Create Task Note

vault_write({
  template: "task",
  path: "<task-path>",
  frontmatter: {
    tags: ["task"],
    status: "pending",
    priority: "<priority>",
    project: "<project-folder-name>",
    ...(due ? { due: "<YYYY-MM-DD>" } : {})   // omit due entirely if not provided
  }
})

Step 5: Fill Description (if provided)

If a description was given in Step 1, append it into the Description section:

vault_append({
  path: "<task-path>",
  heading: "## Description",
  position: "after_heading",
  content: "<description>"
})

Skip if no description was provided — leave the section blank for later.

Step 6: Confirm

Report the created task concisely:

> **Task created**: `<project>/tasks/<kebab-title>.md` > Priority: `<priority>` · Due: `<due or none>` · Status: `pending`

Read more
@adrianv101
Ships withvault-pkm

Give Claude persistent, structured memory across conversations using your Obsidian vault. Read, write, search, and navigate your knowledge base — all from within Claude Code.

156 skills3 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
15
Star history of AdrianV101/obsidian-pkm-plugin on GitHub, a chart by star-history.com

Other skills on vault-pkm.

pkm-explore

pkm-explore

Use when researching what the vault knows about a topic — performs graph + semantic exploration with gap analysis to map existing…

pkm-session-end

pkm-session-end

Use when wrapping up a work session — creates devlog entry, captures undocumented decisions/research/debugging, audits link…

pkm-write

pkm-write

Use when writing to the vault — creating new notes (vault_write), editing existing notes (vault_edit, vault_append,…

tackle-task

tackle-task

Use when starting work on a specific vault task, when a task title or path is mentioned, or when coming from triage output.

triage-tasks

triage-tasks

Use when you want to review and batch-update open vault task statuses for the current project or across all projects.

More skills from other plugins.

i-have-adhd

i-have-adhd

Shape output for a reader with ADHD: lead with the next action, number multi-step work, restate state across turns, suppress…

@ayghri@ayghriInstall Skill
ab-test-analysis

ab-test-analysis

Analyze A/B test results with statistical significance, sample size validation, confidence intervals, and ship/extend/stop…

@phuryn@phurynInstall Skill
distilly

distilly

Set up the owner profile so a personal agent knows who it works for (first-run setup, \"get to know me\"), or distill colleague,…

Questions about add-task.

Which coding agents can use add-task?
add-task installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.