Evals / documents / Multi-step jobs

Speaker script in Word from a deck with notes

I'm presenting cybersecurity.pptx next week. Make me a Word script, script.docx, with each slide's title and points followed by that slide's speaker notes.

The task

The reference answer shows the job can be done with deft. It is not an agent run.

deft slides to-md cybersecurity.pptx --notes -o script.md
deft md to-docx script.md -o script.docx

Input

Rendered by macOS Quick Look, first page

Rendered by macOS Quick Look, first page

Text inside
[ppt/slides/slide1.xml] Cybersecurity for Small Business the fundamentals
[ppt/slides/slide2.xml] Why Cybersecurity Matters for your Small Business
[ppt/slides/slide3.xml] Source: Raconteur: http://www.visualcapitalist.com/hackers-hack-motives-behind-cyberattacks/ Why Hackers Hack
[ppt/slides/slide4.xml] More Information Throughout this presentation, keep an eye out for these boxes which will direct you to publications containing definitions, examples and more related to the topic on the slide. Cybersecurity basics Risk management Cybersecurity Framework Small business cybersecurity resources What You’ll Learn
[ppt/slides/slide5.xml] Cybersecurity: protecting electronic devices and associated data and information Cybersecurity Basics
[ppt/slides/slide6.xml] Email Mobile devices Corporate website Social media Ecommerce systems Online banking BYOD and office policy Network management Backup and remote access Complexity of a modern small business
[ppt/slides/slide7.xml] confidentiality integrity availability More NIST Special Publication 800-12, revision 1 An Introduction to Information Security section 1.4 Cybersecurity Objectives
[ppt/slides/slide8.xml] Protecting information from unauthorized access and disclosure confidentiality Example: Criminal steals customers’ usernames, passwords, or credit card information Confidentiality
[ppt/slides/slide9.xml] integrity Protecting information from unauthorized modification Example: Someone alters payroll information or a proposed product design Integrity
[ppt/slides/slide10.xml] Preventing disruption in how information is accessed availability Example: Your customers are unable to access your online services Availability
[ppt/slides/slide11.xml] Customers and employees expect and trust you to keep their information secure Reputation Attacks can be extremely costly and threaten the viability of your business Business Costs Attackers can see small businesses as easy targets Vulnerability Why put your already limited resources into preparing for and protecting against cybersecurity attacks? Small Business, Big Impact
[ppt/slides/slide12.xml] More NIST Interagency Report 7621, revision 1 Small Business Information Security: The Fundamentals Section 1: Background: What is Information Security and Cybersecurity? Want more details? For a primer on cybersecurity basics with a focus on small businesses, check out NISTIR 7621, revision 1. Cybersecurity Basics Resources

Reference output

script.docx 29.9 KB
Rendered by macOS Quick Look, first page

Rendered by macOS Quick Look, first page

Text inside
Cybersecurity for  Small Business
	•	the fundamentals
Presenter introduction
No matter the size of your company or organization, cybersecurity is a crucial element for continued success. This “Cybersecurity for Small Business: the fundamentals” presentation can be used to share the “how to’s” of cybersecurity as recommended by NIST, the National Institute of Standards and Technology. You, your team, your company or community group will learn the steps for understanding cybersecurity risks and the steps to mitigate them. Your particular industry may have additional and related cybersecurity, regulatory and privacy recommendations, so as a best practice, the information that follows is intended to be customizable, flexible and non-regulatory.
This material is also intended for organizations without a staff member who acts as a dedicated Chief Information Officer (CIO) or risk executive. For those organizations of sufficient maturity/size that have these resources, please refer as well to NIST Special Publication 800-39 “Managing Information Risk: Organization, Mission and Information System View,” in particular the “FARM” (Frame, Assess, Respond and Monitor) process for decision-making. https://doi.org/10.6028/NIST.SP.800-39
While many elements related to cybersecurity are technical, the goal of today’s presentation is to give you a plan of action.  No one knows your business as well as you do and no one can start the process for ensuring your business is protected and resilient in the face of non-stop threats from cyber-related harm, whether accidental, criminal, or malicious.
(This content is non-regulatory, but represents road-tested advice from technical experts and people just like you.)
Why Cybersecurity Matters for your Small Business

