跳转到主要内容
此内容尚未提供您的语言版本,正在以英文显示。

Generate Puzzle

技能 已验证 活跃

Generate jigsaw puzzles via generate_puzzle() or geom_puzzle_*() with parameter validation against inst/config.yml. Supports rectangular, hexagonal, concentric, voronoi, and snic puzzle types with configurable grid, size, seed, offset, and layout parameters. Use when creating puzzle SVG files for a specific type and configuration, testing generation with different parameters, generating sample output for documentation or demos, or creating ggplot2 puzzle visualizations.

目的

To generate diverse jigsaw puzzle SVG files with precise control over type and configuration, suitable for testing, documentation, or visualization purposes.

功能

  • Generate multiple puzzle types (rectangular, hexagonal, concentric, etc.)
  • Parameter validation against `inst/config.yml`
  • Configurable grid, size, seed, offset, and layout
  • Output SVG files and structured results
  • Support for ggplot2 visualizations via `geom_puzzle_*()`

使用场景

  • Creating puzzle SVG files for specific configurations
  • Testing puzzle generation with varied parameters
  • Generating sample puzzle output for documentation
  • Creating ggplot2-based puzzle visualizations

非目标

  • Directly editing puzzle SVG files
  • Providing a GUI for puzzle generation
  • Generating puzzles outside of the R environment

工作流

  1. Read configuration constraints from `inst/config.yml`
  2. Determine puzzle type and parameters based on user request
  3. Create an R script for puzzle generation
  4. Execute the R script using Rscript
  5. Verify the generated SVG output and piece count
  6. Save the generated files and result object

安装

/plugin install agent-almanac@pjt222-agent-almanac

质量评分

已验证
98 /100
about 24 hours ago 分析

信任信号

最近提交2 days ago
星标14
许可证MIT
状态
查看源代码

类似扩展

Run Puzzle Tests

100

Run the jigsawR test suite via WSL R execution. Supports full suite, filtered by pattern, or single file. Interprets pass/fail/skip counts and identifies failing tests. Never uses --vanilla flag (renv needs .Rprofile for activation). Use after modifying any R source code, after adding a new puzzle type or feature, before committing changes to verify nothing is broken, or when debugging a specific test failure.

技能
pjt222

Create Glyph

99

Create R-based pictogram glyphs for skill, agent, or team icons in the visualization layer. Covers concept sketching, ggplot2 layer composition using the primitives library, color strategy, registration in the appropriate glyph mapping file and manifest, rendering via the build pipeline, and visual verification of the neon-glow output. Use when a new entity has been added and needs a visual icon for the force-graph visualization, an existing glyph needs replacement, or when batch-creating glyphs for a new domain.

技能
pjt222

Videoagent Video Studio

100

从文本或图像生成短的 AI 视频——文本到视频、图像到视频和基于参考的生成——无需设置 API 密钥。当用户想要创建视频片段、制作图像动画或根据描述生成视频时使用。

技能
pexoai

Watermark An Image

100

Apply a text watermark to a photo using layer-based image composition for brand protection and copyright.

技能
iterationlayer

Create Spatial Visualization

100

Create interactive maps, elevation profiles, and spatial visualizations from GPX tracks, waypoints, or route data using R (sf, leaflet, tmap) or Observable (D3, deck.gl). Covers data import, coordinate system handling, map styling, and export to HTML or image formats. Use when visualizing a planned or completed tour route on an interactive map, creating elevation profiles for hiking or cycling routes, overlaying waypoints and POIs on a basemap, or building a web-based trip dashboard.

技能
pjt222

Containerize MCP Server

100

Containerize an R-based MCP (Model Context Protocol) server using Docker. Covers mcptools integration, port exposure, stdio vs HTTP transport, and connecting Claude Code to the containerized server. Use when deploying an R MCP server without requiring a local R installation, creating a reproducible MCP server environment, running MCP servers alongside other containerized services, or distributing an MCP server to other developers.

技能
pjt222