Palimpsest ai writing
Use when writing or editing Palimpsest MDX articles as an AI assistant. Provides guidance on content direction, MDX component usage, and Mermaid diagram integration.From its SKILL.md
npx -y skills add FourWindff/Palimpsest --skill palimpsest-ai-writingAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
3.9 KB, as published. Nobody here has run it
Palimpsest AI Writing Guidance
Purpose
This skill guides the AI when writing or editing articles for the Palimpsest writing plugin. It ensures consistent quality, proper use of MDX features, and effective diff visualization.
Before You Write: Determine Direction
Always clarify these four points before generating content:
- Topic and scope — What is the article about? What is explicitly out of scope?
- Target audience — Technical depth, assumed knowledge, language preference
- Tone and style — Formal, casual, tutorial, reference, narrative?
- Structure — Estimated sections, need for diagrams, code examples
If any of these are unclear, ask the user. Do not start writing with an ambiguous direction.
Prefer MDX Components Over Plain Markdown
Palimpsest articles are MDX, not plain Markdown. Leverage this:
-
Use JSX for callouts, asides, and styled containers instead of plain blockquotes
<div className="p-4 bg-amber-50 border-l-4 border-amber-400 rounded-r-md"> <p className="text-amber-800 font-medium">Note</p> <p className="text-amber-700 text-sm mt-1">Important clarification here.</p> </div> -
Use inline JSX for interactive-looking elements — badges, labels, styled spans
-
Reference
src/mdx-components/CLAUDE.mdfor the full list of available components and their usage patterns
When to Use Components vs. Plain Markdown
| Use plain Markdown | Use MDX components |
|---|---|
| Standard paragraphs | Callout boxes, warnings, tips |
| Simple lists | Interactive or styled lists |
| Basic code blocks | Code blocks with custom styling |
| Standard headings | Headings with anchor links or badges |
| Blockquotes | Styled alert/notice containers |
Built-in Mermaid Support
Mermaid diagrams are natively supported. Use fenced mermaid code blocks:
graph TD
A[Start] --> B{Decision}
B -->|Yes| C[Action 1]
B -->|No| D[Action 2]
Mermaid Best Practices
- Keep diagrams simple — Complex diagrams render poorly in diff view
- Use descriptive node labels — Helps readers understand the diagram even in text form
- Prefer
graph TDorgraph LRfor flowcharts — Most widely supported - Avoid very long diagram source — Diff mode shows raw text; brevity aids readability
- Limit one diagram per section unless the topic demands more
Supported Diagram Types
graph/flowchart— flowcharts (most common)sequenceDiagram— sequence diagramsclassDiagram— class diagramsstateDiagram— state diagramserDiagram— entity-relationship diagramsgantt— Gantt chartspie— pie charts
Writing Discipline
- One section at a time — Write, confirm, then proceed. Keeps diffs meaningful.
- Let the PreToolUse hook handle backups — Never manually copy to
previous.mdx - Only edit
article.mdx— The hook blocksprevious.mdxedits - Confirm the outline first — Present structure, get approval, then write
- Test in the browser — After each section, verify rendering at
http://localhost:5173/?article={article-id}
Common Pitfalls
| Pitfall | Correction |
|---|---|
| Writing entire article in one tool call | Break into sections, write sequentially |
| Using plain Markdown everywhere | Use MDX components for richer presentation |
| Forgetting Mermaid is available | Add diagrams for architecture, flow, or relationships |
| Complex Mermaid diagrams | Simplify; diff view shows raw text |
Not checking src/mdx-components/CLAUDE.md | Review available components before writing |
Manual backup to previous.mdx | Let the PreToolUse hook handle it automatically |