شعار Chart Annotations

Chart Annotations

المجتمع
skthewimp
chart-annotations

Decide what to mark on a chart, how to rank competing candidates, how to word the label, and where to place it. Use when a chart needs on-chart annotation, callouts, direct labels for a key point, event markers, threshold lines, knee-bend or inflection labels, outlier calls, highlighted bars or points, or when a chart is finished but the reader cannot see the point without narration. Also use when annotation text is too long, too many things are marked, the label repeats the title, or a marked number is not tied to a stated baseline.

نظرة عامة

الناشرskthewimp
المستودعkarthik-data-visualization-skill
اسم المهارةchart-annotations
النجوم
49
التفريعات
5
الملفات المرفقة
تعليمات فقط
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • مكتفية بذاتها

    كل ما يحتاجه النموذج موجود في التعليمات — لا ملفات إضافية لمزامنتها.

  • مفتوحة المصدر

    نشرها skthewimp على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Chart Annotations في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى الإضافات → المهارات.
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/skthewimp/karthik-data-visualization-skill/tree/main/chart-annotations/codex
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات → المهارات → إضافة مهارة → من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/skthewimp/karthik-data-visualization-skill.git /tmp/karthik-data-visualization-skill
mkdir -p .claude/skills
cp -r /tmp/karthik-data-visualization-skill/chart-annotations/codex .claude/skills/chart-annotations
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Chart Annotations في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج Chart Annotations تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Chart Annotations بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تترتب أي تكلفة على المهارة غير المستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

Chart Annotations

Own on-chart annotation selection, wording, visual weight, and placement. Do not choose the chart form, global visual system, adjacent explanatory note, critique structure, or release verdict; those belong to dataviz-selector, karthik-data-visualization, chart-explainer, dataviz-critique, and dataviz-eval.

Use this when a chart exists or is being built and the reader should not have to infer the point. Annotation is not decoration and not a caption. It is the act of marking the specific evidence that carries the claim.

This skill covers four decisions: what to mark, which candidate wins, how to word it, where to put it.

Division of labour: title vs annotation

The title states the claim in words. The annotation locates it on the chart.

Do not write the same sentence twice.

text
Title:       Haryana saw the sharpest per-capita jump
Annotation:  +38%          <- placed at the Haryana point

If the annotation is a full sentence restating the title, cut it to the locating fragment. If the title is a neutral chart description while the annotation carries the whole argument, move the claim up into the title.

They must be the same claim. The opposite failure to repetition is divergence: a title about the whole cloud ("cities with low literacy are also the least equal") with an annotation about a subgroup ("Rajasthan holds 12 of the 20 widest gaps"). Both may be true, and the chart still fails, because the reader is handed two findings and told which to care about by neither. Decide which claim the chart is making, put it in the title, and mark the evidence for that one. The other claim is a second chart.

Exception: a chart designed to travel alone with no title bar or surrounding text may carry the claim in the annotation. State that this is the case before doing it.

Workflow

  1. Write the one-sentence claim the chart must support.
  2. Enumerate annotation candidates from the chart's geometry.
  3. Run the concentration check.
  4. Rank candidates by relevance to the chart's claim, evidentiary strength, reader payoff, and visual salience.
  5. Select only as many as the chart can support without competing claims; there is no universal count.
  6. Write each label so it identifies the evidence and qualifies the claim appropriately.
  7. Place by proximity, with coordinates derived from the data; add a connector only if proximity fails.
  8. Render, inspect the image, fix collisions.

Step 2: candidate inventory

Look at the rendered shape, not the summary statistics. Candidates:

  • knee-bend or visible slope change; inflection point
  • local maximum or minimum; temporary peak or trough
  • crossover where two series swap order
  • threshold breach; record or boundary value
  • start and end of a run or streak
  • event date with a visible before/after difference
  • outlier far from the pattern
  • the gap between two series at a specific point
  • first or last observation when the endpoint is the point

An absence - no trend, no gap, no change - is a finding, but it is not a candidate here. It goes in the title and gets no mark (see "When nothing clears the bar").

Separate observed candidates from derived ones as you list them. A record year, a crossover, and an actual gap are observed - they are in the data. A knee from a breakpoint scan, a trend slope, a smoothed peak, a cluster boundary are derived - they are outputs of a model you chose. Derived features are annotatable, but they carry a higher bar (see "Annotating derived features").

