quarterly-database-cleanup — скилл для Claude Code: аудит CRM
Скилл проверяет качество данных в HubSpot, активность контактов и состояние списков, затем формирует отчёт с сравнением кварталов. Пригодится для регулярной очистки CRM.
npx skills add TomGranot/hubspot-admin-skills --skill quarterly-database-cleanup -a claude-codeЧто делает quarterly-database-cleanup
Скилл проводит аудит HubSpot: считает активные и неиспользуемые списки, проверяет отказы доставки, заполненность свойств, конверсию лидов и вовлечённость контактов. Также находит свойства без записей и тестовые поля, которые стоит архивировать.
Для сравнения нужен отчёт за прошлый квартал; при первом запуске его можно не использовать. Скилл получает метрики через HubSpot API и сохраняет результат в reports/quarterly-cleanup-{YYYY-Q#}.md, включая показатели, изменения и список задач. Это аудит только для чтения: действия из отчёта выполняются отдельно.
Перед запуском нужны токен HubSpot в .env и Python 3.10+ с uv. Без доступа к HubSpot API свежие метрики получить не получится. Для командного аудита можно запустить /hubspot-audit или отдельный вариант для маркетинга либо продаж.
Какие задачи решает
- найти списки без участников и дубликаты
- проверить долю отказов доставки по кварталам
- выявить неполные контактные данные и свойства
- сопоставить оценку лидов с конверсией
- собрать отчёт о состоянии CRM с задачами
Примеры запросов агенту
- Проведи квартальный аудит HubSpot и сравни метрики с прошлым отчётом.
- Проверь списки, отказы доставки и качество данных в HubSpot.
- Собери отчёт о состоянии базы в
reports/quarterly-cleanup-{YYYY-Q#}.md.
Как установить quarterly-database-cleanup
1Через Skills CLI (Vercel)
npx skills add TomGranot/hubspot-admin-skills --skill quarterly-database-cleanup -a claude-code2Вручную: положить файлы
~/.claude/skills/quarterly-database-cleanup/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/quarterly-database-cleanup/
1Через Skills CLI (Vercel)
npx skills add TomGranot/hubspot-admin-skills --skill quarterly-database-cleanup -a codex2Вручную: положить файлы
.agents/skills/quarterly-database-cleanup/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add TomGranot/hubspot-admin-skills --skill quarterly-database-cleanup -a cursor2Вручную: положить файлы
.cursor/skills/quarterly-database-cleanup/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install TomGranot/hubspot-admin-skills quarterly-database-cleanup2Вручную: положить файлы
.github/skills/quarterly-database-cleanup/SKILL.md1Через Skills CLI (Vercel)
npx skills add TomGranot/hubspot-admin-skills --skill quarterly-database-cleanup -a gemini-cli2Командой платформы
gemini skills install https://github.com/TomGranot/hubspot-admin-skills --path skills/quarterly-database-cleanupВручную: положить файлы
.devin/skills/quarterly-database-cleanup/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add TomGranot/hubspot-admin-skills --skill quarterly-database-cleanup -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о quarterly-database-cleanup
Как установить quarterly-database-cleanup в Claude Code?
Выполните npx skills add TomGranot/hubspot-admin-skills --skill quarterly-database-cleanup -a claude-code. Файл скилла находится по пути ~/.claude/skills/quarterly-database-cleanup/SKILL.md.
Что делает quarterly-database-cleanup?
Проверяет списки, отказы доставки, качество данных, оценку лидов, вовлечённость и свойства HubSpot. Результат — отчёт с квартальным сравнением и задачами.
Что нужно для работы с quarterly-database-cleanup?
Нужен токен HubSpot в .env, а также Python 3.10+ и uv. Предыдущий отчёт нужен для сравнения, но при первом запуске его можно пропустить.
Исходный текст
SKILL.md · MIT
---
name: quarterly-database-cleanup
description: "Run a comprehensive quarterly CRM audit covering list health, bounce monitoring, data quality, scoring calibration, engagement metrics, and property cleanup. Produces a health report with quarter-over-quarter trend comparison."
license: MIT
metadata:
author: tomgranot
version: "1.1"
category: ongoing-maintenance
---
# Quarterly Database Cleanup
A structured quarterly audit that catches data drift before it becomes a crisis. Run this at the start of each quarter (or monthly if the database is large or fast-growing).
## Prerequisites
- A HubSpot service key (`HUBSPOT_ACCESS_TOKEN` in `.env`; an existing legacy private app token also works)
- Python 3.10+ with [`uv`](https://github.com/astral-sh/uv)
- Previous quarter's report (for trend comparison) — optional on first run
## Audit Checklist
### 1. List Health
- Count total active lists, static lists, and unused lists (zero members)
- Identify lists not referenced by any workflow or email
- Flag duplicate or overlapping lists
### 2. Bounce Monitoring
- Count contacts with 1, 2, and 3+ bounces
- Hard bounce rate vs. previous quarter
- Review contacts flagged by bounce monitoring workflow
### 3. Data Quality
- Missing email, company, industry, country, lifecycle stage
- Compare percentages to previous quarter
- Flag any property completeness that dropped more than 5%
### 4. Scoring Calibration
- Review lead score distribution (histogram)
- Check MQL conversion rate — are high-scoring leads actually converting?
- Adjust scoring model if conversion rate is below 10% or above 50%
### 5. Engagement Metrics
- Active contacts (engagement in last 90 days) as % of total
- Zombie contacts (no engagement in 6+ months) as % of total
- Email open rate and click rate trends
### 6. Property Cleanup
- Custom properties with zero populated records
- Properties not used in any list, workflow, or form
- Test/temp properties that should be archived
## Step-by-Step Instructions
### Stage 1: Before — Gather Baselines
1. Locate the previous quarter's report (if it exists) in `reports/`.
2. Run `/hubspot-audit` to get fresh numbers across all dimensions (or `/hubspot-marketing-audit` / `/hubspot-sales-audit` if each team reviews its own side).
### Stage 2: Execute — Deep Review
For each checklist item above:
1. Pull current metrics via the HubSpot API (reuse audit script patterns).
2. Compare to the previous quarter's numbers.
3. Flag any metric that worsened by more than 5 percentage points.
4. Document specific contacts, lists, or properties that need action.
### Stage 3: After — Generate Report
Save a report to `reports/quarterly-cleanup-{YYYY-Q#}.md` with this structure:
```markdown
# Quarterly Database Health Report — YYYY Q#
## Summary
| Metric | Last Quarter | This Quarter | Change |
|--------|-------------|-------------|--------|
| Total contacts | XX,XXX | XX,XXX | +X% |
| Data completeness | XX% | XX% | +X% |
| Bounce rate | X.X% | X.X% | -X% |
| Zombie contacts | XX% | XX% | -X% |
| Unused lists | XX | XX | -XX |
## Action Items
1. [item with owner and deadline]
2. ...
## Detailed Findings
[One section per checklist item with metrics and recommendations]
```
### Stage 4: Rollback
This is a read-only audit — no rollback needed. Action items from the report are executed separately through their respective skills.
## Scheduling
- Set a recurring calendar reminder for the first Monday of each quarter.
- Assign an owner for each action item in the report.
- Review the previous quarter's action items for completion before starting the new audit.
© tomgranot · MIT · TomGranot/hubspot-admin-skills