Skip to content

Pages: a markdown twin beside every page, so any session can read it cheaply (P9) - #49

Merged
YogiOnCode merged 1 commit into
mainfrom
pages/p9-text-twin
Nov 18, 2026
Merged

YogiOnCode merged 1 commit into
mainfrom
pages/p9-text-twin

Conversation

@YogiOnCode

Copy link
Copy Markdown
Owner

Step P9 of docs/PAGES.md. Stacked on #48.

  • PageTwin (no WPF): page HTML to markdown. Text, tables, chart data as a table, Mermaid as a block, slides as sections, KPIs as short lines.
  • <name>.md beside each page, written when the page is recorded, scanned or changes, and deleted with it. .clayo/pages/index.md lists every page.
  • With a page open, the first prompt after it opens or changes ends with (page open: .clayo/pages/<name>.md), in every agent. Replaces P14's (open: …html).
  • Guide: read the twin, index.md lists them, what the suffix means.
  • Checks: twins of the three templates against fixtures, index and delete, the suffix once.

Builds clean (Debug and Release), all 21 checks pass. Twins are 31–35% of the template HTML, about 50% for text-heavy pages; all content kept.

Hand test left: in Claude and Codex, a new session answers "what does this page say?" from the twin; the suffix shows once; a page is found through index.md.

@YogiOnCode
YogiOnCode added this pull request to stack #51 November 18, 2026 20:58
@YogiOnCode
YogiOnCode force-pushed the pages/p9-text-twin branch 5 times, most recently from 6a81967 to 21acc3d Compare November 18, 2026 21:08
Base automatically changed from pages/p8-docs to main November 18, 2026 21:08
@YogiOnCode
YogiOnCode merged commit e84f705 into main Nov 18, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant