adilmunawar/zd-claude-plugin/api-contract

Claude Code and agent skill by adilmunawar/zd-claude-plugin

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Envelope and DTO contract between the Expo app and the .NET farmer API: success from body, verbatim field names, refresh, error mapping, parity checks.

Install

npx vskill@latest install adilmunawar/zd-claude-plugin/api-contract

SKILL.md

The same SKILL.md was published earlier as adilmunawar/zd-claude-plugin/api-contract.

Envelope: { status, code, success, message, data }. Success is read from success in the body, not the HTTP status. Session responses also carry accessToken/refreshToken at top level.

  • unwrap() throws ApiError(status, message) when success is false; screens never parse envelopes themselves.
  • Field names mirror the server verbatim, including inconsistencies (fullNamePerCNIC, accountNumberIBAN, sugarcaneArea); renaming on the client is how contracts drift.
  • Base URL must include the API version path segment; the bare path on the same host serves a legacy HTML login page and must be treated as "server unreachable".
  • Refresh: on 401 with a refresh token, refresh once and retry; on failure clear tokens and sign out.
  • Contract check: /zd-dotnet:contract-check <mobile-repo> <api-repo> diffs endpoints.ts types against the .NET DTOs both ways; the server's MobileCompatibilityTests pin them. When the .NET repo is not available, diff the TS types against the server's OpenAPI JSON.
  • Uploads: multipart with field names the server expects; document size and type limits in the client.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/adilmunawar/zd-claude-plugin/api-contract/badge)](https://verified-skill.com/skills/adilmunawar/zd-claude-plugin/api-contract)

Something wrong with this skill or its page? Tell us.