Synthèse quotidienne des rapports

VérifiéPrudence

Convertit les notes de recherche en report.json valide selon le schéma, mettant l'accent sur l'honnêteté des données et l'écriture incrémentale.

Spar Skills Guide Bot
Data & IAIntermédiaire
15/08/2026
Claude Code
#report-generation#json-schema#trading-research#fault-tolerance#data-validation

Recommandé pour

Synthèse automatique

Convertit les notes de recherche d'une journée de trading en un report.json conforme au schéma, en écrivant d'abord un squelette valide puis en le complétant par réécritures successives.

Points forts

  • Écrit dès la première action un report.json valide avec un tableau recommendations vide, ce qui évite de perdre une journée de recherche en cas d'interruption.
  • Interdit explicitement d'inventer candidats, prix, catalyseurs ou sources absents des notes : un rapport mince mais honnête est présenté comme un résultat correct.
  • Gère les entrées dégradées : candidates.jsonl manquant, notes.md sans format fixe, ou position updates transformés en recommandations de gestion.
  • Réécrit le fichier après chaque recommandation terminée au lieu de garder le rapport final en mémoire jusqu'au bout.

Limites

  • Dépend de fichiers externes non fournis (scripts/report_schema.json, scripts/market_data.py, config/strategy.md) et les règles de filtrage sont tronquées dans le SKILL.md.
  • Fortement spécifique au rapport de trading quotidien, donc peu réutilisable en dehors de ce pipeline.
  • La reconstruction à partir des notes produit des niveaux plus faibles, ce que la skill signale dans data_quality_notes mais ne corrige pas.
Quand l'utiliser

À utiliser en phase 2 du rapport quotidien, quand les notes de recherche existent déjà et qu'il faut produire un report.json valide, même incomplet.

Quand l'éviter

À ne pas utiliser pour mener la recherche elle-même, ni pour publier un rapport quand aucune note exploitable n'existe et qu'aucune donnée de marché ne peut être relue.

Analyse de sécurité

Prudence
Score qualité78/100

The skill is a local file-transformation workflow: read research notes, write a JSON report, validate it against a schema. The bash/python usage and network access via the repository's own market_data.py script are in service of that legitimate purpose, and file writes are confined to a date-scoped reports directory. Nothing destructive, exfiltrating, or obfuscated appears, so the only reason it isn't 'safe' is the granted shell/network capability.

Points d'attention
  • •Skill grants Bash/Write/Edit and instructs running inline python heredocs and `python scripts/market_data.py quote`, i.e. arbitrary script execution plus probable outbound network calls to a market-data provider.
  • •Writes/overwrites files under `reports/<date>/`, but paths are derived from a fixed date pattern rather than user input — no path traversal or deletion observed.
  • •No credential access, no secret/token exfiltration, no curl|sh, no obfuscated payloads, no safety-disabling instructions.
  • •One inline `python -c` verification command reconstructs the date via `os.popen('TZ=... date +%F')`; benign but shell-in-shell.
Comment cette analyse est faite

Exemples

Daily report synthesis
Run the daily synthesis phase: read reports/2026-08-05/candidates.jsonl and notes.md, then write a schema-valid reports/2026-08-05/report.json.
Recover a truncated research day
candidates.jsonl is missing but notes.md is several pages long — reconstruct every usable recommendation into report.json and say in data_quality_notes that it was reconstructed from the notes.
Turn a position update into a recommendation
The notes contain a POSITION UPDATE on NVDA with a raised stop — turn it into a recommendation for NVDA whose thesis opens by naming it as an update to the open position.

name: daily-synthesis description: Phase 2 of the daily trade report. Converts the research phase's notes.md into a schema-valid report.json, honestly reflecting whatever research actually completed. allowed-tools: Bash, Read, Write, Edit, Glob, Grep

Daily synthesis phase

Convert the research log into reports/<date>/report.json, valid against scripts/report_schema.json.

DATE=$(TZ=America/New_York date +%F)
cat "reports/$DATE/candidates.jsonl"   # the real input
wc -c "reports/$DATE/notes.md"         # context and rejections

Step zero: write a valid report before anything else

Your first action is to write a schema-valid report.json with an empty recommendations array. Then improve it in place as you work.

You are on a timer too. A previous run read 38,000 characters of good research, started reasoning about it, and was cut off having written nothing — turning a strong research day into a total loss. A valid file on disk from minute one means the worst case is a thin report instead of no report.

