daftra-backup
БесплатноЗапускает вложенные скриптыНе проверенAnalyze Daftra CSV backups covering customers, suppliers, products, invoices (and line items), purchase orders, expenses, and projects. Use this skill to…
от alazabdev763 установки в других каталогахОб этом скилле
Daftra Backup Analysis
Define Source and Scope
- Use user-provided files if specified; otherwise, use the reference backup located in
assets/source/. - Treat the backup as static historical data. Do not describe prices or balances as real-time, and do not consider it a complete snapshot of the entire Daftra account.
- Preserve the original assets; perform any cleaning or transformation in separate output files. Do not execute write operations on a live account based on these files.
- Respond in Arabic, but retain original column names and identifiers when explaining data matching.
Pre-analysis Inspection
Run from the skill directory:
python3 scripts/inspect_backup.py
To inspect a new ZIP backup or CSV folder:
python3 scripts/inspect_backup.py /absolute/path/to/backup.zip
Consult references/schema.md to select tables and columns. Use references/inventory.json for counts and fingerprints of the provided backup, not to validate data from a new backup. The script performs read-only operations and outputs JSON; it does not establish connections or modify data. Import read_table from the script to read files consistently during analysis. ## Contents of the Attached Version
| File | Number of Records | Purpose |
|---|---|---|
| Clients.csv | 64 | Client data, contract fields, and unit details |
| Client_contacts.csv | 72 | Client contacts |
| Suppliers.csv | 29 | Supplier data |
| Supplier_contacts.csv | 29 | Supplier contacts |
| Products.csv | 3256 | Products, services, prices, and inventory fields |
| Invoices.csv | 122 | Invoice headers and totals |
| Invoice_items.csv | 705 | Invoice line items and taxes |
| Purchase_orders.csv | 62 | Purchase order headers |
| Purchase_order_items.csv | 279 | Purchase order line items |
| Expenses.csv | 2241 | Expenses |
| Projects.csv | 23 | List of projects |
Total: 4,862 records across 11 tables; do not aggregate these as a count of unique transactions or individuals.
Reading the CSV Without Corrupting Identifiers
- The attached files contain a BOM at the start of the first data record following the headers. Remove it from memory before parsing the CSV; using
utf-8-sigalone does not remove the internal BOM and may corrupt the first quoted field. - Use a CSV reader that supports quoted text and newlines within fields, rather than simple comma or line-based splitting.
- Treat codes, phone numbers, and barcodes as text strings—preserving leading zeros (e.g.,
000011) and alphanumeric codes (e.g.,AZ-CRM-0005). - Treat text consisting solely of whitespace as empty in the staging copy. Do not automatically convert empty numeric values to zero. - Use
Decimalfor financial calculations and log non-convertible values instead of silently discarding them. - Retain the file reference and CSV record number for each result. The record number is not necessarily the actual line number.
Link tables using established relationships
| From | To | Staging Result |
|---|---|---|
| Invoice_items.no | Invoices.InvoiceNo | 705 items have a matching number; 4 items have an unresolved parent due to duplicate invoice numbers |
| Invoices.ClientNo | Clients.ClientNumber | 122 of 122 matched |
| Client_contacts.ClientNumber | Clients.ClientNumber | 72 of 72 matched |
| Purchase_order_items.no | Purchase_orders.PurchaseOrderNo | 279 of 279 matched |
| Supplier_contacts.supplier_number | Suppliers.SupplierNumber | 29 of 29 matched |
| Purchase_orders.SupplierNo | Suppliers.SupplierNumber | 0 of 62 matched textually; relationship not supported |
- Verify parent key uniqueness before linking, and check row counts and totals both before and after linking.
- Invoice number
AZ-INV-2024-00177appears in two headers. Do not automatically delete one, nor link the four items to both (which would double the quantities). Present both headers for review and use theIDto track each header after verifying its uniqueness; do not replace it with the item keynowithout justification. - Do not handle supplier number discrepancies by stripping leading zeros or matching based on row number. - Use
SupplierBusinessNamefor display purposes, sourced directly from the purchase order header. While a name match withBusinessName—accompanied by a confidence score and supporting evidence—may be suggested, do not treat it as a confirmed relationship without verification. - There is no explicit product identifier in the line-item tables; the
itemfield is a text description, not a guaranteed key linking toProducts.idorProductCode. - There is no explicit project relationship in invoice, purchase order, or expense headers. Do not attribute these records to projects based solely on
StaffIDor names by default. Expenses.Vendoris not a validated vendor key; treat it as a text field unless proven otherwise.
Task Execution by Domain
Invoices and Sales
- Rely on invoice headers for totals and line items for details; do not confla
Установить daftra-backup в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл daftra-backup?
Analyze Daftra CSV backups covering customers, suppliers, products, invoices (and line items), purchase orders, expenses, and projects. Use this skill to read, search, inventory, link records, or prepare data for migration to MCP or import files—while checking for duplicate numbers and unresolved relationships. This skill does not provide a live connection or the ability to modify the Daftra account.
Как установить скилл daftra-backup?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл daftra-backup запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic