{"uid":"cap_LXGFa6zAic7stXsnCduTH","slug":"ai-contribution-policy-generator-for-open-source-projects-fb8a06e6","name":"AI Contribution Policy Generator for Open-Source Projects","description":"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.","url":"https://ai-policy-kit.moneymaker-ai.workers.dev/api/policy?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"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"}}}}},"responseSchema":{"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"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ZlvIL2F-HJ0x0Rs7GR9Yj","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates an AI_POLICY.md file and a pull request template with an AI-disclosure section for open-source repositories","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"AI policy for new open-source library","prompt":"I just created an open-source Python library called 'NeuralKit' and I want to set up an AI contribution policy right away — can you generate an AI_POLICY.md and a PR template with AI disclosure using the strict style?"},{"title":"AI-friendly repo contribution guidelines","prompt":"My open-source project 'FlowGraph' welcomes AI-assisted contributions and I want to reflect that — generate an AI policy and pull request template using the agent-friendly style so contributors know AI code is welcome."},{"title":"Balanced AI disclosure for team project","prompt":"Our team repo 'CloudOps' needs an AI contribution policy that requires disclosure but lets contributors own their AI usage — can you create the policy files using the disclose-and-own style for a project named CloudOps?"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T12:40:09.707Z","isFirstParty":false,"canonicalSlug":"ai-contribution-policy-generator-for-open-source-projects-dac38132"}