agentleFS
imisicimisic/claude-obsidian-vault/.claude/skills/w-task-audit/SKILL.md

w-task-audit

Skill4 starsChanged 3 months agoMITView on GitHub

Audit and clean up action items across interaction notes. Fixes missing delegated-by tags, removes noise tasks from group meetings, and reports task health.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Only runs if $ARGUMENTS includes --fix AND the script reported items needing manual review.

    line 34
  2. Distinctive:

    Read the specific note file (path is in the script output)

    line 37
  3. Very specific:

    Read the ## Discussion section (or body) for context on who initiated the action

    line 39
  4. Distinctive:

    If context is ambiguous (can't tell who initiated), skip the item and list it in the Phase 4 report as "unresolved".

    line 46
  5. Very specific:

    Read the counts from the freshly-rebuilt index.

    line 59

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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

Task Audit

Scan all interaction notes for action item hygiene. Run periodically to catch tasks that are missing [delegated-by:: tags or shouldn't be tasks at all.

Default: dry run (report only). Pass --fix as argument to apply changes.

Phase 1: Run audit script

python _scripts/audit-tasks.py --vault "$VAULT" $ARGUMENTS

Supported flags:

  • --fix: apply changes (default: dry-run)
  • --backfill-created: stamp [created::] on tasks lacking it
  • --forgettability: apply forgettability filter to Sam-owned tasks (demotes those without time horizon / deliverable / small-ask verb). Use for one-shot backfill of existing tasks.

The script applies these rules:

  • 1on1 meeting + owner != Sam → auto-add [delegated-by:: [[Sam-Rivera]]]
  • Sent email + owner != Sam → auto-add [delegated-by:: [[Sam-Rivera]]]
  • Large meeting (>5 attendees) + owner != Sam + no delegated-by → convert to plain text (remove checkbox)
  • Small meeting (≤5 attendees) + owner != Sam → flag for manual review

Phase 2: Handle review items

Only runs if $ARGUMENTS includes --fix AND the script reported items needing manual review.

For each flagged item:

  1. Read the specific note file (path is in the script output)
  2. Find the ## Actions section and the flagged line
  3. Read the ## Discussion section (or body) for context on who initiated the action
  4. Determine who asked for it:
    • Sam asked or instructed someone → add [delegated-by:: [[Sam-Rivera]]]
    • Someone committed something TO Sam (owed to Sam) → keep checkbox as-is, no delegated-by
    • Third party assigned by someone else, Sam was just present → remove the - [ ] checkbox, replace with - (plain text). This is noise, not Sam's action.
  5. Apply the edit to the file

If context is ambiguous (can't tell who initiated), skip the item and list it in the Phase 4 report as "unresolved". Don't guess.

Budget: Process up to 10 review items per run. If more than 10, process the first 10 and report "N remaining, run again to continue."

Phase 3: Rebuild indexes

Always rebuild, even on a dry run with no fixes. build-open-actions.py is idempotent and only regenerates a derived index, so running it is safe. This guarantees the count reported in Phase 4 reflects current on-disk state and matches the live Obsidian dashboard (which reads the notes directly via Dataview), rather than a stale open-actions.json from a previous run.

python _scripts/build-open-actions.py --vault "$VAULT"

Phase 4: Report

Read the counts from the freshly-rebuilt index. Do NOT hand-write a one-liner to count them: open-actions.json is a dict, so len() on it returns the number of keys, not the number of tasks. Use the total_* fields directly:

python -c "import json; d=json.load(open('_db/open-actions.json')); print(f\"open={d['total_open']} completed={d['total_completed']} demoted={d['total_demoted']}\")"

Report to user:

  • How many tasks scanned
  • How many delegated-by tags added
  • How many noise tasks removed
  • How many still need review (if any)
  • Current open task count (the total_open value above, NOT a derived count)

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.