skills/famou-result-visualization/SKILL.md
Generate interactive visualization pages for feasible solutions produced by Famou evolutionary algorithms. Use this skill when the user mentions "Famou visualization", "visualize this solution", "show feasible solution results", "evolution results", "evolve visualization", or provides a Python-code solution (path planning, scheduling, knapsack, TSP, job scheduling, machine learning, etc.) that needs to be displayed visually. Even if the user just says "help me visualize this solution", "draw it out", or "show me the results", trigger this skill immediately whenever the context involves evolutionary algorithms or optimization problem solutions.
npx skillsauth add baidubce/skills famou-result-visualizationInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Core goal: Take an optimization problem solution in Python code form, understand its semantics directly, and generate an interactive HTML page that visually demonstrates the effect of the solution.
This is not about showing the evolutionary process — it's about showing what the solution looks like: draw the route for path planning, draw the timetable for scheduling, draw the packing layout for knapsack problems, draw the colored graph for graph coloring, etc.
Required:
Optional:
If any required input is missing, ask the user to provide it before proceeding.
Read and understand the user's Python code and problem description directly — no external API calls needed.
Read the code and extract:
Choose the most appropriate viz_type based on the problem type:
| Problem Type | viz_type | Visual Representation |
|---|---|---|
| TSP / VRP / Path Planning | path_map | SVG coordinate system + node-connected route |
| Scheduling / Timetable | schedule_grid | Table heatmap with colored blocks |
| Knapsack / Bin Packing | packing_rect | SVG stacked rectangle containers |
| Graph Coloring / Community Detection | graph_color | Node-colored graph |
| Job Scheduling / Project Planning | gantt | Horizontal Gantt chart |
| Before/After Comparison / Multi-metric | bar_compare | Comparative bar chart |
| ML / Neural Networks / Hyperparameter Tuning | ml_viz | Network structure / training curve / hyperparameter heatmap |
| Other / Complex Strategies | custom | Key metrics dashboard + text description |
Read the code directly and organize the concrete values needed for rendering, for example:
path_map: list of node coordinates, visit order, total distanceschedule_grid: resource list, time slots, each assignment as (resource, time slot, name)packing_rect: container dimensions, each item as (x, y, w, h, label, value)gantt: task list, each item containing (name, start, end, resource)Write and output the HTML file directly to famou_viz_result.html (or a user-specified path).
┌──────────────────────────────────────────────────────────┐
│ [Problem Type Tag] Problem Summary Key Metric Cards │
├────────────────────────────────────┬─────────────────────┤
│ │ │
│ Main Visualization Area │ Solution Highlights│
│ (visual center, ≥50% of page) │ │
│ Route / Timetable / Packing / │ Score / Improvement│
│ Gantt Chart │ Display │
├────────────────────────────────────┴─────────────────────┤
│ (Optional) Before/After Comparison / Additional Notes │
└──────────────────────────────────────────────────────────┘
#030810, cards #080f1e, borders #112240#00c8ff (blue) paired with #00ff88 (green) for highlightsNoto Sans SC, numbers/code IBM Plex Mono (via Google Fonts CDN)fadeUp with increasing animation-delay)<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Famou Solution Visualization — {Problem Name}</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/18.2.0/umd/react.production.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react-dom/18.2.0/umd/react-dom.production.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/7.23.5/babel.min.js"></script>
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600&family=Noto+Sans+SC:wght@400;500;700&display=swap" rel="stylesheet">
<style>
/* All styles inlined — no external CSS dependencies */
/* Includes: CSS variables, animation keyframes, card/tag/tooltip/skeleton base classes */
</style>
</head>
<body>
<div id="root"></div>
<script type="text/babel">
const { useState, useEffect, useRef } = React;
// ── Data extracted from the solution (hardcoded from code analysis) ──
const SOLUTION_DATA = { /* ... */ };
// ── Visualization components ──
// Implement the component corresponding to viz_type
// ── Page skeleton ──
function App() { /* Metric cards + main visualization + highlights list */ }
ReactDOM.render(<App />, document.getElementById('root'));
</script>
</body>
</html>
SOLUTION_DATA constant in the HTML — do not execute the Python code, only read its data literals.custom dashboard showing key metrics.devops
百度智能云对象存储(BOS)集成技能。当用户需要上传、下载、删除或复制 BOS 文件, 列出文件列表或 Bucket,获取签名 URL,处理图片(亮度、对比度、模糊、旋转、裁剪、水印等), 或递归同步本地目录与 BOS 时使用此技能。
testing
Workflow skill for managing famou evolutionary experiment tasks, including public normal mode and public pro hybrid mode. Use this skill when the user mentions "submit experiment", "check experiment status", "delete experiment", "get experiment results", "account info", "quota", "credits", "famou experiment", "upload experiment", "config.yaml experiment", "hybrid mode", or needs to use famou-ctl to manage experiment tasks. Even if the user just says "submit" or "run experiment", trigger this skill whenever the context involves the famou platform.
development
A data analysis skill for understanding datasets, analyzing data, building data processing pipelines, and summarizing analytical results. Use this skill when the user mentions "analyze data", "data processing", "data exploration", "statistical analysis", "data cleaning", "data summarization", "create a data report", "understand this dataset", or "take a look at this CSV/Excel/dataset". Even if the user simply says "help me look at this data" or "analyze this", trigger this skill whenever the context involves a data file or dataset. Also invoke this skill if data analysis is required during Famou problem definition.
testing
Interactive end-to-end Famou workflow for defining, implementing, and solving optimization tasks. The workflow typically proceeds in three stages: (1) understand the data and define the task, producing `problem.md`; (2) implement and validate `evaluator.py`, `init.py`, and `prompt.md` from the task definition; (3) run deep solving through Famou. Trigger this skill whenever the user wants to define, clarify, create, or fix a Famou task; prepare Famou experiment artifacts; write or update `problem.md`, `evaluator.py`, `init.py`, or `prompt.md`; run Famou; do deep solving; or solve an optimization, ML, or search problem with evolutionary methods. Even if the user simply says "help me make a Famou task", "help me solve this", or "run Famou", trigger this skill whenever the surrounding context indicates an optimization or search task. Also trigger when the user describes a combinatorial optimization, scheduling, routing, or ML problem without mentioning Famou — treat it as a potential Famou task.