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.mdSao 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
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
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
- 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.
- 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.
- Use
scripts/plot_series.pyfor deterministic plotting. - Print a compact table or point list when it prevents misreading the curve.
- 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 FIELDfor CSV.--json FILE --x-field FIELD --y-field FIELDfor JSON arrays of objects, arrays of pairs, or mappings.--stdin csv|json|pointsto read data from stdin.
Useful options:
--height Ncontrols chart height.--x-step Ncontrols horizontal spacing between points.--provisional-x Xmay be repeated to mark incomplete points with○.--value-tableprints the plotted values below the chart.--invert-y-noteonly 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-stepor 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
Bình luận
- …
Thêm skill từ kho mã này
praxist-control
5.5kGiúp agent của bạn bắt đầu, dừng, tiếp tục và kiểm tra các lần chạy nghiên cứu Praxist, gồm màn hình giám sát trực tiếp và sửa trạng thái chạy an toàn, từ dòng lệnh.
praxist-diagnostic
5.5kGiúp agent của bạn rà soát sức khỏe của một lần chạy Praxist, gồm tính toàn vẹn của artifact, độ đầy đủ của vòng nghiên cứu, mức sử dụng tài nguyên và nguyên nhân kết quả yếu, mà không thay đổi gì.
praxist-interactive-task-init
5.5kGiúp agent của bạn thiết lập một dự án tác vụ Praxist từng bước, hỏi bạn xác nhận mục tiêu, chỉ số, ngân sách và mức sẵn sàng trước khi xây dựng bất cứ thứ gì.
praxist-onboarding
5.5kGiúp agent của bạn tìm hiểu cách Praxist hoạt động, gồm các lần chạy, peer, thế hệ, cấu hình và thư mục quan trọng, và kiểm tra mức sẵn sàng của máy trước khi thay đổi gì.
Skill tương tự
gitcrawl
394kCho phép agent của bạn tìm trong kho lưu trữ issue và pull request GitHub, gom các mục trùng lặp và kiểm tra trạng thái hiện tại trên GitHub.
slacrawl
394kCho phép agent của bạn tìm và đếm tin nhắn trong kho lưu trữ Slack cục bộ, kiểm tra kho đó mới đến mức nào và làm mới khi cần.
goplaces
394kGiúp agent của bạn tìm địa điểm, lấy chi tiết và đánh giá, và xác định tên địa điểm bằng Google Places, với đầu ra JSON cho script.