/pstack-picks:automate-mefrom pstack-picks
Use for "automate me", "create/update/refresh my -mode skill", "turn/capture my preferences or working style into a skill", or wanting agents to follow how the user works. Drafts or revises a personal -mode skill via create-skill, optionally pulling fresh evidence from recent transcripts.
Ships in pstack-picks. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
A guided flow for turning the user's working conventions into a skill agents will follow. The output is one -mode skill tailored to them (e.g. jay-mode, priya-mode).
This skill sequences two passes: an inline mining pass (see step 1) and an authoring pass (step 4).
Look recursively for .claude/skills/**/*-mode/SKILL.md, ~/.claude/skills/*-mode/SKILL.md, and any *-mode/SKILL.md under an installed plugin's skills/ directory, matching the user's handle. Mode skills can live in a personal category directory (.claude/skills/<handle>/), not only at the top level. If one exists, confirm intent with the AskUserQuestion tool (unless they already said "update my skill" or similar):
Update mode changes the rest of the flow:
git log -1 --format=%cI <path>).Locate the active workspace's transcripts before fanning out. They live at ~/.claude/projects/<slug>/,
where <slug> is the workspace's absolute path with every / replaced by -, leading dash included
(/Users/you/proj becomes -Users-you-proj). Main-thread sessions are <uuid>.jsonl at the top of
that directory; subagent transcripts are at <uuid>/subagents/agent-<id>.jsonl. Use only that slug's
directory. Don't glob across ~/.claude/projects/*/. That crosses workspace boundaries and reads private
chats from unrelated projects.
Survey recent agent conversations within that scope for recurring patterns. Run multiple parallel subagents across slices of history (e.g. last 2-4 weeks, split into 3 slices so each has enough material). Each slice mining subagent reads transcripts from the workspace-scoped path the parent provides, looks for the signals below, and returns a short structured list of patterns it saw with evidence pointers. Default signals worth hunting:
Cross-check across slices before elevating a signal. Patterns seen in 2+ slices are high-confidence; lone signals are weak and usually get dropped.
Mining misses intent that hasn't come up yet. Use the AskUserQuestion tool (structured multi-choice) rather than asking the user to type from scratch. Lower cognitive load, higher hit rate.
Shape: one or two questions with up to four options each, multiSelect: true for category questions. AskUserQuestion caps options per question, so split a wide category into two rounds rather than cramming it. Start broad ("Which areas matter most?"), then follow up on selected areas with specific options. After the structured rounds, one free-form chat question catches anything the options missed.
Don't dump 20 questions. Two structured rounds plus one open question is usually enough.
Group the combined signals into sections. Common ones (use only what applies):
Read an existing -mode skill for granularity if the user or the repo has one. Don't copy its content; another person's rules are not this user's.
Write the SKILL.md yourself, or delegate the draft to a background Agent with model: "opus" and review it before it lands. Placement:
.claude/skills/<handle>/<handle>-mode/SKILL.md when the repo has an established personal category for that handle; otherwise default to .claude/skills/<handle>-mode/SKILL.md in the project (or ~/.claude/skills/<handle>-mode/ if the user prefers a personal skill, or <plugin>/skills/<handle>-mode/ to ship it in a plugin).description: trigger on their name + /<handle>-mode + "work in their style", not on generic keywords like "write code" or "review PR".name and description are required. Keep description as one YAML scalar; quote it or use description: >- with indented continuation lines when punctuation or wrapping requires it. Run claude plugin validate <plugin-dir> when the skill lives in a plugin.disable-model-invocation: true by default. Mode skills are heavy and opinionated; they should only apply when the user explicitly invokes them (by name or slash command), not auto-trigger on description matching. Opt out only if the user explicitly wants their mode to apply on every turn.Keep prose disciplined and direct. Write for an agent reading the file cold, mid-task, with no other context.
Show the draft to the user and take feedback. Expect multiple iterations. Cut ruthlessly; a mode skill is not a manual.
Work in a git worktree off main, either your own (git worktree add) or a delegate's via Agent with isolation: "worktree". Commit and open a PR so the user can review it. Don't push to main directly.
A -mode skill is subjective output. A benchmark test/iterate loop isn't useful here. Vibe-check with the user: does it read like them? Did it miss anything? Then ship.
Tune the description only if the skill's trigger accuracy turns out to be a problem in practice. The fix is naming the literal phrases the user types, not adding adjectives.
-mode skill on disk: example of the output shape.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub gethubgod/worker-skills --plugin pstack-picks20 skills in this plugin
/architectSketch types, signatures, and module structure before code, then stay in the loop while implementation fills in. Use for /architect, 'architect this', 'design this', or non-trivial work where jumping to code would lock in the wrong shape./arenaSpawn N parallel candidates at the same task, pick a base, graft the strongest parts of the losers into it. Use for /arena, 'arena this', 'throw it in the arena', or when one attempt at a non-trivial artifact would lock in the wrong shape./blast-radiusFind what a change could break somewhere else before it ships, beyond the diff, and prove the one fact it's safe because of by running real code instead of writing it up. Use for 'blast radius of X', 'what could this break', or reviewing a small diff you don't trust.Other plugins' skills for the same job