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
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.
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.
About
Use cases: security, finance, agent-building
Reviews
Write a reviewNo 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 promptFrom ShaileshRawat1403/dax, MIT.
More from ShaileshRawat1403/dax
- 0.619score
mcp-server
ShaileshRawat1403
Create high-quality MCP (Model Context Protocol) servers that extend DAX's tool capabilities.
SkillAFreshness: A★ 5Claude Code +9 - 0.619score
skill-builder
ShaileshRawat1403
Create and improve DAX skills.
SkillAFreshness: A★ 5Claude Code +9 - 0.616score
agentic-loop-audit
ShaileshRawat1403
Audit an agent's main loop for halting conditions, mutation budgets, loop breakers, sensitive-path guards, error recovery, and replayability.
SkillAFreshness: A★ 5Claude Code +9 - 0.616score
artifact-audit
ShaileshRawat1403
Inspect release artifacts, generated outputs, screenshots, and manifests for completeness, consistency, and operator value.
SkillAFreshness: A★ 5Claude Code +9 - 0.616score
ci-cd-audit
ShaileshRawat1403
Audit CI/CD workflows for correctness, caching, action pinning, secret hygiene, and job-graph health.
SkillAFreshness: A★ 5Claude Code +9 - 0.616score
db-migration-review
ShaileshRawat1403
Review a database schema migration for production safety: lock contention, backfill strategy, online vs offline, rollback path, foreign-key timing…
SkillAFreshness: A★ 5Claude Code +9 - 0.616score
deploy-readiness
ShaileshRawat1403
Production readiness audit for a service: health checks, rollback strategy, runbook presence, observability wiring, capacity, dependencies.
SkillAFreshness: A★ 5Claude Code +9 - 0.616score
eval-suite-audit
ShaileshRawat1403
Audit an AI eval suite for coverage, leakage between datasets, deterministic vs stochastic measurement, ladder correctness, and signal quality.
SkillAFreshness: A★ 5Claude Code +9 - 0.616score
gh-actions-security
ShaileshRawat1403
Security-focused review of GitHub Actions workflows: pull_request_target misuse, expression injection, privileged token misuse, supply-chain exposure.
SkillAFreshness: A★ 5Claude Code +9 - 0.616score
observability-audit
ShaileshRawat1403
Audit observability for a service or system: structured logging, metrics for golden signals, distributed tracing, dashboard quality, alert noise, SLO…
SkillAFreshness: A★ 5Claude Code +9 - 0.616score
release-pipeline-audit
ShaileshRawat1403
Audit the tag-triggered release pipeline for reproducibility, provenance, signing, supply-chain integrity, and rollback.
SkillAFreshness: A★ 5Claude Code +9 - 0.616score
release-readiness
ShaileshRawat1403
Check whether a DAX release is coherent, verifiable, and safe to ship across package, docs, diagnostics, and release artifacts.
SkillAFreshness: A★ 5Claude Code +9
Signals
- Stars
- 5
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- May 16, 2026 (5 months ago)
- Last release
- Oct 8, 2026 (22 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/ShaileshRawat1403/dax
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from ShaileshRawat1403
- 0.619score
skill-builder
ShaileshRawat1403
Create and improve DAX skills.
SkillAFreshness: A★ 5Claude Code +9 - 0.619score
mcp-server
ShaileshRawat1403
Create high-quality MCP (Model Context Protocol) servers that extend DAX's tool capabilities.
SkillAFreshness: A★ 5Claude Code +9 - 0.616score
agentic-loop-audit
ShaileshRawat1403
Audit an agent's main loop for halting conditions, mutation budgets, loop breakers, sensitive-path guards, error recovery, and replayability.
SkillAFreshness: A★ 5Claude Code +9 - 0.616score
ci-cd-audit
ShaileshRawat1403
Audit CI/CD workflows for correctness, caching, action pinning, secret hygiene, and job-graph health.
SkillAFreshness: A★ 5Claude Code +9 - 0.616score
db-migration-review
ShaileshRawat1403
Review a database schema migration for production safety: lock contention, backfill strategy, online vs offline, rollback path, foreign-key timing…
SkillAFreshness: A★ 5Claude Code +9 - 0.616score
artifact-audit
ShaileshRawat1403
Inspect release artifacts, generated outputs, screenshots, and manifests for completeness, consistency, and operator value.
SkillAFreshness: A★ 5Claude Code +9
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.
Cite this page
prompt-audit skill. Agent Mart. https://agentmart.dev/skills/shaileshrawat1403-prompt-audit (last updated 2026-10-24)