smoke-test-authenticated-api-routes
Create a minimal smoke-test plan for authenticated API routes (happy path, one negative case, and persistence checks).
Best use case
smoke-test-authenticated-api-routes is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Create a minimal smoke-test plan for authenticated API routes (happy path, one negative case, and persistence checks).
Teams using smoke-test-authenticated-api-routes should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/smoke-test-authenticated-api-routes/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How smoke-test-authenticated-api-routes Compares
| Feature / Agent | smoke-test-authenticated-api-routes | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Create a minimal smoke-test plan for authenticated API routes (happy path, one negative case, and persistence checks).
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Smoke Test Authenticated API Routes ## Purpose Provide a repeatable approach to quickly validate that protected API endpoints work end-to-end: authentication, request handling, and persistence side effects. ## When to use Use this skill when you are: - Testing a newly added endpoint - Verifying endpoint behavior after refactors - Debugging auth-related failures (`401`, `403`) - Confirming that POST/PUT/PATCH/DELETE endpoints create or update the right records Avoid using this skill when: - You need a full end-to-end test execution record across many endpoints, or you need to produce evidence for a release gate. - You primarily need a code/implementation review rather than a smoke test plan and quick validation run. ## Inputs - Endpoint(s): method + URL path - Authentication method: - cookie-based session - bearer token - API key - mock/dev bypass (development only) - Required request body/query/params - Expected response shape and status code - Expected persistence side effects (tables/collections/records) ## Outputs - A minimal smoke test plan per endpoint: - valid request - invalid request (one representative) - expected status codes and response shapes - Verification notes for persistence side effects - A short debug report if a test fails (observations + likely causes) ## Core rules - Smoke tests SHOULD prioritize the happy path and core behavior. - Tests MUST NOT use real production credentials. - Any "mock auth" bypass MUST be limited to non-production environments. - Persisted side effects MUST be verified for write endpoints. ## Steps 1. **Locate the endpoint contract** - method + path - request fields (required/optional) - response shape 2. **Prepare authentication** - Obtain a valid session/token for a test user, or use a non-production auth bypass if available. - Record the user/role used for the test. 3. **Run a valid request** - Use an HTTP client (curl, Postman, a test harness, or automated integration test). - Record status code and response body. 4. **Verify side effects (write endpoints)** - Query the database or inspect logs to confirm expected changes. - Verify idempotency expectations if the endpoint is retried. 5. **Run one invalid request** - Example: missing required field, invalid enum, or invalid identifier. - Verify validation status code and error shape. 6. **If the request fails, triage by class** - `401` unauthorized: missing/invalid auth - `403` forbidden: user lacks permission - `404` not found: wrong URL/prefix/route registration - `5xx` server error: unhandled exception or downstream dependency ## Verification - [ ] Status codes match the contract - [ ] Success response contains required fields - [ ] Validation errors return stable error codes and details - [ ] Persistence side effects match expectations - [ ] No secrets or tokens were logged or committed to docs - [ ] At least one valid and one invalid request were tested ## Boundaries - MUST NOT use real production credentials in tests - MUST NOT enable mock auth bypasses in production environments - MUST NOT skip persistence verification for write endpoints - MUST NOT log or commit secrets/tokens to documentation - SHOULD NOT test only happy paths (include at least one negative case) - SHOULD NOT assume auth context without verifying it is attached ## Included assets - Templates: `./templates/` includes a route test matrix and a JSON test spec schema. - Examples: `./examples/` includes curl patterns for cookie and bearer auth (placeholders only).
Related Skills
web-security-testing
Web application security testing workflow for OWASP Top 10 vulnerabilities including injection, XSS, authentication flaws, and access control issues.
web-app-testing
Gemini 2.5 Computer Use for browser automation with VISIBLE local browser. Watch Gemini AI control your browser in real-time. Perfect for web app testing, automation demos, and debugging.
wallaby-testing
Check test status and debug failing tests using Wallaby.js real-time test results. Use after making code changes to verify tests pass, when checking if tests are failing, debugging test errors, analyzing assertions, inspecting runtime values, checking coverage, updating snapshots, or when user mentions Wallaby, tests, coverage, or test status.
unit-testing-test-generate
Generate comprehensive, maintainable unit tests across languages with strong coverage and edge case focus.
treido-testing
Testing specialist for Treido (Playwright + Next.js). Use for writing/debugging E2E tests, deflaking, selectors, auth state, parallel execution, and CI stability.
testing-workflow
Meta-skill that orchestrates comprehensive testing across a project by coordinating testing-patterns, e2e-testing, and testing agents. Use when setting up testing for a new project, improving coverage for an existing project, establishing a testing strategy, or verifying quality before a release.
testing-strategy
Comprehensive guide for implementing AIDB tests following E2E-first philosophy, DebugInterface abstraction, and MCP response health standards
testing-strategies
Testing strategies, patterns, and best practices for production code
testing-services
Writes unit tests for Python service classes using Arrange-Act-Assert pattern with proper mocking at boundaries. Tests behavior, not implementation. Mocks external systems only (API calls, file I/O, databases). Use when writing tests for services or fixing test coverage.
testing-quality
Plans and executes comprehensive testing strategy across frontend, backend, and AI tiers. Activates when writing tests, testing features, setting up test infrastructure, checking coverage, running E2E tests, or performance testing. Does not handle writing production code (backend-developer or frontend-developer), vulnerability/security review (security), or infrastructure deployment (devops).
testing-patterns
Testing patterns using bun:test with in-memory SQLite. Use when writing unit tests, integration tests, or router tests.
testing-obsessive
This skill should be used when the user mentions "write tests", "test coverage", "testing strategy", "unit tests", "integration tests", "e2e tests", "vitest", "jest", discusses testing approaches, asks about test patterns, or works on test files. Addresses testing fundamentals with emphasis on Vitest and Svelte component testing using pragmatic, risk-based approaches.