{"uid":"cap_s92xjW2GTzqCN7wSW0Ybo","slug":"open-source-repo-ai-contribution-policy-checker-5cb81e00","name":"Open-Source Repo AI Contribution Policy Checker","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/repo-ai-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":["repo"],"properties":{"repo":{"type":"string","description":"owner/name or github.com URL (public repos)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"repo":"ghostty-org/ghostty","verdict":"prohibited_or_restricted","evidence":{"prohibits":[{"file":"AI_POLICY.md","line":21,"text":"..."}]},"has_agents_md":true}},"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_DtiH0EP65_kqMDzAusFwr","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":"Checks a public GitHub repository for an existing AI contribution policy (AI_POLICY.md) and returns a verdict on whether AI-generated contributions are permitted, restricted, or prohibited.","exampleAgentPrompt":"Can you check the AI contribution policy for the huggingface/transformers GitHub repo and tell me whether AI-generated code is allowed, restricted, or prohibited?","exampleUseCases":[{"title":"Pre-contribution AI policy check","prompt":"Before I open a pull request, can you check whether the facebook/react GitHub repo allows AI-assisted code contributions or if they have any restrictions in their AI_POLICY.md?"},{"title":"Screening repos for AI-friendly projects","prompt":"I want to contribute using Copilot — can you check whether pytorch/pytorch has an AI contribution policy and what their verdict is on AI-generated code?"},{"title":"Verifying policy before agent-generated PR","prompt":"My agent is about to submit a pull request to cli/cli — first check if that repo has an AI policy and whether AI contributions are permitted or prohibited."}],"resultDescription":"Returns a JSON object containing the repository name, a verdict string (e.g. 'prohibited_or_restricted' or 'permitted'), evidence including specific files, line numbers, and text excerpts from the policy, and a boolean indicating whether an agents.md file is present.","failureModes":["Repository not found or is private — returns error or empty result","Repository has no AI_POLICY.md — verdict may default to unknown or no-policy","Invalid repo format (not owner/name or github.com URL) — request fails validation","Rate limiting or upstream GitHub API unavailability","Ambiguous or incomplete policy text may lead to uncertain verdict classification"],"whenToPreferThis":"Use this endpoint when an AI agent needs to programmatically verify whether a specific open-source GitHub repository permits, restricts, or prohibits AI-generated code contributions before submitting a pull request. Prefer this over manual inspection when automating contribution workflows or screening multiple repositories for AI-friendliness.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T12:40:27.937Z","isFirstParty":false,"canonicalSlug":"open-source-repo-ai-contribution-policy-checker-5cb81e00"}