Task observer

From divad12/dotfiles · View interactive version

Task observer is an AI agent skill from the GitHub repository divad12/dotfiles. Use when starting an interactive parent task session, when the user gives feedback about agent behavior, or when the user asks about observations, skill improvements, or observation logs. Skip delegated/non-interactive subagents, review-only workers, verify-only workers, Codex/Claude print-mode revi

How to use this skill

Skill file

Task Observer

<SUBAGENT-STOP>

If this is a delegated/non-interactive subagent, reviewer, verifier, or print-mode worker, stop using this skill now. Do not read observation logs, do not write observation logs, and do not mention this skill. The parent interactive session owns observation logging.

</SUBAGENT-STOP>

Invocation

Invoke this through the agent Skill/tool system. Do not run a shell command named task-observer; if the Skill/tool is unavailable, read this file directly and continue with the fallback observation path below. The bin/task-observer command is only a last-ditch shell fallback for mistaken invocations, not the normal interface.

Contract

Observation File Fallback

Use observation files only as a fallback or session audit trail when there is no

available learning store yet, when the note is too raw to route, or when you

need a temporary breadcrumb while actively resolving the issue. Do not write the

same durable learning to both systems as separate backlog items.

Use the git toplevel basename as <project-slug>, or _meta outside git.

| Purpose | Path |

|---|---|

| Active log | ~/.agents/observations/<project-slug>/log.md |

| Archive | ~/.agents/observations/<project-slug>/archive/log-YYYY-MM-DD.md |

| Cross-cutting principles | ~/.agents/observations/<project-slug>/cross-cutting.md |

Create files only when there is something real to write and it cannot yet be

routed cleanly through /learn.

Project Learning Routing

If the observation is about the current project's codebase, QA/review pattern,

test command, cache behavior, architecture guardrail, or repo-specific workflow,

invoke /learn and capture it in the current repo's docs/learnings/ store

instead of only writing to ~/.agents/observations/<project-slug>/log.md.

Do this without waiting for the user to say /learn; user feedback about a

durable project pattern is already the trigger.

Keep agent-system observations in dotfiles when they concern skills, hooks,

global docs, task-observer itself, or cross-project agent behavior. If the

dotfiles learning store is available, invoke /learn there and capture the

durable learning in dotfiles docs/learnings/. The central observation log can

still hold a raw session note when useful, but the durable learning belongs in

the learning store.

Before writing any learning, use the /learn semantic duplicate check against

active inbox, candidates, promoted entries, recent archives, and same-session

captures. Multiple sources for the same issue should update one learning entry's

Sources and evidence trail.

What To Notice

Do not log observations just because a task completed. Do not create observation

entries for durable learnings that were already captured through /learn.

Observation Format

Only append open observations in this shape when using the fallback/audit path:

### Observation N: Short title
- Date: YYYY-MM-DD
- Status: OPEN
- Scope: skill:<name> | docs:<path> | cross-cutting | tool:<name>
- Trigger: Brief user-facing event that revealed the pattern.
- Ramification: What the user loses, risks, or gains if this is fixed.
- Recommendation: Concrete change to make later.

When resolved, change Status to RESOLVED and add a short Resolution: line.

Acting On Observations

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.