-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (21 loc) · 1.35 KB
/
Makefile
File metadata and controls
25 lines (21 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
.PHONY: build validate clean watch
build:
bash platforms/copilot-cli/build.sh
validate:
@echo "Checking no colons in command names..."
@! grep -r '^name:.*:' plugins/maister-copilot/commands/ 2>/dev/null || (echo "FAIL: colons in command names" && exit 1)
@echo "Checking no multi-select references..."
@! grep -ri 'multi.select\|multiSelect' plugins/maister-copilot/skills/ 2>/dev/null || (echo "FAIL: multi-select found in skills" && exit 1)
@echo "Checking commands are flat (no subdirectories)..."
@test $$(find plugins/maister-copilot/commands -mindepth 2 -name "*.md" 2>/dev/null | wc -l) -eq 0 || (echo "FAIL: nested command directories found" && exit 1)
@echo "Checking no CLAUDE.md references in skills..."
@! grep -ri 'CLAUDE\.md' plugins/maister-copilot/skills/ 2>/dev/null || (echo "FAIL: CLAUDE.md references found in skills" && exit 1)
@echo "Checking no maister- prefix in copilot command names..."
@! grep -r '^name: maister-' plugins/maister-copilot/commands/ 2>/dev/null || (echo "FAIL: maister- prefix in command names" && exit 1)
@echo "Checking no maister: prefixes in copilot variant..."
@! grep -r 'maister:' plugins/maister-copilot/ --include="*.md" 2>/dev/null || (echo "FAIL: maister: prefix found" && exit 1)
@echo "All checks passed"
clean:
rm -rf plugins/maister-copilot/
watch:
fswatch -o plugins/maister/ | xargs -n1 -I{} make build