Receber por email
← Voltar para o catálogo

contract-management

Use when working with API contracts in a multi-service project. Ensures contracts stay in sync with implementations and downstream consumers are updated when APIs change.

9estrelas
Atualizado há 7 meses

Ver no GitHub ↗

Como adicionar

/plugin marketplace add alibrahim/cascade

O comando exato pode variar conforme o repositório. Confira o README no GitHub.

Para o autor da skill

Cole no README do seu repo

Mostra que sua skill está catalogada na Skillteca, gera backlink e tráfego rastreável.

[![Skillteca](https://www.skillteca.com.br/api/badge/contract-management/svg)](https://www.skillteca.com.br/skills/contract-management)

Skills relacionadas

Ver todas de Automação →

Alerta por categoria

Receba novas skills de Automação toda segunda

1 email curto, só com as skills novas de Automação. 4 minutos de leitura, sem spam, cancela com 1 clique.

Você confirma o email no primeiro envio. Sem spam. Cancela com 1 clique.

Ler descrição completa

Contract Management

Overview

API contracts are the source of truth for how services communicate. Every API change must be reflected in the contracts file before downstream work begins.

Core principle: Code follows contracts. Contracts follow code. They must never diverge.

When to Use

  • After modifying any service's API endpoint
  • Before implementing a downstream consumer of a changed API
  • When onboarding to a multi-service project (read contracts first)
  • During code review of cross-service changes

Contract Files

Cascade looks for contracts in this order:

  1. cascade.yaml → contracts: field
  2. contracts/api-contracts.yaml
  3. contracts/dependency-map.md
  4. Any ENGINE_INTERFACES.md or similar architecture docs

Versioning

| Change Type | Version Bump | Example | |------------|-------------|---------| | New field added | Minor (1.2.0 → 1.3.0) | Added phone to User | | New endpoint | Minor | Added /api/v1/users/search | | Field renamed | Major (1.2.0 → 2.0.0) | role → account_type | | Field removed | Major | Removed legacy_id | | Type changed | Major | price: string → price: float | | Bug fix | Patch (1.2.0 → 1.2.1) | Fixed typo in contract |

The Rule

After EVERY service API change:

  1. Update the contract to match the actual code
  2. Bump the version
  3. Commit the contract change
  4. THEN move to downstream services
Compartilhar X LinkedIn