DATE=$(TZ=America/New_York date +%F)
python - <<PY
import json, pathlib
from datetime import datetime
from zoneinfo import ZoneInfo
p = pathlib.Path("reports/$DATE/report.json")
p.write_text(json.dumps({
    "date": "$DATE",
    "generated_at_et": datetime.now(ZoneInfo("America/New_York")).isoformat(timespec="seconds"),
    "truncated": True,
    "data_quality_notes": "Synthesis in progress.",
    "market_context": {"summary": "Synthesis in progress.", "regime": "unknown"},
    "recommendations": [],
}, indent=2))
print("skeleton written")
PY

Rewrite it with real content as soon as you have your first finished recommendation, and again as you add each one. Do not hold the finished report in your head until the end.

Your job is to be a faithful editor, not a second researcher

The research phase may have been killed mid-sentence. Whatever is in notes.md is what you have. You may re-read files and run scripts/market_data.py to fill a missing current price or recompute a risk/reward ratio — that is it.

Do not invent candidates, prices, catalysts, or sources that are not in the notes. If the notes contain three usable candidates, publish three. If they contain zero, publish zero and explain why in data_quality_notes. An honest thin report is a correct output. A padded report is a failure that will be traded on.

Steps

  1. Read candidates.jsonl first. Each line is a validated candidate, already in report shape. Where a symbol appears more than once, the last entry wins — research captures improved versions as it goes.

    Then read notes.md and prior_context.md for context, rejections, and position updates. notes.md uses whatever headings the research phase chose — do not expect a fixed format, and do not skip material because it is not laid out the way you expected.

    If candidates.jsonl is missing or thin but notes.md is substantial, the research phase was cut off before consolidating. Reconstruct what you can from the notes: any finding with a symbol, a direction, a level, and a source is a usable recommendation. Say in data_quality_notes that you reconstructed it, and be honest that levels not set during research are weaker. Reconstructing beats publishing nothing — a full page of researched findings and an empty report is the one outcome to avoid.

    A POSITION UPDATE becomes a normal recommendation for that symbol, with the revised levels and a thesis that opens by naming it as an update to an open position — for example, "Update to the 2026-08-05 long: thesis intact, raising the stop to 176." Position updates do not count against the 6–8 idea target; they are position management, not new risk.

  2. Filter. Drop anything below conviction 3, anything missing a stop where config/strategy.md requires one, and anything under the reward-to-risk floor (2.0 swing, 1.5 intraday). Enforce the correlation cap: at most 3 ideas depending on the same driver.

  3. Rank by conviction, then reward-to-risk, then catalyst proximity.

  4. Refresh prices for the finalists with python scripts/market_data.py quote <symbols> so last_price is as current as the run allows. Set last_price: null if it cannot be fetched.

  5. Recompute risk_reward from the final entry/target/stop rather than trusting the number in the notes. Drop any idea whose recomputed ratio falls below the floor.

  6. Write report.json and validate it.

  7. Verify before finishing:

python -c "
import json, jsonschema, pathlib, os
d = os.popen('TZ=America/New_York date +%F').read().strip()
r = json.loads(pathlib.Path(f'reports/{d}/report.json').read_text())
jsonschema.validate(r, json.loads(pathlib.Path('scripts/report_schema.json').read_text()))
print(f'valid — {len(r[\"recommendations\"])} recommendations')
"

Fix and re-validate until it passes. A schema-invalid file fails the publish step and the morning produces nothing.

Fields that carry the weight

catalyst.action is the field the reader acts on. It must say what to do relative to the event: enter before, wait for, trim into, avoid until. When the right move today is to not enter yet, set catalyst.wait: true — the publisher marks it ⏸ WAIT and holds it out of performance tracking.

entry.condition carries any precondition: only if CPI prints above consensus, only on a retest of 178 with volume. Do not bury a condition in the thesis where it will be missed.

thesis is two to three sentences, specific and falsifiable. Name the mechanism. "AI tailwinds" is not a thesis; "three consecutive hyperscaler capex raises with supply commentary pointing above consensus" is.

key_risk is the one thing most likely to break it, not a generic warning. "Market could go down" is filler.

sources must be URLs actually visited during research. Never synthesize a plausible-looking URL.

Truncation and honesty

Set truncated: true if the notes lack a RESEARCH COMPLETE block — that means the research phase was cut off. Then use data_quality_notes to say plainly what that cost:

Research phase hit its 60-minute cap during the falsification pass. Four candidates are fully specified; two others in the notes lacked stops and were dropped. Crypto and event markets were not reached this run.

Also record in data_quality_notes: sources that failed, prices that could not be fetched, and why the idea count is what it is if it is below target.

