extfile Card

Extfile Cards

An extfile card is an in-box pointer to a live external file — like a webpage card stands in for a web page, but with no snapshot: no body, no frozen copy, no extracted text. The view fetches the file fresh each render and shows it through the renderer for its type (.md → markdown, .ts/source → plaintext, …).

Frontmatter

Body

None. An extfile card is a pointer, not a document — leave the body empty. The live file is the content; if you want a stored copy, use a webpage card instead.

Commentary

Remarks about the file are not in this card. They live in a .commentary.card inside this card's attach scope (<basename>.attach/), and the extfile view surfaces them inline. A bare {% source %} anchor (no ref/href) points at this card's live file — the pointer is the default target.

Layout on disk

_content/reviews/Foo_Source.extfile.card                  # the pointer + stamped metadata
_content/reviews/Foo_Source.attach/Foo_Source.commentary.card   # remarks (optional)

The contains: field

Give this card a one-sentence contains: — the prime retrieval field for bbx search and listings. How to write a good one (carry the information when it's concise, never a list of parts, under 200 characters) is in the agent guide's ABOUT_CARDS section.