Our review
Final phase of the Lead Finder workflow: verifies the CSV export, displays a formatted summary of results, closes the browser session without logging out, and updates the progress state.
Strengths
- Clear step-by-step instructions with exact shell commands and Python snippets.
- Preserves Instagram session cookies by avoiding logout, improving efficiency.
- Provides a structured summary and next-step enrichment suggestions.
- Ensures state is marked complete for reproducibility.
Limitations
- Requires the state file and prior phases to have run successfully.
- Paths and file names are hardcoded to a specific local repository.
- No error handling if CSV is missing or state is malformed (not described).
Use at the end of a Lead Finder run to wrap up, report results, and prepare for the next phase.
Do not use if the lead-finder state is absent or the user still needs to modify collected leads before closing.
Security analysis
CautionThe skill executes bash and Python for legitimate file operations and state updates. No destructive, exfiltrating, or obfuscated actions are present, but the use of scripting tools without declared permissions warrants caution.
- •Uses bash (cat, ls) and inline Python to read/write files.
- •No allowed-tools declared in frontmatter, so tool permissions are unclear.
- •Python script directly writes to a state file; harmless but could overwrite if path assumptions change.
Examples
Finish phase 6 of the lead-finder: show the final summary, confirm the CSV, close the browser session, and mark the state complete.Lead finder phase 6: print the results summary, list top leads, and suggest /enrich-lead commands for the best ones.Run lead-finder phase 6 cleanup: verify CSV, display summary, navigate to about:blank, and update progress state.name: lead-phase-6 description: Fase 6 do lead-finder — Resumo final, CSV e fechar sessao user-invocable: false
Fase 6 — Resumo + CSV + Fechar
Leia o state file:
cat data/_state/lead-finder-progress.json
6.1 Garantir CSV salvo
Verifique que todos os leads foram salvos via instagram_append_lead na Fase 4.
Se algum ficou pendente, salve agora.
Identifique o CSV gerado:
ls -t leads/leads_*.csv | head -1
6.2 Mostrar resumo
========================================
RESULTADO — Lead Finder (Playwright)
========================================
Nicho: [nicho] | Cidade: [cidade]
Candidatos Google: XX
Do cache (pulados): XX
Validados: XX
Leads encontrados: XX
QUENTES: XX
MORNOS: XX
FRIOS: XX
Similares descobertos: XX
CSV: leads/leads_XXXXXXXX.csv
========================================
TOP LEADS:
──────────────────────────────────────
1. @username (QUENTE, score 8)
Nome: [full_name]
[followers] seg. | [posts] posts
Bio: [resumo bio]
Site: nenhum
Fotos: [N] imagens HD capturadas
Motivos: sem site, conta comercial, conta nova
2. @username (QUENTE, score 7)
...
──────────────────────────────────────
PROXIMO PASSO:
/enrich-lead --nome "X" --cidade "Y" --nicho "Z" --source "instagram" --id "@username" --instagram "username"
========================================
6.3 Fechar sessao do browser
NAO faca logout do Instagram — os cookies persistem entre sessoes. Apenas navegue para uma pagina neutra:
browser_navigate: about:blank
Isso deixa a sessao do Instagram ativa para a proxima vez.
6.4 Atualizar state
Marque a sessao como completa:
cd /Users/felipemoreiralanna/Documents/GitHub/vendedor-de-sites-v2
.venv/bin/python3 -c "
import json
from datetime import datetime
with open('data/_state/lead-finder-progress.json') as f: state = json.load(f)
state['current_phase'] = 6
state['phases']['phase_6'] = {'status': 'complete'}
state['completed_at'] = datetime.now().isoformat()
with open('data/_state/lead-finder-progress.json', 'w') as f: json.dump(state, f, indent=2, ensure_ascii=False)
"
CRITERIO DE CONCLUSAO
- CSV verificado e path confirmado
- Resumo formatado mostrado ao usuario
- Top leads listados com detalhes
- Sessao do browser limpa (sem logout)
- Sugestao de /enrich-lead para os melhores leads
- State marcado como completo
Task Prioritizer
Productivity
Prioritizes your tasks using Eisenhower, ICE, and RICE frameworks.
Weekly Status Report Generator
Productivity
Generate structured and concise weekly status reports.
Daily Standup Report
Productivity
Generates structured and concise daily standup reports.