Index of every page on this site: llms.txt
All skills
victory-hugo avatar

/tidyplots-plot-builder

@0b19307
Run it yourself

使用 tidyplots 编写、修改或排查 R 绘图代码时使用,包括图形生成、配色、统计标注、分面、多图排版及图片导出。

  • 7 files
  • 18.8 KB
  • Updated 4 months ago
  • GitHub
Use this Skill: https://skilld.dev/gh/victory-hugo/s2-agent-skill/tidyplots-plot-builder

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈44 tokens for metadata: the name and description. ≈327 when used: this file. ≈4.4k more on demand in 6 files.

Description uses 1.1% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈85 characters, or 1.1%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

tidyplots 绘图规范

工作流程

按以下顺序组织代码:

  1. tidyplot(...)
  2. 一个或多个 add_*()
  3. 必要时使用 remove_*() 或 adjust_*()
  4. 分面时最后使用 split_plot()
  5. 导出时使用 save_plot()

split_plot() 之后通常只允许调用 save_plot()。

输出要求

优先提供可直接运行的最简代码,必须包含:

library(tidyplots)

tidyplot(...) |>
  add_*()

根据需要补充配色、统计标注、分面和导出代码。仅在发生报错时提供排错说明。

命名兼容

优先使用新版函数:

  • rename_*_levels
  • reorder_*_levels
  • sort_*_levels
  • reverse_*_levels

用户使用旧版 *_labels 函数时,说明命名差异并改为当前版本可用写法。

排错顺序

  1. 检查 tidyplots 是否安装并加载
  2. 检查数据框和列名
  3. 检查管道顺序
  4. 检查 split_plot() 的位置
  5. 检查统计检验参数

参考文档

仅按任务读取必要文件:

  • 基础流程:references/01-get-started.md
  • 图形和统计:references/02-visualizing-data.md
  • 高级绘图:references/03-advanced-plotting.md
  • 配色:references/04-color-schemes.md
  • 函数索引:references/05-function-index.md
  • 常用模板:references/06-common-recipes.md

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at 0b19307. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 3 days ago.

Activeupdated 4 months ago

README badge

README badge for victory-hugo/s2-agent-skill/tidyplots-plot-builder