Skip to content
Agentmart
Submit a tool

prompt-audit

Audit prompts and system instructions across a repo for hygiene: hardcoded model assumptions, secret leakage, drift between surfaces, length budget, injection…

Skill by ShaileshRawat1403

IndexedMIT★ 5
Write a review

Chalk Labs

Need help deploying prompt-audit?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/shaileshrawat1403-prompt-audit

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Audit prompts and system instructions across a repo for hygiene: hardcoded model assumptions, secret leakage, drift between surfaces, length budget, injection resistance. Returns impact-ordered findings tables.

Use cases: security, finance, agent-building

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/prompt-audit

What's inside

Skill name
prompt-audit
Description
Audit prompts and system instructions across a repo for hygiene: hardcoded model assumptions, secret leakage, drift between surfaces, length budget, injection resistance. Returns impact-ordered findings tables.
License
MIT
Instructions
84 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Prompt Audit

Use this skill when the task is to review the prompts, system instructions, and template strings an AI application sends to a model. Prompts in a real codebase rot quickly — model assumptions get hardcoded, secrets get pasted in for "just one experiment," and surfaces drift apart silently.

## Use when

- a new model is being adopted and the team wants to know which prompts will break
- a prompt-injection incident or near-miss prompted a review
- prompts have spread across multiple files and no one is sure which is canonical
- the project is moving from in-source prompts to an external prompt store

## Workflow

1. **Locate prompts.** Search for:
   - Files named `prompts/`, `prompt.*`, `system.*`, `instructions.*`, `*.md` in agent-specific dirs
   - Calls to `messages.create`, `chat.completions`, `generateText`, `streamText`, `Anthropic.messages.*`, `OpenAI.chat.*`, provider-specific equivalents
   - Multi-line template literals containing `You are` or `Your task is`
2. **Classify each prompt by role.** System / developer / user / assistant prefill. Note where each lives in the call site.
3. **Model assumptions.**
   - Hardcoded model names (`gpt-4`, `claude-3-opus-20240229`) embedded in prompt text rather than configuration
   - Token-count assumptions ("answer in 200 tokens") that break across families
   - Format expectations (XML tags, JSON shapes) that assume a specific model's training
   - Prompts that mention features only available on one provider (Anthropic system prompts vs OpenAI system messages, etc.)
4. **Secret and PII leakage.**
   - Embedded API keys, tokens, internal URLs in example values
   - Real user data used as few-shot examples
   - Internal employee names or system identifiers that should not leave the company
5. **Drift between surfaces.**
   - Same agent persona defined differently in two places
   - Documentation describing one behavior, prompt implementing another
   - Tool descriptions in the prompt disagreeing with tool schemas
6. **Length and budget.**
   - Prompts that grow without bound (history concatenation, retrieved-context append)
   - Hardcoded length budgets that no longer match the deployed model's context window
   - Prompts longer than 4k tokens that nobody has measured
7. **Injection resistance.**
   - User input concatenated directly into a system prompt
   - Tool output rendered without sanitization (especially for code-execution tools that can return crafted strings)
   - Prompt closures (the model treating later user text as instruction) — flag missing delimiters or instruction-hierarchy patterns
8. **Determinism and reproducibility.**
   - Wall-clock timestamps inside prompts that vary per call
   - Random sample selections without seed
   - Implicit dependence on the order of items in a set / dict
9. **Test coverage.**
   - Prompts have eval coverage (see [eval-suite-audit](../eval-suite-audit/SKILL.md))
   - Regression fixtures exist for the prompts the team has changed in the last quarter

## Checks

- Distinguish "prompt is unsafe" (Critical/High) from "prompt is stylistically inconsistent" (Medium/Low)
- Hardcoded model names in tests and migration scripts are usually fine — flag them only in production paths
- Multi-language prompts (translated prompts) need separate review per language
- For DAX: prompts live in `packages/dax/src/session/prompt.ts` and across provider plugins under `packages/dax/src/plugin/*`

## Output contract

Findings follow [docs/skills/OUTPUT_CONTRACT.md](../../docs/skills/OUTPUT_CONTRACT.md).

Return:

1. **Verdict** — one line + a small table:
   - `Prompts found`, `Surfaces`, `Models referenced`, `Eval coverage?`
2. **Counts** — Critical/High/Medium/Low/Info totals
3. **Findings** — one table per category, ordered by impact:
   - Secret and PII leakage
   - Injection resistance
   - Model assumptions
   - Drift between surfaces
   - Length and budget
   - Determinism
   - Test coverage
4. **Open questions / assumptions** — intended canonical surface, intended model family
5. **Residual risk** — anything that depends on runtime (real user inputs, real retrieved context)
6. **Next actions** — concrete fixes ordered by impact

## Evidence to collect

- File path + line for every prompt site
- The exact prompt text (or its first 200 chars + last 200 chars for long ones)
- The model name and provider at the call site
- The data flow that feeds into the prompt (user input, tool output, retrieval)
- Any eval suite that exercises the prompt

From ShaileshRawat1403/dax, MIT.

More from ShaileshRawat1403/dax

Signals

Stars
5
Forks
0
Open issues
0
Last commit (this folder)
May 16, 2026 (5 months ago)
Last release
Oct 8, 2026 (23 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from ShaileshRawat1403

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get prompt-audit running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying prompt-audit?

CallGet help
Cite this page

prompt-audit skill. Agent Mart. https://agentmart.dev/skills/shaileshrawat1403-prompt-audit (last updated 2026-10-24)