atelier-greenfield
Skill9 starsChanged 3 months agoMITView on GitHub
Stand up a NEW Bun/TypeScript, Next.js, or Java (Quarkus) repo to the atelier standard from zero — scaffold the Clean Architecture (or Atomic Design) layout, copy the gate assets, wire the git hooks, write the build scripts, lay a minimal green walking skeleton, and prove every gate passes before the first commit. Use when starting a fresh repo or a new monorepo package from scratch — say "scaffold a new Bun repo", "bootstrap a new project to the standard", "set up a new atelier repo / Next.js package", or "scaffold a new Java/Quarkus service". Greenfield only. NEVER use it for work inside an existing codebase (adding features, setting up lint or tooling, config changes) — those belong to the main atelier skill, or to atelier-review-me adopt mode for bringing a brownfield repo up to the standard.
In this repository6 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- atelier-grill-meSkill
- atelier-review-meSkill
- atelierSkill
- qa-auditSkill
- ask-marcelSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 26
Follow the matching bootstrap checklist verbatim: Read and execute the numbered checklist for the variant — do not improvise the config:
- Very specific: line 30
Never install both hook mechanisms: the .githooks fast-gate hook for Bun-script, simple-git-hooks for Next.js.
- Very specific: line 31
Pin versions properly: Add every dependency with bun add / bun add -d so it resolves to a concrete ^X.Y.Z.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Greenfield
Bring a repo into existence already conforming to the atelier standard, green from the first commit. This is the companion skill for the one moment the main standard assumes has already happened: repo birth. The raw material, the per-variant bootstrap checklists and the copyable gate assets, already exists; this skill sequences and executes it so a fresh repo passes every gate, the fast pre-commit hook and the full CI set run locally, before a line of feature code is written.
Like atelier-grill-me, it is a focused, on-demand counterpart to the always-on atelier standard: atelier-grill-me owns the pre-decision moment, atelier-greenfield owns the repo-birth moment.
Interaction: terse, direct prose with no filler, praise, or recap; never use em dashes; answer first, reasoning only if it changes the decision; challenge on substance, not question spam; ask only when the answer changes what you produce and you cannot infer it from the repo, the user's files, or what they said, then AskUserQuestion (or the client's structured-options equivalent) with 2-4 concrete options led by your recommendation; one question round max, then proceed on assumptions named inline; confirm once before an irreversible action (commit, push, publish); propose next steps at wrap-up.
When to use
- Starting a brand-new Bun/TypeScript script repo, or a new package in a Next.js monorepo.
- The user says "scaffold / bootstrap / set up a new repo (or package) to the standard".
- An empty or near-empty directory that should become a conforming repo.
Greenfield only. For a repo that already has code, the main atelier skill applies, do not run this over a populated tree; it scaffolds and would collide. Match intensity to the ask: a throwaway spike does not need the full gate machinery, say so and offer the minimal subset.
How to run
- Confirm variant and target directory — one question, with a recommendation. Read the shape from the directory: a
packages/*workspace withnext.config.tsnearby → Next.js package; apom.xml/build.gradlecontext or an explicit Java ask → Java (Quarkus); otherwise → Bun-script. State your read and confirm before touching anything. - Locate the atelier assets. The gate scripts and helpers live in the installed
atelierskill'sassets/directory (typically~/.claude/skills/atelier/assets/). Resolve that path and report it. If it is missing, stop and tell the user to install theatelierskill first — atelier-greenfield copies from it, it does not vendor its own copies. - Follow the matching bootstrap checklist verbatim. Read and execute the numbered checklist for the variant — do not improvise the config:
- Bun-script → the installed
atelierskill'sreferences/bun-typescript.md(§ Bootstrap checklist): layout,tsconfig, flat ESLint config,Result+ Logger port/adapter/fake, asset copy, coverage gate, Stryker, the two git hooks, the CI workflows (assets/ci.ymlplusassets/check-commit-messages.sh, the rule 23 re-check that catches a--no-verifybypass, andassets/audit.yml, the scoped CVE watchdog),bunfig.toml. - Next.js → the installed
atelierskill'sreferences/nextjs-monorepo.md(§ Bootstrap checklist): package layout,tsconfig/eslint/postcss/next.config,simple-git-hooks,globals.css, thesrc/components/{atoms,molecules,organisms}+src/page+src/lib+src/configtree. - Java → the installed
atelierskill'sreferences/java-quarkus.md(§ Bootstrap checklist): Quarkus scaffold with the Maven wrapper, pinned pom with Spotless + JaCoCo tiers + PIT + enforcer, thedomain/usecases/infra/api/compositionpackages, sealedResult, Flyway, and the shipped hook and CI assets (assets/pre-commit-java,assets/check-pom.sh, the sharedassets/check-commit-size.sh,assets/commit-msg, andassets/check-commit-messages.shbesideassets/ci-java.yml, whose first step runs it), copied not hand-written. Never install both hook mechanisms: the.githooksfast-gate hook for Bun-script,simple-git-hooksfor Next.js; the Java variant reuses.githookswith its own gate chain.
- Bun-script → the installed
- Pin versions properly. Add every dependency with
bun add/bun add -dso it resolves to a concrete^X.Y.Z; never hand-write"latest"or"*"(rule 19 — gate 2 would reject it). Java: exact versions in the pom, no ranges, no SNAPSHOT deps (the enforcer blocks them). - Keep identity out of file contents (rule 26). Commit metadata carries your normal identity and needs no action. The scaffolded files carry none of it: no person, employer, or client name in a comment, a LICENSE holder line, a
package.jsonauthor field, or a fixture; use a neutral handle (e.g.atelier) where a holder string is structurally required. Scrubbing a mention after a push is agit filter-repohistory rewrite and a force-push, so catch it here. Seed session memory and the standard pointer. Create
.claude/LESSONS.mdwith just its header so the cross-session journal works from commit one, and write the repo'sCLAUDE.mdfrom the canonical block the main skill ships, so the standard rides in deterministic repo context on every future session; skill triggering is the fallback, not the mechanism. This is the primary distribution step, not a nicety: a session that never triggers the skill still carries the standard.printf '# CLAUDE.md\n\n' > CLAUDE.md cat <skill>/assets/claude-md-pointer.md >> CLAUDE.mdThe block's text lives only in
assets/claude-md-pointer.md; copy it, never retype it (two copies drift, the same argument as rule 23's hook). Offer/initafterwards to extend the file with codebase-specific documentation; the pointer block stays at the top.- Lay a minimal walking skeleton. The thinnest end-to-end slice that touches every layer (see the installed
atelierskill'sreferences/architecture.md§ The walking skeleton): for a Bun-script repo, one use-case returningResult.okthrough its primary port, its branded input, and its confirmed test (rule 24 — propose the test, get the yes, then write it); for Next.js, onesrc/libpure function with a test wired into a page shell that renders a single atom; for Java, one application service returningOkthrough its port with its JUnit test, plus one resource with its REST Assured test including the 401 refusal. This is not speculative code — it is what makes coverage and mutation pass for real and demonstrates the TDD loop in place. Keep it to the absolute minimum, and offer to skip it for a bare scaffold. - Prove green, then prove red. Run the inner loop and confirm each is clean:
bun test,bun run lint,bun run typecheckon every Bun-family variant; the Bun-script variant addsbun run coverageandbun run mutate(Next.js has no coverage or mutation gate; its proof isbun run build); for Java,./mvnw spotless:check verifyplus PIT on the skeleton. Then prove the gates can fail (canon 15.10, a gate only ever seen green is a hypothesis): thecommit-msghook rejects a junk message, gate 2 rejects a planted"latest"dependency, and the staged-lint gate rejects a planted violation; revert each plant. A bootstrap that does not end green, having shown red, has not finished. - Stop before the first commit. Stage the tree, propose the Conventional-Commits message (
chore: scaffold repoor similar), and wait for the user's explicit yes (rule 25). Never auto-commit.
Output
A directory that passes every gate, with a one-screen summary: variant chosen, assets copied (and from where), hooks wired, file contents identity-clean (rule 26), scripts added, the walking skeleton's single scenario, the inner-loop results, and the proposed first-commit message awaiting confirmation.
Scaffold the simplest conforming repo that runs green: the walking skeleton is one slice, not a feature. Everything past it is built later, test-first, under the main atelier standard. Out of scope here: brownfield adoption of an existing repo, deployment pipelines, Docker, and choosing a web framework. The CI gate workflow is IN scope: assets/ci.yml / assets/ci-java.yml ship with the bootstrap (the authoritative gate set), only what lies beyond the gates (deploy, environments) is not.
This skill is the standard's paved road (the golden path): a repo born from it starts already passing every gate, instead of migrating toward compliance later. Ship real artifacts, not instructions; the fastest way to start is also the compliant one. When the new repo will hold personal data, serve multiple tenants, or call an AI model, name the production disciplines that will bind (atelier rules 27-34) in the wrap-up summary so the first features are designed with them, not retrofitted.
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
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.

