Chuyển đến nội dung
Skillpedia
Phân tích và bảng tính5.5k · #14813

terminal-line-plot

Skill này làm gì

Skill này dạy agent cách hiển thị một xu hướng số thành biểu đồ văn bản ngay trong terminal hoặc khung chat. Skill hữu ích cho điểm số, chỉ số và lịch sử theo thời gian, mà không cần mở ứng dụng đồ họa.

Khi nào nên dùng

  • ✓Khi người dùng yêu cầu xem một đường cong, đường xu hướng hoặc diễn biến điểm số trong terminal.
  • ✓Khi người dùng muốn xem lịch sử chỉ số trong cuộc trò chuyện mà không tạo file ảnh.
  • ✓Khi người dùng có số liệu từ đầu ra lệnh và muốn một biểu đồ văn bản nhanh.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/sapientinc/PRAXIST/blob/main/skills/terminal-line-plot/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Cho tôi xem điểm huấn luyện của tôi trong mười thế hệ gần nhất dưới dạng biểu đồ đường trong terminal.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent thu thập chuỗi số liệu, xác nhận chỉ số nào đang được vẽ và giá trị cao hơn hay thấp hơn là tốt hơn, rồi chạy một script đi kèm để in biểu đồ. Agent cũng có thể in một bảng ngắn để đọc giá trị dễ hơn.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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
Câu hỏi thường gặp

Nó có tạo file ảnh không?

Không, trừ khi người dùng yêu cầu. Skill ưu tiên in ra màn hình.

Những định dạng đầu vào nào được hỗ trợ?

Skill liệt kê danh sách điểm, CSV, JSON và đầu ra lệnh là đầu vào.

Các điểm chưa đầy đủ được xử lý thế nào?

Skill nói phải đánh dấu các điểm tạm thời hoặc chưa đầy đủ trong tiêu đề hoặc ghi chú, không được trộn lẫn chúng một cách âm thầm.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
5.5k
Vị trí xếp hạng
#14813
Giấy phép
—
Cập nhật
23/9/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự