promptfoo-provider-setup
Skill by promptfoo
Promptfoo Provider Setup connects Promptfoo to a model, live HTTP API, or local Python or JavaScript provider. It covers request and auth mapping, response parsing, OpenAPI setup, and connection smoke tests, for developers wiring a target into Promptfoo.
Install promptfoo-provider-setup
Built from the published package, never by AI.
git clone --depth 1 https://github.com/promptfoo/promptfoo /tmp/promptfoo && mkdir -p ~/.claude/skills && cp -r /tmp/promptfoo/plugins/promptfoo/skills/promptfoo-provider-setup ~/.claude/skills/promptfoo-provider-setupRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install promptfoo-provider-setup in Claude Code
git clone --depth 1 https://github.com/promptfoo/promptfoo /tmp/promptfoo && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/promptfoo/plugins/promptfoo/skills/promptfoo-provider-setup ~/.gemini/antigravity-cli/skills/promptfoo-provider-setupAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install promptfoo-provider-setup in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
Promptfoo Provider Setup is a skill for connecting Promptfoo to the system under test. It inspects existing configs, route handlers, OpenAPI specs, tests, or API clients, and records the method, path, headers, auth source, response shape, and session behavior. It favors the smallest reliable provider: an HTTP provider using id https, a file-based JavaScript or Python wrapper for app code, or a native model provider for direct model calls.
After configuring, the skill validates the config and runs one or two smoke tests with npx promptfoo. It checks that auth failures and malformed responses are reported as errors, not empty successes. A bundled script drafts a config for one OpenAPI operation. The skill is aimed at developers who need to connect a live target to Promptfoo. Broader eval coverage and attack selection are referred to other Promptfoo skills.
Written from the project's SKILL.md and checked against it.
What it can do
- Contract discoveryRecords method, path, headers, auth source, response shape, and session behavior from existing code and specs.
- OpenAPI operation draftingDrafts a provider config for one OpenAPI operation with a bundled script, then reviewed by the user.
- HTTP provider configurationMaps query fields, encodes path components, and extracts answers with transformResponse using id https.
- Wrapper providersWraps JavaScript or Python app code through file:// providers for signing, streaming, or multi-step calls.
- Identity boundary handlingKeeps token-derived user or role fixed in session config rather than in attacker-controlled variables.
- Session handlingSets stateful false for stateless HTTP targets or maps sessionId, and checks that sessions stay isolated.
- Config validation and smoke testsRuns promptfoo validate config and a small eval to confirm the request and response transform work.
- Target connectivity diagnosticsRuns promptfoo validate target for connectivity and session checks when appropriate.
What you need
- Node.js, for npx promptfoo and the OpenAPI helper script
- Python, if using a Python provider
- Access to the target API and its credentials, supplied as environment variables
Try asking
- Connect Promptfoo to my REST API using its OpenAPI spec
- Write a smoke test for my HTTP provider's response transform
- Wrap my Python chatbot function as a Promptfoo provider
Good to know
- validate target can send config and responses to Promptfoo's remote validation helper
- --no-share on an eval does not disable remote validation or model or grader calls
- Smoke tests are not broader eval or security coverage
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: plugins/promptfoo/skills/promptfoo-provider-setup/SKILL.md, plugins/promptfoo/skills/promptfoo-provider-setup/scripts/openapi-helpers.mjs, plugins/promptfoo/skills/promptfoo-provider-setup/scripts/openapi-operation-to-config.mjs, plugins/promptfoo/skills/promptfoo-provider-setup/scripts/response-contract.mjs, plugins/promptfoo/skills/promptfoo-provider-setup/scripts/vendor/js-yaml.mjs. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md5 KB -
agents/openai.yaml303 B -
references/provider-patterns.md9 KB -
scripts/openapi-helpers.mjs26 KB -
scripts/openapi-operation-to-config.mjs7 KB
Show all 8 files
-
scripts/response-contract.mjs3 KB -
scripts/vendor/LICENSE1 KB -
scripts/vendor/js-yaml.mjs75 KB
Alternatives to promptfoo-provider-setup
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
promptfoo-provider-setup: common questions
Does it check that the response is parsed correctly?
Yes. The source says a successful status code alone does not prove the response transform or authorization works, so it recommends tests that exercise the real request and response transform.
Can it work with stateless HTTP APIs?
Yes. Set stateful to false for stateless HTTP targets. Otherwise map {{sessionId}} or configure sessionParser, and verify that independent sessions stay isolated.
Will validation send my data anywhere?
The validate target command can send config and responses to Promptfoo's remote validation helper. The source says to use only data approved for the configured destinations.
How do I install promptfoo-provider-setup?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is promptfoo-provider-setup free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is promptfoo-provider-setup safe to use?
It scores 91 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to promptfoo-provider-setup?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