Step 3: concentration and candidate strength

Before annotating an aggregate or apparent feature, inspect how the evidence is distributed, concentrated, and uncertain. If a subset materially changes the interpretation, expose it. Choose thresholds and robustness checks appropriate to the metric and claim rather than applying fixed percentages or universal tests.

Rank candidates by relevance to the stated claim, evidentiary strength, interpretive value, and visual salience. Records, departures, events, persistence, gaps, and other features are candidate classes, not a fixed hierarchy.

Distinguish observed description, exploratory signal, and inferential claim. Annotate a feature when it is relevant and accurately qualified; use uncertainty, sensitivity checks, or tentative wording when evidence is limited. If no feature clears the claim's evidentiary and communication bar, leave the chart unmarked and state the absence in the title or accompanying explanation.

Annotating derived features

  • Validate before marking. A breakpoint, trend, smoothed peak, or cluster boundary is a chosen or model-derived feature; test sensitivity or word it as approximate.
  • A split point chosen by eye is derived too. Test it or describe it as approximate, and describe both sides honestly.
  • Word it with the uncertainty the method carries. "around the mid-1950s" is honest for a scanned breakpoint; "in 1956" claims a precision the method does not have. Do not put a bare year on a derived knee unless the year is itself the result.
  • Keep the evidence visible. A fitted or smoothed layer must not become more persuasive than the observations it summarizes.

Step 5: how many

Maintain a clear primary focus, but size the annotation set to the density, medium, and traceability needs. Additional labels are acceptable when they improve identification without creating clutter; split the chart when competing claims cannot be separated.

Contrast pairs are one annotation, not two. When a claim is inherently about two ends - the highest and the lowest, the state that breaks the pattern against the one that follows it - the two labels are halves of a single point and share equal weight. Do not tier them into primary and supporting; that would say one end matters more, when the comparison is the finding. A contrast pair spends the primary slot, leaving one supporting annotation.

Orienting labels are a separate class and do not count against the cap: series names, period labels, axis units, a legend replacement. They must still be collision-checked against the claim annotations - a period label sitting on top of the primary annotation is the same defect as two annotations overlapping.

Step 6: writing the label

Every number and every comparative word in a label must be computed, never typed.

Position is not the only thing that drifts. A hand-typed count that was right when you wrote it is wrong after a filter changes, and nothing in the chart will tell you. Build the label string from the same computation that produced the mark:

r
mutate(lbl = paste0("Rajasthan: ", sum(top$state == "Rajasthan"),
                    " of the 20 widest gaps"))

Comparative words are quantitative claims wearing plain clothes. flat, unchanged, steady, stagnant, doubled, tripled, halved, no different, as many as - each one asserts a number and each one needs the number checked before it goes in the label. "Flat for the 45 years before" is a testable statement; if the pre-period slope is 1.5 points per decade at p = 0.0002, the label is false and the chart is worse than unannotated, because it invents a plateau the reader will believe.

Keep each label concise, single-purpose, and audience-appropriate. Tie numbers to their relevant baseline and window; qualify causal or inferential language; do not impose a universal word count or editorial vocabulary.

Step 7: placement

  • Anchor data-linked labels to the underlying data or chart geometry so they remain correct under filtering, sorting, and rescaling. Literal coordinates are valid when the annotation is intentionally independent of a data observation, such as chart furniture or a fixed reference caption.

Build a small annotation frame filtered from the plotting data, compute the offset from the value being labelled, and let the plotting layer position it:

r
ann <- d %>%
  filter(state %in% c("Haryana", "Andhra Pradesh", "Tamil Nadu")) %>%
  mutate(tier  = if_else(state == "Haryana", "primary", "supporting"),
         x     = pc_2026 + 40,                      # offset from the point itself
         label = paste0("+Rs ", round(delta_pc)))

geom_text(data = filter(ann, tier == "supporting"),
          aes(x = x, y = state_f, label = label), hjust = 0, ...)

The label text is computed from the same columns as the mark, so the number and its position cannot disagree. annotate() with literal coordinates is fine for chart furniture - a period label, a band caption - but not for anything pointing at a specific observation.

Derive the anchor, then offset into whitespace. A derived coordinate is the right anchor and usually the wrong resting place. Labelling a group of points at its centroid puts the text in the densest part of the cloud, where it is least readable - the centroid is the worst position available. Anchor on the group, then push the label to the outside edge of the cloud, into space no point occupies.

