safe-refactor

โดย juliusbrussee

ปรับโครงสร้างโค้ดโดยคงพฤติกรรมเดิมไว้ ใช้สำหรับการแยกโค้ด การรวมโค้ด การย้ายความรับผิดชอบ หรือการทำความสะอาดโค้ด โดยที่การตรวจสอบต้องครอบคลุมการแก้ไขเชิงโครงสร้าง

npx skills add https://github.com/juliusbrussee/caveman --skill safe-refactor

Safe refactor

Define behavior-preservation boundary and establish verification before structural edits.

  • Keep feature changes outside refactor.
  • Move one ownership boundary at a time.
  • Preserve public interfaces, failure behavior, ordering, and compatibility unless explicitly scoped.
  • Keep intermediate states buildable and testable.
  • Avoid dependency or configuration growth without correctness need.

Run same proof after change. Stop when behavior matches and requested structure is achieved.

Skills เพิ่มเติมจาก juliusbrussee

caveman
juliusbrussee
โหมดสื่อสารแบบบีบอัดสูง ลดการใช้โทเค็นประมาณ 75% โดยพูดแบบมนุษย์ถ้ำ แต่ยังคงความถูกต้องทางเทคนิคครบถ้วน รองรับระดับความเข้มข้น: lite, full (ค่าเริ่มต้น), ultra, wenyan-lite, wenyan-full, wenyan-ultra ใช้เมื่อผู้ใช้พูดว่า "caveman mode", "talk like caveman", "use caveman", "less tokens", "be brief" หรือเรียกใช้ /caveman และจะทำงานอัตโนมัติเมื่อมีการขอประสิทธิภาพการใช้โทเค็น
communicationproductivity
caveman-commit
juliusbrussee
เครื่องมือสร้างข้อความคอมมิตที่บีบอัดอย่างยิ่ง ลดความรกในข้อความคอมมิตขณะคงเจตนาและเหตุผลไว้ รูปแบบ Conventional Commits หัวข้อไม่เกิน 50 ตัวอักษร เนื้อหาเฉพาะเมื่อ "เหตุผล" ไม่ชัดเจน ใช้เมื่อผู้ใช้พูดว่า "write a commit", "commit message", "generate commit", "/commit" หรือเรียก /caveman-commit ทำงานอัตโนมัติเมื่อมีการจัดเตรียมการเปลี่ยนแปลง
developmentcode-review
caveman-compress
juliusbrussee
บีบอัดไฟล์หน่วยความจำภาษาธรรมชาติ (CLAUDE.md, todos, preferences) ให้เป็นรูปแบบ caveman เพื่อประหยัดโทเค็นอินพุต คงไว้ซึ่งเนื้อหาทางเทคนิค โค้ด URL และโครงสร้างทั้งหมด เวอร์ชันที่บีบอัดจะเขียนทับไฟล์ต้นฉบับ สำเนาสำรองที่มนุษย์อ่านได้จะถูกบันทึกเป็น FILE.original.md ทริกเกอร์: /caveman-compress FILEPATH หรือ "compress memory file
developmentdocument
caveman-help
juliusbrussee
บัตรอ้างอิงด่วนสำหรับโหมด ทักษะ และคำสั่งทั้งหมดของ caveman แสดงผลครั้งเดียว ไม่ใช่โหมดถาวร คำสั่งเรียก: /caveman-help, "caveman help", "what caveman commands", "how do I use caveman
developmentdocumentproductivity
caveman-review
juliusbrussee
ความคิดเห็นรีวิวโค้ดแบบบีบอัดสูง ลดสัญญาณรบกวนจากฟีดแบ็ก PR ขณะคงสัญญาณที่นำไปปฏิบัติได้ไว้ แต่ละความคิดเห็นคือหนึ่งบรรทัด: ตำแหน่ง ปัญหา วิธีแก้ไข ใช้เมื่อผู้ใช้พูดว่า "review this PR", "code review", "review the diff", "/review" หรือเรียกใช้ /caveman-review ทำงานอัตโนมัติเมื่อรีวิว pull requests
developmentcode-review
caveman-stats
juliusbrussee
แสดงการใช้งานโทเค็นจริงและประมาณการประหยัดสำหรับเซสชันปัจจุบัน อ่านโดยตรงจากบันทึกเซสชันของ Claude Code — ไม่มีการประมาณด้วย AI เรียกใช้ด้วย /caveman-stats ผลลัพธ์ถูกแทรกโดย mode-tracker hook; ตัวโมเดลไม่ได้คำนวณตัวเลขเอง
developmentdata-analysis
cavecrew
juliusbrussee
We need to translate the given English text into Thai. The text describes a decision guide for delegating to caveman-style subagents. It mentions specific names: cavecrew-investigator, cavecrew-builder, cavecrew-reviewer, and cavecrew. These names should be preserved as is. Also preserve "Explore" (capitalized) and the trigger phrases. The translation should be natural Thai, keeping technical terms like "subagent", "tool-result", "context", "inline", "diff review", etc. The instruction says to preserve URLs, numbers, technical terms. No extra commentary. Just output the translation. Let me translate paragraph by paragraph. First sentence: "Decision guide for delegating to caveman-style subagents." -> "คู่มือการตัดสินใจสำหรับการมอบหมายงานให้กับซับเอเจนต์สไตล์ถ้ำมนุษย์" (caveman-style might be "สไตล์ถ้ำมนุษย์" but careful: "caveman" is a term, but we preserve "caveman-style" as is? The
developmentcode-reviewapi
caveman-explore
juliusbrussee
เครื่องมือสำรวจพื้นที่เก็บข้อมูลแบบอ่านอย่างเดียว ใช้เชิงรุกสำหรับการสำรวจเบื้องต้น การค้นหาข้ามไฟล์ในวงกว้าง หรือเมื่อการค้นหาตรงล้มเหลวและจำเป็นต้องระบุตำแหน่งของสิ่งนั้น ข้ามไปเมื่อประเด็นระบุไฟล์หรือสัญลักษณ์ที่แน่นอนอยู่แล้ว หรือรอบก่อนหน้าให้หลักฐาน file:line ที่ใช้งานได้แล้ว ส่งคืนเฉพาะการอ้างอิง path:line แบบกระชับ การอ่านและการ grep ไม่เคยเข้าไปในบทสนทนาหลัก