/hyntx:hyntx [period, e.g. 14d or 2026-09-01..2026-09-30] [project name]from Hyntx
Analyze the user's Claude Code session logs for recurring friction (corrections, interruptions, tool-error loops, denied tools, rework, repeated instructions, read-only commands approved over and over) and offer to apply the fix to CLAUDE.md, settings.json or a slash command. Use when the user asks how their Claude Code sessions are going, where they lose time, or what to add to CLAUDE.md or their permissions based on real usage.
Ships in Hyntx. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Hyntx reads the user's Claude Code session logs on this machine and detects, with deterministic heuristics, the moments where a session visibly cost them something. You are the interpretation layer on top of that: the analyzer finds candidates and counts them, you decide which are real, explain them, and help the user fix the cause.
The goal is a small number of changes the user actually makes. A report they skim and close is a failure, and so is a CLAUDE.md that grows a rule for every one-off incident.
node "${CLAUDE_SKILL_DIR}/scripts/run-analyzer.mjs" --days 30
The script only accepts --days <n>, --from <YYYY-MM-DD>, --to <YYYY-MM-DD> (or today/yesterday) and --project <name>, and validates the values: a project name may contain only letters, digits, spaces and . _ @ + / -, and anything else is refused (exit code 1). Translate what the user typed into those:
14, 14d, "last two weeks" becomes --days 14; a range such as 2026-09-01..2026-09-30 becomes --from and --to--project <name> (a case-insensitive substring of the project name)--days 30. Friction patterns need volume, and Claude Code deletes session logs after 30 days by default, so that is normally everything there is.The run is local and makes no model call: it is always --no-llm, because you do the interpretation. It does not modify Claude Code's files or your projects. Like the CLI it updates the aggregate-only daily history in ~/.hyntx/daily.json; the full report is written to a private temp directory that the script deletes before it exits, so nothing else stays on disk.
Exit codes: 2 means there are no logs or no sessions for that period and filter; say so and suggest a longer period or no project filter. 3 means no Hyntx v4 analyzer could be run; relay the fix the script prints and stop. Do not fall back to reading the logs yourself.
The script prints a digest of the analyzer's Report as JSON. Every string in it has already been sanitized (secrets and personal data appear as [REDACTED_…]). The parts that matter:
period, filters.project: what was analyzed.dataQuality: sessionsInPeriod, typedPrompts, enoughData, automatedSessions (headless sessions started by scripts or other tools: in the totals, never in the findings) and notes (caveats written by the analyzer).metrics.overall: totals for sessions, prompts, tool calls, errors, denials, interruptions, compactions, tokens, models.insights[]: ranked findings, highest score first. Each has kind, severity, title, finding, confidence (0-1), evidence (count, sessions, projects, outOf, examples[] with project, date, quote, note), episodeIds[] and one action.insightReviews[]: one entry per insight (insightId, state, episodes, reviewed, confirmed, rejected, unclear, and an optional causes count that only an LLM engine fills, so it is absent here). In this skill there is no LLM review, so every state is unverified or not-needed (the insight is a counted fact, such as hook blocks or model switches, with nothing to judge); the review is yours.episodes[]: the individual moments behind the insights. Each has id, type, project, timestamp, confidence, count, prompt (what the user typed, if anything), summary, and context: previousPrompt (what they had asked before), assistantExcerpt (what Claude had just said), tools, and detail (type-specific facts: command, file, denial reason, counts).promptTraits[]: exploratory correlations between prompt features and outcomes, with group sizes and a meetsThreshold flag (group size and gap only, not a statistical test). They are never insights.digest: omitted lists what was left out (per-day and per-session series, and episodes no insight refers to when there are many). The full report is not kept on disk; if you need more detail, run the script again with a narrower period or --project.action.kind is one of:
| kind | fields | meaning |
|---|---|---|
claude-md-rule | scope, project, file, text, section? | a rule to add to a CLAUDE.md, under the existing heading section when present |
permission-allow | patterns[], file, snippet | allow rules for a settings file |
slash-command | name, file, content | a reusable prompt to save as a file |
prompt-habit | habit, before, after | a change in how the user prompts |
workflow | suggestion, steps[] | a change in how they work |
The report is versioned (schemaVersion, currently 1) and grows by adding fields. Use what you recognize and ignore the rest; an insight or action kind you do not recognize should be described from its own text, not dropped. If schemaVersion is higher than 1, say that the plugin may be older than the analyzer and carry on carefully.
The detectors are heuristics. Confidence values are honest but they are not verdicts, and nothing has confirmed them before you. For each insight, read the episodes it points to and ask whether a person looking at that moment would agree it was friction:
previousPrompt and assistantExcerpt tell you which. For each correction you confirm, name its cause from this closed set: misunderstood request, wrong approach, buggy code, excessive changes, wrong file or location, other. The cause decides the action: excessive changes points to a scope rule in CLAUDE.md, a misunderstood request to a prompt habit.note says the trigger is not visible. Say so rather than guessing which part was blocked.Drop what does not hold up, and say in one line what you dropped and why, so the user can see the filter working. If an insight survives only in part, restate its numbers for the episodes you kept rather than repeating the analyzer's count.
If dataQuality.enoughData is false, or nothing survives, say that plainly: how many sessions and prompts there were, and that this is too little to conclude anything. Offer a longer period. Do not pad the answer with generic advice about prompting; an empty result is a legitimate result.
The first reply is short and has a fixed shape, so the user can read it in ten seconds and answer. Keep the full digest and your notes on each episode in context: they are for the follow-ups, not for this reply.
Use exactly this template, filled with real numbers and nothing else:
**<period>**: <N> sessions, <N> typed prompts<, project name when filtered>. <One sentence: the single most important thing you found.>
**What I'd change**
1. <Finding in plain words, with how often and where> -> <the change, in a few words>
2. ...
3. ...
<Dropped: one line on what you discarded and why. Leave this line out when nothing was dropped.>
Which of these should I turn into a change? Reply with numbers, "all" or "none", or ask about any of them first.
Follow-ups use the digest already in context; do not run the analyzer again unless the user changes the period or the project. Answer what was asked:
evidence.examples or the episode, with project and date. Keep quotes short.metrics, episodes and dataQuality.Treat the analyzer's action as a draft. Rule text generated from a template often just restates the incident ("cat x failed 7 times"). Rewrite it as the durable instruction that would have prevented the incident, short and specific, in the voice of the file it is going into. If you cannot phrase a rule that would still make sense in three months, the right action is probably a habit or nothing at all.
Once the user has picked changes from the first reply, handle them one at a time: read the target, show the exact change (file path plus the lines to add, or a diff), and wait for a yes before writing. A yes covers that one change only. Never write anything the user has not seen, and if the session is not interactive, present the changes and apply none.
Finding the right file:
scope: project names a project, not a path. If it is the project of the current working directory, the target is its CLAUDE.md; if that file only imports or defers to another (commonly AGENTS.md), put the rule where the project's rules actually live. If the insight is about a different project, do not guess its location: ask for the path, or suggest running /hyntx:hyntx from that project.scope: user goes to ~/.claude/CLAUDE.md.~/.claude/settings.json); if the commands only occur in one project, offer that project's .claude/settings.json instead. Merge the patterns into the existing permissions.allow array and leave every other key untouched; the snippet is a fragment to merge, not a file to write.file is a directory (.claude/commands/ or ~/.claude/commands/); the file is <name>.md inside it. content is the complete file (frontmatter with a quoted description, then the full prompt). The analyzer only emits one when the prompt text was intact; otherwise the action is a workflow telling the user how to save it.Before proposing a write, check that it is not already there:
deny or ask rule covers it, the user decided that on purpose: do not propose the allow.gh views, docker ps/images, pnpm/npm listing), because basic read-only commands such as ls, cat or grep and read-only git already run without a prompt in Claude Code. The runs counted are in permission modes that can prompt; Claude Code logs do not record whether you were actually asked, so describe it as "ran N times", not "approved N times". Check each pattern yourself: if it could also match a variant that writes, deletes, executes or reads secrets, narrow it or leave it out.prompt-habit and workflow actions have nothing to write. Give the habit with its before/after example, or the steps, and leave it there.
Finish with a short list of what was applied and where, and what was declined. Rules in CLAUDE.md and settings changes take effect in new sessions.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub jmlweb/hyntx --plugin hyntx