Skills saved-markdown
git clone https://github.com/openclaw/skills
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/anboias/saved-markdown" ~/.claude/skills/openclaw-skills-saved-markdown && rm -rf "$T"
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/skills/anboias/saved-markdown" ~/.openclaw/skills/openclaw-skills-saved-markdown && rm -rf "$T"
skills/anboias/saved-markdown/SKILL.mdsaved-markdown
Publish immutable, anonymous pages to https://saved.md. Pages can be Markdown (with chart widgets), HTML (sanitized static pages with CSS), or JSX (sandboxed interactive React).
Core principle
Frontmatter decides when to use this skill.
Everything below defines how to execute once triggered.
Workflow modes
After triggering, pick the mode that best matches user intent. If unclear, default to one-shot and mention that other modes exist.
| Mode | When | What happens |
|---|---|---|
| One-shot | Quick reports, logs, exports | Generate → publish → return URL |
| Interactive | Resumes, landing pages, anything user-facing | Generate → show draft → user edits → publish |
| Local-only | User explicitly wants no publishing | Save / / , no API call |
| Enhance | Existing markdown needs charts or polish | Read → enhance → publish new URL |
Pages are immutable — edits always produce a new URL.
Execution flow (high level)
- Decide mode
- Decide starting point (template scaffold or freehand)
- Decide format (Markdown / HTML / JSX)
- Generate or transform content
- Validate
- Publish (unless local-only)
Starting point decision
1) User explicitly asks for a scaffold
- Read
templates/INDEX.md - Show relevant templates (filter by format if known)
- Let user choose
- Load selected template
2) User wants a scaffold from a screenshot / description
- Follow
templates/create-template.md - Create a new template file under:
for markdowntemplates/markdowns/
for htmltemplates/htmls/
for jsxtemplates/jsx/
- Update
templates/INDEX.md - Then continue like a normal template flow
3) User wants to enhance existing markdown
- Analyze content
- Identify visualization opportunities:
- trends → line
- categories → bar
- proportions → pie
- relationships → scatter
- Add multiple charts where justified
- Keep original structure intact
- Publish as a new page
4) User describes content (no scaffold mentioned)
- Match content type using routing table
- Load corresponding scaffold template
- Generate content from it
5) Nothing matches
- Generate freehand:
- title
- structured body
- optional footer
Format decision
| Format | Use when | |
|---|---|---|
| Markdown | Reports, docs, dashboards, resumes, charts | (or omit) |
| HTML | Layout-heavy pages, visual polish, static UI | |
| JSX | Interactivity, filters, state, dynamic charts | |
Critical rule
If using HTML or JSX, always explicitly set
contentType.Otherwise the page renders incorrectly.
Content-type routing
Use this when generating structured Markdown or HTML content.
| Content type | Triggers | Template |
|---|---|---|
| Resume / CV | resume, CV, profile | |
| Report | report, analysis, findings | |
| Company profile | company, about, services | |
| Dashboard | KPIs, metrics, scorecard | |
| Documentation | docs, guide, manual | |
| Proposal | proposal, pitch, quote | |
| Newsletter | newsletter, digest, changelog | |
| Portfolio | portfolio, projects | |
| Event | event, invitation, RSVP | |
| Generic | everything else | freehand |
Golden rule
Never invent content to fill sections.
Omit anything without real data.
Template scaffold workflow
When a template is selected:
- Read template file from
templates/ - Show the scaffold skeleton to the user in a code block
- Ask what to change:
- content
- sections
- colors
- Replace placeholders with user data and remove irrelevant sections
- Validate
- Publish
If the user already provided full content, skip template browsing and go straight to generation.
Markdown enhancement (charts)
When enhancing markdown:
- Add charts using
markdown-ui-widget - Use multiple charts when data supports it
- Ensure:
- numeric values are plain numbers (no
,$
,%
, etc.)K - units go in labels, not values
- numeric values are plain numbers (no
Template guide:
templates/charts.md
Validation checklist
Before publishing:
- Content under 100 KB
- Correct
contentType - Charts valid (if markdown)
- HTML sanitized (no scripts)
- JSX:
- only allowed imports (
,react
)react-dom - no external packages
- only allowed imports (
- No placeholder text left
Template guide:
templates/validation.md
Publishing
Preferred (script)
python scripts/publish.py --file <path> --content-type <markdown|html|jsx> --title "<title>"
Direct API contract (source-of-truth behavior)
Use
POST https://saved.md/api/pages with JSON.
Required/expected payload fields:
(string): page source body for markdown, html, or jsx pagesmarkdown
(string):contentType
,"markdown"
, or"html""jsx"
Example payload:
{ "markdown": "# My Page\n\nPublished from skill", "contentType": "markdown" }
For markdown pages,
contentType may be omitted, but setting it explicitly is
recommended for consistency.
Remixing an existing page (immutable URLs)
When users request edits to an existing saved.md URL:
- Parse page id from URL
and readGET /api/pages/{id}
+markdowncontentType- Apply requested edits to the returned
markdown
using the editedPOST /api/pages
and the samemarkdowncontentType- Return the new URL (old URL remains unchanged)
Never imply in-place updates are possible.