skills/prompting/SKILL.md
Prompt engineering toolkit — craft optimized LLM prompts, manage the research cache, and count tokens. Dispatches to three subcommands. Use when the user wants to craft a prompt, write a prompt, generate a system prompt, create an agent prompt, optimize a prompt, do prompt engineering, manage the prompt cache, prune the cache, refresh cached research, check token count, or measure prompt size.
npx skillsauth add mjmorales/claude-prove promptingInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Single entry point for prompt engineering workflows. Parse the first positional argument as the subcommand; forward remaining arguments.
| Subcommand | Purpose |
|------------|---------|
| craft [goal] [--research] | Generate a new optimized prompt via the llm-prompt-engineer agent |
| cache <list\|add\|prune\|refresh> [args] | Manage the research cache (wraps claude-prove prompting cache CLI) |
| token-count <patterns...> | Estimate token counts (wraps claude-prove prompting token-count CLI) |
Default to craft when the user's intent is "make a prompt" without naming a subcommand. Default to cache list when the user says "cache" with no further args. token-count requires at least one pattern.
Delegate to the llm-prompt-engineer agent to generate an optimized prompt from the user's requirements.
Gather these inputs (ask if missing):
Do NOT delegate until intent and constraints are clear.
references/prompt-engineering-guide.md and any cached research. No WebSearch/WebFetch.--research flag or explicit user request: Agent does live web research and caches results.Pass gathered requirements to llm-prompt-engineer with these directives:
references/prompt-engineering-guide.mdcache/prompting/ in plugin dir), global (~/.claude/cache/prompting/), project (.prove/cache/prompting/)--research: live web, cache results)<!-- Primacy effect: critical constraint placed first -->)Offer to:
--research)If the user provides a file path, write the final prompt there. Otherwise, output directly.
Manage the prompt engineering research cache that supplements the bundled guide. Wraps claude-prove prompting cache CLI for filesystem operations; research (add/refresh) is performed by this skill using WebSearch/WebFetch.
Later tiers override earlier tiers for entries with the same filename.
cache/prompting/ in the plugin directory. Ships with seed entries. Not user-editable.~/.claude/cache/prompting/ — user-managed, shared across projects..prove/cache/prompting/ — project-specific overrides.Each entry is a markdown file named by topic slug (e.g., claude-tool-use.md):
---
topic: Claude tool use prompting
source: Anthropic docs, blog posts
fetched: 2026-03-29
---
<distilled research content>
Parse the first argument after cache. Default to list if none.
Show all entries from all three tiers, grouped by location. Read frontmatter to show topic + fetch date. Mark plugin entries "read-only".
Plugin (read-only):
claude-prompting-2026.md — Claude prompting best practices 2026 (2026-03-29)
Global (~/.claude/cache/prompting/):
few-shot-patterns.md — Few-shot example patterns (2026-03-15)
Project (.prove/cache/prompting/):
gemini-grounding.md — Gemini search grounding (2026-03-28)
Research a topic and save to cache.
AskUserQuestion with header "Cache scope" and options: "Global" / "Project"Remove stale entries from global and project tiers. Plugin tier is read-only.
AskUserQuestion with header "Prune" and multiSelect options listing each entryRe-research an existing entry in place.
add insteadfetched dateEstimate token counts for files via regex-based heuristic tokenizer. Works on any text file.
Run from the user's project root. Invoke the CLI directly:
claude-prove prompting token-count <patterns...> [flags]
Positional arguments are glob patterns or literal file paths. Multiple patterns combinable.
| Flag | Effect |
|------|--------|
| --sort tokens | Sort by token count descending (default) |
| --sort name | Sort alphabetically by path |
| --sort lines | Sort by line count descending |
| --json | Machine-readable JSON output |
| --no-strip | Include YAML frontmatter in count (stripped by default) |
claude-prove prompting token-count '**/*.md'
claude-prove prompting token-count agents/llm-prompt-engineer.md
claude-prove prompting token-count 'agents/**/*.md' 'skills/**/SKILL.md'
claude-prove prompting token-count '**/*.md' --json
--no-strip).--- markers excluded by default — Claude Code doesn't send frontmatter as prompt content.testing
Anchor session context into prove primitives before compaction and rehydrate from them after. Built-in compaction summarizes by recency and drops the claude-prove state an agent needs to reorient; this skill externalizes volatile context into durable anchors (scrum tasks, decisions, run-state, a compact-anchors pointer file) pre-compact, then runs a deterministic reorientation sequence post-compact. Use before a manual /compact, when context is about to auto-compact, or immediately after a compaction. Triggers on "smart compact", "prepare for compaction", "anchor before compact", "context is getting long", "rehydrate", "reorient after compact".
tools
Apply model-driven CONTENT reshaping to stored run artifacts that sit behind the current schema, on explicit operator invocation only. Triggers on "migrate runs", "migrate run artifacts", "run content migration", "reshape run artifacts", "bring runs to current schema". You are the driver: the `run-state migrate-runs` CLI mechanically detects which artifacts are behind and emits a plan naming each one plus its migration-instruction file; you read the instructions and reshape the prose/findings, gated by the operator. The deterministic `schema migrate` handles structural column moves; this skill covers only the content reshaping beyond them. Never run as a background or resident loop — only when the operator asks.
tools
Synthesize the 7-section risk-forward Review Brief from a run's reasoning log. Triggers on "reasoning brief", "review brief", "synthesize the brief", "generate the brief", "brief the run", "brief for review", "story brief". You are the driver: the `acb brief` CLI renders a mechanical preservation-safe backbone and proves preservation; you synthesize the narrative prose (summary + changes), single-pass or multipass over episode chunks, then gate it through Stage-1 (mechanical, blocking) and Stage-2 (prose judge, advisory).
tools
Prune stale cached versions of the prove plugin from Claude Code's plugin cache. Use when superseded versions pile up under plugins/cache and agents read stale skills/references from them, or when reclaiming plugin-cache disk space. Triggers on "clean up cached plugin versions", "prune the plugin cache", "remove old prove versions", "stale plugin cache".