# Templates

Drop-in files for R packages and Shiny apps on GitHub. Each is explained in the
topic it belongs to.

| File | Copy to | Topic |
|---|---|---|
| `git-hooks/commit-msg` | `usethis::use_git_hook("commit-msg", readLines("templates/git-hooks/commit-msg"))` | 03 |
| `github/workflows/pr-title.yml` | `.github/workflows/` | 03 |
| `pre-commit/pre-commit-config.yaml` | `.pre-commit-config.yaml` in repo root | 04 |
| `github/workflows/gitleaks.yml` | `.github/workflows/` | 06 |
| `github/ISSUE_TEMPLATE/*.yml` | `.github/ISSUE_TEMPLATE/` | 08 |
| `github/PULL_REQUEST_TEMPLATE.md` | `.github/` | 08 |
| `github/dependabot.yml` | `.github/` | 10 |
| `agentic/CLAUDE.md` | repo root (fill in the placeholders) | 14 |
| `agentic/handoff-skill/` | `.claude/skills/handoff/` | 14 |

R CMD check, coverage, lint and pkgdown workflows come straight from `r-lib/actions`
via `usethis::use_github_action()` (topic 05), so they aren't duplicated here.

Add `^\.github$` to `.Rbuildignore` (`usethis::use_build_ignore(".github")`) so
these files never end up in the package tarball. For the handoff skill, also ignore
`dev/` in both `.gitignore` and `.Rbuildignore`.
