gitprompt

A repo, read backwards.

gitprompt reads a public GitHub repository or website and writes the prompt someone might plausibly have typed into an AI coding assistant to build it: a short version, and a structured spec.

Swap the domain

Take any GitHub URL and replace github.com with gitprompt.dev.

github.com/vercel/next.js

gitprompt.dev/vercel/next.js

Deep links like /tree/main/src, issues and pull requests work too; the address bar is cleaned up to /owner/repo.

Open in gitprompt

Drag this link to your bookmarks bar, then click it on any GitHub repo page.

Open in gitprompt

Clicking it here does nothing; it only works from the bookmarks bar.

FAQ

What is gitprompt?
It reads a repository's description, language, root files and README, or a web page's title, description and visible text, detects the stack from manifests or page markers, and has a model write the prompt.
What is it not?
Not the author's real prompt, and not a summary or docs. The home page has the full list.
Does it work on private repos?
Not on the website. In a clone, run npx gitprompt-cli . to read the folder on your machine, or npx gitprompt-cli owner/repo --private with GITHUB_TOKEN set. Your token goes only to GitHub, and nothing goes to gitprompt.dev. Programs calling the API can send an x-github-token header for one request; it is never stored or logged, a private repo is never cached, and it gets a basic prompt without AI unless the caller opts in.
What is a basic prompt?
If the AI model is unavailable or too slow, you still get a prompt, labelled as basic. It is built without AI from the file tree, README excerpt and detected stack. Try again for the full version.
What is the commit shown next to the stars?
The commit the prompt was built from. Prompts are cached by repo, commit and settings, so the same commit with the same settings returns the same prompt, and a new commit gets a fresh one. The cache is shared on a best-effort basis.
Does it work on websites?
Yes, on public pages. It reads one page, follows robots.txt, and never fetches private or internal addresses. Pages that need JavaScript to render can come out thin, and sites behind a login can't be read.
Can I use it from a terminal or an AI agent?
Yes. Run npx gitprompt-cli owner/repo to print a prompt, npx gitprompt-cli . --write to save AGENTS.md for the folder you're in, or add the MCP server with claude mcp add gitprompt -- npx -y gitprompt-cli --mcp so your agent can ask for any public repo's prompt itself.
Can it keep AGENTS.md up to date?
There is a GitHub Action that regenerates the file and opens a pull request when the stack, manifests or top-level layout change. Setup is in the README.
Do I need an account?
No. There is nothing to sign up for or install, and the site doesn't track you.

The source is on GitHub.