# AI Contribution Policy Generator for Open-Source Projects

> AI Contribution Policy Generator for Open-Source Projects is a paid API for AI agents from ai-policy-kit.moneymaker-ai.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-19).

Generates an AI_POLICY.md file and a pull request template with an AI-disclosure section for open-source repositories

## Facts

- Endpoint: GET https://ai-policy-kit.moneymaker-ai.workers.dev/api/policy?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ai-contribution-policy-generator-for-open-source-projects-fb8a06e6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LXGFa6zAic7stXsnCduTH

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 ai-contribution-policy-generator-for-open-source-projects-fb8a06e6
```

Example prompt: Generate an AI contribution policy for my open-source project called 'DataPipeline' using the strict style — I need both an AI_POLICY.md and a pull request template with an AI-disclosure section.

## When to prefer this

Choose this endpoint when you need ready-to-use, structured AI contribution policy files for an open-source GitHub repository and want to avoid writing boilerplate from scratch. It is particularly useful when setting up a new repo, onboarding contributors, or standardizing AI disclosure practices across projects. It offers three policy style presets (strict, disclose-and-own, agent-friendly) making it more targeted than a general-purpose text generator.

## Known failure modes

- Missing required 'method' or 'type' fields returns a validation error
- Invalid 'style' enum value (not one of strict, disclose-and-own, agent-friendly) may return an error or default
- Payment failure via x402 protocol results in a 402 response and no content
- Service unavailability on the Cloudflare Workers edge returns a 5xx error

## How this service works

Generate an AI_POLICY.md and a pull request template with an AI-disclosure section for your open-source repo. Free, runs in your browser.

## Output

Returns a JSON object containing two generated files: an AI_POLICY.md markdown document outlining the project's stance on AI-generated contributions, and a .github/PULL_REQUEST_TEMPLATE.md file with an embedded AI-disclosure section that contributors must fill out when submitting pull requests.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "style": {
       "enum": [
        "strict",
        "disclose-and-own",
        "agent-friendly"
       ],
       "type": "string"
      },
      "project": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "note": "Templates, not legal advice.",
  "files": {
   "AI_POLICY.md": "# AI Contribution Policy (Disclose and Own)\n\nMyProject welcomes contributions made with the help of AI tools, on three conditions.\n\n## 1. Disclose\n[sample truncated; the full policy is returned]",
   ".github/PULL_REQUEST_TEMPLATE.md": "## What does this change?\n\n<!-- One or two sentences, in your own words. Link the issue: Fixes #123 -->\n\n## How was it tested?\n[sample truncated; the full template is returned]"
  },
  "style": "disclose-and-own",
  "project": "MyProject"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ai-contribution-policy-generator-for-open-source-projects-fb8a06e6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from ai-policy-kit.moneymaker-ai.workers.dev](https://www.zero.xyz/host/ai-policy-kit.moneymaker-ai.workers.dev/llms.txt)
