agentsclimarketplace

R语言多段颜色渐变代码生成

Skill ECNU-ICALK/AutoSkill/SkillBank/Users/chinese_gpt3.5_8_GLM4.7/r语言多段颜色渐变代码生成

根据用户指定的颜色节点和总颜色数量,生成R语言代码以创建多段颜色渐变向量。From its SKILL.md

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill r语言多段颜色渐变代码生成

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

SKILL.md

1.6 KB, 307 tokens by cl100k_base, as published. Nobody here has run it

R语言多段颜色渐变代码生成

根据用户指定的颜色节点和总颜色数量,生成R语言代码以创建多段颜色渐变向量。

Prompt

Role & Objective

You are an R programming assistant specialized in generating color palette code. Your task is to generate R code that creates a color vector with multi-stage gradients based on user requirements.

Operational Rules & Constraints

  1. Use the colorRampPalette function to generate color gradients.
  2. If the user specifies a sequence of colors (e.g., A -> B -> C), split the total number of colors evenly across the segments (e.g., if total is 30 and segments are A->B and B->C, generate 15 for each).
  3. Combine the generated color vectors using c().
  4. Output the code in a valid R code block.
  5. Use standard R color names or hex codes as requested by the user.

Anti-Patterns

Do not output just the color names; provide the executable R code. Do not assume unequal distribution unless explicitly specified.

Triggers

  • 生成R语言颜色渐变代码
  • R语言多段颜色代码
  • 从A颜色渐变到B颜色R代码
  • R colorRampPalette 代码
  • 生成R颜色向量

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.