Token导航 LogoToken导航TokenDH.com
开发敏感数据github未标认证来源可访问许可证需确认审计通过

procedural-generation程序生成

Agent Skill

procedural-generation 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

388

周安装

16

GitHub Stars

4

下载量

127
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:procedural-generation(程序生成)
来源仓库:https://github.com/alphaonedev/openclaw-graph
仓库路径:skills/procedural-generation
安装命令:
npx skills add https://github.com/alphaonedev/openclaw-graph --skill procedural-generation
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/alphaonedev/openclaw-graph --skill procedural-generation

简介

procedural-generation 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态进行整理。
  • 通过 npx skills add 命令从指定仓库安装并使用。
  • 建议确认权限范围和维护状态,避免误操作。
  • 可结合原始 README 进一步核验其功能和使用方式。

SKILL.md

Purpose

This skill allows OpenClaw to programmatically generate game content, such as terrains and levels, using algorithms like Perlin noise and rule-based systems, reducing manual design effort.

When to Use

Apply this skill for dynamic content in games where variability is key, like procedural worlds in roguelikes or infinite runners, or when optimizing for replayability and asset efficiency in resource-constrained projects.

Key Capabilities

  • Generate 2D/3D terrains via noise functions (e.g., Perlin, Simplex) with parameters for scale, octaves, and persistence.
  • Create levels using rule-based algorithms, such as cellular automata for cave generation or binary space partitioning for dungeons.
  • Support custom seed values for reproducible outputs, integrating with game engines like Unity or Godot.
  • Handle multi-threaded generation for performance in real-time applications.
  • Export results in formats like JSON for meshes or PNG for heightmaps.

Usage Patterns

Always initialize with a seed for consistency; use CLI for quick prototyping and API for integration. Provide exact parameters to avoid defaults.

Example 1: Generating a Perlin terrain for a game world:

  • CLI command: openclaw generate terrain --noise perlin --seed 42 --width 256 --height 256 --output terrain.json
  • In code (Python): import openclaw; terrain_data = openclaw.api.generate_terrain({'noise': 'perlin', 'seed': 42, 'width': 256})

Example 2: Creating a procedural level with rules:

  • CLI command: openclaw generate level --rules '{"min_rooms": 5, "max_rooms": 10}' --seed 123 --output level.yaml
  • In code (JavaScript): const openclaw = require('openclaw'); const level = openclaw.api.generate_level({rules: {min_rooms: 5}, seed: 123});

Follow patterns by chaining commands, e.g., generate then validate: openclaw generate terrain... && openclaw validate output.json.

Common Commands/API

Use the OpenClaw CLI or REST API; authenticate via $OPENCLAW_API_KEY environment variable.

  • CLI Commands:

- openclaw generate terrain [flags]: Flags include --noise [type] (e.g., perlin), --seed [int], --scale [float]; e.g., openclaw generate terrain --noise perlin --seed 42. - openclaw generate level [flags]: Flags include --rules [JSON string]; e.g., openclaw generate level --rules '{"type": "dungeon"}'. - openclaw validate [file]: Checks generated output; e.g., openclaw validate terrain.json --check integrity.

  • API Endpoints:

- POST /api/procedural/generate: Body as JSON, e.g., {"type": "terrain", "params": {"noise": "perlin", "seed": 42}}; requires header Authorization: Bearer $OPENCLAW_API_KEY. - GET /api/procedural/status: Query job status; e.g., GET /api/procedural/status?job_id=123 with auth header.

Config formats: Use JSON for API bodies, e.g., {"noise": "perlin", "octaves": 4}; for CLI, pass as flags or files, e.g., --config config.json where config.json is {"seed": 42}.

Integration Notes

Set $OPENCLAW_API_KEY in your environment before calls; integrate into game loops by importing the OpenClaw SDK and calling async functions. For Unity, use a C# wrapper: OpenClawAPI.GenerateTerrain(new Dictionary<string, object> {{"noise", "perlin"}});. In Godot, hook into scripts: var result = OpenClaw.generate_level({"rules": {"min_rooms": 5}}). Ensure error logging is enabled via SDK config, e.g., set openclaw.config.log_level = 'debug'.

Error Handling

Always wrap API/CLI calls in try-catch blocks; check for common errors like invalid parameters or network issues.

  • For CLI: Parse errors from stdout, e.g., if --noise is invalid, it returns "Error: Unknown noise type"; handle with scripts: if [$? -ne 0]; then echo "Generation failed"; fi.
  • For API: Catch HTTP errors, e.g., in Python: try: response = openclaw.api.generate_terrain({...}) except openclaw.APIError as e: print(e.code) # e.g., 400 for bad request.
  • Specific cases: If seed is non-integer, API returns 422; validate inputs first, e.g., if not isinstance(seed, int): raise ValueError("Seed must be an integer").
  • Use retries for transient errors: In code, for attempt in range(3): try: openclaw.api.generate(...) except: time.sleep(1).

Graph Relationships

  • Related to: level-design (shares game-dev cluster for combined level building), asset-creation (uses generated content as inputs).
  • Depends on: noise-libraries (for underlying noise functions), game-engines (for integration hooks).

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

39.76%
按下载量换算50

Claude

29.45%
按下载量换算37

Cursor

17.68%
按下载量换算22

Gemini CLI

9.42%
按下载量换算12

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills