Ctx prompt audit

From ActiveMemory/ctx · View interactive version

Ctx prompt audit is an AI agent skill from the GitHub repository ActiveMemory/ctx. Audit prompting patterns. Use periodically to help users improve prompt quality and reduce clarification cycles.

How to use this skill

Skill file

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

  1. Need at least 3 sessions: fewer than that gives too small a

sample; tell the user to try again later

  1. Confirm scope: if the user specifies sessions or a date

range, use that; otherwise default to the 5 most recent

When to Use

When NOT to Use

is already annoyed

asks for feedback

Usage Examples

/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

  1. Extract user prompts: isolate the human turns
  2. Identify vague prompts: flag those that caused clarifying

questions (see criteria below)

  1. Cross-reference patterns: look for repeated habits across

sessions, not one-off mistakes

  1. Generate coaching report: use the output format below
  2. 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:

which file or error

or success criteria

components exist

Important Nuance

Not every short prompt is vague. Consider context:

user set a convention and is being efficient)

not lazy prompting

Output Format

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

improvements, not corrections

examples are concrete, not hypothetical

was vague (extra round-trip, wrong file edited, etc.)

each example

section; people learn better when not purely criticized

same kind is a habit worth addressing

Quality Checklist

Before presenting the report, verify:

specific")

advice

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.