Use the least distracting treatment that preserves label-to-mark association and legibility. Choose bare text, a halo, box, fill, or connector based on background, density, contrast, and medium.

  • Preserve direct links between labels and the marks or groups they describe. Use a connector only when proximity and layout do not make the relationship clear.
  • A connector must never cross other data.
  • Text must never sit on top of data, gridlines, or another label.
  • If no honest placement exists, change the chart - widen margins, expand the axis range, move the panel - before dropping the annotation.
  • Reserve room for the text when setting scale limits, on every edge the text can reach. Labels clip left, right, top and bottom, and a centred label on a point near an axis extreme clips on whichever side it overhangs. Extend the limits in the direction the text runs and set clipping off; do not discover the clip after rendering.

Visual weight

Two tiers:

  • Primary: accent colour, bold, slightly larger. The data element it points at also takes the accent.
  • Supporting: grey, regular weight, smaller than the axis labels. Context only.

Never let annotation text outweigh the data mark it explains. Grey carries context; the single accent carries the story.

Step 8: render and inspect - mandatory

Placement cannot be verified from code. Export the image and look at it.

Check:

  • Is any text clipped at a panel edge, or running past the figure boundary?
  • Does each label sit on the row or point it describes? Check one label against the underlying number by hand. A label one row off looks perfectly fine.
  • Does any label overlap data, another label, or an axis?
  • Is the primary annotation visibly the loudest thing after the data itself?
  • At final output size, is the smallest annotation still legible?
  • Does the eye land on the primary annotation before the supporting ones?

Fix and re-render. Do not declare done from code inspection.

Common mistakes

MistakeFix
Annotation repeats the title verbatimCut to the locating fragment
Aggregate annotated when a burst explains itRun the concentration check
Five things marked because five are interestingCap at 1 + 2; split the chart
Floating number with no baselineAttach the comparator in the same label
Causal claim from a coincidenceUse "followed", or drop the annotation
Boxed callout with a fillBare text in whitespace
Annotation louder than the dataMove accent to the data mark
Label attached to the neighbouring rowDerive coordinates from the data, not by hand
Largest wiggle in a noisy series promoted to a findingAsk whether it survives a different sample; if it fails, mark nothing
Callout announcing that nothing is happeningPut the absence in the title; leave the chart unmarked
Bare year on a knee found by scanningWord it as approximate, or validate first
Fitted line louder than the observationsChart argues for the model; requiet the fit
Share language on a rank findingCompute the share before writing the claim
Text clipped at any panel edgeReserve axis headroom in the direction the text runs
Hand-typed count in the label textBuild the label string from the same computation as the mark
"Flat", "doubled", "unchanged" asserted but never testedComparative words are numbers; check them
Split point chosen by eye, then described as foundTest it, or word it loosely; describe both segments honestly
Group label parked at the cluster centroidAnchor on the group, offset to the outside edge
Title claims one thing, annotation marks anotherPick one claim; the other is a second chart
Declared done without renderingExport and inspect

Relationship to other skills

Use dataviz-selector first if the chart form is still open. Use karthik-data-visualization for palette, typography, and the surrounding chart style. Use dataviz-critique when reviewing someone else's annotated chart. Use dataviz-fix when the whole chart enters a repair loop. dataviz-orchestrator calls this skill at the charting step.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Chart Annotations؟

Decide what to mark on a chart, how to rank competing candidates, how to word the label, and where to place it. Use when a chart needs on-chart annotation, callouts, direct labels for a key point, event markers, threshold lines, knee-bend or inflection labels, outlier calls, highlighted bars or points, or when a chart is finished but the reader cannot see the point without narration. Also use when annotation text is too long, too many things are marked, the label repeats the title, or a marked number is not tied to a stated baseline.

لماذا تستخدم Chart Annotations على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Chart Annotations عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Chart Annotations في TypingMind؟

افتح الإضافات → المهارات → التثبيت من GitHub في TypingMind والصق https://github.com/skthewimp/karthik-data-visualization-skill/tree/main/chart-annotations/codex. يقرأ TypingMind ملف SKILL.md الخاص بها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Chart Annotations؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Chart Annotations؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Chart Annotations معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Chart Annotations مجانية؟

نعم. نشرها skthewimp على GitHub بموجب ترخيص MIT. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا البريدية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