agentsclimarketplace

Palimpsest ai writing

Skill FourWindff/Palimpsest/skills/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

Install
npx -y skills add FourWindff/Palimpsest --skill palimpsest-ai-writing

Assembled 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:

  1. Topic and scope — What is the article about? What is explicitly out of scope?
  2. Target audience — Technical depth, assumed knowledge, language preference
  3. Tone and style — Formal, casual, tutorial, reference, narrative?
  4. 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.md for the full list of available components and their usage patterns

When to Use Components vs. Plain Markdown

Use plain MarkdownUse MDX components
Standard paragraphsCallout boxes, warnings, tips
Simple listsInteractive or styled lists
Basic code blocksCode blocks with custom styling
Standard headingsHeadings with anchor links or badges
BlockquotesStyled 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 TD or graph LR for 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 diagrams
  • classDiagram — class diagrams
  • stateDiagram — state diagrams
  • erDiagram — entity-relationship diagrams
  • gantt — Gantt charts
  • pie — pie charts

Writing Discipline

  1. One section at a time — Write, confirm, then proceed. Keeps diffs meaningful.
  2. Let the PreToolUse hook handle backups — Never manually copy to previous.mdx
  3. Only edit article.mdx — The hook blocks previous.mdx edits
  4. Confirm the outline first — Present structure, get approval, then write
  5. Test in the browser — After each section, verify rendering at http://localhost:5173/?article={article-id}

Common Pitfalls

PitfallCorrection
Writing entire article in one tool callBreak into sections, write sequentially
Using plain Markdown everywhereUse MDX components for richer presentation
Forgetting Mermaid is availableAdd diagrams for architecture, flow, or relationships
Complex Mermaid diagramsSimplify; diff view shows raw text
Not checking src/mdx-components/CLAUDE.mdReview available components before writing
Manual backup to previous.mdxLet the PreToolUse hook handle it automatically

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.