Add auto-activation rules and sync workflow

Enable automatic caveman mode activation across agents and keep skill copies in sync. Adds activation rule files (.clinerules, .codex/hooks.json, .cursor/rules/caveman.mdc, .windsurf/rules/caveman.md, .github/copilot-instructions.md, rules/caveman-activate.md), new command prompts (commands/caveman{,-commit,-review}.toml), and updates SKILL.md copies (skills/, caveman/, plugins/, .cursor/, .windsurf/) to add persistent behavior and tweak auto-clarity wording. Updates README with agent-specific auto-activation docs and expands compatibility table. Updates GitHub Actions workflow to sync SKILL.md, copy activation rules, rebuild caveman.skill, and commit any changes. Includes updated caveman.skill binary.
This commit is contained in:
Julius Brussee
2026-04-11 11:48:34 +02:00
parent 79fa46a4a0
commit b6a7a3f584
17 changed files with 262 additions and 26 deletions
+34 -6
View File
@@ -1,10 +1,11 @@
name: Sync SKILL.md
name: Sync SKILL.md and rules
on:
push:
branches: [main]
paths:
- skills/caveman/SKILL.md
- rules/caveman-activate.md
concurrency:
group: sync-skill
@@ -26,7 +27,7 @@ jobs:
git config user.email "github-actions[bot]@users.noreply.github.com"
git pull --rebase origin main
- name: Copy to duplicate locations
- name: Sync SKILL.md copies
run: |
cp skills/caveman/SKILL.md caveman/SKILL.md
cp skills/caveman/SKILL.md plugins/caveman/skills/caveman/SKILL.md
@@ -35,12 +36,39 @@ jobs:
cp skills/caveman/SKILL.md .windsurf/skills/caveman/SKILL.md
- name: Rebuild caveman.skill ZIP
run: cd skills && zip -r ../caveman.skill caveman/
- name: Sync auto-activation rules
run: |
cd skills && zip -r ../caveman.skill caveman/
BODY="rules/caveman-activate.md"
# Cline + Copilot — no frontmatter, direct copy
mkdir -p .clinerules .github
cp "$BODY" .clinerules/caveman.md
cp "$BODY" .github/copilot-instructions.md
# Cursor — needs alwaysApply frontmatter
mkdir -p .cursor/rules
printf '%s\n' '---' 'description: "Caveman mode — terse communication, ~75% fewer tokens, full technical accuracy"' 'alwaysApply: true' '---' '' > .cursor/rules/caveman.mdc
cat "$BODY" >> .cursor/rules/caveman.mdc
# Windsurf — needs always_on frontmatter
mkdir -p .windsurf/rules
printf '%s\n' '---' 'trigger: always_on' '---' '' > .windsurf/rules/caveman.md
cat "$BODY" >> .windsurf/rules/caveman.md
- name: Commit and push if changed
run: |
git diff --quiet && exit 0
git add caveman/SKILL.md plugins/caveman/skills/caveman/SKILL.md .cursor/skills/caveman/SKILL.md .windsurf/skills/caveman/SKILL.md caveman.skill
git commit -m "chore: sync SKILL.md copies and caveman.skill [skip ci]"
git add \
caveman/SKILL.md \
plugins/caveman/skills/caveman/SKILL.md \
.cursor/skills/caveman/SKILL.md \
.windsurf/skills/caveman/SKILL.md \
caveman.skill \
.clinerules/caveman.md \
.github/copilot-instructions.md \
.cursor/rules/caveman.mdc \
.windsurf/rules/caveman.md
git diff --staged --quiet && exit 0
git commit -m "chore: sync SKILL.md copies and auto-activation rules [skip ci]"
git push