In the small business community, some may think if you are really small, no cybercriminal would ever attack you. You might think, “I have relatively little of value, why would anyone choose me (us) to target.” Or perhaps even worse, that cybersecurity is a problem only a company with a technical staff can address. Cybersecurity is an important concern to every organization, large or small. In fact, the smaller your organization, the more vulnerable you may be. According to the Verizon 2018 Data Breach Investigations Report, small businesses are 58% of data breach victims. (definition: a data breach is a security incident when sensitive, protected data is lost, shared, accessed, copied, stolen, etc.). Unlike the breaches impacting large, publicly traded companies, when a small business is hit with a breach, it may not become public knowledge or get reported in the local news. But the impact can be devastating. Take a moment and consider what you would feel if you found your financial system was hacked and you’d lost money, perhaps all your operating funds. Or if your customer data was lost and you couldn’t recover sales information or the leads you were in the process of managing. What if your business couldn’t
… 66226 more characters
script.md 71.7 KB
## Cybersecurity for  Small Business

- the fundamentals

> Presenter introduction  
> No matter the size of your company or organization, cybersecurity is a crucial element for continued success. This “Cybersecurity for Small Business: the fundamentals” presentation can be used to share the “how to’s” of cybersecurity as recommended by NIST, the National Institute of Standards and Technology. You, your team, your company or community group will learn the steps for understanding cybersecurity risks and the steps to mitigate them. Your particular industry may have additional and related cybersecurity, regulatory and privacy recommendations, so as a best practice, the information that follows is intended to be customizable, flexible and non-regulatory.  
> This material is also intended for organizations without a staff member who acts as a dedicated Chief Information Officer (CIO) or risk executive. For those organizations of sufficient maturity/size that have these resources, please refer as well to NIST Special Publication 800-39 “Managing Information Risk: Organization, Mission and Information System View,” in particular the “FARM” (Frame, Assess, Respond and Monitor) process for decision-making. https://doi.org/10.6028/NIST.SP.800-39  
> While many elements related to cybersecurity are technical, the goal of today’s presentation is to give you a plan of action.  No one knows your business as well as you do and no one can start the process for ensuring your business is protected and resilient in the face of non-stop threats from cyber-related harm, whether accidental, criminal, or malicious.   
> (This content is non-regulatory, but represents road-tested advice from technical experts and people just like you.)

<!-- page break -->

## Why Cybersecurity Matters for your Small Business

![](image5.jpeg)

> In the small business community, some may think if you are really small, no cybercriminal would ever attack you. You might think, “I have relatively little of value, why would anyone choose me (us) to target.” Or perhaps even worse, that cybersecurity is a problem only a company with a technical staff can address. Cybersecurity is an important concern to every organization, large or small. In fact, the smaller your organization, the more vulnerable you may be. According to the Verizon 2018 Data Breach Investigations Report, small businesses are 58% of data breach victims. (definition: a data breach is a security incident when sensitive, protected data is lost, shared, accessed, copied, stolen, etc.). Unlike the breaches impacting large, publicly traded companies, when a small business is hit with a breach, it may not become public knowledge or get reported in the local news. But the impact can be devastating. Take a moment and consider what you would feel if you found your financial system was hacked and you’d lost money, perhaps all your operating funds. Or if your customer data was lost and you couldn’t recover sales information or the leads
… 70040 more characters
How a result is judged (2 checks)
  • format: file = "script.docx", format = "docx"
  • python: code = "import html, re, zipfile\nx = zipfile.ZipFile('script.docx').read('word/document.xml').decode('utf-8')\ntext = re.sub(r'\\s+', ' ', html.unescape(re.sub(r'<[^>]+>', ' ', x)))\n# Slide title, its notes, then the next slide's title, in that order.\norder = ['Why Hackers Hack', 'a whopping 41', 'What You', 'Cybersecurity basics', 'micro-businesses', 'Need Help?', 'Numerous organizations, federal, state, local and private']\nat = [text.find(s) for s in order]\nassert -1 not in at, f'missing: {[s for s, i in zip(order, at) if i < 0]}'\nassert at == sorted(at), f'slides and notes out of order: {at}'\n"

