Agent skill
generate-plot
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/generate-plot
SKILL.md
Generate Plot
Generate a publication-quality statistical plot from a data file using PaperBanana.
Instructions
- Read the data file at
$ARGUMENTS[0]. - Prepare the data for the MCP tool:
- If the file is CSV: parse it and convert to a column-keyed dictionary (keys = column names, values = arrays of column values), then serialize with
json.dumps()to produce a JSON string. - If the file is JSON: use the raw file content as-is (it is already a JSON string).
- If the file is CSV: parse it and convert to a column-keyed dictionary (keys = column names, values = arrays of column values), then serialize with
- If
$ARGUMENTS[1]is provided, use it as the plot intent. Otherwise, ask the user for a description of the desired plot (e.g., "Bar chart comparing model accuracy across benchmarks"). - Call the MCP tool
generate_plotwith:data_json: the JSON string (not a parsed object)intent: the plot descriptioniterations: 3 (default)
- Present the generated plot to the user.
CLI Fallback
If the MCP tool is not available, fall back to the CLI:
paperbanana plot --data <file> --intent "<intent>"
Example
/generate-plot results.csv "Bar chart comparing model accuracy"
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?