Token导航 LogoToken导航

Agent Skill · 研究检索

create-playground(创建游乐场)

create-playground 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

create-playground 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证为 MIT,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 71,089。

总安装 196周安装 8GitHub Stars 1下载 63核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:create-playground(创建游乐场)
来源仓库:https://github.com/dudusoar/vrp-toolkit
仓库路径:skills/create-playground
安装命令:
npx skills add https://github.com/dudusoar/vrp-toolkit --skill create-playground
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/dudusoar/vrp-toolkit --skill create-playground

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

构建交互式 Streamlit 游乐场,让用户通过实验而非阅读代码来学习 VRP 算法。支持问题选择、实例生成、结果可视化和算法对比等探索式学习功能。采用三层学习模型:界面操作→管道理解→机制掌握,循序渐进提升认知深度。使用前应确认 Streamlit 环境就绪,避免因依赖缺失导致 playground 无法启动。

create-playground 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/create-playground

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/dudusoar/vrp-toolkit --skill create-playground;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

create-playground 怎么安装?

在终端执行 npx skills add https://github.com/dudusoar/vrp-toolkit --skill create-playground。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

create-playground 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

create-playground 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

create-playground 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

create-playground 用的人多吗?

公开数据是累计安装 196 次,近一周安装 8 次,下载 63 次,GitHub 1 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

create-playground 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
create-playground

创建游乐场 · 本页

1961需要联网MIT通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Create Playground Skill

Create and maintain an interactive Streamlit playground that enables "learn by playing" instead of "learn by reading code."

Goal

Build and evolve a web-based playground where users can:

  1. Explore VRP problems interactively (select, generate, visualize instances)
  2. Experiment with algorithms (configure parameters, run solvers, compare results)
  3. Learn through interaction (understand interfaces, pipelines, mechanisms)
  4. Reproduce experiments (save configs, replay runs, export results)

Core Philosophy

Following the vision in playground/VISION.md:

  • Three-layer learning: Interface → Pipeline → Mechanism
  • Minimal cognitive load: Only expose what's needed for current task
  • Contract-based trust: Playground behavior matches actual code (verified by tests)
  • Just-in-time learning: Dive deeper only when hitting limitations

Workflow

Step 1: Analyze User Request

Understand what the user wants to learn or build:

Questions to ask:

  • What feature/algorithm do you want to explore?
  • Which parameters are most important?
  • What level of detail (beginner/intermediate/advanced)?
  • What kind of visualization helps understanding?

Common requests:

  • "Add support for CVRP problems"
  • "Show how temperature affects ALNS search"
  • "Visualize operator impact step-by-step"
  • "Compare two algorithm configurations"

Step 2: Design UI/UX

Choose appropriate Streamlit components:

Reference: references/ui_components.md for patterns

Component selection guide:

  • Parameters: st.slider, st.number_input, st.selectbox
  • Problem definition: st.file_uploader, st.radio, st.multiselect
  • Visualization: st.pyplot, st.plotly_chart, st.map
  • Results: st.dataframe, st.metric, st.json
  • Layout: st.columns, st.tabs, st.expander

Progressive disclosure:

  • Start with 5-10 key parameters
  • Hide advanced parameters in st.expander("Advanced")
  • Use defaults for 80% use cases

Step 3: Integrate VRP-Toolkit Modules

Map playground interactions to toolkit APIs:

Reference: references/integration_patterns.md for examples

Integration checklist:

  • Import correct modules (from vrp_toolkit.problems import...)
  • Convert UI inputs to API format (e.g., sliders → config dict)
  • Handle errors gracefully (try-except with user-friendly messages)
  • Extract outputs for display (solution → routes, cost, metrics)

Key integration points:

  1. Problem layer: PDPTWInstance, VRPProblem, etc.
  2. Algorithm layer: ALNSSolver, ALNSConfig, etc.
  3. Data layer: OrderGenerator, DemandGenerator, RealMap
  4. Visualization layer: PDPTWVisualizer, route plotting

Step 4: Implement Visualization

Make algorithm behavior visible:

