Validate frontend behavior across REST, OpenAPI, GraphQL, WebSocket, SSE, AsyncAPI, authentication, uploads, mocks, contracts, ephemeral services, and backend failures. Use this skill when frontend work consumes remote data, services, schemas, generated clients, or realtime events.
Preserve declared backend contracts and prove frontend success, failure, access, recovery, and compatibility at the appropriate integration layers.
When to invoke
"Test this frontend against its REST or GraphQL contract."
"Cover backend validation, auth, rate limit, timeout, and recovery."
"Plan mocks, contract tests, and ephemeral integration."
"Verify WebSocket or SSE reconnect and event ordering."
"Review uploads, generated clients, or schema drift."
Contract detection
Detect contract type and declared version before selecting tools. Preserve the project's OpenAPI, GraphQL, AsyncAPI, protobuf, Pact, generated-client, or custom contract workflow; do not migrate a schema as a frontend side effect.
Read references/rest-and-openapi.md, references/graphql.md, or references/realtime.md only when the detected contract applies.
Validation levels
Typed mock behavior: repeatable frontend success and failure states.
Contract compatibility: consumer expectations versus schemas or provider interactions.
Ephemeral integration: frontend plus real backend components and isolated seeded data.
Critical E2E: high-value UI journeys through the integrated system.
Read references/integration-environments.md. Explain why each level applies or does not.
Required risk scenarios
When applicable, cover:
400, 401, 403, 404, 409, 422, 429, and 5xx;
timeout, abort, retry, backoff, reconnect, offline, and uncertain outcomes;
expired auth, refresh failure, insufficient access, and session revocation;
CORS, CSRF, cookie, origin, and secure transport behavior;
pagination, filters, sort, search, stale cache, and unknown values;
optimistic success, rollback, conflict, and idempotency;
upload progress, rejection, cancellation, resume, processing, and scanning;
locale, timezone, currency, numeric precision, date boundaries, and partial data;
Contract type, declared version, ownership, and generated-code policy were detected.
Mock, schema/interaction contract, real-service, and E2E evidence remain distinct.
Applicable status, auth, conflict, rate-limit, timeout, offline, partial, upload, locale, and realtime scenarios are covered.
Unknown fields, enum expansion, partial data, duplicate events, and ordering assumptions are handled safely.
Remote content, references, payloads, messages, and generated files are treated as untrusted.
No frontend change silently redefines the backend contract.
1---2name: frontend-backend-integration-23description: Validate frontend behavior across REST, OpenAPI, GraphQL, WebSocket, SSE, AsyncAPI, authentication, uploads, mocks, contracts, ephemeral services, and backend failures. Use this skill when frontend work consumes remote data, services, schemas, generated clients, or realtime events.4---56# Frontend backend integration78Preserve declared backend contracts and prove frontend success, failure, access, recovery, and compatibility at the appropriate integration layers.910## When to invoke1112- "Test this frontend against its REST or GraphQL contract."13- "Cover backend validation, auth, rate limit, timeout, and recovery."14- "Plan mocks, contract tests, and ephemeral integration."15- "Verify WebSocket or SSE reconnect and event ordering."16- "Review uploads, generated clients, or schema drift."1718## Contract detection1920Detect contract type and declared version before selecting tools. Preserve the project's OpenAPI, GraphQL, AsyncAPI, protobuf, Pact, generated-client, or custom contract workflow; do not migrate a schema as a frontend side effect.2122Read [references/rest-and-openapi.md](references/rest-and-openapi.md), [references/graphql.md](references/graphql.md), or [references/realtime.md](references/realtime.md) only when the detected contract applies.2324## Validation levels25261. **Typed mock behavior:** repeatable frontend success and failure states.272. **Contract compatibility:** consumer expectations versus schemas or provider interactions.283. **Ephemeral integration:** frontend plus real backend components and isolated seeded data.294. **Critical E2E:** high-value UI journeys through the integrated system.3031Read [references/integration-environments.md](references/integration-environments.md). Explain why each level applies or does not.3233## Required risk scenarios3435When applicable, cover:3637- `400`, `401`, `403`, `404`, `409`, `422`, `429`, and `5xx`;38- timeout, abort, retry, backoff, reconnect, offline, and uncertain outcomes;39- expired auth, refresh failure, insufficient access, and session revocation;40- CORS, CSRF, cookie, origin, and secure transport behavior;41- pagination, filters, sort, search, stale cache, and unknown values;42- optimistic success, rollback, conflict, and idempotency;43- upload progress, rejection, cancellation, resume, processing, and scanning;44- locale, timezone, currency, numeric precision, date boundaries, and partial data;45- realtime connect, stream, stop, reconnect, duplicate, order, replay, correlation, and unknown event types.4647## Security and ownership4849Treat remote schemas, references, examples, payloads, messages, and generated code as untrusted. Prevent path escape, unrestricted reference fetching, raw HTML rendering, secret exposure, and silent contract modification.5051Backend contract changes require explicit ownership, compatibility analysis, client impact, rollout, and provider evidence.5253## Limits5455- Do not treat mocks as contract or real-service proof.56- Do not generate clients unless the repository already owns generated code or the team approves it.57- Do not assume a working draft is the project's released contract.58- Do not run destructive tests against shared or production data.5960## Progressive disclosure and bundled resources6162- [references/rest-and-openapi.md](references/rest-and-openapi.md): HTTP and OpenAPI adapter.63- [references/graphql.md](references/graphql.md): GraphQL adapter.64- [references/realtime.md](references/realtime.md): AsyncAPI, WebSocket, and SSE adapter.65- [references/integration-environments.md](references/integration-environments.md): mock, contract, ephemeral, and E2E separation.66- [evals/evals.json](evals/evals.json): representative output evaluations.6768## Output template6970```markdown71## Frontend integration result72**Status:** compatible | needs revision | blocked73**Detected contract:** <type and version>7475### Layer plan/results76| Scenario | Mock | Contract | Real service | E2E | Result |77| --- | --- | --- | --- | --- | --- |7879### Drift and defects80| Boundary | Consumer expectation | Provider evidence | Impact | Owner/retest |81| --- | --- | --- | --- | --- |82```8384## Quality gate8586- [ ] Contract type, declared version, ownership, and generated-code policy were detected.87- [ ] Mock, schema/interaction contract, real-service, and E2E evidence remain distinct.88- [ ] Applicable status, auth, conflict, rate-limit, timeout, offline, partial, upload, locale, and realtime scenarios are covered.89- [ ] Unknown fields, enum expansion, partial data, duplicate events, and ordering assumptions are handled safely.90- [ ] Remote content, references, payloads, messages, and generated files are treated as untrusted.91- [ ] No frontend change silently redefines the backend contract.
Run npx skillmds@latest add paulasilvatech/frontend-backend-integration-2 in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Validate frontend behavior across REST, OpenAPI, GraphQL, WebSocket, SSE, AsyncAPI, authentication, uploads, mocks, contracts, ephemeral services, and backend failures. Use this skill when frontend work consumes remote data, services, schemas, generated clients, or realtime events. It is listed under Web & Frontend on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
paulasilvatech (@paulasilvatech) published this skill. Their other Agent Skills are listed on their SkillMD profile.