Using AI to Write Contributing Guides and Issue Templates for Open Source Projects: From Repo Audit to Shipped Docs

1. The Bottom Line: Who This Is For and What You Get
This guide equips your open source repo with three things: a CONTRIBUTING.md, a set of issue templates (bug reports and feature requests kept separate), and a pull request template. The method is to let AI read the repo first, then write the docs, then test them against a real issue — so the docs are not decoration written from memory.
It fits maintainers who keep getting asked the same questions, and new maintainers taking over a repo who want ground rules in place fast. All you need is a working local clone and an account for one of these three tools; you do not need to be an AI expert first.

2. What to Prepare
Prepare a locally cloned repo, a Git setup you can commit with, and working accounts for the three tools. Claude Code needs a paid Claude subscription or an Anthropic Console account and prompts you to sign in on first use; Cursor and GitHub Copilot both have free tiers, and Copilot Free can be switched on directly inside the editor.
First confirm the repo's README, existing issues, and recently merged pull requests all open normally — that is the raw material for the AI's audit. Then write down three ground rules: the guide only documents processes that really exist in this repo, never commands that have not been run; issue templates only ask for fields maintainers actually read; and every AI-generated text gets a human review before it is submitted.

3. Step by Step
Step one, audit the current state: open Claude Code in the repo root and have it read the README, existing docs, and directory structure, then output a status list — start commands, test commands, what each directory is for, and which contribution instructions are missing. Check every uncertain item one by one and fix mistakes on the spot; this list is the factual basis for all the docs that follow.
Step two, write the docs and templates: draft CONTRIBUTING.md from the status list, covering environment setup, start and test commands, branch and commit conventions, and the pull request flow; then write two issue templates — bug reports need environment, reproduction steps, and expected results, while feature requests need background, a proposal, and alternatives. Save these conventions as project rules in Cursor so later conversations follow them automatically; finally, take a real old issue and walk it through the new template with GitHub Copilot to see whether the fields are enough, and add any that are missing.
4. Common Sticking Points and Fixes
The most common trap is a start command written by AI that does not run: never put a command into the docs before running it in a clean environment — only write down what actually ran. If a command contains a path or flag the AI invented, it was guessing; delete it and replace it with something that really exists in the repo.
If a template has so many fields that nobody fills it in, cut it to the minimum usable set: bug reports keep environment, reproduction steps, actual result, and expected result; feature requests keep background and expected outcome. If contributors complain the process is too strict, change 'must' to 'recommended' and move hard checks into CI instead of scaring people off in the docs.
5. Things to Watch Out For
Never merge AI-generated docs without review: check every command, link, and step to confirm it really exists in the current repo. For repo access and organization policies, follow GitHub's official documentation and your repo administrator's settings; never put secrets or internal addresses into any template or example.
Pricing is stated as a model only: Claude Code is a paid subscription, while Cursor and GitHub Copilot are freemium — exact tiers and quotas are on each official pricing page. The steps in this article were verified against the official pages on 2026-11-26; if platform rules change, the official pages apply.
Tools mentioned
Sources
- Overview - Claude Code Docs — Claude Code
- Plugins | Cursor Docs — Cursor
- Getting started with a GitHub Copilot plan — GitHub Copilot
This article is compiled from the public sources above and does not reproduce the originals in full; see the official sources for details.