You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/skills/repository-template/SKILL.md
+53-7Lines changed: 53 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,25 @@ Use the following checks after confirming the git URL:
37
37
38
38
When in doubt, follow the [Updating from the template repository](./SKILL.md#updating-from-the-template-repository) workflow to pull fresh assets.
39
39
40
+
### Critical Integration Rules 🚨
41
+
42
+
When adopting **any** capability from this skill, AI assistants **must** follow these rules:
43
+
44
+
1.**Core Make System is a prerequisite** — Most capabilities depend on make targets defined in `scripts/init.mk`. If `scripts/init.mk` does not exist in the target repository, adopt the [Core Make System](#1-core-make-system) first.
45
+
2.**Preserve `init.mk` in full** — Never partially copy `scripts/init.mk`. It contains interdependent targets (`_install-dependencies`, `githooks-config`, `clean`, etc.) that other capabilities rely on. Always copy the complete file.
46
+
3.**Ensure `include scripts/init.mk`** — The repository's `Makefile` must contain `include scripts/init.mk` near the top. Without this, make targets from `init.mk` are unavailable.
47
+
4.**Wire up `config::` for dependencies** — When adopting capabilities that require asdf-managed tools (pre-commit, gitleaks, vale, terraform, etc.):
48
+
- Add the tool to `.tool-versions`
49
+
- Ensure the `Makefile` has a `config::` target that calls `$(MAKE) _install-dependencies`
50
+
- Example:
51
+
52
+
```makefile
53
+
config:: # Configure development environment @Configuration
54
+
$(MAKE) _install-dependencies
55
+
```
56
+
57
+
5. **Verify after adoption** — Always run the verification commands listed in each capability section to confirm correct integration.
58
+
40
59
## Quick Reference 🧠
41
60
42
61
| Capability | Purpose | Key Files |
@@ -90,8 +109,27 @@ make list-variables # Debug: show all make variables
90
109
**Toadopt**:
91
110
92
111
1. Copy `assets/Makefile` and `assets/scripts/init.mk` to your repository
93
-
2. Customise the `Makefile` with your project-specific targets
94
-
3. Add `@Pipeline`, `@Operations`, `@Configuration`, `@Development`, `@Testing`, `@Quality`, or `@Others` annotations to target comments for categorisation
112
+
2. Ensure `Makefile` contains `include scripts/init.mk` near the top (after any variable definitions)
113
+
3. Customise the `Makefile` with your project-specific targets
114
+
4. Add `@Pipeline`, `@Operations`, `@Configuration`, `@Development`, `@Testing`, `@Quality`, or `@Others` annotations to target comments for categorisation
115
+
5.Adda`config::` target that calls `$(MAKE) _install-dependencies` to ensure asdf tools are installed:
116
+
117
+
```makefile
118
+
config:: # Configure development environment @Configuration
119
+
$(MAKE) _install-dependencies
120
+
```
121
+
122
+
**Essential make targets from `init.mk`** (do not remove or modify):
0 commit comments