automagic-problem-discovery

automagic-problem-discovery is a skill for Claude Code from tslateman/duet. It costs 74 tokens per session (2,088 once invoked), scanned A, original, MIT.

A workspace audit that looks for repeated sources of friction, chooses the most useful one to address, and builds an automation for it.

In plain words
What is it for?
Use it to inspect scripts, logs, task runners, git history, CI activity, and project layout when deciding what in your development workflow should be automated.
Why use it?
Small manual tasks can become invisible because they happen so often. This process finds those recurring costs and turns one selected problem into a working improvement.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: reads .claude/ paths.

Part of the duet plugin — 25 skills, 6 commands, 1 agent shipped together

Good fit Use it to inspect scripts, logs, task runners, git history, CI activity, and project layout when deciding what in your development workflow should be automated.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tslateman/duet/automagic-problem-discovery
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add tslateman/duet --skill automagic-problem-discovery
Clone the repo
git clone --depth 1 https://github.com/tslateman/duet

Made for: Claude Code.

Or install duet, the plugin that ships this one along with the rest of its 25 skills, 6 commands, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for automagic-problem-discovery

README.md
[![agentmods](https://agentmods.dev/badge/skills/tslateman/duet/automagic-problem-discovery.svg)](https://agentmods.dev/skills/tslateman/duet/automagic-problem-discovery)
Your own site
<a href="https://agentmods.dev/skills/tslateman/duet/automagic-problem-discovery"><img src="https://agentmods.dev/badge/skills/tslateman/duet/automagic-problem-discovery.svg" alt="Measured on agentmods" height="20"></a>
Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,088 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00074 $0.02088
Opus 5 $0.00037 $0.01044
Sonnet 5 $0.00015 $0.00418
Haiku 4.5 $0.00007 $0.00209

Measured 7d ago against content hash 1c6a2db092c0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

automagic-problem-discovery scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/automagic-problem-discovery/SKILL.md · 147 lines

How it starts

The opening of the file, as written. The whole thing — 147 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Automagic Problem Discovery

Overview

Most automation gets built for the friction someone noticed. This skill hunts the friction they stopped noticing: the manual step repeated so often it no longer registers as a cost.

One pass. Census, audit, pick one problem, build the fix, verify, report, log. The user leaves with a working tool, not a list of suggestions, and the ledger entry that stops the next run from rediscovering it.

Scope and autonomy

Never read credential stores, private keys, secret values, personal communications, or any directory and channel the user excluded. Ask before touching anything ambiguous.

Everything else is fair game: shell history, logs, cron and launchd jobs, scripts, git history, PR and CI state, prompt history, session transcripts, project layout, task runners.

When this skill starts a recurring loop, ask once before the first cycle: "discover and propose only" or "build and execute". The answer holds for the whole loop. A single interactive invocation defaults to build and execute, inside the Step 6 gate.

Step 1: Census what already exists

Before hunting new friction, read the estate:

  • The automation home: wherever this workspace's cron, launchd, or CI automations live, and whatever status tooling watches them.
  • The discovery ledger: discovery-ledger.md in the automation home, recording what past runs built, held, and rejected.
  • Prior discovery artifacts: earlier audits, velocity analyses, and proposal reports in session transcripts beat re-deriving from scratch.
  • In-flight work: open tickets and branches. Friction that a human is already fixing is a rejection, not a target.
  • The graveyard: tooling that was built and then deleted is the strongest signal in the corpus, and the most dangerous. Find the removal reason before building in that space. If the reason is unstated, ask, or build a strictly weaker posture (report-only, different home) and say so in the report.

Done when the run can name what already covers, addresses, or previously died in each candidate space.

Read the full file on GitHub · 147 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 147 lines · 74 tokens per session scan A 1c6a2db092c0

Subscribe to this mod's changes

automagic-problem-discovery is a skill published in the GitHub repository tslateman/duet (1 stars, last pushed 11d ago), licensed MIT. It adds 74 tokens to every session and 2,088 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

self-improve

Self-improve this skills repo — surface and (safely) apply quality improvements across four parallel read-only lenses (Clarity, Leanness, Coverage, Ergonomics). Sibling of /self-audit — audit fixes rule violations, improve raises quality where no rule is broken. Local meta-skill, independent of the /task: pipeline.

SpaiR/task-pipeline · 76 tokens

self-audit

Self-audit this skills repo against CLAUDE.md invariants, the artifact contract, and README/CLAUDE.md/docs sync via three parallel read-only subagents. Local meta-skill — independent of the /task: pipeline.

SpaiR/task-pipeline · 52 tokens

grill

Interrogate a plan or decision one question at a time before capture, keeping a decision-plus-rationale ledger, then route to the right capture skill.

SpaiR/task-pipeline · 33 tokens

architect

Answer build-or-adopt honestly, then design one committed architecture from your own understanding of the problem — driven by ranked quality attributes, stress-tested against the field and against change, proven by a walking skeleton, its consequences confirmed by the user, committed to ARCHITECTURE.md. A command the…

donald-ada/workinggenius · 80 tokens

designer

Settle the look before the pixels — audience and context first, then the base and the delta, taste settled by looking at real states, accessibility as the floor, one design language committed to DESIGN.md as tokens with roles. A command the user types, for work with an interface someone will see; standalone, no other…

donald-ada/workinggenius · 69 tokens

setup-working-genius

Per-repo configuration — pin the work-file directory, verify commands, and issue tracking, seed the project docs, and leave the pointer that tells every future session this project works this way.

donald-ada/workinggenius · 43 tokens