agentleFS
yangjingoyangjingo/Synapse/skills/synapse-design/SKILL.md

synapse-design

Skill4 starsChanged 3 months agoMITView on GitHub

Turn source material into WhyJ-style engineering blog: one Markdown blog with static-image prompts, one polished HTML blog using DESIGN.md-style rules and pretext text layout. Use when the user wants a publishable technical post, not a neutral summary.

  • Installs packages

The file

Show its rules and text

We split this skill into the rules it gives an agent

44 rules. About 0 are common, 33 are distinctive, and 11 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈33

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 11

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill to turn technical material into a WhyJ-style engineering blog package.

    line 10
  2. Distinctive:

    Do not treat any other artifact as a final deliverable.

    line 41
  3. Distinctive:

    use the WhyJ voice

    line 47
  4. Distinctive:

    use README-like structure for readability

    line 59
  5. Distinctive:

    use DESIGN.md-style visual rules for typography, spacing, color roles, borders, captions, and callouts, and enforce the same prompt-level …

    line 60
  6. Distinctive:

    use pretext-style text layout constraints for title length, lead density, caption compactness, and callout geometry

    line 61
  7. Very specific:

    use real pretext layout when animated or geometry-sensitive text is part of the page behavior

    line 62
  8. Very specific:

    use relative figure references like ./figures/figure-XX-*.png, matching the corresponding example figures/ directory

    line 65
  9. Very specific:

    keep all figure files under the same example's ./figures/ folder and write paths in markdown/HTML as that relative path

    line 66
  10. Distinctive:

    If created during reasoning, collapse them into the final two outputs instead of presenting them as separate deliverables.

    line 79
  11. Distinctive:

    Read only what is needed:

    line 83
  12. Very specific:

    If target output is under examples/<project>/, read examples/<project>/DESIGN.md first (override source for prompt + style constraints)

    line 86
  13. Distinctive:

    Use this skill when the user asks for:

    line 96
  14. Distinctive:

    Use short labels and concrete technical nouns.

    line 122
  15. Distinctive:

    Keep each section logically O(1): one section, one hard point.

    line 123
  16. Distinctive:

    If you cannot state the spine in one sentence, the note is not ready.

    line 137
  17. Distinctive:

    Do not mirror the source heading order unless the source structure is unusually good.

    line 141
  18. Distinctive:

    no dead summary paragraphs

    line 158
  19. Distinctive:

    When visuals are needed:

    line 170
  20. Distinctive:

    use page style only after the figure logic is fixed

    line 177
  21. Distinctive:

    When source images have highly inconsistent aspect ratios:

    line 179
  22. Distinctive:

    do not rely on CSS alone to force harmony

    line 181
  23. Distinctive:

    if the source image ratio differs too much from the target slot, create a fill-or-extend image prompt instead of stretching the original

    line 183
  24. Distinctive:

    When the task also includes presentation:

    line 232
  25. Very specific:

    use the matching design-md/*-slides-design.md stub as the DESIGN.md source for the deck

    line 235
  26. Distinctive:

    use DESIGN.md-like language to define visual rules in prose

    line 236
  27. Very specific:

    use real pretext integration only when {design.slides.profile} is excalidraw-slides

    line 237
  28. Distinctive:

    use image generation planning only after the figure spec is explicit

    line 238
  29. Distinctive:

    keep remotion-style scene thinking as optional internal planning, not as a final required output

    line 239
  30. Very specific:

    When pretext is required in HTML output:

    line 243
  31. Very specific:

    use the resulting lines to drive text layout

    line 248
  32. Distinctive:

    prefer extending it to title, lead, and caption layout when those are part of the reading experience

    line 250
  33. Distinctive:

    When the HTML artifact needs a specific visual identity:

    line 292
  34. Very specific:

    If present, prefer examples/<project>/DESIGN.md as the highest-priority source for figure and layout constraints.

    line 294
  35. Distinctive:

    Use the token system (colors, typography, spacing, rounded) as CSS custom properties

    line 296
  36. Distinctive:

    Do not guess. Do not mix the two profiles in one deck.

    line 316
  37. Very specific:

    After substitution, load only the row that matches {design.slides.profile}.

    line 323
  38. Distinctive:

    Do not sound neutral when the evidence supports a stronger conclusion.

    line 335
  39. Distinctive:

    Do not write social-media style hooks.

    line 337
  40. Distinctive:

    Do not write X-thread style sections.

    line 338
  41. Distinctive:

    Do not keep dead weight from the source.

    line 339
  42. Distinctive:

    Do not let page style become more important than the technical argument.

    line 340
  43. Distinctive:

    Do not return more than the two final artifacts unless the user explicitly asks for extras.

    line 341
  44. Very specific:

    Do not claim pretext usage unless the page is actually using pretext APIs.

    line 342

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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

Synapse Design

Use this skill to turn technical material into a WhyJ-style engineering blog package.

The target is not a neutral summary.
The target is a two-artifact delivery that feels like:

  • someone read the source carefully
  • extracted the real mechanism
  • decided what actually matters
  • wrote it down in a way other engineers would save
  • compressed the logic until each section carries one hard point

Input / Output Contract

Accepted input

This skill accepts one or more of:

  • raw information
  • working notes
  • paper PDFs
  • report text
  • benchmark observations
  • architecture notes

Final output

This skill must end with exactly two final artifacts:

  1. a technical blog Markdown file
  2. a polished blog HTML file

Do not treat any other artifact as a final deliverable.

Markdown artifact requirements

The Markdown artifact must:

  • use the WhyJ voice
  • be thesis-first and mechanism-driven
  • be publishable as a technical blog post
  • include a dedicated section for static illustration prompts
  • include prompts suitable for the Codex built-in $imagegen skill and its default image_gen tool mode
  • define what each image should teach, and bind it to strict Excalidraw controls: #FAFAF7 paper, rough #4A4338 ink, sparse labels, one #C45A20 accent, no gradients, no shadows, no 3D, no decorative clutter

HTML artifact requirements

The HTML artifact must:

  • implement the same article argument, not a different summary
  • use README-like structure for readability
  • use DESIGN.md-style visual rules for typography, spacing, color roles, borders, captions, and callouts, and enforce the same prompt-level visual constraints for each figure (Excalidraw-style, no gradients/shadows, controlled palette)
  • use pretext-style text layout constraints for title length, lead density, caption compactness, and callout geometry
  • use real pretext layout when animated or geometry-sensitive text is part of the page behavior
  • show figure prompts only in zoomed view; normal view keeps prompt hidden to avoid interface clutter
  • be polished enough to function as the publishable blog page
  • use relative figure references like ./figures/figure-XX-*.png, matching the corresponding example figures/ directory
  • keep all figure files under the same example's ./figures/ folder and write paths in markdown/HTML as that relative path
  • invoke Codex $imagegen for requested/recreated raster figures; never route them through Gemini, Imagen APIs, or Nano Banana. Record codex-imagegen in figures/index.md; an API/CLI fallback requires explicit user approval.

Non-final artifacts

The following may exist only as intermediate planning material:

  • remotion scene notes
  • figure briefs
  • image planning notes
  • scratch summaries
  • technical reports

If created during reasoning, collapse them into the final two outputs instead of presenting them as separate deliverables.

Read

Read only what is needed:

  1. Slides profile — resolve {design.slides.profile} first (see Slides Design Profile below)
  2. If target output is under examples/<project>/, read examples/<project>/DESIGN.md first (override source for prompt + style constraints)
  3. references/e2e-v6.0-*.html — E2E evaluation outputs (4 files, reference for slides/blog rendering quality). The DeepSeek blog reference resolves its mirrored assets from references/figures/; refresh with node scripts/refresh-skill-examples.js.
  4. Main examples/ directory — full forge→render pipeline outputs:
    • cli-revolution/ — CLI Revolution (slides DSL + blog DSL + slides HTML + blog HTML)
    • deepseek-v4/ — DeepSeek-V4 (slides DSL + blog DSL + slides HTML + blog HTML)
    • nano-cc/ — Nano Claude Code (slides DSL + blog DSL + slides HTML + blog HTML)
    • opd/ — OPD On-Policy Distillation (slides DSL + blog DSL + slides HTML + blog HTML + 7 editable SVG figures)

Trigger

Use this skill when the user asks for:

  • a blog note
  • a paper note
  • a technical note
  • a publishable technical article
  • a Markdown and HTML blog package
  • a report rewritten in a stronger engineering voice
  • a systems or LLM article that should read like a saved engineering notebook

Trigger even if the user does not say blog.
Nearby requests that should trigger this skill include:

  • 整理成笔记
  • 按我的风格写
  • 按 WhyJ 风格写
  • 不要写成流水账
  • 写成博客笔记
  • 做成可发布的技术解读

Core Style

  • Thesis first.
  • Explanation by mechanism, not by praise.
  • Dense, but not padded.
  • Strong judgment is allowed, but it must be earned.
  • Use short labels and concrete technical nouns.
  • Keep each section logically O(1): one section, one hard point.
  • End with an aggressive pulse, not a soft landing.
  • End with what the reader should remember.

Workflow

1. Find the one sentence that matters

Before writing, decide:

  • what is actually new
  • what the source pretends is important
  • what is truly important in practice

If you cannot state the spine in one sentence, the note is not ready.

2. Throw away section-by-section summary

Do not mirror the source heading order unless the source structure is unusually good.

Rebuild around:

  1. the real problem
  2. the design move
  3. the enabling system details
  4. the tradeoffs
  5. the engineering takeaway

3. Write as a note worth saving

Good note qualities:

  • a clear point of view
  • enough source detail to be trusted
  • enough compression to be reread quickly
  • no dead summary paragraphs

Bad note qualities:

  • recap without judgment
  • generic admiration
  • soft claims like very powerful without mechanism
  • social-media hooks
  • warm-up paragraphs that delay the thesis

4. Add visuals only when they compress understanding

When visuals are needed:

  • one image carries one core conclusion
  • specify what the figure teaches
  • keep labels short
  • preserve technical semantics
  • turn figure intent into static-image prompts inside the Markdown artifact
  • use page style only after the figure logic is fixed

When source images have highly inconsistent aspect ratios:

  • do not rely on CSS alone to force harmony
  • classify the target figure slot first, for example hero, wide, balanced, tight, or tall
  • if the source image ratio differs too much from the target slot, create a fill-or-extend image prompt instead of stretching the original
  • require the prompt to preserve the technical structure while matching the target ratio
  • state the target ratio explicitly inside the prompt

5. Finish with a real takeaway

The ending should tell the reader what changes in how they think about the system.

6. Ship only the two final artifacts

Before finishing, verify:

  • the Markdown file contains the full blog text and image prompts
  • the HTML file contains the same argument in a polished page form
  • there is no third artifact presented as a required final result

Output Format

Unless the user explicitly overrides it, produce:

  1. blog.md
  2. blog.html

Inside blog.md, produce:

  1. title
  2. opening thesis paragraph
  3. 4-7 mechanism-driven sections
  4. static illustration prompt section for Codex $imagegen
  5. final what to remember section

Inside the static illustration prompt section, when aspect-ratio repair is needed, include:

  1. source image reference
  2. target slot type
  3. target aspect ratio
  4. whether the model should extend, recompose, or regenerate
  5. the final prompt (must include: #FAFAF7 paper, rough #4A4338 ink, sparse labels, one #C45A20 accent, no gradients, no shadows, no 3D, no decorative elements)

Inside blog.html, produce:

  1. the same title and thesis
  2. the same core sections
  3. polished static figures or figure slots
  4. DESIGN.md-style visual hierarchy
  5. pretext-style text density control

Tool Fusion

When the task also includes presentation:

  • resolve {design.slides.profile} and ask the user if unset (Excalidraw vs Serif)
  • use the matching design-md/*-slides-design.md stub as the DESIGN.md source for the deck
  • use DESIGN.md-like language to define visual rules in prose
  • use real pretext integration only when {design.slides.profile} is excalidraw-slides
  • use image generation planning only after the figure spec is explicit
  • keep remotion-style scene thinking as optional internal planning, not as a final required output

For concrete slide examples, prompts are intermediate planning data only. Render each selected visual, store it under the example's figures/ directory, replace ::visual with ::image, and embed the real asset in HTML. Never ship an E2E slide with Codex imagegen or Figure prompt visible; run node scripts/validate-slide-visuals.js before completion.

When pretext is required in HTML output:

  • load it in the browser with a module import when appropriate
  • use prepareWithSegments(...)
  • then use layoutWithLines(...)
  • use the resulting lines to drive text layout
  • apply this at minimum to animated text fields
  • prefer extending it to title, lead, and caption layout when those are part of the reading experience

DESIGN.md System

DESIGN.md is a plain-text design system document (YAML front matter + markdown prose) that gives AI agents a persistent, structured understanding of a visual identity.

Format (Google Stitch spec)

A DESIGN.md file has two layers:

  1. YAML front matter — machine-readable design tokens: colors, typography, rounded, spacing, components
  2. Markdown body — human-readable design rationale in ## sections: Overview, Colors, Typography, Layout, Elevation, Shapes, Components, Do's and Don'ts

CLI Tools

# Install
npm install @google/design.md

# Validate a DESIGN.md
npx @google/design.md lint DESIGN.md

# Diff two versions
npx @google/design.md diff DESIGN.md DESIGN-v2.md

# Export to Tailwind or DTCG
npx @google/design.md export --format tailwind DESIGN.md > tailwind.theme.json

# Get the spec for agent context
npx @google/design.md spec

Ready-to-use DESIGN.md files

69 curated brand design systems at github.com/VoltAgent/awesome-design-md:

  • Copy a site's DESIGN.md into the project root
  • Each file includes DESIGN.md + preview.html + preview-dark.html
  • Available profiles: Vercel, Stripe, Notion, Linear, Figma, Apple, Tesla, BMW, and 60+ more

How Synapse Uses DESIGN.md

When the HTML artifact needs a specific visual identity:

  1. If present, prefer examples/<project>/DESIGN.md as the highest-priority source for figure and layout constraints.
  2. Otherwise choose a profile from awesome-design-md or define a custom DESIGN.md
  3. Use the token system (colors, typography, spacing, rounded) as CSS custom properties
  4. Validate with npx @google/design.md lint
  5. Map component tokens to HTML/CSS classes in the blog output

The design tokens must serve the technical argument, not override it.

Slides Design Profile (DESIGN.md Placeholder)

Slides use a separate DESIGN.md placeholder from blog HTML. Before rendering or restyling any deck, resolve:

{design.slides.profile}  →  excalidraw-slides  |  serif-slides

If the user has not chosen a profile, ask:

请选择 Slides 视觉风格:

  1. Excalidraw 手绘剧场 — 白底网格、Gochi Hand、粗黑边框、pretext 动画、Excalidraw 插图
  2. Claude 衬线编辑 — 奶油底、Cormorant + Noto Serif SC、hairline 分割线、blog 式自然排版

Do not guess. Do not mix the two profiles in one deck.

Placeholder valueDESIGN.md stubStyle specHTML template
excalidraw-slidesdesign-md/excalidraw-slides-design.mdreferences/SLIDES-STYLE.mdreferences/WHYJ-SLIDES.html
serif-slidesdesign-md/serif-slides-design.mdreferences/SLIDES-STYLE-SERIF.mdexamples/quant-agent/quant-agent-slides.html (reference impl.)

After substitution, load only the row that matches {design.slides.profile}.

Blog HTML may still use design-md/claude-design.md or other blog profiles — slides profile is independent.

Reference

  • Spec: github.com/google-labs-code/design.md
  • Collection: github.com/VoltAgent/awesome-design-md
  • CLI: npx @google/design.md lint

Rules

  • Do not sound neutral when the evidence supports a stronger conclusion.
  • Do not oversell.
  • Do not write social-media style hooks.
  • Do not write X-thread style sections.
  • Do not keep dead weight from the source.
  • Do not let page style become more important than the technical argument.
  • Do not return more than the two final artifacts unless the user explicitly asks for extras.
  • Do not claim pretext usage unless the page is actually using pretext APIs.
  • All JS content strings in HTML output MUST use backtick template literals — never "..." or "..." (Chinese curly quotes). JS only recognizes " (U+0022), ' (U+0027), and ` (U+0060) as string delimiters. Curly quotes "" cause SyntaxError: Invalid or unexpected token and white-screen rendering failure.

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.