agentleFS
chatquillchatquill/claude-code-websites/.claude/skills/adopt/SKILL.md

adopt

Skill1 starsChanged 24 days agoMITView on GitHub

Brings an existing website or codebase into the studio: detects the stack, proposes project.yaml values, maps existing docs and code, and proposes the stage. Use when the user has an existing site, repo or partial project and wants to use the studio on it (brownfield).

  • Reads credentials

34 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use asset-spec, create-control-manifest and 3 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • lilangMaxSkill

    asset-spec

    Generate per-asset visual specifications and AI generation prompts from GDDs, level docs, or character profiles. Produces structured spec files and updates the master asset manifest. Run after art bible and GDD/level design are approved, before production begins.

    Also in 10 projects that use this

  • lilangMaxSkill

    create-control-manifest

    After architecture is complete, produces a flat actionable rules sheet for programmers — what you must do, what you must never do, per system and per layer. Extracted from all Accepted ADRs, technical preferences, and engine reference docs. More immediately actionable than ADRs (which explain why).

    Also in 10 projects that use this

  • +3 more from lilangMax

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 30 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run both helpers. Then confirm the important guesses by reading the manifest and config files yourself: a helper guess is an observation, …

    line 31
  2. Very specific:

    Ask the user to confirm, then run set-stage.sh <stage>.

    line 69

“Common” is measured: kept by at least 6 in 10 of the 30 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Adopt an existing project

Maps what already exists so the rest of the studio has something to build on. It writes only project.yaml values (through config-set.sh, after an explicit yes) and the stage. It never changes application code, never installs anything, and never generates docs; /reverse-document does that.

Inputs

  • bash .claude/scripts/detect-stack.sh (frontend, backend, database, orm, hosting, test tools, package manager)
  • bash .claude/scripts/project-state.sh
  • Manifests: package.json (deps + scripts), pyproject.toml, go.mod, composer.json, Gemfile, lockfiles
  • Framework config (next.config.*, nuxt.config.*, astro.config.*, svelte.config.*, angular.json), compose.yaml, Dockerfile, .github/workflows/, host config (vercel.json, netlify.toml, wrangler.toml, fly.toml, render.yaml)
  • .claude/docs/stack-matrix.md for value names and specialists
  • git log --oneline -20 for activity
  • Optional argument: code root (monorepo app path such as apps/web)

Phases

Phase 1: Detect

Run both helpers. Then confirm the important guesses by reading the manifest and config files yourself: a helper guess is an observation, not a fact. For a monorepo (pnpm-workspace.yaml, turbo.json, nx.json, apps/*), list the apps and ask which one the studio should treat as the code root.

Phase 2: Map what exists

Build a short inventory:

AreaLook for
Routes / pagesapp/, pages/, src/routes/, routes/ (count, list top-level sections)
APIroute handlers, server/api, controllers, OpenAPI files
Dataprisma/schema.prisma, drizzle/, migrations/, models
Auth / payments / CMS / AI / emailSDK imports and env var names in .env.example (never open .env)
Testsrunner config, test file count, e2e folder
CI / deployworkflow files, host config
DocsREADME, docs/, ADRs, any PRD-like text
Agent instructionsexisting CLAUDE.md, AGENTS.md, .cursorrules, .github/copilot-instructions.md: keep them; propose merging their rules into CLAUDE.md or importing them (@AGENTS.md), never overwrite

Phase 3: Propose project.yaml

Show a table of proposed values: project.name, project.type, every stack.* key detected, paths.code_root, and specialists: (from stack-matrix.md). Mark each detected or guessed. Ask the user to correct anything wrong, then: "May I save these to project.yaml?"

On yes, run config-set.sh per key. specialists is a list: write it with config-set.sh specialists=[a, b, c] (inline list).

Phase 4: Propose the stage

EvidenceProposed stage
Little code, no PRDdiscovery
Working code, users not yet livebuild
Deployed to a production domain with usersgrow (or launch if a release is imminent)

Ask the user to confirm, then run set-stage.sh <stage>. Ask about rigor and automation only if modes.rigor / modes.automation are unset (same options as /start Phases 4–5).

Phase 5: Report gaps

List the studio artifacts missing for the chosen stage (see .claude/docs/gates.md), most important first, and the template-remote warning if origin_url still points at the studio template.

Output

project.yaml values and project.stage only.

Next step

/reverse-document to generate the PRD, specs, architecture and data model from the code. Then /help.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.