Visualization types:

  • Route maps: Show vehicle routes on 2D map with nodes/edges
  • Convergence plots: Cost vs. iteration (line chart)
  • Operator impact: Before/after comparison (side-by-side)
  • Metrics dashboard: Cost breakdown, constraint violations, runtime

Best practices:

  • Use existing vrp_toolkit.visualization modules when possible
  • Add interactive elements (hover for details, zoom, pan)
  • Color-code for clarity (feasible=green, infeasible=red)
  • Include legends and axis labels

Step 5: Add Contract Tests

Ensure playground behavior matches actual code:

Reference: Create tests in contracts/ directory

Critical contracts to test:

  1. Reproducibility: Same seed + same config → same result def test_reproducibility(): config = {...} result1 = run_with_seed(config, seed=42) result2 = run_with_seed(config, seed=42) assert result1 == result2
  2. Feasibility: Playground claims "feasible" → solution actually feasible def test_feasibility_contract(): solution = playground_run(...) if playground_says_feasible(solution): assert actually_feasible(solution)
  3. Evaluation consistency: Playground displays correct objective value def test_objective_value_contract(): solution = playground_run(...) displayed_cost = playground_display_cost(solution) actual_cost = solution.objective_value assert displayed_cost == actual_cost
  4. Parameter validation: Invalid inputs rejected with clear messages def test_parameter_validation(): with pytest.raises(ValueError, match="num_vehicles must be positive"): playground_run(num_vehicles=-1)

Step 6: Update Documentation

Keep documentation synchronized with playground features:

Files to update:

  1. playground/README.md - User-facing usage guide

- Installation instructions - How to launch playground - Quick start guide - Feature overview

  1. playground/FEATURES.md - Feature tracking

- Current features (with status: ✅ Stable, 🚧 Beta, 🔮 Planned) - Recent additions - Known limitations - Roadmap

  1. playground/ARCHITECTURE.md - Technical documentation

- File structure (app.py, pages/, components/, utils/) - Component responsibilities - State management (session_state usage) - Extension guide (how to add new features)

  1. CHANGELOG_LEARNINGS.md (if bugs fixed)

- Root cause analysis - Fix description - Impact on playground features - New contract tests added

Component Structure

Organize playground code for maintainability:

playground/
├── app.py                    # Main entry point (home page)
├── pages/                    # Multi-page app sections
│   ├── 1_Problem_Definition.py
│   ├── 2_Algorithm_Config.py
│   └── 3_Experiments.py
├── components/               # Reusable UI components
│   ├── instance_viewer.py   # Display instance details
│   ├── route_visualizer.py  # Plot routes on map
│   ├── convergence_plot.py  # Show cost over iterations
│   └── metrics_dashboard.py # Display KPIs
├── utils/                    # Helper functions
│   ├── state_manager.py     # Session state management
│   ├── export_utils.py      # Save/load experiments
│   └── validation.py        # Input validation
├── README.md                 # Usage guide
├── FEATURES.md               # Feature tracking
├── ARCHITECTURE.md           # Technical docs
└── requirements.txt          # Streamlit + dependencies

Development Stages

Stage 1: MVP (Minimal Viable Playground)

Timeline: 1-2 evenings Goal: Get something playable

Features:

  • Single-page app with basic workflow
  • Instance selection (upload CSV or generate synthetic)
  • Algorithm config (5-10 key parameters)
  • Run button → display results
  • Route visualization + cost metric

Deliverables:

  • playground/app.py (~200 lines)
  • playground/README.md (installation + quick start)
  • 1-2 contract tests (reproducibility, feasibility)

Stage 2: Explainability & Quality

Timeline: 2-3 evenings Goal: Make learning actionable

Features:

  • Multi-page app (Problem | Algorithm | Experiments)
  • Seed control for reproducibility
  • Convergence plot (cost vs. iteration)
  • Experiment saving (runs/ directory)
  • Contract test suite (5+ tests)

Deliverables:

  • playground/pages/ (3 pages)
  • contracts/ (5+ tests)
  • runs/ directory structure
  • playground/FEATURES.md

Stage 3: Gamified Learning

Timeline: Future iterations Goal: Self-driven learning