Runs

Claude Opus 5.5Without deftPassed2026-11-15

Time
63s
New tokens
25.2k
Total input
108.4k
Output tokens
5.4k
Commands
5
Failed
2

Trace

  1. ls -la; python3 -c "import pptx, docx; print('ok')" (exit 1)
    output
    Exit code 1
    total 8528
    drwxr-xr-x@   4 user  staff      128 Nov 14 21:21 .
    drwx------@ 368 user  staff    11776 Nov 14 21:21 ..
    drwxr-xr-x@   3 user  staff       96 Nov 14 21:21 .claude
    -rw-r--r--@   1 user  staff  4364313 Nov 14 11:00 cybersecurity.pptx
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
    ModuleNotFoundError: No module named 'pptx'
  2. python3 -m venv "$TMPDIR/venv" && "$TMPDIR/venv/bin/pip" install -q python-pptx python-docx && echo done (exit 1)
    output
    Exit code 1
    WARNING: The directory '~/Library/Caches/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.
    WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 user denied'))': /simple/python-pptx/
    WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 user denied'))': /simple/python-pptx/
    WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 user denied'))': /simple/python-pptx/
    WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 user denied'))': /simple/python-pptx/
    WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 user denied'))': /simple/python-pptx/
    ERROR: Could not find a version that satisfies the requirement pyt
    … 471 more characters
  3. Network installs are blocked, so I'll do it with the Python standard library (zipfile + XML).

  4. mkdir -p "$TMPDIR/scripts" && cat > "$TMPDIR/scripts/extract.py" <<'EOF' import zipfile, re, sys, json, posixpath import xml.etree.ElementTree as ET NS={'p':'http://schemas.openxmlformats.org/presentationml/2006/main', 'a':'http://schemas.openxmlformats.org/drawingml/2006/main', 'r':'http://schemas.openxmlformats.org/officeDocument/2006/relationships', 'rel':'http://schemas.openxmlformats.org/package/2006/relationships'} z=zipfile.ZipFile(sys.argv[1]) def rels(path): d,b=posixpath.split(path); rp=f"{d}/_rels/{b}.rels" if rp not in z.namelist(): return {} return {r.get('Id'):(r.get('Type'),posixpath.normpath(posixpath.join(d,r.get('Target')))) for r in ET.fromstring(z.read(rp)).findall('rel:Relationship',NS)} pres=ET.fromstring(z.read('ppt/presentation.xml')); prels=rels('ppt/presentation.xml') order=[prels[s.get(f"{{{NS['r']}}}id")][1] for s in pres.findall('p:sldIdLst/p:sldId',NS)] def paras(txBody): out=[] for p in txBody.findall('a:p',NS): t=''.join(x.text or '' for x in p.iter() if x.tag in (f"{{{NS['a']}}}t",)) # include line breaks lvl=p.find('a:pPr',NS); lvl=int(lvl.get('lvl',0)) if lvl is not None else 0 if t.strip(): out.append((lvl,t.strip())) return out slides=[] for i,path in enumerate(order,1): root=ET.fromstring(z.read(path)); title=None; body=[] for sp in root.iter(f"{{{NS['p']}}}sp"): ph=sp.find('.//p:nvPr/p:ph',NS); tx=sp.find('p:txBody',NS) if tx is None: continue ps=paras(tx) if not ps: continue typ=ph.get('type') if ph is not None else None if typ in ('title','ctrTitle') and title is None: title=' '.join(t for _,t in ps) elif typ in ('sldNum','dt','ftr'): continue else: body+=ps # tables for … 908 more characters
    output
    <persisted-output>
    Output too large (77.2KB). Full output saved to: ~/.claude/projects/-private-var-folders-mh-qbg25d095qxfst4mztcjr-th0000gn-T--tmpQkykzV/d667ed69-bbf3-40f3-84d5-0214ea6d14d9/tool-results/bi5sqyllx.txt
    
    Preview (first 2KB):
    [
     {
      "n": 1,
      "title": "Cybersecurity for Small Business",
      "body": [
       [
        0,
        "the fundamentals"
       ]
      ],
      "notes": [
       "Presenter introduction",
       "No matter the size of your company or organization, cybersecurity is a crucial element for continued success. This “Cybersecurity for Small Business: the fundamentals” presentation can be used to share the “how to’s” of cybersecurity as recommended by NIST, the National Institute of Standards and Technology. You, your team, your company or community group will learn the steps for understanding cybersecurity risks and the steps to mitigate them. Your particular industry may have additional and related cybersecurity, regulatory and privacy recommendations, so as a best practice, the information that follows is intended to be customizable, flexible and non-regulatory.",
       "This material is also intended for organizations without a staff member who acts as a dedicated Chief Information Officer (CIO) or risk executive. For those organizations of sufficient maturity/size that have these resources, please refer as well to NIST Special Publication 800-39 “Managing Information Risk: Organization, Mission and Information System View,” in particular the “FARM” (Frame, Assess, Respond and
    … 703 more characters
  5. Let me check a compact overview for missing titles/empty bodies.

  6. python3 -I -c " import json,sys;s=json.load(open(sys.argv[1])) for x in s: print(x['n'],repr(x['title']),len(x['body']),len(x['notes']),[t[:40] for _,t in x['body'][:3]]) " "$TMPDIR/slides.json"
    output
    1 'Cybersecurity for Small Business' 1 5 ['the fundamentals']
    2 'Why Cybersecurity Matters for your Small Business' 0 5 []
    3 'Why Hackers Hack' 1 1 ['Source: Raconteur: http://www.visualcapi']
    4 'What You’ll Learn' 6 8 ['More Information', 'Throughout this presentation, keep an ey', 'Cybersecurity basics']
    5 'Cybersecurity Basics' 2 12 ['Cybersecurity:', 'protecting electronic devices and associ']
    6 'Complexity of a modern small business' 9 10 ['Email', 'Mobile devices', 'Corporate website']
    7 'Cybersecurity Objectives' 6 6 ['confidentiality', 'integrity', 'availability']
    8 'Confidentiality' 4 2 ['Protecting information from unauthorized', 'confidentiality', 'Example:']
    9 'Integrity' 4 6 ['integrity', 'Protecting information from unauthorized', 'Example:']
    10 'Availability' 4 4 ['Preventing disruption in how information', 'availability', 'Example:']
    11 'Small Business, Big Impact' 7 4 ['Customers and employees expect and trust', 'Reputation', 'Attacks can be extremely costly and thre']
    12 'Cybersecurity Basics Resources' 6 2 ['More', 'NIST Interagency Report 7621, revision 1', 'Small Business Information Security: The']
    13 'Cybersecurity Threats' 7 11 ['More', 'NIST Interagency Report 7621, revision 1', 'Phishing Attacks']
    14 'Phishing Attacks' 6 6 ['Example:', 'An email about a delayed shipment causes', 'Social engineering attack involving tric']
    15 'Ransomware' 6 3 ['Example:', 'WannaCry was one of the most devastating', 'Type of software with malicious intent a']
    16 'Hacki
    … 3509 more characters
  7. Extraction looks good (48 slides; a few slides are image-only, so they have just a title). Now building the Word file.

  8. cat > "$TMPDIR/scripts/build.py" <<'EOF' import json, sys, zipfile from xml.sax.saxutils import escape slides=json.load(open(sys.argv[1])); out=sys.argv[2] def run(t,b=False,i=False,color=None,sz=None): rpr=''.join([('<w:b/>' if b else ''),('<w:i/>' if i else ''), (f'<w:color w:val="{color}"/>' if color else ''),(f'<w:sz w:val="{sz}"/>' if sz else '')]) return f'<w:r>{"<w:rPr>"+rpr+"</w:rPr>" if rpr else ""}<w:t xml:space="preserve">{escape(t)}</w:t></w:r>' def para(content,style=None,ind=None,pagebreak=False,keep=False): ppr='' if style: ppr+=f'<w:pStyle w:val="{style}"/>' if keep: ppr+='<w:keepNext/>' if pagebreak: ppr+='<w:pageBreakBefore/>' if ind is not None: ppr+=f'<w:ind w:left="{ind}" w:hanging="300"/>' return f'<w:p>{"<w:pPr>"+ppr+"</w:pPr>" if ppr else ""}{content}</w:p>' b=[para(run('Presentation Script: Cybersecurity for Small Business'),'Title'), para(run(f'{len(slides)} slides — each slide lists its on-screen title and points, followed by its speaker notes.',i=True,color='595959'))] for s in slides: title=s['title'] or '(Untitled slide)' b.append(para(run(f"Slide {s['n']}: {title}"),'Heading1',pagebreak=s['n']>1)) b.append(para(run('On-screen points'),'Heading2',keep=True)) if s['body']: for lvl,t in s['body']: b.append(para(run(('• ' if lvl==0 else '– ')+t),ind=360+lvl*360)) else: b.append(para(run('(No text on this slide — visual/graphic only.)',i=True,color='7F7F7F'))) b.append(para(run('Speaker notes'),'Heading2',keep=True)) if s['notes']: for t in s['notes']: b.append(para(run(t))) else: b.append(para(run('(No speaker notes for this slide.)',i=True,color='7F7F7F'))) W='xmlns:w="http://schemas.openxmlformats.org/wordprocessing … 3158 more characters
    output
    -rw-r--r--@ 1 user  staff  27741 Nov 14 21:22 script.docx
    xml ok
    Presentation Script: Cybersecurity for Small Business
    48 slides — each slide lists its on-screen title and points, followed by its speaker notes.
    Slide 1: Cybersecurity for Small Business
    On-screen points
    • the fundamentals
    Speaker notes
    Presenter introduction
    No matter the size of your company or organization, cybersecurity is a crucial element for continued success. This “Cybersecurity for Small Business: the fundamentals” presentation can be used to share the “how to’s” of cybersecurity as recommended by NIST, the National Institute of Standards and Technology. You, your team, your company or community group will learn the steps for understanding cybersecurity risks and the steps to mitigate them. Your particular industry may have additional and related cybersecurity, regulatory and privacy recommendations, so as a best practice, the information that follows is intended to be customizable, flexible and non-regulatory.
    This material is also intended for organizations without a staff member who acts as a dedicated Chief Information Officer (CIO) or risk executive. For those organizations of sufficient maturity/size that have these resources, please refer as well to NIST Special Publication 800-39 “Managing Information Risk: Organization, Mission and Information System View,” in particular the “FARM” (Frame, Assess, Respond and Monitor) process for decision-making. https://doi.org/10.6028/NIST.SP.800-39
    While ma
    … 6305 more characters
  9. I've created `script.docx` in the current directory. It covers all 48 slides of `cybersecurity.pptx`. Each slide starts on a new page with a "Slide N: Title" heading, then the points shown on the slide as bullets, then that slide's speaker notes in full. A quick text conversion confirmed the file reads correctly; I haven't opened it in Word. A few things to know before you use it: - **Built without the usual tools:** I couldn't download the standard Python libraries for PowerPoint and Word files (network access is blocked here), so I read and wrote the files directly. The headings use Word's built-in Heading 1 and Heading 2 styles, so the Navigation Pane gives you a slide-by-slide outline. - **Picture-only slides:** Slides 2, 23, 28, 30 and 31 have no text on screen, only images or charts. The script marks them as "visual/graphic only", and their speaker notes are still included. - **B

Output

Its files were not kept in this run. The last line of the trace is its own report.

Claude Opus 5.5With deft, skill installedPassedRead the skillUsed deft2026-11-15

Time
28s
New tokens
15.7k
Total input
117.6k
Output tokens
1.6k
Commands
5
Failed
0

Trace

  1. Loaded the deft skill

  2. ls; deft slides; deft slides markdown --help 2>&1 | head -40
    output
    cybersecurity.pptx
    deft slides - commands (input -> output)
      info     pptx -> report  Slide count, titles, images, notes
      to-md    pptx -> md      Outline in Markdown: a heading per slide, bullets, images
      to-text  pptx -> txt     Extract the text of every slide, form feed between slides
    More: deft slides <command> --help
    deft slides to-md - Outline in Markdown: a heading per slide, bullets, images
    Same as: deft convert
    
    Usage: deft slides to-md <pptx>... [-o <md|dir>] [options]
    In: pptx (each handled separately)   Out: md (default <name>.<ext>)
    
    Options:
      --notes                      Include speaker notes
      --images <path>              Folder for embedded pictures
    Common: -o --force --dry-run --json -j   (deft help common)
    
    Examples:
      deft slides to-md deck.pptx -o deck.md
    
    Result fields: slides
  3. deft slides to-md cybersecurity.pptx --notes -o "$TMPDIR/script.md" --force && cat "$TMPDIR/script.md"; deft slides info cybersecurity.pptx
    output
    <persisted-output>
    Output too large (73.4KB). Full output saved to: ~/.claude/projects/-private-var-folders-mh-qbg25d095qxfst4mztcjr-th0000gn-T--tmpkGS0K6/a71c709c-befa-4084-bc7c-905969980941/tool-results/bqzp64tm6.txt
    
    Preview (first 2KB):
    ok slides.to-md cybersecurity.pptx -> <tmp>  48 slides  0.01s
    warning: 56 images were not saved; add --images <dir>
    ## Cybersecurity for  Small Business
    
    - the fundamentals
    
    > Presenter introduction  
    > No matter the size of your company or organization, cybersecurity is a crucial element for continued success. This “Cybersecurity for Small Business: the fundamentals” presentation can be used to share the “how to’s” of cybersecurity as recommended by NIST, the National Institute of Standards and Technology. You, your team, your company or community group will learn the steps for understanding cybersecurity risks and the steps to mitigate them. Your particular industry may have additional and related cybersecurity, regulatory and privacy recommendations, so as a best practice, the information that follows is intended to be customizable, flexible and non-regulatory.  
    > This material is also intended for organizations without a staff member who acts as a dedicated Chief Information Officer (CIO) or risk executive. For those organizations of sufficient maturity/size that have these resources, please refer as well to NIST Special Publication 800-39 “Managing Information Risk: Organization, Mission and Information System View,” in particular th
    … 717 more characters
  4. cd "$TMPDIR" && grep -c '^## ' script.md; grep -c '^!\[' script.md; deft md --help 2>&1 | head; deft md to-docx --help 2>&1 | head -25
    output
    48
    86
    deft md - commands (input -> output)
      from-docx  doc -> md      Convert to Markdown, keeping headings, lists and tables
      from-html  html -> md     Convert to Markdown; scripts and styles are dropped
      to-docx    md -> docx     Write a Word document with headings, lists, tables, images
      to-epub    md... -> epub  Make an e-book; each top-level heading starts a chapter
      to-html    md -> html     Render to a styled HTML page, or --fragment
      to-pdf     md -> pdf      Typeset Markdown as PDF
      toc        md -> md       Insert a table of contents from the headings
    More: deft md <command> --help
    deft md to-docx - Write a Word document with headings, lists, tables, images
    Same as: deft doc from-md · deft convert
    
    Usage: deft md to-docx <md>... [-o <docx|dir>] [options]
    In: md (each handled separately)   Out: docx (default <name>.<ext>)
    Relative image paths resolve against the Markdown file.
    
    Options:
      --title <text>               Document title (default: first heading)
      --author <text>              Author
    Common: -o --force --dry-run --json -j   (deft help common)
    
    Examples:
      deft md to-docx notes.md -o notes.docx
      deft doc from-md notes.md --author Ada -o report.docx
    
    Result fields: words
    Shell cwd was reset to
  5. cd "$TMPDIR" && awk ' /^!\[.*\]\(.*\)$/ {next} /^## / {n++; sub(/^## /, "## Slide " n ": "); inq=0; print; next} /^> / && !inq {print "**Speaker notes:**\n"; inq=1} {print}' script.md | cat -s > script_clean.md && grep -c 'Speaker notes' script_clean.md && sed -n '1,40p' script_clean.md | cut -c1-120 && grep -n 'page break' script_clean.md | head -2
    output
    47
    ## Slide 1: Cybersecurity for  Small Business
    
    - the fundamentals
    
    **Speaker notes:**
    
    > Presenter introduction  
    > No matter the size of your company or organization, cybersecurity is a crucial element for continued success. This “
    > This material is also intended for organizations without a staff member who acts as a dedicated Chief Information Offi
    > While many elements related to cybersecurity are technical, the goal of today’s presentation is to give you a plan o
    > (This content is non-regulatory, but represents road-tested advice from technical experts and people just like you.)
    
    <!-- page break -->
    
    ## Slide 2: Why Cybersecurity Matters for your Small Business
    
    **Speaker notes:**
    
    > In the small business community, some may think if you are really small, no cybercriminal would ever attack you. You m
    > Some common threats for small businesses include ransomware, a particular form of malicious software, that causes comp
    > Other problems could include hackers using your network to piggyback that access into larger, more secure systems, bet
    > By viewing or participating in this presentation, we hope to help you become better informed of common cybersecurity i
    > Do not feel you can’t address this or the problem is someone else’s. But if you learn enough to decide that you ne
    
    <!-- page break -->
    
    ## Slide 3: Why Hackers Hack
    
    - Source: Raconteur: http://www.visualcapitalist.com/hackers-hack-motives-behind-cyberattacks/
    
    **Speaker notes:**
    
    > Understanding why cybercrimin
    … 355 more characters
  6. I've pulled out the text of all 48 slides; now I'm building the Word file.

  7. cd "$TMPDIR" && awk '/^## /{if(h&&!q)print h; h=$0; q=0} /Speaker notes/{q=1} END{if(!q)print h}' script_clean.md; deft md to-docx script_clean.md --title "Cybersecurity Presentation Script" -o script.docx && deft doc to-text script.docx -o - 2>/dev/null | head -20
    output
    ## Slide 48: More Information
    ok md.to-docx script_clean.md -> script.docx  10474 words  0.01s
    Slide 1: Cybersecurity for  Small Business
    
    - the fundamentals
    
    Speaker notes:
    
    Presenter introduction
    No matter the size of your company or organization, cybersecurity is a crucial element for continued success. This “Cybersecurity for Small Business: the fundamentals” presentation can be used to share the “how to’s” of cybersecurity as recommended by NIST, the National Institute of Standards and Technology. You, your team, your company or community group will learn the steps for understanding cybersecurity risks and the steps to mitigate them. Your particular industry may have additional and related cybersecurity, regulatory and privacy recommendations, so as a best practice, the information that follows is intended to be customizable, flexible and non-regulatory.
    This material is also intended for organizations without a staff member who acts as a dedicated Chief Information Officer (CIO) or risk executive. For those organizations of sufficient maturity/size that have these resources, please refer as well to NIST Special Publication 800-39 “Managing Information Risk: Organization, Mission and Information System View,” in particular the “FARM” (Frame, Assess, Respond and Monitor) process for decision-making. https://doi.org/10.6028/NIST.SP.800-39
    While many elements related to cybersecurity are technical, the goal of today’s presentation is to give you a plan of action.  No one kn
    … 2470 more characters
  8. I've made `script.docx` in your working folder. It covers all 48 slides, about 10,500 words in total. I read back the opening of the Word file to check that it came out right. Each slide gets a heading like "Slide 2: Why Cybersecurity Matters for your Small Business", then the slide's bullet points, then a **Speaker notes:** label with that slide's notes. A few things to know: - **The pictures aren't in the script.** The deck has 56 embedded images, and I kept only the text. - **Slide 48 ("More Information") has no notes section**, because it has no speaker notes in the deck. - **Some slides have notes but no bullet points**, because their text is in images (Slide 2 is one). - **The deck is the NIST "Cybersecurity for Small Business: the fundamentals" presentation**, and its notes are long, often several paragraphs per slide. You may want to cut them down to what you'll actually say.

Output

Its files were not kept in this run. The last line of the trace is its own report.