copier-shared is the maintenance layer for a repository. It is a
Copier template that adds the boring
but valuable parts of project hygiene for you: shared pre-commit hooks,
automation workflows, and a committed answers file so the template can be
re-applied later without guesswork.
- 🪝 A generated
.pre-commit-config.yamlwith Ruff, Biome,dotenv-linter,shellcheck,rumdl, and the standard pre-commit safety hooks. - 🤖 Three GitHub Actions workflows for weekly Copier refresh PRs, MegaLinter autofix PRs, and scheduled review runs.
- 🧾 A generated answers file at
.config/copier/.copier-answers.shared.yamlso updates stay reproducible. - 🧹 Cleanup tasks that remove older shared files like
.envrc, legacy Renovate config, and retired workflow names when the template is refreshed. - 🧩 A small prompt surface: project name, slug, author, email, license, GitHub owner, and repository name.
copier copy --trust gh:liblaf/copier-shared .Copier will ask for the project metadata it needs, then generate the shared files in your repository.
| Path | Why it exists |
|---|---|
.config/copier/.copier-answers.shared.yaml |
Saves the answers used to apply the template. |
.config/rumdl.toml |
Keeps Markdown linting rules aligned across repos. |
.pre-commit-config.yaml |
Installs the shared formatting, linting, and safety hooks. |
.github/workflows/shared-copier-update.yaml |
Opens a weekly PR with the latest template changes. |
.github/workflows/shared-mega-linter.yaml |
Runs MegaLinter and opens an autofix PR when possible. |
.github/workflows/shared-review.yaml |
Runs scheduled review jobs for automation PRs. |
The answers file is committed on purpose. To re-apply the template locally, run:
copier recopy --trust --answers-file .config/copier/.copier-answers.shared.yamlThe bundled Shared / Copier Update workflow follows the same approach on a weekly schedule and turns the result into a pull request.
git clone https://github.com/liblaf/copier-shared.git
cd copier-shared- 🧱 Edit
template/when you want to change the files generated in downstream repositories. - ⚙️ Edit
copier.yamlwhen you want to change prompts, defaults, or cleanup tasks. - 🧪 Re-run Copier against a scratch repository to verify the generated output before publishing a new tag.
Issues and pull requests are welcome. If you want to improve the shared defaults, tighten automation, or simplify the update story, this repo is the right place to do it.
Copyright © 2024 liblaf.
This project is licensed under the MIT License.
