claude-handoff
MAmattpocock/skills337k近 7 天新增 4,978 个 star
Convert contact information from user-provided text or images into previewable, importable, and shareable .vcf vCard files. Prioritize the real user experience: extract the data and have the user confirm it before generating the file. Mark any uncertain fields and do not silently fill in guesses.
apple-vision ocr to recognize text. If it appears to contain a QR code, use apple-vision barcode./var/minis/attachments/, /var/minis/workspace/, and /var/minis/mounts/.FN/NTEL: Multiple numbers must be split into separate TEL entries. The number field should contain only the number itself. Do not append labels such as "front desk," "mobile," or "WeChat" to the number. Export all phone numbers uniformly as TEL;TYPE=CELL; users can change the type themselves if needed. Labels can be shown in the summary and, if necessary, placed in notes.EMAILORGTITLEADRURLNOTE: Source, WeChat ID, uncategorized but long-term useful information, and uncertain recognition items. Do not include temporary to-dos, reminders, or next follow-up items./var/minis/skills/contact-vcard-extractor/scripts/contact_to_vcard.py/var/minis/workspace/Contact Name.vcf. Remove special characters from the file name. If necessary, use contact.vcf.[Import Contact](minis://workspace/xxx.vcf).minis-open /var/minis/workspace/xxx.vcf to preview/share within the app.apple-open /var/minis/workspace/xxx.vcf or minis-open. Usually, prefer minis-open to stay in the chat.apple-vision ocr /var/minis/attachments/card.jpg --lang zh-Hans,en --level accurate --compact
apple-vision barcode /var/minis/attachments/card.jpg --compact
After saving the OCR output as a text file, run the parsing script.
python3 /var/minis/skills/contact-vcard-extractor/scripts/contact_to_vcard.py \
--text-file /var/minis/workspace/contact_ocr.txt \
--out /var/minis/workspace/contact.vcf \
--json
Text can also be passed via stdin. Do not inline very long text in shell commands; for long text, first use file_write to write it to a file.
apple-reminders create to create the reminder.TEL may contain only numbers, such as 010-66668888 or 13344445555. For "010-66668888 (front desk), mobile 13344445555," split it into two phone entries. Use "front desk/mobile" only as display labels or notes, and do not append them to the number. When exporting, use TEL;TYPE=CELL for all phone numbers. Do not write types such as VOICE/HOME/WORK unless the user explicitly specifies them..vcf files, or merge them into one contacts.vcf file containing multiple vCards. Finally, list each person in a table.MECARD:, BEGIN:VCARD, tel:, mailto:, WeChat, or a URL, parse it according to the content. Raw vCard content can be saved directly as .vcf; MECARD must be converted.N field can use the first character as the family name and the remaining characters as the given name. If uncertain, prioritize correct display in FN.+Country Code, extensions, and spaces. Do not forcefully rewrite them.Name.vcf; if the name is empty, use contact-YYYYMMDD-HHMM.vcf.I’ve organized this business card:
| Field | Content |
|---|---|
| Name | Zhang San |
| Phone | +86 138 0000 0000 |
| [email protected] | |
| Company | Example Tech |
After opening it, you can add it to Contacts or share it directly with someone else.
contact_to_vcard.py performs basic rule-based extraction and vCard escaping. It is not the only method: for complex input, low-quality OCR, or messy layouts, use model judgment to manually correct the fields before generating the vCard.
MAmattpocock/skills337k近 7 天新增 4,978 个 star
MAmattpocock/skills337k近 7 天新增 4,978 个 star
AFaffaan-m/ECC315k近 7 天新增 4,381 个 star
AFaffaan-m/ECC315k近 7 天新增 4,381 个 star
AFaffaan-m/ECC315k近 7 天新增 4,381 个 star
DIDietrichGebert/ponytail203k近 7 天新增 4,904 个 star