/faq-shortcuts:faq-shortcuts [project dir, default cwd] [--source all|claude|codex|cursor] [--since YYYY-MM-DD]from FAQ Shortcuts
Mines repeated questions and instructions from Claude Code, Codex, and Cursor session history to create project-specific slash-command skills. Useful when users type the same asks daily.
Ships in FAQ Shortcuts. 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.
None: SKILL.md is the whole skill.
People working with an agent on one project type the same asks over and over: "how many
signed up", "did it go out?", "send a reminder to those who haven't…". Each time the agent
starts cold and has to relearn the traps. This skill mines what was actually asked and
turns the most repeated asks into short project skills (/joined, /sent, /remind…).
Each one records the right tool and the mistakes already made on that path.
Build from evidence, not from guesses about what might be useful.
The script sits next to this file, not in the user's project, so call it by the skill's own folder (the directory holding this SKILL.md):
python3 <skill_dir>/scripts/extract_asks.py <project_dir> --min-words 3 [--source all|claude|codex|cursor] [--since YYYY-MM-DD] > <scratch>/asks.tsv
--min-words 3 drops "ok", "yes", "push" and other replies that carry no intent.
On Windows, run it with python instead of python3. This prints every prompt typed in
that project's sessions, oldest first, as
date<TAB>source<TAB>prompt. It reads Claude Code (~/.claude/projects/, plus
~/.claude/history.jsonl for sessions older than the 30 days Claude Code keeps
transcripts), Codex (~/.codex/sessions/, or $CODEX_HOME) and Cursor (its
state.vscdb SQLite store) by default, and skips subagent turns and scripted runs such as
codex exec, because nobody typed those. An ask repeated across tools counts as one
cluster. Cursor chats opened without a folder belong to no project, so they are not read.
A line like cursor: checked, nothing for this folder means that tool was checked and has
no history here, not that it isn't supported; report it that way. The first run asks the
user to allow the script to read their history; if that is refused, say so and stop rather
than guessing from the commit log alone.
Write the output to a scratch location, not into the repo, because prompts can contain
names and emails. Pasted keys, tokens, passwords and credentials in URLs are already
replaced with [REDACTED]; never use --no-redact here.
Check the line count first (wc -l). Below about 30 lines there is too little history to
show repeats: say so, propose at most one or two shortcuts from the commit log, and suggest
running again after more sessions. Never invent asks the history doesn't show. Above about 1,500 lines, don't load it all at once:
rerun with --since set to the last 90 days, or read it in chunks and keep a running tally
of clusters. Recent asks matter most, because they show what the user still repeats.
Also read the commit subjects (git log --format='%ad %s' --date=short). Commits show which
operations recur, like repeated send-*, sync-* and import-* scripts. Prompts show how
the user phrases them.
Read the whole list. Group prompts that want the same outcome whatever their wording ("how many joined", "how many confirmed", "how many members now" → one head-count ask). Count each cluster and keep 2–3 verbatim phrasings, which become the description's triggers.
A cluster earns a shortcut when:
Drop one-offs and anything a single command already answers.
List .claude/skills/, .claude/commands/, .agents/skills/ and the project's CLAUDE.md
and AGENTS.md. Extend an existing skill instead of adding a near-duplicate. Then find the
project's existing tools for each cluster, such as scripts, CLI commands and API routes.
A shortcut should point to the tool that exists. Don't write a new one.
Read those tools' headers and the commits that fixed them. The traps you find there are the most valuable part of each skill.
Show the user a short table with shortcut name, the ask it replaces, and how often it appeared. Let them pick. Short names beat descriptive ones here, because the point is less typing. Use one lowercase word, and never shadow a built-in command.
.claude/skills/<name>/SKILL.md, committed with the project so it travels. Claude Code
and Cursor load skills from .claude/skills/. Codex loads them from .agents/skills/, so
link each one there as well:
mkdir -p .agents/skills && ln -s ../../.claude/skills/<name> .agents/skills/<name>
Link each skill folder, not .agents/skills itself: Codex follows a symlinked skill folder
but does not scan a symlinked .agents/skills.
The skill file itself:
---
name: <short>
description: <what it does>. Use for "<verbatim phrasing 1>", "<phrasing 2>", "<phrasing 3>".
argument-hint: "[optional arg]"
---
# <What it answers>
Report only / Dry run first — **never <write/send> from this skill without a yes.**
## Query / tool ← the existing script or query, with its real flags
## Traps ← only ones that actually happened, each with the consequence
## Report ← exactly what to print, then ask
Rules:
description if it contains : or #, or YAML will truncate it.Add a table to the project's CLAUDE.md (and AGENTS.md, if the project has one) that maps each shortcut to the sentence it replaces. It serves as both documentation and a reminder to use it.
The shortcuts added, the ask each replaces with its count, and any frequent cluster you deliberately left out and why.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
faq, shortcuts, slash-commands, session-history, productivity
npx claudepluginhub kishormorol/cli-faq-shortcuts --plugin faq-shortcutsOther plugins' skills for the same job