Agent Skillskeshav-exe/markdown-graphs › markdown-graphs

markdown-graphs

GitHub

辅助在Markdown或React/MDX中插入标准化图表(JSX或ASCII),涵盖重构、故障复盘等场景,提供选择器与生成流程。

skills/markdown-graphs/SKILL.md keshav-exe/markdown-graphs

触发场景

解释重构、故障复盘或迁移 编写README或PR说明 用户提及markdown graphs或ASCII diagrams

安装

npx skills add keshav-exe/markdown-graphs --skill markdown-graphs -g -y
更多选项

不安装直接使用

npx skills use keshav-exe/markdown-graphs@markdown-graphs

指定 Agent (Claude Code)

npx skills add keshav-exe/markdown-graphs --skill markdown-graphs -a claude-code -g -y

安装 repo 全部 skill

npx skills add keshav-exe/markdown-graphs --all -g -y

预览 repo 内 skill

npx skills add keshav-exe/markdown-graphs --list

SKILL.md

Frontmatter
{
    "name": "markdown-graphs",
    "description": "Picks markdown graphs next to prose. In React or MDX that can import components, copies JSX. In plain Markdown (README, GitHub, Linear, PR comments, .md), pastes the official fenced ASCII twin from llms.txt. Never invents SVG, Mermaid, Recharts, canvas, or homemade ASCII. Use when explaining a refactor, incident, postmortem, tradeoff, pull request, sprint, or migration; when writing a README or markdown doc; when the user mentions markdown graphs, ASCII diagrams, framed charts, GraphFlow, or GraphTimeline; or when a write-up would scan faster with a figure."
}

markdown graphs

Glyphs in a dashed frame with + corners and a [ TITLE ] on the top edge.

Two hosts. Pick before you write.

Host What to paste Where to copy from
React, or MDX that can import from @/registry/default JSX recipes.md, then docs examples
Plain Markdown (README, GitHub, Linear, Slack, PR comments, .md) Fenced ASCII twin https://mdx-graphs.kshv.me/llms.txt ## MDX, or the docs page MDX tab

Do not paste JSX into a file that cannot run React. Do not invent ASCII art — copy the official twin, swap labels, keep the frame.

No twin: Flow, Plot, Activity, Heatmap, Calendar, Timer, Countdown, Frame. Pick a graph that has a twin, or skip the figure.

Source is copied via shadcn, not npm. Imports land under @/registry/default. Unsure of props? Fetch https://mdx-graphs.kshv.me/llms.txt.

If registry/default/graph-frame is missing and the host is React:

pnpm dlx shadcn@latest add https://mdx-graphs.kshv.me/r/all.json

Need motion. One component: replace all with the slug (graph-flow, …).

Procedure

  1. Decide if a figure earns it. One sentence → no graph. A path, a night, a matrix, a diff → yes.
  2. Pick at most two graphs from the chooser. Prefer a pair in recipes.md. If the host is plain Markdown, drop any pick that has no twin.
  3. Copy. JSX from recipes.md / docs. ASCII from llms.txt ## MDX. Swap labels, keep the API / frame.
  4. Write the reply in this shape. Do not lead with the figure.

React / importable MDX:

1–3 sentences (the claim)

<GraphA … />

1–3 sentences (what the second figure adds)

<GraphB … />

Plain Markdown:

1–3 sentences (the claim)

```
+---- [ TITLE ] ----+
|                   |
|  …official twin   |
|                   |
+-------------------+
```

1–3 sentences (what the second figure adds)
  1. Check the rules. Then send.

Chooser

Writing first. Data shape if nothing matches.

