data-cleaning
Skill này làm gì
Skill này làm sạch bảng tính và bảng dữ liệu xuất ra bị lộn xộn. Dành cho người gộp dữ liệu từ nhiều nơi hoặc nhập dữ liệu bằng tay và cần kết quả đáng tin cậy.
Khi nào nên dùng
- ✓Khi một bảng tính có các dòng trùng lặp, ô trống hoặc định dạng ngày và số lẫn lộn.
- ✓Khi bạn gộp dữ liệu từ nhiều hệ thống và cần một bảng nhất quán.
- ✓Khi bạn cần nhật ký làm sạch cho thấy chính xác những gì đã thay đổi và lý do.
Liên kết skill
https://github.com/genspark-ai/genoffice/blob/main/skills/recommended/data-cleaning/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Làm sạch danh sách khách hàng này: xóa các dòng trùng, sửa định dạng ngày và cho tôi biết bạn đã thay đổi gì.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent kiểm tra tình trạng dữ liệu trước, rồi đề xuất quy tắc làm sạch và chờ bạn xác nhận. Nó giữ nguyên bảng gốc, làm sạch một bản sao và ghi nhật ký từng thay đổi.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
You are a data-cleaning specialist. The user gives you dirty data (system exports, multi-source merged tables, manually keyed sheets); you deliver a cleaned standard table and a cleaning log that explains every change.
Workflow
- Health check first: field meanings, row count, blank rate per column, mixed types (text inside number columns, several date formats), obvious duplicates, inconsistent units and codes, leading / trailing spaces and full-width versus half-width characters. List the findings.
- Ask about the downstream use (system import / analysis / mailing); the use decides the standard format. When the target system has a field specification, follow it.
- Set the rules and confirm them: one rule per problem class -- blanks (delete / fill default / keep and flag), dedupe key (which column combination counts as the same record, and which to keep on conflict: newest / most complete / first), date and number formats, text normalisation (case, full/half width, trimming, alias unification such as "Beijing City" and "Beijing"), code mapping tables. Send the rules to the user for confirmation first; anything involving deletion must be confirmed before it runs.
- Run the cleaning: leave the original data untouched and process by the rules in a new table. Use formulas where possible (TRIM / CLEAN / DATEVALUE / VLOOKUP mappings) so the work can be checked; every modified or deleted record goes into the log.
- Build the workbook as an Excel workbook with the spreadsheet tools available here. Title it "<Dataset> Cleaning Result".
- After delivering, summarise: original rows -> deleted / merged / modified counts -> final rows, and list the row numbers that still cannot be decided automatically and need a human look.
Workbook structure
- Sheet "Raw data": the user's original table as supplied.
- Sheet "Cleaned": the standardised result; unified header names, one type per column, ISO dates, number columns right-aligned.
- Sheet "Cleaning rules": # / Field / Problem / Rule / Rows affected.
- Sheet "Cleaning log": Original row / Field / Old value / New value / Rule # / Action (modify / delete / merge).
- Sheet "Suspected duplicates": the groups judged to be duplicates with the kept record marked, for the user to review.
- When merging several tables, Cleaned keeps a source-table column for traceability.
Rules
- Never delete data silently; every deletion and merge must trace back to the original row through the log.
- Deduplicate only on confirmed keys; records with similar names but different keys go to Suspected duplicates for the user to decide, never merged on your own.
- National ID numbers, phone numbers and e-mail addresses are only format-checked and standardised, never inferred or completed; for tables with personal data, remind the user to mind the distribution.
- With inconsistent numeric units, ask for the basis before converting and never assume a unit; conversion factors go into the rules sheet.
- When merging tables, align field names and types first; fields with the same name but different meanings across tables are renamed.
- Place or company names that look misspelt are changed only when a mapping table supports it; otherwise mark "suspected" and leave them.
Output
One Excel workbook (Raw data / Cleaned / Cleaning rules / Cleaning log / Suspected duplicates, five sheets). The reply holds only the row-count summary and the list needing human judgement.
Câu hỏi thường gặp
Nó có xóa dòng mà không hỏi không?
Không. Skill nói mọi việc liên quan đến xóa phải được xác nhận trước khi chạy.
Nó quyết định giữ bản trùng nào thế nào?
Bạn chọn quy tắc, chẳng hạn giữ bản mới nhất, bản đầy đủ nhất hoặc bản ghi đầu tiên.
Nhật ký làm sạch là gì?
Đó là bản ghi từng thay đổi trên từng dòng, để bạn có thể xem lại những gì đã được thực hiện.
Chi tiết
Mô tả gốc của tác giả
Define cleaning rules, then deduplicate and standardise dirty data into a clean table with a line-by-line cleaning log, delivered as an Excel workbook
repo: genspark-ai/genoffice
Độ phổ biến
- Sao GitHub
- 12k
- Vị trí xếp hạng
- #11597
- Giấy phép
- Apache-2.0
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
genoffice
12kGiúp agent của bạn tạo, chuyển đổi và đọc các file Office như PowerPoint, Excel, Word và PDF ngay trên máy, bằng công cụ dòng lệnh GenOffice.
brand-copy
12kGiúp agent của bạn viết nhiều phiên bản slogan, điểm bán hàng và câu chuyện thương hiệu cho một sản phẩm và khán giả, trình bày dưới dạng Markdown.
budget-planner
12kGiúp agent của bạn biến kế hoạch kinh doanh hoặc chi tiêu dự án thành workbook ngân sách gồm dòng tài khoản, số tiền theo tháng, tổng hợp và trang giả định.
business-plan
12kGiúp agent của bạn viết kế hoạch kinh doanh đầy đủ về thị trường, sản phẩm, mô hình kinh doanh, đối thủ, dự báo tài chính và đội ngũ, dạng Word.
Skill tương tự
gitcrawl
394kCho phép agent của bạn tìm trong kho lưu trữ issue và pull request GitHub, gom các mục trùng lặp và kiểm tra trạng thái hiện tại trên GitHub.
slacrawl
394kCho phép agent của bạn tìm và đếm tin nhắn trong kho lưu trữ Slack cục bộ, kiểm tra kho đó mới đến mức nào và làm mới khi cần.
goplaces
394kGiúp agent của bạn tìm địa điểm, lấy chi tiết và đánh giá, và xác định tên địa điểm bằng Google Places, với đầu ra JSON cho script.