by kishormorol
Turn repeated Claude Code, Codex, and Cursor prompts into reusable slash commands. Local Python history extractor + Agent Skill.
# Add to your Claude Code skills
git clone https://github.com/kishormorol/cli-faq-shortcutsGuides for using ai agents skills like cli-faq-shortcuts.
Last scanned: 9/20/2026
{
"issues": [
{
"file": "README.md",
"line": 148,
"type": "dangerous-command",
"message": "Dangerous command (writes to Claude config): \">/*.jsonl` (the last 30 days) and `~/.claude/\"",
"severity": "medium"
},
{
"file": "SKILL.md",
"line": 25,
"type": "dangerous-command",
"message": "Dangerous command (writes to Claude config): \">source<TAB>prompt`. It reads Claude Code (`~/.claude/\"",
"severity": "medium"
}
],
"status": "PASSED",
"scannedAt": "2026-09-20T09:06:46.159Z",
"npmAuditRan": true,
"pipAuditRan": true,
"promptInjectionRan": true
}See how cli-faq-shortcuts compares with popular alternatives.
cli-faq-shortcuts is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by kishormorol. Turn repeated Claude Code, Codex, and Cursor prompts into reusable slash commands. Local Python history extractor + Agent Skill. It has 129 GitHub stars.
Yes. cli-faq-shortcuts passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/kishormorol/cli-faq-shortcuts" and add it to your Claude Code skills directory (see the Installation section above). cli-faq-shortcuts ships a SKILL.md manifest, so compatible agents can discover and load it automatically.
cli-faq-shortcuts is primarily written in Python. It is open-source under kishormorol on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh cli-faq-shortcuts against similar tools.
No comments yet. Be the first to share your thoughts!
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM is an informational directory and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
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.
python3 scripts/extract_asks.py <project_dir> [--source all|claude|codex|cursor] [--since YYYY-MM-DD] > asks.tsv
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.
Write the output to a scratch location, not into the repo, because prompts can contain names, emails and tokens.
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.
Stop typing the same long request to your coding agent every day. This
Agent Skill reads your own history, finds the asks you keep
repeating, and turns each one into a short command, like /sent or /project billing.
It works in Claude Code, Codex and Cursor.
The extractor uses only Python's standard library: no packages, API keys, or network access are needed. Intent grouping happens in your coding agent.

