[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6EFY2SPJ4WSK6CJ0ZP4FH78":3,"skill-same:01M6EFY2SPJ4WSK6CJ0ZP4FH78":45},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":25,"repositoryHtmlUrl":26,"repositoryHomepageUrl":27,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M6EFY2SPJ4WSK6CJ0ZP4FH78","promptfoo",null,"ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FTerminalSkills\u002Fskills\u002Fpromptfoo\u002FSKILL.md",[],[5],"2026-11-10 10:12:30",false,"# Promptfoo\n\n## Overview\n\nPromptfoo is an open-source framework for testing LLM prompts — define test cases, run them against one or more models, and assert on outputs. Think \"unit tests for prompts.\" Compare models side-by-side, catch regressions when you change a prompt, and run red-team attacks to find vulnerabilities. Web UI for viewing results, CLI for CI integration.\n\n## When to Use\n\n- Changing a prompt and want to make sure it doesn't break existing behavior\n- Comparing model performance (GPT-4o vs Claude vs Gemini on your use case)\n- Red-teaming an LLM application for prompt injection and harmful outputs\n- Building a prompt evaluation suite for CI\u002FCD\n- Systematic prompt engineering (not vibes-based)\n\n## Instructions\n\n### Setup\n\n```bash\nnpm install -g promptfoo\n# Or: npx promptfoo@latest\n```\n\n### Basic Evaluation\n\n```yaml\n# promptfooconfig.yaml — Eval configuration\nprompts:\n  - |\n    You are a customer support agent for a SaaS product.\n    Answer the following customer question concisely and helpfully.\n\n    Question: {{question}}\n\nproviders:\n  - openai:gpt-4o\n  - anthropic:messages:claude-sonnet-4-20250514\n\ntests:\n  - vars:\n      question: \"How do I reset my password?\"\n    assert:\n      - type: contains\n        value: \"password\"\n      - type: llm-rubric\n        value: \"Response should include step-by-step instructions\"\n      - type: similar\n        value: \"Go to Settings > Security > Reset Password\"\n        threshold: 0.7\n\n  - vars:\n      question: \"Can I get a refund?\"\n    assert:\n      - type: contains-any\n        value: [\"refund\", \"return\", \"money back\"]\n      - type: llm-rubric\n        value: \"Response should mention the refund policy and timeline\"\n      - type: not-contains\n        value: \"I don't know\"\n\n  - vars:\n      question: \"Your product sucks and I hate it\"\n    assert:\n      - type: llm-rubric\n        value: \"Response should be professional and empathetic, not defensive\"\n      - type: not-contains-any\n        value: [\"sorry you feel that way\", \"I understand your frustration but\"]\n```\n\n```bash\n# Run evaluation\npromptfoo eval\n\n# View results in web UI\npromptfoo view\n```\n\n### Assertion Types\n\n```yaml\ntests:\n  - vars: { input: \"Translate 'hello' to French\" }\n    assert:\n      # Exact\u002Fpartial match\n      - type: equals\n        value: \"Bonjour\"\n      - type: contains\n        value: \"bonjour\"\n      - type: icontains           # Case-insensitive\n        value: \"bonjour\"\n\n      # Regex\n      - type: regex\n        value: \"\\\\b[Bb]onjour\\\\b\"\n\n      # LLM-as-judge\n      - type: llm-rubric\n        value: \"Translation is accurate and natural-sounding\"\n\n      # Semantic similarity\n      - type: similar\n        value: \"Hello in French is Bonjour\"\n        threshold: 0.8\n\n      # JSON validation\n      - type: is-json\n      - type: javascript\n        value: \"output.length \u003C 500\"\n\n      # Safety\n      - type: not-contains\n        value: \"I cannot\"\n      - type: llm-rubric\n        value: \"Response does not contain harmful content\"\n\n      # Latency and cost\n      - type: latency\n        threshold: 3000           # Max 3 seconds\n      - type: cost\n        threshold: 0.01           # Max $0.01 per call\n```\n\n### Model Comparison\n\n```yaml\n# compare.yaml — Side-by-side model comparison\nprompts:\n  - \"Summarize this article in 3 bullet points:\\n\\n{{article}}\"\n\nproviders:\n  - openai:gpt-4o\n  - openai:gpt-4o-mini\n  - anthropic:messages:claude-sonnet-4-20250514\n  - anthropic:messages:claude-haiku-4-20250514\n\ntests:\n  - vars:\n      article: \"{{file:\u002F\u002Ftest-articles\u002Fai-regulation.txt}}\"\n    assert:\n      - type: llm-rubric\n        value: \"Summary captures the 3 most important points\"\n      - type: javascript\n        value: \"output.split('\\\\n').filter(l => l.startsWith('•')).length === 3\"\n      - type: latency\n        threshold: 5000\n```\n\n### Red-Teaming\n\n```bash\n# Auto-generate adversarial test cases\npromptfoo redteam init\npromptfoo redteam run\n\n# Tests for: prompt injection, jailbreaks, PII leakage,\n# harmful content, bias, and more\n```\n\n### CI Integration\n\n```yaml\n# .github\u002Fworkflows\u002Fprompt-eval.yml\nname: Prompt Evaluation\non:\n  pull_request:\n    paths: [\"prompts\u002F**\", \"promptfooconfig.yaml\"]\n\njobs:\n  eval:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\u002Fcheckout@v4\n      - run: npx promptfoo@latest eval --ci\n        env:\n          OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}\n      - run: npx promptfoo@latest eval --output results.json\n      - uses: actions\u002Fupload-artifact@v4\n        with:\n          name: eval-results\n          path: results.json\n```\n\n## Examples\n\n### Example 1: Test a customer support chatbot\n\n**User prompt:** \"Create an eval suite for our support chatbot — test common questions, edge cases, and angry customers.\"\n\nThe agent will create test cases across categories (FAQ, billing, technical, hostile), with LLM-rubric assertions for quality and safety checks.\n\n### Example 2: Choose the best model for my use case\n\n**User prompt:** \"I need to pick between GPT-4o, Claude Sonnet, and Gemini Flash for code review. Help me decide.\"\n\nThe agent will set up a comparison eval with code review prompts, assertions for accuracy and helpfulness, and cost\u002Flatency thresholds.\n\n## Guidelines\n\n- **`llm-rubric` is the most flexible assertion** — uses an LLM to judge quality\n- **`similar` for semantic matching** — doesn't require exact text match\n- **`vars` for test data** — parameterize prompts with different inputs\n- **File-based test data** — `{{file:\u002F\u002Fpath}}` for long test inputs\n- **Red-team before production** — `promptfoo redteam` finds injection vulnerabilities\n- **CI integration catches regressions** — run on every prompt change\n- **Web UI for analysis** — `promptfoo view` shows results side-by-side\n- **Cost assertions** — prevent expensive prompts from slipping into production\n- **Multiple providers = comparison** — run same tests across models\n- **Start with 10-20 test cases** — cover happy path, edge cases, and adversarial inputs\n",{},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002FTerminalSkills\u002Fskills\u002Fpromptfoo",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":7,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill promptfoo",{"tool":37,"command":38},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill promptfoo",{"tool":40,"command":41},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill promptfoo","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FTerminalSkills\u002Fskills\u002Fpromptfoo\u002FSKILL.md",true,[],[46,55,64,73,79,85],{"skillNo":47,"name":48,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":49,"categories":50,"keywords":51,"publishedAt":18},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[52,53,54],"model","model hierarchy","model hierarchy skill",{"skillNo":56,"name":57,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":18},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[61,62,63],"MCP","zoom","zoom mcp",{"skillNo":65,"name":66,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":18},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[70,71,72,62],"sdk","zoom apps sdk","apps",{"skillNo":74,"name":75,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":18},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[75],{"skillNo":80,"name":81,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":18},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[81],{"skillNo":86,"name":87,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":18},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[87]]