Now inviting automation leaders: publish your playbook as a skill, under your own name. Publish yours →
Automation Skills
All skills/Api changelog automation/Tool-configuration
Reference · Api changelog automation

Tool-configuration

Part of Api changelog automation. Install the skill and your agent reads this page when it needs the depth.

Tool configuration per paradigm

Contents:

Names, flags and defaults are the tools' own; verify them against the pinned version. An archived tool is never a new choice.

Severity map and level file

Keep the human table and the machine file apart. The table cites the policy line each row enforces, so a reviewer can tell an intended deviation from a forgotten default.

severity-map.md:

| Check id                          | Level | Policy line                                         | Status      |
| --------------------------------- | ----- | --------------------------------------------------- | ----------- |
| api-security-scope-removed        | err   | 1.9 - widening auth changes are announced too       | signed      |
| api-major-version-not-bumped      | err   | 3.1 - semver info.version; breaking needs a major   | signed      |
| response-property-enum-value-added| info  | 2.3 - every response enum is open                   | provisional |

api-security-scope-removed widens access, so no conforming client breaks; pinning it to err is a policy choice to announce every auth change, not a correction of the tool.

oasdiff-levels.txt holds only <check-id> <level> lines (oasdiff rejects comments and extra columns, exit code 106). The CI workflow below extracts it from the table on every run, so the two files cannot drift. For tools without a level file, keep the same table beside their rule configuration.

OpenAPI: oasdiff

OpenAPI: OpenAPITools openapi-diff

GraphQL: graphql-inspector and registry checks

Protobuf: buf breaking

AsyncAPI

Fingerprints for tools that emit none

graphql-inspector, buf and @asyncapi/diff output carries no stable change id. Map each finding to the scripts' fields before building entries:

Keep the mapping in the repo so fingerprints stay stable across runs.

CI workflow

GitHub Actions shape for the PR gate (other CI systems: same steps):

name: api-contract
on:
  pull_request:
    paths: ["api/**"]
jobs:
  breaking:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with:
          fetch-depth: 0            # git-revision baselines need history
      - name: Install pinned oasdiff
        run: go install github.com/oasdiff/oasdiff@${OASDIFF_VERSION}
        env:
          OASDIFF_VERSION: v1.34.1  # pinned; bump deliberately and review rule changes
      - name: Regenerate level and ignore files from the reviewed sources
        run: |
          awk -F'|' '$2 ~ /^ *[a-z0-9-]+ *$/ && $3 ~ /^ *(err|warn|info|none) *$/ {gsub(/ /,"",$2); gsub(/ /,"",$3); print $2, $3}' api/severity-map.md > api/oasdiff-levels.txt
          python3 tools/build-entries.py --acks api/acks.json --ignore-out api/oasdiff-err-ignore.txt
      - name: Gate
        run: |
          base="$(git merge-base origin/${{ github.base_ref }} HEAD)"
          oasdiff breaking "$base:api/openapi.yaml" api/openapi.yaml \
            --severity-levels api/oasdiff-levels.txt \
            --err-ignore api/oasdiff-err-ignore.txt \
            --fail-on ERR -f githubactions

Commit api/acks.json as [] and an empty api/oasdiff-err-ignore.txt at setup: oasdiff exits 121 when an ignore file passed to it does not exist. Copy the skill's scripts into the repository (here tools/) so CI runs a reviewed, pinned copy.

The release job runs oasdiff changelog <last-release-tag>:api/openapi.yaml api/openapi.yaml -f json, then build-entries.py and check-entry-trace.py, and publishes only on a passing trace check.

Drift alarm

Publish your skill

Copy this prompt into Claude Code, Codex or any agent. It walks you through your first skill in about 20 minutes, with you as the author.

Click to copy.