Watch or download the 24-second video · What's new in v1.2.0
The demo illustrates the workflow with synthetic data; it is not a live agent recording.
1. Install (macOS / Linux, needs git and Python 3.9+; on Windows see Windows):
git clone https://github.com/kishormorol/cli-faq-shortcuts ~/.agents/skills/faq-shortcuts
mkdir -p ~/.claude/skills && ln -sfn ~/.agents/skills/faq-shortcuts ~/.claude/skills/faq-shortcuts
2. Open your project in Claude Code, Codex or Cursor, in a new session.
3. Ask "what do I keep asking in this project?", or type /faq-shortcuts in Claude Code.
You'll get a table of your most repeated asks with how often you typed each. Pick the ones you want and they become shortcuts in that project.
The repo is
cli-faq-shortcuts; the skill it installs is calledfaq-shortcuts.
If it saves you typing, please ⭐ star the repo. Stars are how other people find it.
# inside your project, in Claude Code
/faq-shortcuts # find your repeated asks and propose shortcuts
/faq-shortcuts --since 2026-06-01 # only look at recent history
/faq-shortcuts --source codex # only what you asked Codex
# the extractor on its own: no agent, nothing leaves your machine
E=~/.agents/skills/faq-shortcuts/scripts/extract_asks.py
python3 "$E" . # matching prompts, oldest first
python3 "$E" . --since 2026-09-01 | wc -l # how many since September
python3 "$E" . --format jsonl # structured records for your own scripts
python3 "$E" . | awk -F'\t' 'split($3,w," ")>=4 {print tolower($3)}' \
| sort | uniq -c | sort -rn | head # your most repeated exact requests
The last one counts exact repeats only, and it undercounts. On one real project, the most
repeated exact request appeared 4 times. Grouped by intent, however it was worded, the top
ask had been typed 127 times. That grouping is the agent's job in /faq-shortcuts.
| You kept typing | You type now |
|---|---|
| "how many people signed up this week, not counting test accounts?" | /signups |
| "did the newsletter actually go out? did it reach everyone?" | /sent |
| "any update on the billing migration? what's blocked?" | /project billing |
| "add this CSV of new customers, skip the ones we already have" | /import new.csv |
Each shortcut is a small file in your project, .claude/skills/<name>/SKILL.md, for example:
---
name: sent
description: Check whether a batch email actually reached people. Use for "did the
newsletter go out?", "did it reach everyone?", "did X get the email?".
---
# Did it go out
Report only. Never re-send from this shortcut.
## Query
scripts/email-status.js --batch <name> ← the script your project already has
## Traps
- A "delivered" status to a shared inbox proves nobody read it (happened 3 May).
## Report
Sent / delivered / bounced counts, then the bounced addresses. Then ask.
The shortcuts point at the scripts and queries your project already uses, and they
record the mistakes already made on that path. /sent checks the send record, not the
earlier message where the agent said it sent it. So a shortcut is shorter to type, and it
verifies the outcome instead of trusting a previous claim. Anything that writes or sends
does a dry run first and waits for your yes, so a typo stops at the preview.
scripts/extract_asks.py prints every prompt you typed in the project,
from Claude Code and Codex history. It skips subagent turns and scripted runs, because
you didn't type those.SKILL.md in .claude/skills/, linked into
.agents/skills/ so all three agents load it, committed so your team gets it too.CLAUDE.md / AGENTS.md maps each shortcut to the sentence it replaces.The quick start above is the whole install. It puts the skill where each agent looks:
| Agent | Reads skills from |
|---|---|
| Codex | ~/.agents/skills/ |
| Claude Code | ~/.claude/skills/ (the link) |
| Cursor | both |
Update: git -C ~/.agents/skills/faq-shortcuts pull --ff-only, then start a new agent session.
Uninstall: rm ~/.claude/skills/faq-shortcuts && rm -rf ~/.agents/skills/faq-shortcuts
If you only use Claude Code, you can install it as a plugin instead, inside Claude Code:
/plugin marketplace add kishormorol/cli-faq-shortcuts
/plugin install faq-shortcuts@cli-faq-shortcuts
The command is then /faq-shortcuts:faq-shortcuts, or just ask "what do I keep asking
in this project?". Codex and Cursor don't read Claude Code plugins, so use the quick
start for those.
In PowerShell, with git and Python 3.9+ installed. A directory junction links the skill
into ~/.claude/skills and, unlike a symlink, needs no admin rights or Developer Mode:
git clone https://github.com/kishormorol/cli-faq-shortcuts "$env:USERPROFILE\.agents\skills\faq-shortcuts"
New-Item -ItemType Directory -Force "$env:USERPROFILE\.claude\skills" | Out-Null
New-Item -ItemType Junction -Path "$env:USERPROFILE\.claude\skills\faq-shortcuts" -Target "$env:USERPROFILE\.agents\skills\faq-shortcuts"
Run the extractor with python (or py), not python3:
python "$env:USERPROFILE\.agents\skills\faq-shortcuts\scripts\extract_asks.py" . | Select-Object -First 10
Update: git -C "$env:USERPROFILE\.agents\skills\faq-shortcuts" pull --ff-only, then start a new agent session.
Uninstall: remove the junction with rmdir, which leaves its target alone, then the clone:
cmd /c rmdir "$env:USERPROFILE\.claude\skills\faq-shortcuts"
Remove-Item -Recurse -Force "$env:USERPROFILE\.agents\skills\faq-shortcuts"
| Agent | History | Read? |
|---|---|---|
| Claude Code | ~/.claude/projects/<project>/*.jsonl (the last 30 days) and ~/.claude/history.jsonl (older prompts) |
yes |
| Codex | ~/.codex/sessions/ (or $CODEX_HOME), matched by the folder each session ran in |
yes |
| Cursor | Cursor/User/globalStorage/state.vscdb under ~/Library/Application Support (macOS), %APPDATA% (Windows) or ~/.config (Linux), matched by the folder each chat ran in |
yes, except chats opened without a folder |
To see what it finds without the agent:
python3 ~/.agents/skills/faq-shortcuts/scripts/extract_asks.py ~/my-project | head
This prints date<TAB>source<TAB>prompt. Add --source claude, --source codex, or --source cursor
to read one tool only, and --since 2026-01-01 to skip older prompts.
python scripts/extract_asks.py [project_dir] [--source all|claude|codex|cursor]
[--since YYYY-MM-DD] [--max-len N] [--format tsv|jsonl]
| Option | Default | Behavior |
|---|---|---|
project_dir |
Current directory | Match the exact project folder recorded in history. |
--source |
all |
Read one supported tool or all three. |
--since |
No cutoff | Include the given UTC date and later; exclude prompts with unknown dates. |
--max-len |
400 |
Skip prompts longer than this positive character limit, before whitespace cleanup. |
--format |
tsv |
Emit tab-separated lines or one JSON object per line. |
JSONL records have date, source, and prompt fields. Both formats collapse prompt
whitespace to single spaces. Dates are YYYY-MM-DD, or an empty string when unavailable;
undated records sort first. Counts and diagnostics go to stderr, keeping stdout usable
in a pipeline. Exit codes: 0 when a source is available (even if filters match nothing),
1 when no source is available, and 2 for invalid arguments.
--max-len if your usual requests are longer.