agentleFS
theseus-runtheseus-run/theseus/.agents/skills/jsx-md-authoring/SKILL.md

jsx-md-authoring

Skill1 starsChanged 6 months agoMITView on GitHub

Use when writing or modifying JSX-MD prompt components, Markdown-rendering primitives, XML intrinsic prompts, or packages/jsx-md and packages/jsx-md-beautiful-mermaid behavior.

The file

We split this skill into the rules it gives an agent

12 rules. About 0 are common, 4 are distinctive, and 8 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 8

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill for prompt components and Markdown rendering code.

    line 8
  2. Distinctive:

    Prefer JSX-MD components over inline Markdown strings.

    line 19
  3. Very specific:

    Use lowercase XML intrinsics for structured LLM prompt sections such as <context>, <instructions>, and <examples>.

    line 20
  4. Very specific:

    Use Md only as an escape hatch for genuinely undecomposable Markdown.

    line 21
  5. Very specific:

    Use Codeblock for fenced code and let it choose a safe fence length.

    line 23
  6. Very specific:

    Keep render() deterministic and synchronous.

    line 24
  7. Very specific:

    Do not introduce React or DOM runtime assumptions into jsx-md.

    line 25
  8. Distinctive:

    Use context only for cross-cutting rendering state, not arbitrary global state.

    line 26
  9. Very specific:

    Use {...} only when JSX syntax requires it, such as backticks, braces, <, >, or apostrophes inside the text.

    line 31
  10. Distinctive:

    Keep XML attributes primitive and serializable.

    line 32
  11. Very specific:

    Run bun test in packages/jsx-md for renderer changes.

    line 36
  12. Very specific:

    Run bun run typecheck after export, type, or JSX runtime changes.

    line 37

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

JSX-MD Authoring

Use this skill for prompt components and Markdown rendering code.

Read First

  • packages/jsx-md/README.md
  • packages/jsx-md/src/primitives.tsx
  • packages/jsx-md/src/render.ts
  • packages/jsx-md/src/context.ts

Authoring Rules

  • Prefer JSX-MD components over inline Markdown strings.
  • Use lowercase XML intrinsics for structured LLM prompt sections such as <context>, <instructions>, and <examples>.
  • Use Md only as an escape hatch for genuinely undecomposable Markdown.
  • Escape user-supplied strings with Escape or escapeMarkdown when they should render literally.
  • Use Codeblock for fenced code and let it choose a safe fence length.
  • Keep render() deterministic and synchronous.
  • Do not introduce React or DOM runtime assumptions into jsx-md.
  • Use context only for cross-cutting rendering state, not arbitrary global state.

Text Rules

  • Bare JSX text is preferred for plain prose.
  • Use {...} only when JSX syntax requires it, such as backticks, braces, <, >, or apostrophes inside the text.
  • Keep XML attributes primitive and serializable.

Verification

  • Run bun test in packages/jsx-md for renderer changes.
  • Run bun run typecheck after export, type, or JSX runtime changes.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.