agentleFS
brpazbrpaz/agent-skills/skills/copier-scaffold/SKILL.md

copier-scaffold

Skill1 starsChanged 7 months agoMITView on GitHub

Scaffold a new project with Copier. Before writing any project from scratch (new Go library, Python project, TypeScript project, Rust project, Docker image, GitHub Action, Ansible role, Terraform/Ansible IaC, browser extension, VSCode/Gnome/Vicinae extension, Astro site, FluxCD project, etc.), search brpaz's GitHub for a matching copier-* template and offer to use it instead of hand-rolling boilerplate. Use whenever the user says 'new project', 'scaffold', 'bootstrap', 'start a new repo/library/CLI/extension', or names a stack that could match an existing template.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use when starting a brand-new project.

    line 10
  2. Very specific:

    All of brpaz's copier templates are tagged with the GitHub topic copier-template.

    line 14
  3. Distinctive:

    If nothing matches, say so plainly and proceed with scaffolding from scratch per the normal.

    line 46
  4. Very specific:

    If more than one template plausibly fits, list the candidates with their description and ask the user to pick rather than guessing.

    line 48
  5. Very specific:

    Don't assume the new project needs docker-setup, renovate-setup, etc.

    line 79

≈ “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.

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

Copier Scaffold — scaffold new projects from brpaz's Copier templates

Use when starting a brand-new project. Reference: copier.readthedocs.io.

1. Discover available templates

All of brpaz's copier templates are tagged with the GitHub topic copier-template. List them before assuming none exist:

gh search repos --owner brpaz --topic copier-template --json name,description,url,updatedAt

This is the authoritative, up-to-date list — don't rely on memory of what templates exist, new ones get added. If gh isn't authenticated or the search fails, fall back to browsing https://github.com/brpaz?tab=repositories&q=copier-.

2. Match the request to a template

Compare the user's stack/intent against the name/description fields returned above. Typical mappings (confirm against the live list, don't hardcode this as gospel — it changes):

User wantsTemplate repo
Go librarycopier-go
Python projectcopier-python
TypeScript projectcopier-typescript
Rust projectcopier-rust
Docker imagecopier-docker-image
GitHub Action (TypeScript)copier-github-action-ts
GitHub Action (Docker)copier-github-action-docker
Ansible rolecopier-ansible-role
Terraform + Ansible IaCcopier-iac
FluxCD / GitOps projectcopier-fluxcd
Astro websitecopier-astro
Browser extensioncopier-browser-ext
VSCode extensioncopier-vscode-ext
Gnome extensioncopier-gnome-ext
Vicinae extensioncopier-vicinae-ext
A new Copier template itselfcopier-copier
Release Drafter config only (not a full project)copier-release-drafter

If nothing matches, say so plainly and proceed with scaffolding from scratch per the normal. don't force-fit an unrelated template.

If more than one template plausibly fits, list the candidates with their description and ask the user to pick rather than guessing.

3. Prefer the local checkout, fall back to GitHub

Local clones live at ~/Code/Templates/copier-<name>/ (the directory name doesn't always match the repo name exactly — check ls ~/Code/Templates/ | grep copier). If a matching local checkout exists:

git -C ~/Code/Templates/copier-<name> pull

Pull first so the scaffold uses the latest version, then run copier against that local path. If no local checkout exists, run copier directly against the GitHub shorthand — no need to clone manually, copier does it:

copier copy gh:brpaz/<repo> <destination>

4. Run copier

copier copy <source> <destination>
  • <source> is either the local path from step 3 or the gh:brpaz/<repo> shorthand.
  • <destination> is the new project directory — confirm the path and name with the user before running if it wasn't explicit (this creates a new directory and, for most of brpaz's templates, runs post-generation tasks).
  • Copier templates can define _tasks that execute shell commands after generation (git init, installing hooks, etc. — see any template's copier.yml). Copier will prompt for --trust itself when a template defines tasks; since these are the user's own templates the intent is legitimate, but still treat the confirmation prompt as real and don't script around it.
  • Answer the interactive prompts as they come up, using context already known about the project (name, description, GitHub repo slug) instead of asking the user to retype what they already told you.

5. After generation

q::wq- cd into the new project and read the generated README.md — brpaz's templates typically document their own next steps (e.g. devenv shell, enabling GitHub Actions, setting secrets).

  • Don't assume the new project needs docker-setup, renovate-setup, etc. run again — these templates usually already bake that in. Check what's already there before layering another skill on top of it.

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.