docs(readme): fix install behavior claims #4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Sync SKILL.md and rules | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - skills/caveman/SKILL.md | |
| - rules/caveman-activate.md | |
| concurrency: | |
| group: sync-skill | |
| cancel-in-progress: false | |
| jobs: | |
| sync: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| ref: main | |
| - name: Pull latest before making changes | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| git pull --rebase origin main | |
| - 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 | |
| cp skills/caveman/SKILL.md .cursor/skills/caveman/SKILL.md | |
| mkdir -p .windsurf/skills/caveman | |
| 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: | | |
| 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 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 |