senior-prompt-engineer

Analyze, optimize, and evaluate prompts, RAG pipelines, and agent configurations.

1|Updated May 10, 2026
One-click install
npx skills add https://github.com/Tgoldi/claude-skills --skill senior-prompt-engineer-tgoldi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: senior-prompt-engineer
Source: https://github.com/Tgoldi/claude-skills/tree/main/senior-prompt-engineer
Command: npx skills add https://github.com/Tgoldi/claude-skills --skill senior-prompt-engineer-tgoldi

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve? Prompts often waste tokens, produce inconsistent outputs, or lack clear structure, and RAG or agent systems are hard to validate before deployment. This Skill provides static analysis, evaluation metrics, and design patterns to systematically improve prompt quality and agent reliability. ## Core Features & Use Cases - Prompt Optimization: Analyze prompts for token count, cost estimation, clarity scores, ambiguity, and redundancy, then generate optimized versions with concrete suggestions. - RAG Evaluation: Measure context relevance, retrieval precision, answer faithfulness, and groundedness against evaluation question sets. - Agent Validation & Visualization: Validate agent YAML/JSON configurations, detect potential infinite loops, estimate token costs per run, and render workflows as ASCII or Mermaid diagrams. - Use Case: Before shipping a customer-support agent, run the orchestrator to validate tool configurations and estimate monthly token costs, then use the prompt optimizer to cut redundant instructions and reduce per-query spend. ## Quick Start Ask the assistant to analyze your prompt file for token usage, clarity issues, and optimization suggestions using the prompt optimizer script.

Frequently Asked Questions about senior-prompt-engineer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize a prompt to reduce token costs?

Run the prompt optimizer script with the --analyze flag to get token counts, cost estimates, and detected issues like redundancy and ambiguity. Then use --optimize to generate a condensed version and --compare against the baseline to measure token savings.

How do I evaluate RAG retrieval quality?

Use the RAG evaluator script with your retrieved contexts and question set as JSON files. It reports context relevance, precision@k, answer faithfulness, and groundedness, plus recommendations for chunking and filtering improvements.

What prompt engineering patterns should I use for structured JSON output?

Use the structured output pattern: define a schema with types and constraints, include it in the prompt, and add format enforcement like "Return ONLY valid JSON." The references file documents ten patterns including few-shot, chain-of-thought, and ReAct with selection guidance.

Can I visualize an agent workflow before deploying it?

Yes, the agent orchestrator script parses YAML or JSON agent configs and renders the execution flow as an ASCII diagram or Mermaid flowchart. It also validates tool registrations and flags potential infinite loops.

What are the limitations of the token estimation in this tool?

Token counts are approximations based on character-to-token ratios (about 4 chars per token for GPT-4, 3.5 for Claude), not exact tokenizer output. Use them for relative comparisons and cost ballparks rather than precise billing figures.