Features:

  • Learning missions ("Get feasible solution in 30s")
  • Step-by-step operator visualization
  • Parameter impact hints
  • Achievement tracking

Common Patterns

Pattern 1: Parameter Configuration UI

import streamlit as st

def render_algorithm_config():
    """Render ALNS parameter configuration UI."""
    st.subheader("ALNS Configuration")

    # Core parameters (always visible)
    max_iterations = st.slider("Max Iterations", 100, 10000, 1000, step=100)
    start_temp = st.number_input("Start Temperature", 0.1, 100.0, 10.0)

    # Advanced parameters (in expander)
    with st.expander("Advanced Parameters"):
        cooling_rate = st.slider("Cooling Rate", 0.90, 0.99, 0.95)
        segment_length = st.number_input("Segment Length", 10, 200, 100)

    # Create config object
    from vrp_toolkit.algorithms.alns import ALNSConfig
    config = ALNSConfig(
        max_iterations=max_iterations,
        start_temp=start_temp,
        cooling_rate=cooling_rate,
        segment_length=segment_length
    )

    return config

Pattern 2: Experiment Saving/Loading

import json
from datetime import datetime
from pathlib import Path

def save_experiment(config, solution, metrics):
    """Save experiment to runs/ directory."""
    timestamp = datetime.now().strftime("%Y-%m-%d_%H-%M-%S")
    run_dir = Path(f"runs/{timestamp}")
    run_dir.mkdir(parents=True, exist_ok=True)

    # Save config
    with open(run_dir / "config.json", "w") as f:
        json.dump(config, f, indent=2)

    # Save solution
    with open(run_dir / "solution.json", "w") as f:
        json.dump(solution.to_dict(), f, indent=2)

    # Save metrics
    with open(run_dir / "metrics.json", "w") as f:
        json.dump(metrics, f, indent=2)

    st.success(f"Experiment saved to {run_dir}")
    return run_dir

Pattern 3: Error Handling

def run_algorithm_with_feedback():
    """Run algorithm with user-friendly error handling."""
    try:
        solution = solver.solve(instance)
        st.success("✅ Algorithm completed successfully")
        return solution
    except ValueError as e:
        st.error(f"❌ Invalid input: {e}")
        st.info("💡 Hint: Check that all parameters are positive")
        return None
    except Exception as e:
        st.error(f"❌ Unexpected error: {e}")
        st.warning("🐛 This might be a bug. Please report it.")
        return None

Quality Checklist

Before marking a playground feature as "complete":

  • Functionality: Feature works as designed
  • UI/UX: Interface is intuitive (5-second rule: can user figure it out in 5s?)
  • Integration: Correctly calls vrp-toolkit APIs
  • Visualization: Results are clearly visible
  • Error handling: Invalid inputs show helpful messages
  • Contract tests: At least 1 test verifies feature behavior
  • Documentation: README.md and FEATURES.md updated
  • Reproducibility: Same inputs → same outputs (when using fixed seed)

Integration with Other Skills

Works with:

  • maintain-architecture-map: Reference ARCHITECTURE_MAP.md to understand module structure
  • maintain-data-structures: Reference data structure docs when integrating APIs
  • create-tutorial: Playground features can inspire tutorial topics
  • track-learnings: When bugs found, use track-learnings to document fixes

Maintains:

  • playground/README.md
  • playground/FEATURES.md
  • playground/ARCHITECTURE.md
  • contracts/ tests

References

  • references/streamlit_guide.md - Streamlit basics and best practices
  • references/ui_components.md - Common UI component patterns
  • references/integration_patterns.md - How to integrate vrp-toolkit modules
  • playground/VISION.md - Design philosophy and principles

Remember: The goal is learning through interaction, not building a production app. Prioritize clarity and educational value over performance optimization.

平台分布

Claude Code

30.43%
按下载量换算19

windsurf

20.95%
按下载量换算13

trae

16.98%
按下载量换算11

OpenCode

11.69%
按下载量换算7

Codex

7.3%
按下载量换算5

github-copilot

3.3%
按下载量换算2

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

继续浏览同类 Skills