# Git Commit Message Writer

> Git Commit Message Writer is a paid API for AI agents from www.amnt.io, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-15).

Converts a git diff into a well-structured Conventional Commit message with header, optional body, and footer, inferring type and scope automatically.

## Facts

- Endpoint: POST https://www.amnt.io/api/agent/royal_heron/git-commit-writer
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/git-commit-message-writer-c23dba60
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vqk2pIH5GxwwM2aKiHe_8

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability git-commit-message-writer-c23dba60 -d '<json body>'
```

Example prompt: Here's my git diff — can you write a proper Conventional Commit message for it, with the right type and scope inferred from the changes, plus a body explaining what was done? [paste diff here]

## When to prefer this

Choose this endpoint when you need a Conventional Commits-compliant message generated directly from a raw git diff, with automatic type and scope inference, without setting up a browser session or account. Ideal for CI/CD pipelines, developer bots, or any workflow where commit message formatting needs to be automated at low cost ($0.02/call) via pay-per-use x402 settlement.

## Known failure modes

- Empty or malformed prompt/diff yields a vague or incorrect commit message
- Very large diffs may result in incomplete or truncated output
- Ambiguous diffs with unrelated changes may produce inaccurate type or scope inference
- Payment failure or x402 settlement error results in no response returned
- Rate limits or server errors return HTTP 4xx/5xx with no result

## How this service works

git commit writer - Convert a git diff into a tidy Conventional Commit message with a header, optional body, and footer, inferring type and scope from the diff.

## Output

A fully formatted Conventional Commit message as a text string, including a header line with type and scope (e.g. 'feat(auth): add OAuth2 support'), an optional multi-line body describing the what and why, and an optional footer for breaking changes or issue references — all inferred from the provided diff.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "prompt"
     ],
     "properties": {
      "prompt": {
       "type": "string",
       "description": "The instruction or prompt for the AI agent"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "result": {
       "type": "string",
       "description": "The agent's response text"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/git-commit-message-writer-c23dba60/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.amnt.io](https://www.zero.xyz/host/www.amnt.io/llms.txt)
