> From [PageWeave Design](https://pageweave-design.pageweave.site) — a working library for agentic web development. Full index: [llms.txt](https://pageweave-design.pageweave.site/llms.txt)

# Markdown Retrofit

Make an existing site fully agent-accessible

- Category: Prompts
- Tags: prompt markdown llms-txt agents retrofit

```
My site [SUBDOMAIN].pageweave.site needs full markdown accessibility. Current state:
[list pages / tables you have].

Produce an implementation plan, then execute it:

1. Inventory — list_pages + list_tables. For each content page: does it have a
   markdown body? For each table: which field holds the canonical markdown?
2. Template pages — for every table-driven template, set:
   - HTML body renders {{ row.content | markdownify }}
   - Markdown body serves {{ row.content }} raw
3. Literal pages — author a markdown body per page: same headings, same links,
   nav chrome stripped.
4. llms.txt — write per spec: H1 name, blockquote summary, H2 sections listing
   EVERY page's .md URL with a one-line description. Optional section for
   secondary material.
5. agenticweb.md — capability index: content areas, public JSON API endpoints
   (/t/{table_id}), update cadence.
6. agents_md — document the maintenance workflow: edit via table rows, keep
   order fields per section, prefer full-page overwrites for multi-spot edits.

Verify at the end: curl each .md URL, confirm llms.txt links resolve, confirm
an agent given only /llms.txt can locate any single piece of content in ≤ 2 hops.
```