Skip to content

refactor: consolidate caveman-compress into skills/, drop renamed mirror#360

Open
JuliusBrussee wants to merge 1 commit into
mainfrom
worktree-agent-a58bc140857201c12
Open

refactor: consolidate caveman-compress into skills/, drop renamed mirror#360
JuliusBrussee wants to merge 1 commit into
mainfrom
worktree-agent-a58bc140857201c12

Conversation

@JuliusBrussee
Copy link
Copy Markdown
Owner

Summary

  • Move caveman-compress/ source into skills/caveman-compress/ so the compress sub-skill lives where every other skill does.
  • Delete the CI-generated skills/compress/ rename mirror that caused dual-source confusion.
  • Rename plugins/caveman/skills/compress/plugins/caveman/skills/caveman-compress/ so the plugin advertises the consolidated name.
  • Collapse the two sed-heavy CI sync steps into one verbatim cp -r step now that source and plugin share the same name: caveman-compress frontmatter.

What changed

  • git mv caveman-compress/* skills/caveman-compress/ (history preserved on SKILL.md, scripts, README, SECURITY).
  • SKILL.md Process step references its own scripts/ dir instead of caveman-compress/scripts/. The cd caveman-compress invocation is gone.
  • .github/workflows/sync-skill.yml triggers on skills/caveman-compress/... and copies the source dir into the plugin verbatim. No more sed rename or path rewrite.
  • Path-walk in scripts/benchmark.py updated to use Path.resolve().parents[N] for the new directory depths (skills tree: 3, plugin tree: 5).
  • tests/verify_repo.py, tests/test_compress_safety.py, tests/test_validate_inline.py import from skills/caveman-compress/scripts/.
  • GEMINI.md, AGENTS.md, CONTRIBUTING.md, and the README link to skills/caveman-compress/ (README change is one line — caveman-compress README and SECURITY.md links).
  • CLAUDE.md table left untouched per the cleanup plan; Unit 8 owns that.

Test plan

  • python3 -m unittest test_compress_safety test_validate_inline (15/15 pass)
  • python3 tests/verify_repo.py — all checks pass (frontmatter, manifests, hooks, compress fixtures, compress CLI)
  • python3 -c "import yaml; yaml.safe_load(open('.github/workflows/sync-skill.yml'))" — workflow parses
  • grep -rn 'caveman-compress\b\|skills/compress' — no dangling path refs (remaining hits are intentional: brand mentions, slash-command name, English usage of "caveman-compressed", and CLAUDE.md which Unit 8 owns)
  • CI sync workflow runs on merge — single step now, watch the run

🤖 Generated with Claude Code

…eliminate compress mirror

- Move caveman-compress/ source (SKILL.md, scripts/, README.md, SECURITY.md) to skills/caveman-compress/.
- Delete skills/compress/ — the CI-generated rename mirror that caused dual-source confusion.
- Move plugins/caveman/skills/compress/ to plugins/caveman/skills/caveman-compress/. Plugin keeps the consolidated name; CI no longer rewrites the frontmatter.
- Replace the two sed-heavy CI sync steps with one verbatim cp -r from source to plugin.
- Update verify_repo.py, test_compress_safety.py, test_validate_inline.py, GEMINI.md, AGENTS.md, CONTRIBUTING.md, README.md, and the workflow paths to reference the new location.
- Use Path.resolve().parents[N] for the benchmark.py repo-root walk now that the directory depth changed.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant