Prompt file imported from chrisboulet/redaction-ai-modern (
.claude/commands/sources-verify.md). Fill in{{arguments}}before use. Copyright stays with the author.
Vérification Sources avec ZEN PreCommit
Contexte Vérification
- Fichier : {{arguments}}
- Standards : @REGLES_REDACTION_BLOG.md (URLs fonctionnels obligatoires)
- Méthode : ZEN PreCommit pour validation systematic pré-publication
- Tolérance : ZÉRO lien mort ou source inaccessible
Mission Vérification
Effectuer une vérification complète de toutes les sources citées dans {{arguments}} en utilisant ZEN PreCommit pour une validation systematic comme s'il s'agissait d'un commit critique.
Workflow ZEN Sources Verification (10-15 minutes)
Phase 1 : Pre-Commit Analysis ZEN (5-7 min)
Utiliser ZEN PreCommit pour analyse systematic :
# Analyse pre-commit avec ZEN pour validation sources
mcp__zen__precommit --step 1 --model "gemini-2.5-pro" --confidence "high" --severity-filter "all" --include-staged true --include-unstaged true
PreCommit Focus Sources :
- URL accessibility : Test tous liens cités
- Content validation : Vérifier correspondance citations
- Source credibility : Confirmer niveau sources (1-2)
- Temporal validity : Vérifier dates pertinence
ZEN Analysis Systematic :
- Link extraction : Identification automatique tous URLs
- Response validation : Codes HTTP, redirections, timeouts
- Content matching : Correspondance citations vs contenu source
- Authority verification : Validation crédibilité organismes
Phase 2 : URL Testing & Content Validation (3-5 min)
Test systematic accessibilité et validité :
# Validation URLs avec fetch systematic
/task "Test accessibilité URLs sources {{arguments}} avec validation contenu" --subagent-type general-purpose --persona-qa --validate --safe-mode
URL Testing Protocol :
- HTTP status : 200 OK obligatoire, 3xx acceptable avec redirect
- Content type : HTML/PDF accessible, pas d'authentification
- Response time : < 30 secondes acceptable
- SSL validity : Certificats valides pour HTTPS
Content Validation :
- Citation accuracy : Correspondance text cité vs source
- Date consistency : Dates publication vs dates citées
- Authority match : Auteur/organisme corresponds
- Context relevance : Contenu pertinent pour citation
Phase 3 : Rapport Validation & Corrections (2-3 min)
Génération rapport avec recommandations :
ZEN PreCommit Report Format :
## Sources Verification Report: {{arguments}}
### ✅ Sources Valid (Ready to Publish)
- **[Source 1]** : [URL] - Status 200, Content verified, Authority confirmed
- **[Source 2]** : [URL] - Status 200, PDF accessible, Date consistent
### ⚠️ Sources Requiring Attention
- **[Source 3]** : [URL] - Redirect 301, destination valid but URL should be updated
- **[Source 4]** : [URL] - Slow response (25s), content valid but consider mirror
### ❌ Sources Failed Validation
- **[Source 5]** : [URL] - Status 404, MUST REPLACE
- **[Source 6]** : [URL] - Status 403, Access denied, FIND ALTERNATIVE
### 📊 Validation Summary
**Total Sources** : [X] links validated
**Valid Sources** : [Y] (XX%)
**Requires Attention** : [Z] (XX%)
**Failed Validation** : [W] (XX%)
### 🎯 Action Required
**Immediate** : Replace [W] failed sources with level 1-2 alternatives
**Recommended** : Update [Z] redirect URLs to final destinations
**Optional** : Consider mirrors for slow-loading sources
ZEN PreCommit Validation Standards
HTTP Response Validation
**Acceptable Status Codes** :
- 200 OK : Perfect, no action needed
- 301/302 Redirect : Update URL to final destination
- 403 Forbidden : Find alternative source, same content
- 404 Not Found : CRITICAL - Must replace source
**Unacceptable Responses** :
- 5xx Server Errors : Temporary failure, retry then replace
- Timeout (>30s) : Too slow, find faster alternative
- SSL Errors : Security risk, find secure alternative
Content Validation Criteria
**Citation Accuracy** :
- Quoted text must match source exactly
- Statistics must correspond to source data
- Author attribution must be correct
- Publication date must be consistent
**Authority Verification** :
- Source must be level 1-2 per blog standards
- Government/institutional sources prioritized
- Expert credentials must be verifiable
- Publication must be reputable
Temporal Validity Standards
**Acceptable Source Ages** :
- Data/Statistics : < 2 years preferred
- Regulatory/Policy : < 3 years unless historical context
- Technology/Innovation : < 1 year preferred
- Historical Context : Any age if clearly contextualized
Orchestration Sources Verification Complète
Pour vérification orchestrée avec corrections automatiques :
# Vérification sources orchestrée avec ZEN PreCommit
/task "Vérification sources complète {{arguments}} avec corrections automatiques" --subagent-type general-purpose --persona-qa --validate --safe-mode --mcp-zen-precommit --c7 --seq
Source Replacement Protocol
Level 1 Replacement Sources (Priority)
**Government** :
- SAAQ.gouv.qc.ca (regulations)
- Transports.gouv.qc.ca (infrastructure)
- Canada.ca/ISED (telecommunications)
- Statcan.gc.ca (statistics)
**Institutional** :
- HydroQuebec.com (energy/infrastructure)
- Tesla.com/investor-relations (official data)
- Universities .edu/.ca (research)
Level 2 Replacement Sources (Acceptable)
**Media Reference** :
- Radio-Canada.ca (verified journalism)
- LaPresse.ca (Quebec focus)
- LeDevoir.com (analysis)
**Expert Analysis** :
- CFA/analyst reports (like Cern Basher)
- Think tanks established
- Industry associations official
Validation Quality Gates
Gate 1 : Accessibility (100% Required)
- All URLs must return 200 or acceptable redirect
- Response time < 30 seconds
- Content must be publicly accessible
- No authentication barriers
Gate 2 : Content Accuracy (100% Required)
- Citations must match source content exactly
- Statistics must be traceable to source data
- Author attribution must be correct
- Context must be preserved accurately
Gate 3 : Authority Level (80% Level 1-2)
- Minimum 80% sources must be level 1-2
- Maximum 20% level 3 sources (temporary, with plan to replace)
- ZERO unverifiable or questionable sources
Résultat Attendu
- 100% URLs testés et validés fonctionnels
- Sources report détaillé avec status chaque lien
- Replacement recommendations pour sources failed
- Authority confirmation niveau sources respecté
- Publication-ready status ou corrections requises listées
- ZEN PreCommit approval pour publication blog
