Credentials. Prompt history can contain names, emails and tokens, and the agent may send prompts to its model provider, so review settings before use.
Who it is forA developer who retypes the same long request to a coding agent every day in one project.
The problemLong repeated requests cost typing time and get worded differently each session, so results vary.
The outcomeYour most repeated asks become named shortcuts in the project, such as /signups or /sent, stored as SKILL.md files your team can share.
What you need first
- git and Python 3.9+ installed (macOS, Linux, or Windows with the PowerShell steps)
- Claude Code, Codex or Cursor installed, with existing prompt history on the machine
- A project folder you have already worked in with one of those agents
Steps
- Run
git clone https://github.com/kishormorol/cli-faq-shortcuts ~/.agents/skills/faq-shortcuts - Run
mkdir -p ~/.claude/skills && ln -sfn ~/.agents/skills/faq-shortcuts ~/.claude/skills/faq-shortcuts - Open your project in Claude Code, Codex or Cursor in a new session.
- Ask "what do I keep asking in this project?" or type
/faq-shortcutsin Claude Code. - Pick the asks you want. They are written as shortcuts in that project.
Prompt for your agent
In the cli-faq-shortcuts repo, install the faq-shortcuts skill as described in its Quick start, then run /faq-shortcuts in the project at <project_path>. Expected output: a table of repeated asks with how often each was typed. Verify that each chosen shortcut has a SKILL.md under .claude/skills/ in that project.
Caveat. The skill only sees history still stored on your machine, and Cursor chats opened without a folder are skipped.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for kishormorol/cli-faq-shortcuts and "Turn repeated agent prompts into slash commands"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer