clean-data-xls
ما الذي تفعله
توجّه هذه المهارة الوكيل لترتيب بيانات فوضوية في جدول بيانات قبل التحليل. وهي موجهة لكل من يحوي جدوله تنسيقات غير متسقة أو تكرارات أو أخطاء.
متى تستخدمها
- ✓عندما تكون أسماء أو حالة أحرف أو تنسيقات تواريخ في الجدول غير متسقة.
- ✓عندما تُخزَّن الأرقام كنص ولا تُجمع بشكل صحيح.
- ✓عندما تحتاج إلى حذف الصفوف المكررة قبل التحليل.
رابط المهارة
https://github.com/anthropics/financial-services/blob/main/plugins/vertical-plugins/financial-analysis/skills/clean-data-xls/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“نظّف جدول المبيعات الفوضوي هذا، بحيث تكون التواريخ والأرقام وأسماء العملاء متسقة.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
يحلل الوكيل كل عمود، ويجد مشكلات مثل المسافات الزائدة وتنسيقات التواريخ المختلطة والتكرارات، ويقترح الإصلاحات قبل تطبيقها. يعمل في إضافة Excel مفتوحة أو على ملف.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
Clean Data
Clean messy data in the active sheet or a specified range.
Environment
- If running inside Excel (Office Add-in / Office JS): Use Office JS directly (
Excel.run(async (context) => {...})). Read viarange.values, write helper-column formulas viarange.formulas = [["=TRIM(A2)"]]. The in-place vs helper-column decision still applies. - If operating on a standalone .xlsx file: Use Python/openpyxl.
Workflow
Step 1: Scope
- If a range is given (e.g.
A1:F200), use it - Otherwise use the full used range of the active sheet
- Profile each column: detect its dominant type (text / number / date) and identify outliers
Step 2: Detect issues
| Issue | What to look for |
|---|---|
| Whitespace | leading/trailing spaces, double spaces |
| Casing | inconsistent casing in categorical columns (usa / USA / Usa) |
| Number-as-text | numeric values stored as text; stray $, ,, % in number cells |
| Dates | mixed formats in the same column (3/8/26, 2026-03-08, March 8 2026) |
| Duplicates | exact-duplicate rows and near-duplicates (case/whitespace differences) |
| Blanks | empty cells in otherwise-populated columns |
| Mixed types | a column that's 98% numbers but has 3 text entries |
| Encoding | mojibake (é, ’), non-printing characters |
| Errors | #REF!, #N/A, #VALUE!, #DIV/0! |
Step 3: Propose fixes
Show a summary table before changing anything:
| Column | Issue | Count | Proposed Fix |
|---|
Step 4: Apply
- Prefer formulas over hardcoded cleaned values — where the cleaned output can be expressed as a formula (e.g.
=TRIM(A2),=VALUE(SUBSTITUTE(B2,"$","")),=UPPER(C2),=DATEVALUE(D2)), write the formula in an adjacent helper column rather than computing the result in Python and overwriting the original. This keeps the transformation transparent and auditable. - Only overwrite in place with computed values when the user explicitly asks for it, or when no sensible formula equivalent exists (e.g. encoding/mojibake repair)
- For destructive operations (removing duplicates, filling blanks, overwriting originals), confirm with the user first
- After each category of fix (whitespace → casing → number conversion → dates → dedup), show the user a sample of what changed and get confirmation before moving to the next category
- Report a before/after summary of what changed
الأسئلة الشائعة
هل سيغيّر بياناتي دون أن يُريني؟
لا. تقترح المهارة الإصلاحات أولاً، لتراجعها قبل تطبيقها.
ما المشكلات التي يكشفها؟
المسافات وحالة الأحرف والأرقام المخزنة كنص والتواريخ المختلطة والمكررات والخانات الفارغة وأنواع البيانات المختلطة وأخطاء الترميز وأخطاء المعادلات.
هل يمكنه تنظيف جزء من الورقة؟
نعم. يمكنك إعطاؤه نطاقاً، وإلا فإنه يستخدم كامل المنطقة المستخدمة في الورقة النشطة.
التفاصيل
الوصف الأصلي من المؤلف
Clean up messy spreadsheet data — trim whitespace, fix inconsistent casing, convert numbers-stored-as-text, standardize dates, remove duplicates, and flag mixed-type columns. Use when data is messy, inconsistent, or needs prep before analysis. Triggers on "clean this data", "clean up this sheet", "normalize this data", "fix formatting", "dedupe", "standardize this column", "this data is messy".
الشعبية
- نجوم GitHub
- 41k
- الترتيب
- #6608
- الترخيص
- Apache-2.0
- آخر تحديث
- 28/10/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
audit-xls
41kيساعد وكيلك على فحص جدول بيانات بحثاً عن أخطاء المعادلات والأرقام المكتوبة يدوياً والروابط المكسورة، لنطاق أو ورقة أو نموذج كامل.
earnings-analysis
41kيساعد وكيلك على كتابة تحديث موجز عن النتائج الفصلية لشركة، يغطي التفوق أو الإخفاق والأرقام الرئيسية والتوقعات المعدلة.
earnings-preview
41kيساعد وكيلك على التحضير قبل إعلان شركة نتائجها، بمقاييس يجب متابعتها وسيناريوهات متفائلة ومتشائمة وأهم المحفزات.
model-update
41kيساعد وكيلك على تحديث نموذج مالي بالنتائج والتوجيهات والافتراضات الجديدة، ثم يبرز التغييرات الأهم.
مهارات مشابهة
gitcrawl
394kيتيح لوكيلك البحث في أرشيف محفوظ لمشكلات GitHub وطلبات السحب، وتجميع المكرر منها، والتحقق من حالتها الحالية على GitHub.
slacrawl
394kيتيح لوكيلك البحث في رسائل Slack داخل أرشيف محلي وعدّها، والتحقق من مدى حداثة الأرشيف، وتحديثه عند الحاجة.
goplaces
394kيساعد وكيلك على البحث عن الأماكن وعرض تفاصيلها وتقييماتها وتحديد أسمائها عبر Google Places، مع مخرجات JSON للسكربتات.