agentleFS
TradebaasTradebaas/Groundwork/.agents/skills/ingest/SKILL.md

ingest

Skill2 starsChanged 3 months agoMITView on GitHub

Convert a non-Markdown file (PDF, Office, images, audio, HTML, CSV/JSON/XML, ZIP, EPub) to Markdown with markitdown before reading it, so tokens go to content rather than binary bulk. Use when a task needs such a file's contents, when adding reference material to docs/design/reference or a spec, or when the product must parse uploaded documents.

53 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use lint, query and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • Microsoft AzureSkill

    lint

    Run all linting and spell checking for TypeScript and Rust code. Run this before committing to catch style issues, clippy warnings, and misspellings.

    Also in 13 projects that use this

  • ArtemXTechSkill

    query

    Query data from this vault. USE WHEN user asks about projects, clients, tasks, daily notes. Use grep to extract frontmatter - do NOT read full files.

    Also in 9 projects that use this

  • NatsuFoxSkill

    export

    Export knowledge base content to PDF, Markdown, or HTML files saved under _data/exports/. Use when a user wants to save or share KB content as downloadable files. Supports exporting a single document file, a single feed entry, a single note, or the entire knowledge base.

    Also in 4 projects that use this

  • seongjaeryuSkill

    save

    Complete and save your current thinking to Bindly

    Also in 6 projects that use this

  • LambenthanSkill

    edit

    根据用户要求增删 raw sources 或更新 wiki 内容

    Also in 3 projects that use this

  • BugRogerSkill

    project

    Project lifecycle management. Dispatches to Ada.

    Also in 4 projects that use this

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 45 edited versions we read keep these.

  • 2

    Distinctive

    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:

    Run the decision ladder first.

    line 14
  2. Very specific:

    Do not commit the Markdown of a copyrighted or personal-data source without clearing it through comply.

    line 44
  3. Distinctive:

    Treat every file you convert as untrusted input at a trust boundary.

    line 49

“Common” is measured: kept by at least 6 in 10 of the 45 edited versions of this file we could read. “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

ingest: turn documents into Markdown before they cost tokens

Reading a PDF, Office file, or image directly is expensive and lossy: the bytes are not text, so an agent burns tokens on encoding noise or cannot read them at all. markitdown (https://github.com/microsoft/markitdown, MIT, Microsoft) converts them to clean Markdown that carries the structure (headings, tables, lists) at a fraction of the tokens. Convert first, then read the Markdown.

Run the decision ladder first. Convert only the file the task needs, only the pages or sheets that matter, and read the result the same way you read any file: the part that answers the current question, not the whole thing. Do not bulk-convert a folder "to have it".

When to use

  • A task needs what is inside a PDF, DOCX, PPTX, XLSX, image, audio file, HTML page, or data file.
  • The owner hands over brand or reference material for docs/design/reference/ or a spec.
  • The product being built must accept and parse user-uploaded documents (then markitdown, or its Python API, becomes part of the product, not just a build-time helper).

Install and invoke (from the living source)

Python with pip is the prerequisite (minimum version per the README); Node stays Groundwork's only always-on requirement, so this is opt-in, installed only when you actually convert something. Take the exact syntax from the markitdown README (linked above) at the moment of use: the install command with optional per-format extras, the CLI, the markitdown-mcp server (one convert_to_markdown tool, for tools that speak MCP) and the Python MarkItDown API all live there. This skill deliberately embeds none of those commands: frozen copies drift from upstream (skill-author rule: no code snippets that go stale, point at the living source).

It converts: PDF, PowerPoint, Word, Excel, images (EXIF + OCR), audio (EXIF + transcription), HTML, CSV, JSON, XML, ZIP (walks the archive), YouTube URLs, EPub.

Where the output goes

  • Throwaway conversions (you just need to read something once): write to a scratch/temp path, never commit it.
  • Durable reference the project should keep: docs/design/reference/ or the relevant spec folder, and add the manifest row if it lives under docs/ (docs/README.md rules).
  • Do not commit the Markdown of a copyrighted or personal-data source without clearing it through comply. Converting does not change who owns the content.

Security floor (never simplify away)

  • Treat every file you convert as untrusted input at a trust boundary. markitdown parses many complex formats, which is real attack surface. In product code: cap file size, validate the type, run it where a crash or malformed file cannot take the app down, and handle conversion errors instead of trusting text_content.
  • The optional LLM image-description feature (llm_client / llm_model) and Azure Document Intelligence send file content to a third party. That is a new data flow: flag it for comply before enabling it on any real or personal data.

Verify

Conversion is not lossless. OCR and audio transcription can be wrong; complex tables and scanned PDFs drift. When the numbers or wording matter, spot-check the Markdown against the source before you rely on it, and say so if you could not (AGENTS.md honesty rule). ⚓

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.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

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.