Daily audit

From mikeprasad/aria-knowledge · View interactive version

Daily audit is an AI agent skill from the GitHub repository mikeprasad/aria-knowledge. First-message audit substitute for Cowork. Use when user says "/daily-audit", "/aria-cowork:daily-audit", "audit check", "daily check", "session start audit", or at the start of a Cowork session to surface audit-cadence status. Cowork has no SessionStart hook (per ADR-004); this skill is the manual

How to use this skill

Skill file

/daily-audit — First-Message Audit Cadence Check (Cowork-Only)

Check audit-cadence status at session start and recommend /audit-knowledge or /audit-config invocation if overdue. The Cowork-side equivalent of aria-knowledge's session-start-check.sh hook, which Cowork cannot run (per ADR-004 ({knowledge_folder}/projects/aria-cowork/decisions/004-hook-replacement-strategy.md)).

Cowork-only skill. Does not ship in aria-knowledge — aria-knowledge users get the same coverage automatically via SessionStart hook. The asymmetric application of bidirectional flow per ADR-014 ({knowledge_folder}/projects/aria-cowork/decisions/014-bidirectional-feature-flow.md) row 1 (cowork-only when there's no aria-knowledge analog).

Step 0: Resolve config

The default knowledge folder is ~/Projects/knowledge/ (expand ~ to your home directory's absolute path). Read <knowledge_folder>/aria-config.md and extract:

If aria-config.md doesn't exist, stop with: "aria-cowork is not configured. Run /aria-setup to get started."

For all subsequent file operations in this skill, use the absolute path from knowledge_folder directly. Cowork resolves absolute paths via the persistent grant from claude_desktop_config.json per ADR-008.

Step 1: Compute Cadence Status

For each tracked audit, compute days since last run:

| Audit | Cadence threshold | Days since last run | Status |

|---|---|---|---|

| /audit-knowledge | audit_cadence_days (default 3) | <today> − last_audit_date | <on-track / overdue / never> |

| /audit-config | config_audit_cadence_days (default 14) | <today> − last_config_audit_date | <on-track / overdue / never> |

Status semantics:

Stale ideas check (composes with /audit-knowledge's stale-first surfacing):

Count files in <knowledge_folder>/intake/ideas/ whose date: frontmatter field is older than ideas_staleness_threshold_days (default 7). If count > 0, surface as part of the recommendation (/audit-knowledge will route them).

Step 2: Report Status + Recommend

Compose a single status block summarizing all checks:

Daily audit check — <YYYY-MM-DD>

| Audit | Status | Last run | Cadence |
|---|---|---|---|
| /audit-knowledge | <on-track / overdue (N days past) / never> | <YYYY-MM-DD> | <N> days |
| /audit-config | <on-track / overdue (N days past) / never> | <YYYY-MM-DD> | <N> days |

Stale ideas in intake/ideas/: <N> (threshold: <M> days)

Recommendation logic:

Recommendation format:

Recommended next actions:

1. Run `/audit-knowledge` — N stale ideas in intake/, M days since last audit (cadence: K days).
2. Run `/audit-config` — P days since last config audit (cadence: Q days).

You can also defer by running `/daily-audit` again later — this check is non-blocking.

Step 3: Self-Throttle (Optional)

Update daily_audit_last_run: <YYYY-MM-DD> in aria-config.md. If /daily-audit is invoked again the same day, the check still runs (audit status doesn't change within a day, but new stale ideas might appear); the throttle field is informational for future enhancement (e.g., "you already ran daily-audit today; status unchanged").

This step is OPTIONAL — write only if aria-config.md is writable in the current session context. If the write fails, skip silently (the cadence check still succeeded).

Rules

Notes

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.