Skip to content

CLI Faq Shortcuts

Turn repeated Claude Code, Codex, and Cursor prompts into reusable slash commands. Local Python history extractor + Agent Skill.

Install: /plugin marketplace add kishormorol/cli-faq-shortcuts

Works with Claude Code, Codex, Cursor · 129 GitHub stars

Install

$/plugin marketplace add kishormorol/cli-faq-shortcuts

Install command taken from the project's README or registry entry. Always review code before running it.

cli-faq-shortcuts

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.

Quick start

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 called faq-shortcuts.

If it saves you typing, please ⭐ star the repo. Stars are how other people find it.

Commands

# 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.

What you get

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.

Similar plugs

Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local…

Why use many token when few token do trick. Viral skill + proxy for coding agents that cuts 65% of tokens by talking like a caveman.

Persistent Context Across Sessions for Every Agent, Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future…

Explore related