Api Contract
Provides API guidance and assistance for agent workflows.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add api-contract npx -- -y @trustedskills/api-contract
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"api-contract": {
"command": "npx",
"args": [
"-y",
"@trustedskills/api-contract"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill allows AI agents to understand and interact with API contracts. It can parse contract definitions, extract relevant information about endpoints and parameters, and generate requests based on these specifications. Ultimately, this enables automated interaction with APIs described by standard contract formats.
When to use it
- Automating repetitive tasks that involve interacting with specific APIs (e.g., retrieving data from a weather API).
- Building integrations between different services using well-defined APIs.
- Testing API endpoints and validating responses against expected schema.
- Generating code snippets for common API interactions based on the contract definition.
Key capabilities
- Parses API contracts
- Extracts endpoint information
- Identifies request parameters
- Generates requests based on contract specifications
Example prompts
- "Generate a request to get the current weather in London from this API contract."
- "What are the available endpoints defined in this API contract?"
- "Describe the required parameters for the 'createUser' endpoint as specified in the contract."
Tips & gotchas
The skill requires a valid and well-formed API contract definition to function correctly. Ensure the contract adheres to a supported format for optimal results.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.