Aller au contenu
Skillpedia
Analyse et tableurs5.5k · #14813

terminal-line-plot

Ce qu’il fait

Cette compétence explique à un agent comment afficher une tendance numérique sous forme de graphique texte directement dans un terminal ou un chat. Elle est utile pour les scores, les indicateurs et l'historique dans le temps, sans ouvrir d'application graphique.

Quand l’utiliser

  • ✓Quand un utilisateur veut voir une courbe, une ligne de tendance ou l'évolution d'un score dans le terminal.
  • ✓Quand un utilisateur veut afficher l'historique d'un indicateur dans un chat sans créer de fichiers image.
  • ✓Quand un utilisateur a des nombres issus d'une sortie de commande et veut un graphique texte rapide.

Lien du skill

https://github.com/sapientinc/PRAXIST/blob/main/skills/terminal-line-plot/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/sapientinc/PRAXIST/blob/main/skills/terminal-line-plot/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Montre-moi mon score d'entraînement sur les dix dernières générations sous forme de courbe dans le terminal.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

L'agent rassemble la série, confirme l'indicateur tracé et si une valeur plus élevée ou plus basse est meilleure, puis lance un script fourni qui affiche le graphique. Il peut aussi afficher un petit tableau pour lire facilement les valeurs.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis GitHub.

Terminal Line Plot

Use this skill to turn numeric sequences into terminal-readable line charts. It is task-agnostic: do not assume any domain, metric direction, filtering rule, or data layout unless the user or artifacts define it.

Workflow

  1. Identify the series to plot:
    • x values are usually ordered steps, dates, versions, generations, epochs, or run ids.
    • y values must be numeric.
    • If multiple plausible metrics exist, choose the one the user asked for; otherwise state the selected metric before plotting.
  2. Preserve metric semantics:
    • Use exact metric names from artifacts when available.
    • Label whether higher or lower is better if known.
    • Do not mix partial and complete points silently; mark provisional or incomplete points in the title, notes, or point list.
  3. Use scripts/plot_series.py for deterministic plotting.
  4. Print a compact table or point list when it prevents misreading the curve.
  5. Do not write image files unless the user explicitly asks. Prefer stdout.

Script Usage

Run the bundled script from the skill directory:

python /path/to/terminal-line-plot/scripts/plot_series.py \
  --points "0:-4.49,1:-4.53,2:-4.87,3:-4.77,4:-3.23" \
  --title "Best future_fitness by generation" \
  --x-label generation \
  --y-label future_fitness \
  --higher-better

Input options:

  • --points "x:y,x:y,..." for quick point lists.
  • --csv FILE --x-field FIELD --y-field FIELD for CSV.
  • --json FILE --x-field FIELD --y-field FIELD for JSON arrays of objects, arrays of pairs, or mappings.
  • --stdin csv|json|points to read data from stdin.

Useful options:

  • --height N controls chart height.
  • --x-step N controls horizontal spacing between points.
  • --provisional-x X may be repeated to mark incomplete points with ○.
  • --value-table prints the plotted values below the chart.
  • --invert-y-note only changes the note; it does not invert the axis.

Plotting Guidelines

  • Prefer line drawing characters ●, ○, ╱, ╲, and ─.
  • Keep the x-axis readable. If labels collide, increase --x-step or plot fewer points.
  • Use a taller chart for noisy or close-valued curves.
  • For negative scores where "higher is better", the visually higher point should still mean numerically larger.
  • If the active/final point is incomplete, mark it provisional and do not draw conclusions from it.
  • For dense data, aggregate intentionally: best per generation, mean per epoch bucket, rolling median, or another stated rule.

Example Patterns

Manual points:

python /path/to/terminal-line-plot/scripts/plot_series.py \
  --points "0:7.88,1:7.78,2:8.45,3:8.61,4:9.28" \
  --title "Mean objective value by generation" \
  --y-label "objective" \
  --value-table

CSV:

python /path/to/terminal-line-plot/scripts/plot_series.py \
  --csv metrics.csv \
  --x-field generation \
  --y-field score \
  --title "Score by generation"

JSON:

python /path/to/terminal-line-plot/scripts/plot_series.py \
  --json metrics.json \
  --x-field gen \
  --y-field best_score
Questions fréquentes

Crée-t-elle des fichiers image ?

Pas sans demande de l'utilisateur. La compétence privilégie l'affichage à l'écran.

Quels formats d'entrée fonctionnent ?

La compétence cite les listes de points, le CSV, le JSON et les sorties de commande.

Comment sont traités les points incomplets ?

La compétence demande de signaler les points provisoires ou incomplets dans le titre ou les notes, plutôt que de les mélanger en silence.

Détails

Description originale de l’auteur

Draw readable ASCII line charts directly in the terminal from numeric series, command output, CSV, JSON, or manually extracted points. Use when the user asks for a curve, trend line, score progression, leaderboard trend, metric history, or any plot that should be visible in a CLI/chat transcript without opening a GUI or writing image files.

repo: sapientinc/PRAXIST

Popularité

Étoiles GitHub
5.5k
Position au classement
#14813
Licence
—
Mis à jour
23/09/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires