skills/tusk-insights/SKILL.md
Read-only DB health audit with interactive recommendations, plus on-demand HTML task dashboard generation
npx skillsauth add gioe/tusk tusk-insightsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Two capabilities for inspecting the task database:
If the user invoked this skill asking for the dashboard (e.g. "/tusk-insights dashboard", "open the dashboard", "show me the HTML view"), run the HTML Dashboard flow below. Otherwise, run the Audit + Q&A flow.
Run:
tusk dashboard
Then confirm to the user that the dashboard has been generated and opened in their browser.
tusk config
Parse the JSON. Note which arrays are empty — empty means no validation is configured for that column:
domains → [] means skip domain orphan checksagents → {} means skip agent orphan checksHold onto the config values for Phase 2 (recommendations).
Run the built-in audit command to get counts for all six categories:
tusk audit
This returns JSON with config_fitness, task_hygiene, dependency_health, session_gaps, criteria_gaps, and scoring_gaps counts. All six keys are always present even when the count is zero.
For each category with a count > 0, load the companion file and run the corresponding detail queries:
Read file: <base_directory>/QUERIES.md
Present findings grouped by category with task IDs and summaries so the user can act on them. Categories with zero findings get a single line: ✓ No issues found.
Report format:
## Tusk Health Audit
### 1. Config Fitness — {N} finding(s)
... detail from QUERIES.md ...
### 2. Task Hygiene — ✓ No issues found
(skipped because count was 0)
### 3. Dependency Health — {N} finding(s)
... detail ...
(etc. for all 6 categories)
Always run this step regardless of finding counts — velocity is informational, not a health issue.
Run the Velocity query:
tusk -header -column "
SELECT week, task_count, ROUND(avg_cost, 4) as avg_cost
FROM v_velocity
ORDER BY week DESC
LIMIT 8;
"
Present results in the audit report as:
### Velocity — Tasks Completed Per Week
week task_count avg_cost
---------- ---------- --------
2025-W08 3 0.1523
2025-W07 5 0.2100
...
If the query returns no rows, display:
### Velocity — No completed tasks recorded yet
Always run this step regardless of audit findings — like Velocity, this is informational signal that surfaces a slow-accumulating problem (lingering worktrees consuming disk, registry rows pointing at deleted paths) the six audit categories don't cover. Originally added in TASK-478 because 11 stale worktrees went unnoticed for two weeks.
Run the insights command:
tusk insights --format text
The output is a pre-rendered section. Include it verbatim in the audit report under its own heading:
### Worktree Pool Health
- Reconcile-eligible rows: {N}
- Prune-eligible rows: {N}
- Total disk usage: {bytes}
- {accumulation_note}
Surface the findings as actions, not just numbers:
git worktree list. Recommend tusk task-worktree list --format json to inspect, then tusk task-worktree prune (with --dry-run first) to clean up./retro for the operator to investigate.✓ No worktree accumulation detected. so operators see the surface exists.After presenting the audit report, load the Q&A templates:
Read file: <base_directory>/RECOMMENDATIONS.md
Present the user with 5 discussion topics:
Ask which topic they'd like to explore. For each chosen topic, run the corresponding queries from RECOMMENDATIONS.md, analyze the results, and provide actionable recommendations.
The user can explore multiple topics or end the session at any time.
data-ai
Autonomously work through the backlog — dispatches /chain for chain heads, /tusk for standalone tasks, repeating until empty
data-ai
Groom the backlog by closing completed tickets, removing redundant/stale tickets, reprioritizing, and assigning agents
tools
File a GitHub issue against the tusk repo itself — tusk bugs, CLI limitations, skill improvements, or missing features. Use anytime the user identifies a gap in tusk (not in their own project's code).
tools
Contribute a client-discovered fix or improvement back to the configured iOS library repo from an ios_app tusk project.