agentleFS
pholbopholbo/getting-things-adhdone/skills/link-task/SKILL.md

link-task

Skill7 starsChanged 49 days agoMITView on GitHub

Creates a two-way link between a task in your task manager and a vault note: a deep link to the task added to the note, and a link back to the note appended to the task's notes field. Trigger: /link-task, or asking to link a specific task to a specific note (or vice versa).

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 6 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Identify the task: If you haven't given an exact match, search your task manager's export or search feature for a name match and confirm …

    line 35
  2. Very specific:

    If the note has an "Open tasks" section, add a bullet there: - <task title>.

    line 46
  3. Distinctive:

    If it doesn't, create one following that note's existing structure - don't invent a new section name if a note already uses "Open tasks" …

    line 48
  4. Distinctive:

    Always append after existing notes with a blank line separator - never overwrite what's already there.

    line 60
  5. Distinctive:

    Only do this when explicitly asked for this specific task/note pair, right now - never infer permission from a past request, never do it …

    line 70
  6. Very specific:

    Only ever touch a task's notes field (append-only) or, if separately asked, its title.

    line 74
  7. Distinctive:

    Never reorganise or prioritise tasks - what happens today/this week stays entirely the user's call.

    line 77
  8. Distinctive:

    If the task or note can't be found or the match is ambiguous, ask rather than guessing.

    line 79

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Link Task

Purpose

Lets you jump straight from a note to the exact task it relates to, and back again, without duplicating task tracking in your vault. This is a narrow, per-request exception to the general "read-only against your task manager" stance the other task-manager-integration skills in this repo take - see the guardrails below before using it, and see start-the-day's "Why a separate task manager at all" section for the read-only-by-default reasoning this skill deliberately breaks from, just for this one action, only on request.

The example below is written against Things3 (the author's setup, macOS) - it needs a task manager that supports both a deep link scheme (something like things:///show?id=...) and a way to programmatically read/append to a task's notes field. Adapt the mechanics to whatever your task manager exposes; the pattern (identify the task, build both link forms, add one to the note, append the other to the task, confirm both sides) carries over.

Trigger

/link-task, or naming a task and a note you want linked together.

Process

  1. Identify the task. If you haven't given an exact match, search your task manager's export or search feature for a name match and confirm which task is meant before touching anything.
  2. Get the task's ID or deep-link identifier from your task manager (for Things3 on macOS: osascript -e 'tell application "Things3" to return id of (first to do whose name is "<exact name>")', then build the link as things:///show?id=<id>).
  3. Identify the target note and its vault-relative path. Build the Obsidian link as obsidian://open?vault=<vault name>&file=<url-encoded path, no .md>.
  4. Add the task link to the note:
    • If the note has an "Open tasks" section, add a bullet there: - [<task title>](<task deep link>).
    • If it doesn't, create one following that note's existing structure - don't invent a new section name if a note already uses "Open tasks" elsewhere.
  5. Append the Obsidian link to the task's notes field (for Things3):
    osascript -e 'tell application "Things3"
    set t to (first to do whose id is "<id>")
    set oldNotes to notes of t
    set newNotes to oldNotes & return & return & "<obsidian link>"
    set notes of t to newNotes
    end tell'
    Always append after existing notes with a blank line separator - never overwrite what's already there. If your task manager only supports overwriting the notes field wholesale rather than appending, read the current value first and reconstruct it with the new link added, rather than risk clobbering it.
  6. Confirm both sides worked by reading back the note edit and the task's notes field, and tell the user what was added and where.

Guardrails

  • Only do this when explicitly asked for this specific task/note pair, right now - never infer permission from a past request, never do it proactively while doing other work (e.g. don't auto-link every task mentioned during meeting prep).
  • Only ever touch a task's notes field (append-only) or, if separately asked, its title. Never touch status, due date, scheduling, list/area/ project membership, or tags, and never mark anything done.
  • Never reorganise or prioritise tasks - what happens today/this week stays entirely the user's call.
  • If the task or note can't be found or the match is ambiguous, ask rather than guessing.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.