This field is what makes the report trustworthy over time. Write it as though the reader is deciding how much size to put on.

Du fichier au premier essai

Le téléchargement contient exactement le contenu affiché sur cette fiche. Cette copie peut différer de la dernière version du dépôt source.

Consulter la source et ses fichiers annexes

Ce téléchargement contient uniquement SKILL.md. Les scripts, références, modèles et dépendances éventuels ne sont pas inclus. Récupérez les fichiers nécessaires depuis la source en conservant leur arborescence avant de poursuivre.

1. Télécharger le fichier

Télécharger SKILL.md

Depuis la racine d’un projet de test, enregistrez le fichier sous .skill-downloads/daily-synthesis-phase-mstwizps/SKILL.md, ou utilisez la commande suivante. Ce dossier sert à examiner la skill avant son installation.

Commande pour macOS/Linux ou WSL : un shell POSIX et curl sont nécessaires. Sous Windows sans WSL, utilisez le bouton de téléchargement et créez le dossier manuellement.

mkdir -p '.skill-downloads/daily-synthesis-phase-mstwizps' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/daily-synthesis-phase-mstwizps/download' --output '.skill-downloads/daily-synthesis-phase-mstwizps/SKILL.md.part' && mv '.skill-downloads/daily-synthesis-phase-mstwizps/SKILL.md.part' '.skill-downloads/daily-synthesis-phase-mstwizps/SKILL.md'

2. Vérifier les prérequis

Lisez SKILL.md avant de l’utiliser. Si le fichier cite des scripts ou services externes, examinez-les et préparez les accès nécessaires dans votre environnement de test.

Outils déclarés par l’auteur (à vérifier dans votre agent) : Bash, Read, Write, Edit, Glob, Grep

Aucune section de prérequis reconnue dans ce fichier. Cela ne signifie pas qu’il est autonome : les bibliothèques, outils et accès peuvent être cités ailleurs dans le contenu ou dans le dépôt source.

Les plateformes de la fiche sont des indications du catalogue. Les chemins ci-dessous suivent la documentation des outils ; ils ne prouvent pas que cette skill y a été exécutée. Aucune version minimale de ces outils n’est attestée pour cette fiche.

3. Charger la skill

Après vérification, copiez le dossier complet dans le projet avec l’une des commandes ci-dessous, puis ouvrez une nouvelle session de l’outil. La commande s’arrête si un dossier du même nom existe déjà : comparez les fichiers avant de le remplacer.

Claude Code
test -f '.skill-downloads/daily-synthesis-phase-mstwizps/SKILL.md' && test -s '.skill-downloads/daily-synthesis-phase-mstwizps/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/daily-synthesis' && cp -R '.skill-downloads/daily-synthesis-phase-mstwizps' '.claude/skills/daily-synthesis'

OpenSkills

OpenSkills doit déjà être installé. La procédure locale install/read est contrôlée avec OpenSkills 1.5.0, qui exige Node.js ≥ 20.6.0. Aucun slug du catalogue n’est résolu automatiquement.

Installation officielle d’OpenSkills
openskills install './.skill-downloads/daily-synthesis-phase-mstwizps'

openskills read 'daily-synthesis-phase-mstwizps'

La lecture doit afficher le contenu du fichier installé et son dossier de base. Elle ne lance ni la skill ni ses dépendances.

Pour un agent qui lit AGENTS.md, synchronisez ensuite l’index. Cette commande modifie AGENTS.md : relisez le diff avant de l’utiliser.

openskills sync

Mode manuel ou autre outil : joignez SKILL.md à une conversation, ou ouvrez-le dans un agent capable de lire les fichiers. Ajoutez les ressources annexes nécessaires. Il n’existe pas de dossier universel reconnu par tous les outils.

4. Faire un premier essai

Utilisez une entrée courte et fictive : un endpoint d’API, un petit document ou un brief d’interface. Dans une nouvelle conversation, joignez le fichier ou donnez son chemin à l’agent, puis adaptez cette demande :

Lis .skill-downloads/daily-synthesis-phase-mstwizps/SKILL.md et applique ses instructions à cet exemple : [décrire une entrée de test]. Indique les fichiers, dépendances ou accès qui manquent. Produis le résultat demandé par la skill sans inventer de données ni exécuter de script non examiné.

Résultat attendu : une sortie correspondant aux instructions de la skill, ou une liste précise des prérequis manquants. Une simple confirmation de lecture ne valide pas le premier usage. Si une ressource externe est indisponible, ce parcours reste à tester.

Skills similaires