mirror of
https://github.com/JuliusBrussee/caveman.git
synced 2026-08-11 13:21:09 +02:00
Drop CI-generated mirrors that self-applied caveman to this repo when opened in Cursor/Windsurf/Cline/Copilot. The installer never read them (bin/install.js consumes only hooks/, rules/, tools/, agents/, skills/, mcp-servers/, plugins/caveman/), so removing them just declutters the root. Devs who want self-application can opt in via npx caveman --only <agent>. Removed: - .cursor/skills/, .cursor/rules/caveman.mdc - .windsurf/skills/, .windsurf/rules/caveman.md - .clinerules/caveman.md - .github/copilot-instructions.md - caveman/SKILL.md (and empty caveman/ parent) Updated .github/workflows/sync-skill.yml: drop the cp + mkdir lines and git add paths for those mirrors, drop the entire "Sync auto-activation rules" step, and drop rules/caveman-activate.md from the paths: trigger since the workflow no longer consumes it. plugins/caveman/, cavecrew, compress, and caveman.skill ZIP sync steps are preserved. Updated CONTRIBUTING.md note to reflect the smaller auto-synced set. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
71 lines
2.5 KiB
YAML
71 lines
2.5 KiB
YAML
name: Sync SKILL.md and rules
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- skills/caveman/SKILL.md
|
|
- skills/cavecrew/SKILL.md
|
|
- agents/cavecrew-*.md
|
|
- skills/caveman-compress/SKILL.md
|
|
- skills/caveman-compress/scripts/**
|
|
|
|
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 plugins/caveman/skills/caveman/SKILL.md
|
|
|
|
- name: Sync caveman-compress skill to plugin
|
|
run: |
|
|
# Plugin distribution mirrors source verbatim — no rename, no sed.
|
|
mkdir -p plugins/caveman/skills/caveman-compress
|
|
cp skills/caveman-compress/SKILL.md plugins/caveman/skills/caveman-compress/SKILL.md
|
|
rm -rf plugins/caveman/skills/caveman-compress/scripts
|
|
cp -r skills/caveman-compress/scripts plugins/caveman/skills/caveman-compress/scripts
|
|
rm -rf plugins/caveman/skills/caveman-compress/scripts/__pycache__
|
|
|
|
- name: Sync cavecrew skill + agents to plugin
|
|
run: |
|
|
mkdir -p plugins/caveman/skills/cavecrew plugins/caveman/agents
|
|
cp skills/cavecrew/SKILL.md plugins/caveman/skills/cavecrew/SKILL.md
|
|
cp agents/cavecrew-investigator.md plugins/caveman/agents/cavecrew-investigator.md
|
|
cp agents/cavecrew-builder.md plugins/caveman/agents/cavecrew-builder.md
|
|
cp agents/cavecrew-reviewer.md plugins/caveman/agents/cavecrew-reviewer.md
|
|
|
|
- name: Rebuild caveman.skill ZIP
|
|
run: mkdir -p dist && cd skills && zip -r ../dist/caveman.skill caveman/
|
|
|
|
- name: Commit and push if changed
|
|
run: |
|
|
git add \
|
|
skills/caveman-compress/ \
|
|
plugins/caveman/skills/caveman-compress/ \
|
|
plugins/caveman/skills/caveman/SKILL.md \
|
|
plugins/caveman/skills/cavecrew/SKILL.md \
|
|
plugins/caveman/agents/cavecrew-investigator.md \
|
|
plugins/caveman/agents/cavecrew-builder.md \
|
|
plugins/caveman/agents/cavecrew-reviewer.md \
|
|
dist/caveman.skill
|
|
git diff --staged --quiet && exit 0
|
|
git commit -m "chore: sync SKILL.md copies [skip ci]"
|
|
git push
|