Skip to content
Back to skills

Report

ASecurity

Professional report and deck generation (spec 072). The skill owns the LLM steps — outline, body, front matter — and calls the deterministic CLI (pack, validate, assemble, render, measure) for the rest. Produces a US-Letter portrait report and/or a 16:9 McKinsey-grade landscape deck from the same thesis evidence, following one of four report types (thematic, tracker, takeaways, market_share). `agentii.synthesize` is a deprecated alias for one release; `agentii.deck` is a thin alias for `--for...

  • 217 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 4, 2026
ai-agentspythongobash

Works with

  • cli

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned December 4, 2026

npx -y skills add agentii-ai/agentii-investment-intelligence --skill report --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Report?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Report
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/agentii-ai-report/badge)](https://www.skillsdirectory.com/skills/agentii-ai-report)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: report
aliases: [synthesize]
description: Professional report and deck generation (spec 072). The skill owns the LLM steps — outline, body, front matter — and calls the deterministic CLI (pack, validate, assemble, render, measure) for the rest. Produces a US-Letter portrait report and/or a 16:9 McKinsey-grade landscape deck from the same thesis evidence, following one of four report types (thematic, tracker, takeaways, market_share). `agentii.synthesize` is a deprecated alias for one release; `agentii.deck` is a thin alias for `--format deck`.
role: kit
market_data_stage: none
allowed_tools: []
retrieval_scope: structured_only
---

# agentii.report

One report-type-driven, two-format publication system. The **skill owns narrative
judgment**; the **Python CLI owns deterministic execution**. There is one skill
entry, one evidence layer and one design-token source; the portrait template and
the landscape template are separate files.

## Entry and format

```bash
agentii.report ... --format report|deck|both   # default: report
agentii.deck   ...                              # equivalent to --format deck
agentii.synthesize ...                          # deprecated alias (one release)
```

- `report` with no format produces the portrait report.
- `deck` produces the 16:9 landscape deck.
- `both` produces both; each output is gated independently. A blocked deck does
  not sink the report (exit 5, blocked output named).
- A natural-language request that mentions slides/deck/presentation **without**
  an explicit format must be confirmed before generation. Never infer silently.

## Type declaration (before pack)

`report/report.json`:

```json
{"report_type": "thematic", "format": "report"}
```

If the file is absent the skill asks for one of `thematic`, `tracker`,
`takeaways`, `market_share` and writes the file before `pack`. There is **no
default type**. Changing the type after the body is final invalidates the
skeleton.

## The loop

```bash
KIT=""
for c in "${AGENTII_KIT_ROOT:-}" "$(cat "$HOME/.claude/skills/agentii/.kit-root" 2>/dev/null)" "${CLAUDE_PLUGIN_ROOT:-}"; do
  [ -n "$c" ] && [ -f "$c/scripts/report_cli.py" ] && { KIT="$c"; break; }
done
[ -n "$KIT" ] || { echo "agentii kit not found — see contracts/kit-root.md" >&2; exit 1; }

# 1. PACK (deterministic)
python3 "$KIT/scripts/report_cli.py" pack --thesis <thesis-dir> --format <format>

# 2. OUTLINE (LLM) — report/outline.md and/or deck/slide-plan.yaml
#    Report outline: key arguments -> evidence -> **Chapter Plan** -> page plan
#    (every page line names its chapter) -> story line. The chapter plan is what
#    the body's data-chapter ids must match; a page-to-chapter mapping is gated.
#    Deck slide plan: one message per slide, MECE sequence, section mapping,
#    exhibit/evidence reference. No slides without a plan.

