Methodologygeneric
recipe-sync-contacts-to-sheet
Export Google Contacts directory to a Google Sheets spreadsheet.
googleworkspace/cli
Install
Use with your agent
Install the recipe-sync-contacts-to-sheet skill, then use it as build context. Run: npx skills add https://github.com/googleworkspace/cli --skill recipe-sync-contacts-to-sheet. Then read the installed skill.md and follow its guidance to build or refactor my project.
Export Google Contacts to Sheets
PREREQUISITE: Load the following skills to execute this recipe:
gws-people,gws-sheets
Export Google Contacts directory to a Google Sheets spreadsheet.
Steps
- List contacts:
gws people people listDirectoryPeople --params '{"readMask": "names,emailAddresses,phoneNumbers", "sources": ["DIRECTORY_SOURCE_TYPE_DOMAIN_PROFILE"], "pageSize": 100}' --format json - Create a sheet:
gws sheets +append --spreadsheet SHEET_ID --range 'Contacts' --values '["Name", "Email", "Phone"]' - Append each contact row:
gws sheets +append --spreadsheet SHEET_ID --range 'Contacts' --values '["Jane Doe", "[email protected]", "+1-555-0100"]'