Proceduralgen: Completing the Procedural Generation (Procgen) Workflow for Agents

Preface

When prototyping Roguelikes, survival crafting, or open-world games, levels, terrain, and loot drops often cannot be entirely hand-placed. Procedural generation uses compact rules and seeds to produce content, but implementation easily falls into traps: global random numbers lead to non-reproducibility, noise fields exhibit correlation, or rooms remain unconnected yet are handed directly to the player. By writing conventions for noise, seeded RNG, dungeon layouts, and weighted tables into a Skill, AI Agents can generate and validate following a unified discipline, rather than improvising “procgen-looking” code every time.

Below is an introduction to Proceduralgen on SkillHub (coordinate @user_3c6cb52e/procedural-gen-sh-u2lq35), and how to install it locally to let your Agent read its workflows and patterns.

What is this

Proceduralgen is a community-published Agent Skill (Version 1.0.0, Source community, Publisher user_3c6cb52e). SkillHub categorizes it as dev-programming; the SKILL.md metadata inside the package marks the category as “Game Development” and declares compatibility with frameworks such as Claude Code, Codex, Hermes Agent, OpenClaw, QClaw, and WorkBuddy.

The official description emphasizes: helping AI Agents efficiently complete tasks related to Proceduralgen. The package text further positions it as: generating levels, terrain, and loot from compact rules and seeds; the core is determinism—the same seed should reproduce the same world, facilitating debugging and seed sharing. The skill covers algorithmic concepts like noise, seeded RNG, dungeon layouts, and weighted tables; genres like Roguelike and survival crafting can combine these building blocks.

The license is Apache-2.0; homepage / repository point to the GitHub user page https://github.com/1991513ccie-png. The SkillHub page shows the author as Breeze. The tag requires_api_key=false indicates that installation and usage do not rely on additional API keys.

Core Functionality

The following content is derived from the SKILL.md in the installed package, serving as executable guidance for the Agent rather than a standalone runtime library.

Scope and Boundaries

  • Suitable for: Generating maps, dungeons, terrain heightmaps, item drops, and other content not suitable for manual creation; requiring results that are reproducible by seed (debugging, daily challenges, shareable worlds); weighted randomness (loot rarity, generation tables).
  • Not suitable for: “Drawing” results onto tile layers in the engine—should be combined with godot-tilemap or unity-tilemap-2d; performing AI pathfinding on generated graphs—use game-ai; strictly hand-tuned pacing for mainline levels—use level-design (complementary to procgen).

Core Workflow (Five Steps)

  1. Unified Random Source: Create a single seeded RNG instance and pass it through; do not use global/static randomness in generation code.
  2. Select Techniques by Content: Use noise for continuous terrain/heightmaps; spatial partitioning or agent-based carving for discrete rooms/corridors; weighted tables for results with rarity.
  3. Write to Pure Data Structures First: The generation phase should only fill int[][] or dictionaries, decoupled from rendering, followed by a separate pass for drawing.
  4. Validate Before Delivery: Check reachability, spawn safety, exit paths, etc.; reject or repair on failure, don’t hand bad maps to players.
  5. Fixed Seed Tuning: Observe parameter effects with a single seed, then batch-scan seeds to view distribution rather than just looking at one “lucky map.”

Pattern Examples in Documentation

The skill embeds reproducible code snippets for Agents to rewrite into projects:

  • Seeded RNG: Python random.Random(seed); also explains equivalents in Godot RandomNumberGenerator, Unity System.Random / InitState, etc.
  • Fractal Brownian Motion (fBm): Multi-octave summation, lacunarity/gain, normalization, and pow redistribution shaping.
  • Weighted Drop Tables: Cumulative sampling by weight; explains that weights don’t need to sum to 100, and mentions pity/bag systems (text points to references/dungeon-generation.md).
  • Room + Corridor Dungeon Sketch: Non-overlapping room placement, L-shaped corridor connections; full BSP, connectivity checks, etc., are written in reference documents.

Common Pitfalls Checklist

The skill explicitly lists: global RNG, correlated noise fields, unnormalized octaves, missing connectivity checks, unbounded placement infinite loops, and non-deterministic inputs like frame time mixed into the generation pipeline.

