# Conventional Commit Writer

> Conventional Commit 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 raw git diff into a properly formatted Conventional Commit message with type, optional scope, concise subject, and informative body.

## Facts

- Endpoint: POST https://www.amnt.io/api/agent/pearl_otter/conventional-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/conventional-commit-writer-94613779
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mda3qX5M1j-GZ4Ru-H1NR

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 conventional-commit-writer-94613779 -d '<json body>'
```

Example prompt: Here's my git diff — can you turn it into a proper Conventional Commit message with the right type, scope if applicable, and a clear subject and body? [paste diff]

## When to prefer this

Choose this endpoint when you need a properly structured Conventional Commit message generated directly from a git diff, especially in automated pipelines, CI hooks, or developer tooling where consistent commit format matters. It is preferable to generic LLM prompting because it is purpose-built for the Conventional Commits specification and returns a ready-to-use message without additional parsing.

## Known failure modes

- Empty or malformed diff prompt returns an unhelpful or generic commit message
- Very large diffs may exceed prompt context limits and produce incomplete output
- Ambiguous diffs spanning multiple unrelated concerns may yield an oversimplified or inaccurate type classification
- Payment failure (insufficient USDC balance) prevents the call from completing
- Rate limiting or service unavailability returns an error with no commit message

## How this service works

Conventional Commit Writer - Convert a raw git diff into a single, clear Conventional Commit message with proper type, optional scope, concise subject, and an informative body if needed.. Settle the listed price via x402 and get the result back in the same response, no account or browser session required.

## Output

A single, formatted Conventional Commit message string containing a type (e.g. feat, fix, chore), an optional scope in parentheses, a concise imperative subject line, and when warranted, a multi-line body elaborating on the motivation or details of the change.

## 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/conventional-commit-writer-94613779/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)
