ai-system-review
Review LLM application code for context assembly quality, retrieval integration, prompt construction, output validation, cost controls, and failure handling
Skill by manastalukdar
Chalk Labs
Need help deploying ai-system-review?
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/manastalukdar-ai-system-review
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: ml, 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. 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/ai-system-review
What's inside
- Skill name
ai-system-review- Description
- Review LLM application code for context assembly quality, retrieval integration, prompt construction, output validation, cost controls, and failure handling
- License
- MIT
- Instructions
- 141 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# AI System Review
Evaluate LLM-powered application code for reliability, quality, and cost. Covers context assembly, retrieval pipelines (RAG), prompt design, output validation, error handling, and spend controls.
## Usage
```
/ai-system-review # review staged changes
/ai-system-review <path> # review a specific directory or file
/ai-system-review --prompts # focus only on prompt quality
/ai-system-review --costs # focus only on token cost controls
```
## Behavior
### Step 1 — Map the LLM system boundary
```bash
# Find model client calls
grep -rn "openai\|anthropic\|bedrock\|vertexai\|litellm\|langchain\|llamaindex" \
--include="*.ts" --include="*.py" --include="*.js" -l . | head -20
# Find prompt templates
find . -name "*.txt" -o -name "*.md" -o -name "*.jinja" | xargs grep -l "{{.*}}\|\${.*}\|<user>\|<system>" 2>/dev/null | head -10
```
### Step 2 — Review context assembly
Check how context is built before each LLM call:
| Concern | What to look for | Risk |
|---|---|---|
| Context window overflow | No token counting before call | Truncation silently corrupts prompt |
| Injection risk | User input concatenated directly into system prompt | Prompt injection |
| Stale context | No timestamp or recency check on retrieved chunks | Outdated information presented as current |
| Missing metadata | Retrieved chunks lack source / date | Hallucination is unverifiable |
| Token waste | Entire documents passed when only sections needed | Unnecessary cost |
### Step 3 — Review retrieval pipeline (if RAG)
```bash
grep -rn "similarity_search\|retrieve\|vectorstore\|embed\|chromadb\|pinecone\|weaviate\|qdrant" \
--include="*.ts" --include="*.py" -l . 2>/dev/null
```
Check:
- **Chunking strategy**: Fixed-size vs semantic; chunk size vs model context window
- **Retrieval quality signals**: Is `score` / `distance` checked before including chunks?
- **Top-k threshold**: Hard cap on retrieved chunks regardless of relevance score?
- **Re-ranking**: Any cross-encoder re-ranking before context assembly?
- **Hybrid search**: BM25 + dense retrieval or dense-only?
### Step 4 — Review prompt construction
For each prompt template:
- **System prompt scope**: Is it the minimum necessary? Bloated system prompts cost on every call.
- **Few-shot examples**: Are they hardcoded or dynamically selected? Hardcoded examples may be irrelevant.
- **Output format instructions**: Does the prompt specify JSON/structured output? Is it enforced with tool use / response format?
- **Role separation**: System vs user vs assistant boundaries respected?
- **Instruction conflict**: Contradictory instructions in system + user turns?
### Step 5 — Review output validation
```bash
grep -rn "JSON.parse\|json.loads\|parse\|validate\|schema\|zod\|pydantic" \
--include="*.ts" --include="*.py" -l . 2>/dev/null | head -10
```
Check:
- Is LLM output parsed and validated before use?
- Is there a fallback when output is malformed?
- Are numeric/boolean outputs range-checked?
- For agentic workflows: are tool call results validated before passing back to model?
### Step 6 — Review cost controls
```bash
grep -rn "max_tokens\|maxTokens\|stream\|usage\|cost\|budget" \
--include="*.ts" --include="*.py" -l . 2>/dev/null | head -10
```
Check:
- `max_tokens` / `max_completion_tokens` set on every call?
- Streaming used for long outputs (reduces TTFB)?
- Token usage logged per request?
- Monthly spend cap or alert configured?
- Caching for repeated identical prompts (`cache_control`, `prompt_caching`)?
### Step 7 — Review error handling
- What happens when the LLM API returns 429 (rate limit)?
- What happens on 500 or timeout?
- Is there a retry with exponential backoff?
- Does the application surface a graceful degradation to the user?
### Step 8 — Report findings
```
AI SYSTEM REVIEW — <path>
Context Assembly (2 issues)
src/chat/context.py:34 No token counting — long conversations will silently truncate
src/search/rag.py:78 User query concatenated directly into system prompt (injection risk)
Retrieval (1 issue)
src/rag/retriever.py:55 Retrieved chunks used regardless of similarity score — low-relevance
context degrades answer quality
Prompt Quality (2 issues)
prompts/system.txt System prompt is 1,800 tokens — costs $0.002/call at current volume
prompts/extract.txt No structured output format specified — JSON parsing will fail intermittently
Output Validation (1 issue)
src/api/handler.py:92 LLM JSON parsed with json.loads, no schema validation — malformed
output propagates to downstream service
Cost Controls (2 issues)
src/llm/client.py No max_tokens set — runaway responses possibleFrom manastalukdar/ai-devstudio, MIT.
More from manastalukdar/ai-devstudio
- 0.587score
ask-matt
manastalukdar
Router over the skill flows in this repo.
SkillAFreshness: A★ 1Claude Code +9 - 0.547score
agent-debug
manastalukdar
Structured self-debugging for AI agent run failures — loop limits, repeated retries with no progress, context drift, or tool failures.
SkillBFreshness: B★ 1Claude Code +9 - 0.494score
assumption-map
manastalukdar
Map and prioritize the riskiest assumptions behind a feature, product decision, or technical design — surface what would kill it if wrong, then propose the…
SkillCFreshness: C★ 1Claude Code +9 - 0.494score
ai-governance
manastalukdar
Audit an AI/ML system for governance controls — bias risk, explainability, model risk management, data lineage, fairness metrics, and regulatory alignment (EU…
SkillCFreshness: C★ 1Claude Code +9 - 0.494score
browser-testing-with-devtools
manastalukdar
Use Chrome DevTools MCP for live DOM inspection, console error capture, network request analysis, and paint profiling — runtime verification beyond what…
SkillCFreshness: C★ 1Claude Code +9 - 0.494score
agent-evaluate
manastalukdar
Define behavioral contracts, run adversarial tests, and detect regressions for AI agents — invariants, edge cases, statistical analysis, and…
SkillCFreshness: C★ 1Claude Code +9 - 0.491score
api-examples
manastalukdar
Generate API usage examples and tutorials from code analysis
SkillCFreshness: C★ 1Claude Code +9 - 0.491score
architecture-diagram
manastalukdar
Generate architecture diagrams in Mermaid, PlantUML, or diagrams.net formats
SkillCFreshness: C★ 1Claude Code +9 - 0.491score
api-mock
manastalukdar
Generate API mocks and stub servers from OpenAPI specs or code analysis
SkillCFreshness: C★ 1Claude Code +9 - 0.488score
boilerplate
manastalukdar
Generate framework-specific boilerplate code
SkillCFreshness: C★ 1Claude Code +9 - 0.488score
api-docs-generate
manastalukdar
Generate OpenAPI/Swagger documentation from code analysis
SkillCFreshness: C★ 1Claude Code +9 - 0.488score
branch-finish
manastalukdar
Complete branch workflow with squash, rebase, and cleanup
SkillCFreshness: C★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Jul 1, 2026 (4 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/manastalukdar/ai-devstudio
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from manastalukdar
- 0.587score
ask-matt
manastalukdar
Router over the skill flows in this repo.
SkillAFreshness: A★ 1Claude Code +9 - 0.547score
agent-debug
manastalukdar
Structured self-debugging for AI agent run failures — loop limits, repeated retries with no progress, context drift, or tool failures.
SkillBFreshness: B★ 1Claude Code +9 - 0.494score
ai-governance
manastalukdar
Audit an AI/ML system for governance controls — bias risk, explainability, model risk management, data lineage, fairness metrics, and regulatory alignment (EU…
SkillCFreshness: C★ 1Claude Code +9 - 0.494score
agent-evaluate
manastalukdar
Define behavioral contracts, run adversarial tests, and detect regressions for AI agents — invariants, edge cases, statistical analysis, and…
SkillCFreshness: C★ 1Claude Code +9 - 0.494score
browser-testing-with-devtools
manastalukdar
Use Chrome DevTools MCP for live DOM inspection, console error capture, network request analysis, and paint profiling — runtime verification beyond what…
SkillCFreshness: C★ 1Claude Code +9 - 0.494score
assumption-map
manastalukdar
Map and prioritize the riskiest assumptions behind a feature, product decision, or technical design — surface what would kill it if wrong, then propose the…
SkillCFreshness: C★ 1Claude 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 ai-system-review 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
ai-system-review skill. Agent Mart. https://agentmart.dev/skills/manastalukdar-ai-system-review (last updated 2026-10-24)