The text mentions references/noise.md, references/dungeon-generation.md, and related skill names such as godot-tilemap, unity-tilemap-2d, game-ai, level-design, roguelike, survival-crafting. The current SkillHub download package only contains SKILL.md and _meta.json, and does not include the aforementioned references/ directory; if the Agent needs details, it must supplement materials independently or confirm the full package content with the publisher.

Installation and Activation

The installation prompt provided on the SkillHub page is: Install coordinate @user_3c6cb52e/procedural-gen-sh-u2lq35 according to the SkillHub Installation Guide.

1. Install SkillHub CLI (if not already installed)

command -v skillhub && skillhub --version

If not installed, you can run the full installation (CLI + Default Skills):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

CLI only:

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only

2. Install Proceduralgen

When installing, you must use --dir to point to the current Agent’s skills directory; otherwise, it defaults to ./skills/ which might not be recognized.

skillhub install procedural-gen-sh-u2lq35 --namespace user_3c6cb52e --dir <your Agent skills directory>

Common path examples (from official installation docs):

  • Cursor: ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project

You can also search to confirm the coordinate first:

skillhub search procedural-gen

3. Let the Agent Load the Skill

After placing the Skill directory in the corresponding path, enable Skills according to your client’s rules (most environments require restart or refreshing the skill list). Thereafter, in tasks related to map generation, terrain, drops, or seed reproduction, the Agent should prioritize following the workflow and patterns in SKILL.md rather than temporarily fabricating procgen snippets.

Typical Usage

The following usage is consistent with the official page and package documentation and can be reproduced directly in conversations.

Method 1: Page Prompt (Hand over to AI to install)

Send to the Agent:

Please install `@user_3c6cb52e/procedural-gen-sh-u2lq35` according to https://skillhub.cn/install/skillhub.md.

Method 2: Local CLI Installation followed by Generation Tasks

After installation, describe requirements in natural language, e.g.: “Generate a reproducible 2D dungeon grid with a fixed seed, first only doing the data layer and performing a flood-fill connectivity check from spawn to exit.” The Agent should follow the five-step process in the skill to select noise/room/weighted table patterns and avoid global RNG.

Method 3: Map Embedded Patterns to Languages or Engines

If the project uses Godot or Unity, you can ask the Agent to map the Python examples in SKILL.md to the engine APIs provided in the text (such as RandomNumberGenerator, System.Random, Perlin/FastNoiseLite, etc.), and insist on “passing a single seed instance throughout.”

Scenarios and Notes

Who is it for

  • Teams or individual developers using AI to assist with game or tool prototypes who need procgen discipline.
  • Scenarios where the Agent is expected to output reproducible, verifiable solutions for tasks like Roguelikes, survival crafting, or procedural levels/loot.

Platform and Data

  • SkillHub Statistics (scraped data): Rating 100000, Downloads 1167 times, Install count 0 (subject to page statistics, reflecting store-side data only).
  • No API Key required; suitable for offline reading of SKILL.md to guide coding. Actual noise libraries still depend on third-party implementations chosen for your project (docs suggest using FastNoiseLite, opensimplex, Unity math libraries, etc., rather than writing gradient noise yourself).

Limitations

  • Where the store description and body text are brief, the package’s SKILL.md prevails; if referenced markdown is not distributed with the package, extended chapters need to be supplemented manually.
  • The skill guides “generation and validation,” not responsible for engine tile rendering or game AI pathfinding; switch to corresponding skills as per documentation.
  • Direct HTTP access to skill metadata on api.skillhub.cn may return 405; rely on the SkillHub page and skillhub install for daily use.

Conclusion

Proceduralgen writes the most critical thread of procedural generation—seed determinism, data structures before rendering, post-generation validation—as well as patterns like noise, fBm, weighted tables, and room corridors into a standard SKILL.md. This facilitates unified Agent behavior in environments like Cursor, Codex, and Claude Code. If you are building a toolchain for shareable seeds or batch levels/loot, you can install it into your local skills directory using the commands above before starting tasks.

  • SkillHub Page: https://www.skillhub.cn/skills/user_3c6cb52e/procedural-gen-sh-u2lq35
  • API Coordinate Page: https://api.skillhub.cn/user_3c6cb52e/procedural-gen-sh-u2lq35
  • Installation Guide: https://skillhub.cn/install/skillhub.md
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye