Skip to content

Weekly Report Skill ​

The Weekly Report skill packages the FreightTiger TMS leadership report workflow so another Codex agent or FreightTiger operator can generate the report consistently from Pylon data.

Downloads:

Why It Was Created ​

FreightTiger leadership needs a weekly view of TMS customer health, issue load, SLA risk, module quality, and team actions. The skill makes the reporting workflow repeatable instead of relying on a person remembering the scripts, filters, caveats, and publish steps.

Business goals:

  • Show which accounts need attention this week.
  • Highlight SLA breaches and aged open bugs.
  • Identify module-level product or engineering pressure.
  • Create persona-specific actions for Account Managers, Engineering, and Product.
  • Make the pipeline installable in FreightTiger's own cloud/system.

User Story ​

Every week, an operator should be able to run one documented workflow that pulls Pylon data, computes metrics, generates summaries, renders a leadership report, and optionally publishes it. Once FreightTiger hosts this pipeline, implementation-owned workers and scheduled jobs can be shut down.

How It Works ​

The skill bundles a runnable pipeline:

StageScriptPurpose
Pull01_pull_pylon.pyPull TMS accounts and 28 days of Pylon issues.
Metrics02_compute_metrics.pyCompute SLA, health, breach, module, account, tier, and red-flag metrics.
Summaries03_generate_summaries.pyGenerate LLM concerns and persona actions using local Ollama.
Render04_render_report.pyRender HTML and Markdown reports.
Publish05_publish.shEncrypt and publish the report archive to Cloudflare Pages.

See Analytics Logic for metric details.

Step-By-Step Use ​

1. Install The Skill ​

bash
mkdir -p ~/.codex/skills
tar -xzf freighttiger-weekly-analytics-skill.tar.gz -C ~/.codex/skills

Invoke it:

text
Use $freighttiger-weekly-analytics to generate this week's FreightTiger TMS report from Pylon.

2. Install The Runtime Pipeline ​

bash
tar -xzf freighttiger-weekly-analytics-pipeline.tar.gz
cd report-pipeline
python3 -m venv .venv
.venv/bin/pip install -r requirements.txt
cp .env.example .env

Set:

bash
PYLON_API_KEY=...

3. Start The Summary Model ​

bash
ollama serve
ollama pull qwen3:8b

4. Run The Report ​

bash
make all

Expected outputs:

text
data/weekly_snapshots/{date}/...
reports/{date}/report.html
reports/{date}/report.md

5. Publish If Needed ​

bash
make cf-login
make publish REPORT_PASSWORD='...' PAGES_PROJECT='ft-tms-weekly'

Hosting In FreightTiger Cloud ​

Recommended weekly cron:

bash
cd /opt/ft-weekly-analytics
make all
make publish REPORT_PASSWORD="$REPORT_PASSWORD" PAGES_PROJECT="ft-tms-weekly"

Store these outside source control:

  • PYLON_API_KEY
  • REPORT_PASSWORD
  • Cloudflare credentials

Handoff Note ​

Once FreightTiger deploys and schedules this pipeline in their own environment, implementation-owned scheduled jobs and publishing workers should be shut down.

FreightTiger Pylon setup, skills, and automations handoff