agentleFS
aws-solutionsaws-solutions/konductor/skills/document-formats/SKILL.md

document-formats

Skill11 starsChanged 49 days agoApache-2.0View on GitHub

Read and write Microsoft Office documents (.docx) using pandoc. Use when handling Word documents from SharePoint, OneDrive, or local files.

  • Installs packages

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    After conversion, work with the markdown content normally.

    line 24
  2. Distinctive:

    If the user provides a .docx file, convert to markdown first

    line 42
  3. Distinctive:

    If the user wants .docx output, convert back using pandoc

    line 44
  4. Very specific:

    If pandoc is not installed, inform the user: brew install pandoc (macOS) or sudo yum install pandoc (AL2)

    line 45
  5. Distinctive:

    Never modify the original .docx file without user confirmation

    line 51
  6. Distinctive:

    Always verify pandoc is available before attempting conversion

    line 52

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Document Formats

Reading .docx Files

Convert .docx to markdown for processing:

pandoc "input.docx" -t markdown -o "output.md"

Or read directly to stdout:

pandoc "input.docx" -t markdown

After conversion, work with the markdown content normally.

Writing .docx Files

Convert markdown to .docx when the user wants Word output:

pandoc "input.md" -o "output.docx"

With a reference template for consistent styling:

pandoc "input.md" --reference-doc="template.docx" -o "output.docx"

Workflow

  1. If the user provides a .docx file, convert to markdown first
  2. Process the content as markdown
  3. If the user wants .docx output, convert back using pandoc
  4. If pandoc is not installed, inform the user: brew install pandoc (macOS) or sudo yum install pandoc (AL2)

Quality Gate

CRITICAL:

  • Never modify the original .docx file without user confirmation
  • Always verify pandoc is available before attempting conversion

IMPORTANT:

  • Preserve document structure (headings, lists, tables) during conversion
  • Warn the user if complex formatting (images, charts) may be lost in conversion

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

Reviews can't be read right now.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.