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
In this repository6 other files it gives its agents.
- AGENTS.mdAGENTS.md
- synapseSkill
- synapse-animationSkill
- synapse-excalidrawSkill
- synapse-forgeSkill
- synapse-pretextSkill
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
- Distinctive: line 10
Use this skill to turn technical material into a WhyJ-style engineering blog package.
- Distinctive: line 41
Do not treat any other artifact as a final deliverable.
- Distinctive: line 47
use the WhyJ voice
- Distinctive: line 59
use README-like structure for readability
- Distinctive: line 60
use DESIGN.md-style visual rules for typography, spacing, color roles, borders, captions, and callouts, and enforce the same prompt-level …
- Distinctive: line 61
use pretext-style text layout constraints for title length, lead density, caption compactness, and callout geometry
- Very specific: line 62
use real pretext layout when animated or geometry-sensitive text is part of the page behavior
- Very specific: line 65
use relative figure references like ./figures/figure-XX-*.png, matching the corresponding example figures/ directory
- Very specific: line 66
keep all figure files under the same example's ./figures/ folder and write paths in markdown/HTML as that relative path
- Distinctive: line 79
If created during reasoning, collapse them into the final two outputs instead of presenting them as separate deliverables.
- Distinctive: line 83
Read only what is needed:
- Very specific: line 86
If target output is under examples/<project>/, read examples/<project>/DESIGN.md first (override source for prompt + style constraints)
- Distinctive: line 96
Use this skill when the user asks for:
- Distinctive: line 122
Use short labels and concrete technical nouns.
- Distinctive: line 123
Keep each section logically O(1): one section, one hard point.
- Distinctive: line 137
If you cannot state the spine in one sentence, the note is not ready.
- Distinctive: line 141
Do not mirror the source heading order unless the source structure is unusually good.
- Distinctive: line 158
no dead summary paragraphs
- Distinctive: line 170
When visuals are needed:
- Distinctive: line 177
use page style only after the figure logic is fixed
- Distinctive: line 179
When source images have highly inconsistent aspect ratios:
- Distinctive: line 181
do not rely on CSS alone to force harmony
- Distinctive: line 183
if the source image ratio differs too much from the target slot, create a fill-or-extend image prompt instead of stretching the original
- Distinctive: line 232
When the task also includes presentation:
- Very specific: line 235
use the matching design-md/*-slides-design.md stub as the DESIGN.md source for the deck
- Distinctive: line 236
use DESIGN.md-like language to define visual rules in prose
- Very specific: line 237
use real pretext integration only when {design.slides.profile} is excalidraw-slides
- Distinctive: line 238
use image generation planning only after the figure spec is explicit
- Distinctive: line 239
keep remotion-style scene thinking as optional internal planning, not as a final required output
- Very specific: line 243
When pretext is required in HTML output:
- Very specific: line 248
use the resulting lines to drive text layout
- Distinctive: line 250
prefer extending it to title, lead, and caption layout when those are part of the reading experience
- Distinctive: line 292
When the HTML artifact needs a specific visual identity:
- Very specific: line 294
If present, prefer examples/<project>/DESIGN.md as the highest-priority source for figure and layout constraints.
- Distinctive: line 296
Use the token system (colors, typography, spacing, rounded) as CSS custom properties
- Distinctive: line 316
Do not guess. Do not mix the two profiles in one deck.
- Very specific: line 323
After substitution, load only the row that matches {design.slides.profile}.
- Distinctive: line 335
Do not sound neutral when the evidence supports a stronger conclusion.
- Distinctive: line 337
Do not write social-media style hooks.
- Distinctive: line 338
Do not write X-thread style sections.
- Distinctive: line 339
Do not keep dead weight from the source.
- Distinctive: line 340
Do not let page style become more important than the technical argument.
- Distinctive: line 341
Do not return more than the two final artifacts unless the user explicitly asks for extras.
- Very specific: line 342
Do not claim pretext usage unless the page is actually using pretext APIs.
≈ “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.
Files
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:
- a technical blog Markdown file
- 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
$imagegenskill and its defaultimage_gentool mode - define what each image should teach, and bind it to strict Excalidraw controls:
#FAFAF7paper, rough#4A4338ink, sparse labels, one#C45A20accent, 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
pretextlayout 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 examplefigures/directory - keep all figure files under the same example's
./figures/folder and write paths in markdown/HTML as that relative path - invoke Codex
$imagegenfor requested/recreated raster figures; never route them through Gemini, Imagen APIs, or Nano Banana. Recordcodex-imagegeninfigures/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:
- Slides profile — resolve
{design.slides.profile}first (see Slides Design Profile below) - If target output is under
examples/<project>/, readexamples/<project>/DESIGN.mdfirst (override source for prompt + style constraints) references/e2e-v6.0-*.html— E2E evaluation outputs (4 files, reference for slides/blog rendering quality). The DeepSeek blog reference resolves its mirrored assets fromreferences/figures/; refresh withnode scripts/refresh-skill-examples.js.- 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:
- the real problem
- the design move
- the enabling system details
- the tradeoffs
- 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 powerfulwithout 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, ortall - 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:
blog.mdblog.html
Inside blog.md, produce:
- title
- opening thesis paragraph
- 4-7 mechanism-driven sections
- static illustration prompt section for Codex
$imagegen - final
what to remembersection
Inside the static illustration prompt section, when aspect-ratio repair is needed, include:
- source image reference
- target slot type
- target aspect ratio
- whether the model should extend, recompose, or regenerate
- the final prompt (must include:
#FAFAF7paper, rough#4A4338ink, sparse labels, one#C45A20accent, no gradients, no shadows, no 3D, no decorative elements)
Inside blog.html, produce:
- the same title and thesis
- the same core sections
- polished static figures or figure slots
- DESIGN.md-style visual hierarchy
- 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.mdstub as the DESIGN.md source for the deck - use DESIGN.md-like language to define visual rules in prose
- use real
pretextintegration only when{design.slides.profile}isexcalidraw-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
linesto 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:
- YAML front matter — machine-readable design tokens:
colors,typography,rounded,spacing,components - 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 specReady-to-use DESIGN.md files
69 curated brand design systems at github.com/VoltAgent/awesome-design-md:
- Copy a site's
DESIGN.mdinto 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:
- If present, prefer
examples/<project>/DESIGN.mdas the highest-priority source for figure and layout constraints. - Otherwise choose a profile from awesome-design-md or define a custom DESIGN.md
- Use the token system (colors, typography, spacing, rounded) as CSS custom properties
- Validate with
npx @google/design.md lint - 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-slidesIf the user has not chosen a profile, ask:
请选择 Slides 视觉风格:
- Excalidraw 手绘剧场 — 白底网格、Gochi Hand、粗黑边框、pretext 动画、Excalidraw 插图
- Claude 衬线编辑 — 奶油底、Cormorant + Noto Serif SC、hairline 分割线、blog 式自然排版
Do not guess. Do not mix the two profiles in one deck.
| Placeholder value | DESIGN.md stub | Style spec | HTML template |
excalidraw-slides | design-md/excalidraw-slides-design.md | references/SLIDES-STYLE.md | references/WHYJ-SLIDES.html |
serif-slides | design-md/serif-slides-design.md | references/SLIDES-STYLE-SERIF.md | examples/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
pretextusage unless the page is actually usingpretextAPIs. - 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""causeSyntaxError: Invalid or unexpected tokenand white-screen rendering failure.
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
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.

