ctx-prompt-audit
Audit prompting patterns. Use periodically to help users improve prompt quality and reduce clarification cycles.
Best use case
ctx-prompt-audit is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Audit prompting patterns. Use periodically to help users improve prompt quality and reduce clarification cycles.
Teams using ctx-prompt-audit should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/ctx-prompt-audit/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How ctx-prompt-audit Compares
| Feature / Agent | ctx-prompt-audit | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Audit prompting patterns. Use periodically to help users improve prompt quality and reduce clarification cycles.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
Analyze recent session transcripts to identify prompts that led to
unnecessary clarification back-and-forth.
## Before Auditing
1. **Check for session data**: look in the journal directory for
transcripts to analyze
2. **Need at least 3 sessions**: fewer than that gives too small a
sample; tell the user to try again later
3. **Confirm scope**: if the user specifies sessions or a date
range, use that; otherwise default to the 5 most recent
## When to Use
- Periodically to help users improve their prompting
- When the user asks for feedback on their prompting style
- After noticing many clarification cycles in recent sessions
- After a session with unusually high back-and-forth
## When NOT to Use
- Immediately after a user's first session (not enough data)
- When the user is frustrated; coaching lands poorly when someone
is already annoyed
- Unsolicited; only run when the user invokes it or explicitly
asks for feedback
## Usage Examples
```text
/ctx-prompt-audit
/ctx-prompt-audit --sessions 10
/ctx-prompt-audit 2026-01-24
```
## Data Sources
Session transcripts are stored in the journal:
| Source | Format |
|-------------------------|------------------------------------|
| Journal directory | Exported session journals (richer) |
Journal entries contain full turn-by-turn conversation and are
the best source for pattern detection.
## Process
1. **Gather transcripts**: read 3-5 recent sessions from the
journal
2. **Extract user prompts**: isolate the human turns
3. **Identify vague prompts**: flag those that caused clarifying
questions (see criteria below)
4. **Cross-reference patterns**: look for repeated habits across
sessions, not one-off mistakes
5. **Generate coaching report**: use the output format below
6. **Present and discuss**: share the report, ask if the user
wants to dig into any example
## What Makes a Prompt "Vague"
Look for prompts where the agent asked clarifying questions
instead of acting:
- **Missing file context**: "fix the bug" without specifying
which file or error
- **Ambiguous scope**: "optimize it" without what to optimize
or success criteria
- **Undefined targets**: "update the component" when multiple
components exist
- **Missing error details**: "it's not working" without symptoms
- **Vague action words**: "make it better", "clean this up"
## Important Nuance
Not every short prompt is vague. Consider context:
- "fix the bug" after discussing a specific error: **not vague**
- "fix the bug" as the first message: **vague**
- "same:" after a pattern is established: **not vague** (the
user set a convention and is being efficient)
- Shorthand that references shared context is good prompting,
not lazy prompting
## Output Format
```markdown
## Prompt Audit Report
**Sessions analyzed**: 5
**User prompts reviewed**: 47
**Vague prompts found**: 4 (8.5%)
---
### Example 1: Missing File Context
**Your prompt**: "fix the bug"
**What happened**: I had to ask which file and what error.
**Better prompt**: "fix the authentication error in
src/auth/login.ts where JWT validation fails with 401"
---
## Patterns to Watch
Based on your sessions, you tend to:
1. Skip mentioning file paths (3 occurrences)
2. Use "it" without establishing what "it" refers to
(2 occurrences)
## What You Do Well
- You provide error output when debugging (4 of 5 sessions)
- You reference specific files by path in most prompts
## Tips
- Start prompts with the **file path** when discussing
specific code
- Include **error messages** when debugging
- Specify **success criteria** for optimization tasks
```
## Guidelines
- **Constructive, not critical**: frame suggestions as
improvements, not corrections
- **Show actual prompts**: quote from their sessions so
examples are concrete, not hypothetical
- **Explain the consequence**: what happened because the prompt
was vague (extra round-trip, wrong file edited, etc.)
- **Provide rewrites**: show a concrete better alternative for
each example
- **Acknowledge strengths**: include a "What You Do Well"
section; people learn better when not purely criticized
- **Look for patterns**: one vague prompt is noise; three of the
same kind is a habit worth addressing
- **End with actionable tips**: 3-5 specific, memorable tips
## Quality Checklist
Before presenting the report, verify:
- [ ] At least 3 sessions were analyzed (not a tiny sample)
- [ ] Every "vague" example includes the actual quoted prompt
- [ ] Every example has a concrete rewrite (not just "be more
specific")
- [ ] Context was considered (short != vague)
- [ ] Report includes positive observations, not just criticism
- [ ] Tips are specific to this user's patterns, not generic
adviceRelated Skills
ctx-prompt
Apply, list, and manage saved prompt templates from .context/prompts/. Use when the user asks to apply, list, or create a reusable template like code-review or refactor.
ctx-skill-audit
Audit skills against Anthropic prompting best practices. Use when reviewing skill quality, after creating or modifying a skill, before releasing skills, or when a skill produces inconsistent results. Also use when the user says 'audit this skill', 'check skill quality', 'review the skills', or 'are our skills any good?'
_ctx-command-audit
Audit CLI command surface after renames, moves, or deletions. Use after any namespace change to catch stale references.
_ctx-audit
Run a code-level convention audit across the codebase. Use when checking for naming drift, magic strings, dead exports, and doc alignment before a release or after a heavy development session.
_ctx-alignment-audit
Audit alignment between docs and agent instructions. Use when recipes or docs make claims about agent behavior that may not be backed by the playbook or skills.
ctx-verify
Verify before claiming completion. Use before saying work is done, tests pass, or builds succeed.
ctx-skill-creator
Create, improve, test, and deploy skills. Full skill lifecycle from intent to working skill file.
ctx-sanitize-permissions
Audit tool permissions for dangerous or overly broad entries. Use to ensure safe agent configuration.
ctx-recall
Browse session history. Use when referencing past discussions or finding context from previous work.
ctx-journal-normalize
Normalize journal source markdown for clean rendering. Use after journal site shows rendering issues: fence nesting, metadata formatting, broken lists.
ctx-import-plans
Import plan files into project specs directory. Use to convert external plans into project-tracked specs.
ctx-compact
Archive completed tasks and trim context. Use when context files are growing large.