prompt-focus
БесплатноЗапускает вложенные скриптыНе проверенShows where your attention went from your own Claude Code and Codex prompts over 20 weeks, as a local counts-only report. Use when asking where your focus goes.
от yonatangross★ 312 звёзд на GitHubОб этом скилле
prompt-focus
Where did your attention go, and what do you keep telling your agents again and again? This skill answers from your own input history, on your machine.
Quick Reference
| Command | What it does | Output |
|---|---|---|
scan |
read history, attribute, aggregate | agg.json (counts only) |
report |
scan, then build the page | report.html |
daily [YYYY-MM-DD] [--force] |
append one finished day (yesterday by default), once; today needs --force and is written as a partial row that a later run replaces |
daily.jsonl |
demo [path] |
the same page from synthetic data | a shareable demo page |
selftest |
synthetic run with privacy asserts | exit 0 or an assert |
Output dir: $PROMPT_FOCUS_DIR, default ~/.claude/prompt-focus. The exact call shape for Claude Code is in references/claude-code.md.
Quick Start Example
python3 "${CLAUDE_SKILL_DIR}/scripts/prompt_focus.py" report # writes ~/.claude/prompt-focus/report.html
python3 "${CLAUDE_SKILL_DIR}/scripts/prompt_focus.py" demo /tmp/prompt-focus-demo.html # synthetic data, safe to share
Optional ~/.claude/prompt-focus/config.json:
{"areas": {"billing": ["invoice", "stripe"]}, "brief_patterns": ["^\\s*TASK-\\d+:"], "weeks": 20}
Workflow
- Run
report, then openreport.htmlfor the user. - Lead with the verdict line from the page: the top area, prompts per week, and the nudge and words-per-prompt trend.
- Point at the re-typed asks. Each one has its first-4 vs last-4 weeks trend and a proposed default; the page's copy-as-prompt turns the ticked ones into one request.
- If the user runs several agents that paste briefs into the terminal, check 20 random rows before trusting the split, and add their brief markers to
brief_patterns. See references/how-it-works.md.
Key Decisions
- Your words only. A paste counts as one event, not as words; a slash command or shell line counts apart; text matching
brief_patternsis an agent's, not yours. - Counts only.
agg.json,daily.jsonland the page hold numbers and category names. Prompt text is read in memory and never written. - Rolling window. Always the last 20 weeks ending today (
weeksin config). - Areas. Your project folder by default; add
areasregexes inconfig.jsonto group by topic instead.
Common Mistakes
- Sharing your real
report.htmlpublicly: it names your projects. Usedemofor anything public. - Reading the split as exact without a control: brief patterns are text rules, and they miss some agent text.
- Expecting other tools: only Claude Code and Codex input history are read.
Rules
- Read only. Never write to
~/.claude/history.jsonl,~/.claude/paste-cache/or~/.codex/. - Never quote prompt text back in chat beyond the user's own short asks they asked to see.
Установить prompt-focus в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
BashReadВложенные файлы
FAQ
Что делает скилл prompt-focus?
Shows where your attention went from your own Claude Code and Codex prompts over 20 weeks, as a local counts-only report. Use when asking where your focus goes.
Как установить скилл prompt-focus?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл prompt-focus запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic