extract-and-name

โดย AgentsRoomตรวจสอบโดย AgentsRoomยังไม่มีการติดตั้งยังไม่มีการถูกใจอัปเดตเมื่อ 7 พฤษภาคม 2569หมวดหมู่: วิศวกรรม

ทำอะไรได้บ้าง

Use when a function exceeds 40 lines or a file exceeds 300. Extracts cohesive sub-units with names that describe intent.

การติดตั้งจะเปิดรายการนี้ในแอปเดสก์ท็อป AgentsRoom ของคุณ หากยังไม่ได้ติดตั้งแอป ระบบจะพาคุณไปยังหน้าดาวน์โหลด

SKILL.md

---
name: extract-and-name
description: Use when a function exceeds 40 lines or a file exceeds 300. Extracts cohesive sub-units with names that describe intent.
---

# Extract and name

When you spot an oversized function or file:

1. Identify cohesive blocks (paragraphs of code that do one thing).
2. Extract each into its own function. Name it after WHAT it does, not HOW.
3. Keep the public surface stable — extraction is internal only.
4. After extraction, the original function should read like a high-level outline.
5. Don't extract for the sake of it: a 60-line linear setup is fine. The signal is "I had to scroll to understand".

แท็ก

refactorquality

เจาะลึกเพิ่มเติม

ดาวน์โหลด AgentsRoom

รันเอเจนต์ AI ทั้งหมดของคุณในทุกโปรเจกต์ จากหน้าต่างเดียว

ฟรีดาวน์โหลด AgentsRoom

แอปคู่หู: ตรวจสอบเอเจนต์ของคุณได้ทุกที่

นำของคุณเอง: Claude, Codex, Antigravity CLI, หรือผู้ให้บริการ AI อื่น ๆ

รับส่วนขยาย
Chrome Web Store

ส่งข้อบกพร่องและคำขอไปยังแบ็คล็อกสาธารณะของคุณโดยตรง

มองเห็น AgentsRoom ในการทำงาน

หลายโปรเจกต์
ผู้ให้บริการหลายราย
หลาย agents
สถานะสด
ไฟล์ diff & commit
คู่หูมือถือ
ตัวอย่างสด
ทีมเอเจนต์
การทำงานอัตโนมัติในเบราว์เซอร์
การพัฒนาที่ขับเคลื่อนด้วย backlog
ห้องสมุดคำสั่ง
ห้องสมุดทักษะ
ดูฟีเจอร์ทั้งหมด