Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ EOF
FOE

ARG MOLI_VERSION=latest
ARG ANYDOC_VERSION=latest
ARG OPENCODE_VERSION=latest
ARG CAVEMAN_VERSION=latest
ARG AZURE_FOUNDRY_PROVIDER_REF=latest
Expand Down Expand Up @@ -319,6 +320,22 @@ cat >> "${OPENCODE_CONFIG_DIR}/AGENTS.md" <<-'AGENTS_MOLI'
For live websites or web research, use the installed moli skills: `moli-webfetch` for fetching/capturing JS-rendered pages, `moli-websearch` for keyword/image search. Prefer `moli fetch` over raw curl for JS-rendered content.
AGENTS_MOLI

###
# anydoc
#
anydoc_resolved_version=$(resolve_github_latest_version "firecrawl/anydoc" "${ANYDOC_VERSION}") || exit 1
anydoc_version="${anydoc_resolved_version#v}"
bun install -g --trust "@firecrawl/anydoc@${anydoc_version}" || exit 1
anydoc --help > /dev/null || exit 1

# Append anydoc always-on section to AGENTS.md
cat >> "${OPENCODE_CONFIG_DIR}/AGENTS.md" <<-'AGENTS_ANYDOC'

## anydoc

For office documents, spreadsheets, presentations, ebooks, or PDFs you cannot read directly, use the installed `convert-documents-to-markdown` skill and the `anydoc` CLI to convert to Markdown. For large documents write to a file with `-o` and read the parts you need.
AGENTS_ANYDOC

###
# graphify
#
Expand Down
6 changes: 6 additions & 0 deletions skills.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,9 @@ skills:
- type: git-export
repo: lexmount/moli
path: skills/moli-websearch

- name: convert-documents-to-markdown
steps:
- type: git-export
repo: firecrawl/anydoc
path: skills/convert-documents-to-markdown