The writing is Use Recipe
A path or a refactor GraphFlow, then GraphTimeline Refactor
An incident / postmortem GraphTimeline, then GraphUptime Incident
Pick A vs B GraphCompare, then GraphRank if size matters Pick one
What a PR changed GraphDiff, then GraphSlope Pull request
Overlapping work this week GraphGantt, then GraphStat This week
A migration in flight GraphMeter, then GraphKpi Migration
Nested files / org GraphTree
An RFC or a launch list GraphSheet, then GraphCheck
The data is Use Not
A handful of numbers, no axis GraphSpark Plot
A series that needs a y-scale GraphPlot Spark, Recharts
One fill from 0 to 1 GraphMeter Bullet
Actual vs a target GraphBullet Meter
Parts of a whole GraphStack Pie. Waffle if you want ~100 cells
A short ranked list GraphRank Bars
A small filled / empty grid GraphCells Waffle, Activity
Two small histograms GraphBars Rank
One headline + a trend GraphKpi Stat
Two to four numbers, no trend GraphStat KPI
Before → after numbers GraphSlope Bars
Elapsed / how long ago / clock GraphTimer Countdown
Time left until a date GraphCountdown Timer
Status per day GraphUptime Activity, Heatmap
Daily counts over months GraphActivity Calendar, Uptime
One month, a few marks GraphCalendar Activity
A labeled intensity grid GraphHeatmap Activity, Matrix
Exact numbers on both axes GraphMatrix Heatmap, Compare
A running total GraphWaterfall Stack
Steps that drop off GraphFunnel Flow, Rank
Rows of numbers GraphTable Rank, Spark, Sheet
Grouped table, section titles GraphSheet Table, Spec
Punch list [x] / [ ] GraphCheck Timeline
From / bill-to / line items GraphInvoice Table
Label / value sheet GraphSpec Stat, Sheet

Skip GraphFrame unless you are assembling a custom figure. If the chart already exists, install that one.

Import

import { GraphFlow } from "@/registry/default/graph-flow/graph-flow"

Named export matches the folder: graph-<name>/graph-<name>. Do not invent a barrel. Skip this when the host is plain Markdown.

Rules

  • At most two graphs in a section. Prose between them. Never a gallery.
  • Titles: 1–2 words, uppercase, no punctuation. Drawn as [ TITLE ].
  • Labels: lowercase, plain (auth middleware, not AuthMiddleware Layer).
  • Copy props / twins from recipes.md, docs, or llms.txt. Do not invent APIs, extra hues, or chart libraries.
  • Default palette is one accent (--graph-accent). palette="duo" / "multi" only when a second or third series needs it.
  • Unused rows recede (~0.4 opacity). Numbers: tabular-nums, right-aligned.
  • Motion is already in the components (transform + opacity, ~220ms). Do not add loops, pulses, or CSS animation.

Do not

  • Draw SVG, Mermaid, Recharts, or canvas.
  • Invent ASCII art. Copy the official twin from llms.txt / the MDX tab.
  • Paste JSX into README, GitHub, Linear, or any file that cannot import the components.
  • Restyle the frame (no extra borders, no rounded cards, no new corner marks).
  • Dump every graph you know into one reply.
  • Use a pie chart. Stack or Waffle.
  • Pass palette on Table, Sheet, Invoice, Spec, Stat, Tree, or Frame.

Example prompts

These are user messages. Match the pair. React → copy JSX from the recipe. Markdown → copy the twin from llms.txt.

RefactorGraphFlow, then GraphTimeline (Markdown: Timeline only — Flow has no twin)

We're moving session checks out of route handlers into middleware. Write a short plan for the team.

Use markdown graphs for the before/after request path and the week-by-week rollout. Prose between the two figures. Don't draw SVG.

IncidentGraphTimeline, then GraphUptime

Draft a tight postmortem: p95 crossed 800ms at 14:02, we rolled back the cache flag at 14:11, the write-up is still open.

Use markdown graphs — a timeline of the night, then which days users felt it. No SVG.

Pull requestGraphDiff, then GraphSlope

Leave a PR review comment on the auth refactor. Summarize what files moved, then show how coverage changed on main vs this branch.

Use markdown graphs from this project. At most two figures. Don't invent APIs or draw SVG.

Pick oneGraphCompare, then GraphRank if install size is part of the argument

We're choosing a queue: BullMQ vs SQS. Write the tradeoff for the RFC.

Use markdown graphs — a feature matrix, then bundle size only if it matters. Don't draw SVG.

README → fenced twins, not JSX

Add a launch section to the README. It's a .md file, no React.

Use markdown graphs — a punch list (GraphCheck twin) and a grouped table if it earns it. Paste the official fenced ASCII from llms.txt. Don't paste JSX.

版本历史

  • 8545612 当前 2026-09-08 17:33

元信息

文件数
0
版本
8545612
Hash
e88b21bf
收录时间
2026-09-08 17:33

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-09 14:27
浙ICP备14020137号-1 $访客地图$