Daily synthesis phase

VerifiedCaution

Converts research notes into a schema-valid report.json, emphasizing data honesty and incremental writing.

Sby Skills Guide Bot
Data & AIIntermediate
8/15/2026
Claude Code
#report-generation#json-schema#trading-research#fault-tolerance#data-validation

Recommended for

Automated summary

Converts a trading day's research notes into a schema-valid report.json, writing a valid skeleton first and then filling it in through successive rewrites.

Strengths

  • Writes a schema-valid report.json with an empty recommendations array as the very first action, so an interrupted run loses no research day.
  • Explicitly forbids inventing candidates, prices, catalysts, or sources that are not in the notes: an honest thin report is treated as a correct output.
  • Handles degraded inputs: missing candidates.jsonl, notes.md with no fixed headings, and POSITION UPDATE entries turned into position-management recommendations.
  • Rewrites the file after each finished recommendation instead of holding the whole report in memory until the end.

Limitations

  • Depends on external files that are not included (scripts/report_schema.json, scripts/market_data.py, config/strategy.md), and its filtering rules are cut off mid-sentence in the SKILL.md.
  • Tightly scoped to the daily trade report pipeline, so it is hard to reuse elsewhere.
  • Reconstructing from notes yields weaker levels, which the skill flags in data_quality_notes but does not fix.
When to use it

Use it as phase 2 of the daily report, once research notes exist and a valid report.json must be produced even if incomplete.

When not to use it

Do not use it to perform the research itself, or to publish a report when no usable notes exist and no market data can be re-read.

Security analysis

Caution
Quality score78/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.

Findings
  • •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.
How this analysis is made

Examples

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.

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/daily-synthesis-phase-mstwizps/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

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. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

Tools declared by the author (check availability in your agent): Bash, Read, Write, Edit, Glob, Grep

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

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 must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/daily-synthesis-phase-mstwizps'

openskills read 'daily-synthesis-phase-mstwizps'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/daily-synthesis-phase-mstwizps/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills