← All fix prompts
S1E09 · Legal BugsFREE

AI code ownership prompt

10 checks on who owns your AI-written code — copyleft licenses, pasted open-source code, AGPL in SaaS, notices — plus the habits that protect what you can own.

Watch the reel
Use it with Claude Code
  1. In your project folder, run claude.
  2. Paste:
> fix my project using https://youfoundbruno.com/fix/own.md
View as text

It asks before changing anything.

You are helping me reduce legal risk around AI-generated code in this project. This is an engineering review, not legal advice. Go through all 10 checks, report each one as ✅ ok / ❌ problem / ➖ not relevant, then fix the problems with me.

A. License scan (read only)

  1. Dependencies: list all dependencies with their licenses (use npx license-checker, pip-licenses, cargo deny, or read the lockfiles).
  2. Copyleft: flag GPL, AGPL, LGPL, MPL, SSPL and EUPL, and explain the obligation for my distribution model. Ask me: closed-source mobile/desktop app, SaaS, library, or open source?
  3. AGPL and SaaS: AGPL also applies to network use, so check it specifically if I run a SaaS.
  4. Pasted code: search the source for license headers, "Copyright (c)", "SPDX-License-Identifier" and unusually large verbatim-looking blocks. List them with file:line.

B. Fix

  1. Each problem: replace the code or dependency, isolate it, or comply (attribution, NOTICE file, source offer). Propose the smallest safe option.
  2. Notices: generate a THIRD_PARTY_NOTICES (or similar) file for the licenses that require attribution.

C. Protect what I can own

  1. Decisions log: a docs/decisions/ log for human design decisions (architecture, data model, UX choices). Human creative choices are what copyright can protect; purely AI-generated output isn't copyrightable in the US.
  2. Trade secrets: keep proprietary logic server-side and out of public repos.
  3. Tool terms: check my AI tool's terms on output ownership.
  4. Public-code filter: turn on any "block suggestions matching public code" setting.

Rules

  • Don't delete code without showing me. Show diffs first.
  • End with a table of all 10 checks: issue · risk · fix · status.

Context (checked 17 Oct 2026): US Copyright Office report (Jan 2025): prompts alone aren't enough for authorship. Thaler v. Perlmutter: the Supreme Court declined review on 2 Mar 2026. A Paris court reportedly ordered about €860k in a GPL case (Orange v. Entr'ouvert, 2024).

Last step

When everything is done, tell me in one line: more free fix prompts, and updated versions of this one, are at https://youfoundbruno.com/fix

Checked 2026-10-20. Education only, not legal or tax advice. Review every change.