/narnia:narnia-report-emailfrom narnia
Render a generated Markdown report as HTML and deliver it by email through an explicitly invoked, deterministic PowerShell script. Use when a user asks to email a Markdown report, add explicit email delivery to a scheduled reporting job, preview report email formatting without sending, or configure a reusable SMTP notification profile.
Ships in narnia. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Render a Markdown report as a self-contained HTML email, attach the original Markdown by default, and deliver it through SMTP. This skill is always explicit: Narnia does not add email as a hidden post-step to schedules, and this skill does not run unless the prompt or user invokes it.
-RenderOnly does not read SMTP configuration or contact a server.copilot -p run records the delivery failure instead of reporting false success.The default profile is:
Windows: %LOCALAPPDATA%\narnia\report-email\default.env
Other platforms: <LocalApplicationData>/narnia/report-email/default.env
Another -Profile value selects a sibling file such as security.env. -ConfigPath overrides the
profile-derived path. A template is bundled at config/default.env.example.
| Setting | Required | Default |
|---|---|---|
NARNIA_REPORT_EMAIL_SMTP_HOST | Yes | — |
NARNIA_REPORT_EMAIL_SMTP_PORT | No | 587 |
NARNIA_REPORT_EMAIL_SMTP_USERNAME | Yes | — |
NARNIA_REPORT_EMAIL_SMTP_PASSWORD | Yes | — |
NARNIA_REPORT_EMAIL_FROM | Yes | — |
NARNIA_REPORT_EMAIL_TO | Yes, unless -To is supplied | — |
NARNIA_REPORT_EMAIL_ENABLE_SSL | No | true |
NARNIA_REPORT_EMAIL_TIMEOUT_SECONDS | No | 30 |
Process environment variables with these names override file values. The parser splits on the first
= and removes one matching pair of surrounding single or double quotes. Semicolon-separate
multiple recipients.
The executable entry point is relative to this file:
& "<skill-dir>/scripts/Send-NarniaReportEmail.ps1" `
-ReportPath "C:\path\to\weekly-report.md" `
-Profile "default" `
-Subject "Weekly engineering report"
Optional delivery parameters:
-To <string[]> overrides configured recipients without changing SMTP credentials.-Footer <markdown> appends content to the HTML body but not the attachment.-AttachmentName <name.md> changes the attachment file name.-NoAttach sends only the HTML body.-ConfigPath <path> uses an explicit profile file.The script returns a structured object with Status, report path, subject, recipients, and
attachment state. It never returns the SMTP host, username, or password.
Use render-only before trusting a new template or schedule:
& "<skill-dir>/scripts/Send-NarniaReportEmail.ps1" `
-ReportPath "C:\path\to\weekly-report.md" `
-Subject "Weekly engineering report" `
-RenderOnly `
-RenderOutPath "C:\path\to\weekly-report.preview.html"
If -RenderOutPath is omitted, the script writes <report-name>.email.html beside the Markdown
report. Open that file locally and inspect it before enabling delivery.
The schedule prompt owns the complete generate-then-deliver sequence:
Run the report-producing skill and write the final Markdown report to an absolute path in the
current Copilot session workspace. If report generation fails, stop and report the failure.
After the report file exists, invoke the narnia-report-email skill with that report path, profile
"default", and subject "Weekly engineering report". Send the email even when the report contains
zero findings. Treat any email-delivery error as a failed job. Do not print or request SMTP
credentials.
During a supervised dry run, invoke the same script with -RenderOnly instead of delivery. Do not
invent hidden wrapper behavior or add SMTP variables to Narnia's generated schedule script.
What SKILL.md sets; muted values are Claude Code's defaults
3 skills in this plugin
/narnia-schedulerCreate, migrate, move, share, and manage Narnia-owned scheduled Copilot jobs — recurring `copilot -p` runs that Windows Task Scheduler executes unattended on a daily/weekly/monthly cadence. Use to schedule a new recurring job, migrate an existing hand-built Windows Scheduled Task into Narnia, export/import portable schedule packages between computers or users, run a supervised dry-run before trusting a schedule, or inspect/enable/disable/run/delete a cataloged job.
/narnia-web-serverStart, stop, restart, update, and check the status of the Narnia web UI — a Blazor Server app for browsing your GitHub Copilot CLI session history on http://127.0.0.1:5244. Runs from a published copy with a cross-session run-state file and a graceful HTTP shutdown, so rebuilds and updates never hit a file lock and any session can control a server another session started.
Other plugins' skills for the same job
npx claudepluginhub ncosentino/narnia --plugin narnia