一键导入
sync-sites
Sync site knowledge files with fresh Matomo baselines and events data (project)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Sync site knowledge files with fresh Matomo baselines and events data (project)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Query Zendesk support tickets and comments for Emplois de l'Inclusion (read-only). (project)
Indicateurs du Réseau pour l'emploi (France Travail) — accès/présence en emploi, formation, recrutement, RSA, par territoire et par mois. Données agrégées, nationales, couvrant tout le réseau (pas seulement nos services). À distinguer d'autometa_tables_db.
Lire et écrire dans Notion — interroger une base de données ou une page, et publier des rapports. À utiliser dès qu'une demande référence une page/base Notion (URL app.notion.com, ou ancien notion.so).
Create a new dashboard (TDB) — scaffolds files and inserts a row in the dashboards table. Use this skill instead of writing files directly.
Update a dashboard's metadata (title, description, tags, flags, archive). MUST be invoked whenever the user wants to modify an existing dashboard — guarantees the right slug is targeted and reloads coding conventions.
Composer un system prompt riche en contexte métier et lancer un run autometa-jobs à partir de l'intention de l'utilisateur. À utiliser quand l'utilisateur veut une analyse autonome et longue (minutes à heures), trop lourde ou trop lente pour le chat interactif — par ex. « lance un job qui analyse tous les services Dora ».
| name | sync_sites |
| description | Sync site knowledge files with fresh Matomo baselines and events data (project) |
Update the knowledge base documents (knowledge/sites/*.md) with fresh data from Matomo and codebases.
This skill enriches existing documents with objective, measurable data. It does NOT:
The goal is to provide raw facts that the agent can use as context when answering questions. All data must be:
This keeps the knowledge base clean and prevents the agent from being influenced by stale interpretations.
Each site document should have a clear separation between:
## Traffic Baselines (YYYY) - Monthly stats tables ONLY## Custom Dimensions - Dimension list from API## Saved Segments - Segment list from API## Event Categories - Category counts from API## Description - Site context and purpose## Matomo Events - Detailed event documentation with examples## Feature-Specific Insights - Analyses tied to specific featuresIMPORTANT: Put analyses and insights in SEPARATE sections, not inside Traffic Baselines. The baselines section will be fully replaced on each sync.
# Full sync (all sites, baselines + events)
python -m skills.sync_sites.scripts.sync_sites
# Baselines only (faster)
python -m skills.sync_sites.scripts.sync_sites --baselines-only
# Single site
python -m skills.sync_sites.scripts.sync_sites --site emplois
# Dry run (show what would be updated)
python -m skills.sync_sites.scripts.sync_sites --dry-run
For each site, fetches from Matomo:
Fetches configured custom dimensions:
Fetches saved segments from Matomo:
Fetches all event names directly from Matomo:
When documenting events, search for these patterns in codebases:
Django templates:
{% matomo_event "category" "action" "name" %}data-matomo-category=, data-matomo-action=, data-matomo-option=Django Python code:
matomo_event_name=, matomo_event_option=matomo_category=, matomo_action=JavaScript:
_paq.push(['trackEvent', ...])Matomo.trackEvent(...)| Site | Matomo ID | Doc |
|---|---|---|
| emplois | 117 | knowledge/sites/emplois.md |
| pilotage | 146 | knowledge/sites/pilotage.md |
| communaute | 206 | knowledge/sites/communaute.md |
| dora | 211 | knowledge/sites/dora.md |
| plateforme | 212 | knowledge/sites/plateforme.md |
| rdv-insertion | 214 | knowledge/sites/rdv-insertion.md |
| mon-recap | 217 | knowledge/sites/mon-recap.md |
| marche | 136 | knowledge/sites/marche.md |
Run every Monday morning:
# Cron entry
0 8 * * 1 cd /path/to/Autometa && python -m skills.sync_sites.scripts.sync_sites
Or via launchd on macOS.
Updates markdown files in place, preserving:
Regenerates: