Skip to content
CodeLifter

Vibe code it. Keep the receipt.

Reviewed prompts, the code each one should produce, and sourced answers on who wrote AI-generated code and whether you can ship it.

Free cut-and-paste code from about 1999 to 2016, restored in 2026. Every prompt carries a receipt.

Open the full page

1. The prompt

Not yet run against a named assistant

Write a random quote generator in plain JavaScript with no dependencies. Store each quote as an object with text, speaker, source title and source URL. Show the quote in a blockquote inside a figure, set the blockquote's cite attribute to the source URL, and put the credit in a figcaption: the speaker's name, then a link to the source. Never show the same quote twice in a row. Write text with textContent and build the link with createElement, never innerHTML. Give the figure aria-live="polite" and aria-atomic="true" so screen readers announce each quote with its credit. Use a real button element, and start the script with an SPDX-License-Identifier: MIT comment.

109 words · CC-BY-4.0

2. What it should produce

random-quote.js
// Random quote generator that credits every quote it shows.
// SPDX-License-Identifier: MIT
// Source: https://codelifter.com/prompts/random-quote-generator/
const quotes = [
{ text: "Provenance is information about entities, activities, and people involved in producing a piece of data or thing, which can be used to form assessments about its quality, reliability or trustworthiness.",
who: "Paul Groth and Luc Moreau (eds.), W3C", source: "PROV-Overview", url: "https://www.w3.org/TR/prov-overview/" },
{ text: "Math.random() does not provide cryptographically secure random numbers.",
who: "MDN contributors", source: "Math.random()", url: "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/random" },
{ text: "The license information travels with the file (as sometimes not entire projects are used or license files are removed).",
who: "SPDX Specification v2.3.1", source: "Annex E", url: "https://spdx.github.io/spdx-spec/v2.3.1/using-SPDX-short-identifiers-in-source-files/" },
];
const textEl = document.getElementById("quote-text");
const creditEl = document.getElementById("quote-credit");
let last = -1;
function showQuote() {
let i = Math.floor(Math.random() * quotes.length);
if (quotes.length > 1 && i === last) i = (i + 1) % quotes.length; // never twice in a row
last = i;
const q = quotes[i];
textEl.textContent = q.text;
textEl.setAttribute("cite", q.url);
const link = document.createElement("a");
link.href = q.url;
link.textContent = q.source;
creditEl.replaceChildren(q.who + ", ", link);
}
document.getElementById("quote-next").addEventListener("click", showQuote);
showQuote();

The Prompt Shelf

Six scripts and tips from the original CodeLifter, rebuilt as prompts. Each one is paired with the editor-tested code it should produce and an editor-written example of what a one-line prompt leaves out.

Browse all prompts
  1. A fan of blank index cards, one held by an orange-red paper clip Random quote generatorCredited quotes, never the same twice in a row, announced to screen readers with their credit. Fixes5Verified2026-10-15
  2. A blank luggage tag with an orange-red eyelet, its string looping back around it Go back to previous pageCalls history.back() only when the visitor came from your own site, and follows a real link everywhere else. Fixes6Verified2026-10-15
  3. An empty white slide mount beside a black loupe with an orange-red base ring Image popupA native dialog: Escape closes it, focus returns to the thumbnail, and the large image keeps its alt text. Fixes6Verified2026-10-15
  4. A sheet of graph paper with one orange-red pin and a pencil beside it Mouse positionPointer coordinates for mouse, pen and touch, written at most once per frame. Fixes6Verified2026-10-15
  5. An orange-red luggage tag at the end of a long string trailing across the paper Draggable elementDrag with a mouse, finger or pen, or move it with the arrow keys, inside its container. Fixes7Verified2026-10-15
  6. A row of four empty slide mounts, the second one orange-red Accessible slideshowReal previous and next buttons, slides named for screen readers, and no autoplay. Fixes5Verified2026-10-15

The directory

Everything else you vibe code with, held to the same standard: where it came from, what it can touch, and when we last checked.

Search the directory

Provenance Desk

Sourced answers on what vibe coding leaves behind. Every page leads with a short answer you can quote, and lists its sources.

All ten pages
Three rubber stamps, one with an orange-red handle, beside a stack of blank index cards
  1. Can you tell if code was written by AI?

    Not reliably. A 2024 study found existing detection tools all performed poorly on source code; a record made at the time shows more.

    8 sources · verified 2026-10-15
  2. Is vibe coding bad?

    Fine for throwaway prototypes, risky for code other people run: in a 2022 study, assistant users wrote less secure code yet felt more confident.

    6 sources · verified 2026-10-15
  3. Is vibe-coded software safe to ship?

    Not without review: a 2021 study found about 40% of 1,689 programs written by GitHub Copilot to be vulnerable.

    6 sources · verified 2026-10-15
  4. Who owns AI-generated code?

    Under US law, code generated from prompts alone has no copyright owner; only what a person wrote, edited or arranged is protected.

    5 sources · verified 2026-10-15
  5. May I use a snippet I copied?

    Usually, on its published terms: Stack Overflow content is CC BY-SA 4.0, newer MDN samples are CC0, and an unlicensed repository grants nothing.

    6 sources · verified 2026-10-15
  6. How do you disclose AI help in a commit?

    Add the trailer your project names, usually Assisted-by, and say in the pull request what the tool did and how you checked it.

    6 sources · verified 2026-10-15

Who allows AI-generated code?

We track 16 published policies. Six ban AI-generated contributions, five require or expect you to label AI help, and five allow it on conditions.

See the full tracker
Five of 16 policies, each checked against its source on 2026-10-15. Disclosure means the policy requires or expects you to label AI help.
OrganisationPolicyDisclosureChecked
Gentoo Linux Forbids contributing content created with the assistance of AI tools (Council vote, 2024-04-14). No 2026-10-15
QEMU Declines any contribution believed to include or derive from AI-generated content. No 2026-10-15
Linux kernel Contributions should carry an Assisted-by tag naming the tool; the human submitter takes responsibility. Yes 2026-10-15
Mesa Disclosure is required when AI helped create the code, except trivial or mechanical changes. Yes 2026-10-15
CPython The submitter is responsible for AI output; disclosure is appreciated but not required. No 2026-10-15

Questions on the forum

Ask on the forum
  1. Prompts · Answered by the editors How do I stop a coding assistant from using innerHTML?
  2. Provenance · Answered by the editors Can you prove you wrote a piece of code yourself?
  3. Policy · Answered by the editors How can a team enforce an Assisted-by trailer on commits?

Copy the prompt. Keep the receipt.

Free, no account. Prompts are CC-BY-4.0 and the reviewed code is MIT.

Browse the Prompt Shelf