# 3. BODY (LLM) — report/body.html and/or deck/body.html
#    Chapters are arguments: a one-sentence conclusion heading, a chapter opener
#    with 2–4 evidence-backed pillars, page-level claim headings, a closing
#    implication. One exhibit per quantitative chapter; number, takeaway,
#    source, units and period. Every exhibit value must appear in the pack or
#    metrics.json; a derived delta/share says "Derived from ..." in the source
#    attribute. No process metadata in reader-facing prose.
#
#    Deck body: one message per content slide. The action title is a one-sentence
#    claim ≤20 words; one <figure class="slide-exhibit" data-exhibit
#    data-exhibit-ref="Exhibit N"> carries the exhibit; the figcaption starts
#    with "Source:" and states units. Use a chart token when the data is a series
#    or a comparison — <div data-chart="kpi_trend" data-spec='{"x":[...],
#    "y":[...],"title":"...","units":"...","source":"..."}'
#    data-height="240"></div> — or a table when the exhibit is a table. Chart
#    kinds: football_field, peer_bars, kpi_trend, scatter, scenario_tree,
#    filing_figure; a trend needs at least three points. The data-spec attribute
#    is single-quoted, so write an apostrophe in a title as &#39;. Read order is
#    title → takeaway → exhibit → source, and every content slide carries the nav
#    band and "N of M" footer.

# 4. FRONT MATTER (LLM, LAST) — report/front-matter.json and/or deck/front-matter.json
#    Lede ≤90 words; 3–5 Key Takeaways ≤30 words each, each anchored to a stable
#    id (`chapter:<id>`, `exhibit:<n>`, `heading:<id>`); optional What's Changed.
#    The body hash is recorded before this step; a body edit makes it stale.

# 5. VALIDATE + ASSEMBLE + RENDER (deterministic)
python3 "$KIT/scripts/report_cli.py" validate --thesis <thesis-dir> --artifact report|deck
python3 "$KIT/scripts/report_cli.py" assemble --thesis <thesis-dir> --format <format>
python3 "$KIT/scripts/report_cli.py" render   --thesis <thesis-dir> --format <format> --keep-pdf --verify

# 6. OPTIMIZE (required, not optional): read the rendered page PNGs and fix
#    visual defects before delivery. A report that was never visually reviewed
#    is not delivered.
```

## Deliverables

Portrait: `<thesis>/thesis-report.html` + `thesis-report.pdf`.
Landscape: `<thesis>/deck-report.html` + `deck-report.pdf`.
Manifests: `report/manifest.json`, `deck/manifest.json`.

## Report type playbooks

Each type declares its skeleton, methods, data surfaces, exhibit floor, page
budget and deck variant in `report-types/<id>.yaml`; the authoring checklist is
one of:

- `references/thematic-playbook.md`
- `references/tracker-playbook.md`
- `references/takeaways-playbook.md`
- `references/market-share-playbook.md`

Read the playbook for the declared type before authoring. The registry is the
single source of truth; this file does not restate its skeletons.

## Hard rules (the assembler gates them)

1. Cover page 1: two columns at the golden ratio (left editorial, right
   metadata), no decorative motif, logo or wordmark, contents on page 2 for
   reports ≥8 pages.
2. Front matter is authored last; every Key Takeaway is anchored; no number in
   the summary may be absent from the body.
3. Chapter headings are one-sentence conclusions; 2–4 pillars per chapter; each
   pillar cites resolvable evidence; no raw retrieval dumps; no process
   metadata in reader-facing prose.
4. Exhibits are numbered, captioned with a takeaway (not a label), and carry
   source, units and period. A quantitative chapter has ≥1 exhibit; `thematic`
   has ≥3.
5. The report is a single offline HTML file; all images are base64. No external
   CSS/JS/font/image.
6. The delivered PDF is produced by the kit renderer (US Letter; 16:9 for the
   deck). An A4 or Safari-produced PDF is a delivery failure.
7. The 058 blocking/scored readability tiers remain in force; the author records
   the score in `report/readability.json` and an unexplained regression is
   refused.

## Regeneration discipline

The assembled output embeds `sources_hash`, the body/front-matter hashes, the
template and design-token versions, and the type/registry versions. `converge`
flags `stale-front-matter`, `stale-sources`, `stale-template` or a registry
change. Re-run the affected step; never hand-edit the assembled HTML.

Files in this skill

  • SKILL.md7 KB
  • references/market-share-playbook.md1.7 KB
  • references/modes.md1.2 KB
  • references/takeaways-playbook.md1.6 KB
  • references/thematic-playbook.md3.1 KB
  • references/tracker-playbook.md2.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.