Skip to content
Skillpedia
General coding6.6k Β· #13813

survival-crafting

What it does

This skill guides building survival games where players gather materials, craft tools, and build a base under pressure. It is for developers making survival sandboxes or crafting and base-building games.

When to use it

  • βœ“When players gather resources, craft items, and build a base in your game.
  • βœ“When you need survival needs such as hunger, thirst, or temperature.
  • βœ“When you want a tech tree that unlocks new areas and resources.

Skill link

https://github.com/gamedev-skills/awesome-gamedev-agent-skills/blob/main/skills/genres/survival-crafting/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/gamedev-skills/awesome-gamedev-agent-skills/blob/main/skills/genres/survival-crafting/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

Example of what to ask your AI

β€œI want to build a survival crafting game where players gather wood and stone, craft tools, and manage hunger and cold.”

5 new skills a week. 1 minute to read.

How it works

The agent sets up resource nodes and gathering, a crafting system with a tech tree, and needs such as hunger and temperature. It adds base building and escalating threats, so each new tool unlocks the next stage.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Survival Crafting

A playbook for survival-crafting games β€” the gather β†’ craft β†’ build loop, survival needs, the crafting/tech progression, and base building. This is a compositional skill: it orchestrates inventory data, world content, persistence, and threats. It does not re-teach those primitives; it defines the loop and the pressure systems (needs, scarcity, escalation) that make survival tense rather than tedious.

When to use

  • Use when the player gathers resources, crafts items/structures, manages survival needs, and builds a base against escalating threats: survival sandbox, crafting/base-building game.
  • Use when designing needs (hunger/thirst/temperature), a crafting tech tree, gathering loops, or base placement/building.

When not to use: crafting as a minor RPG feature β†’ rpg. Permadeath grid dungeon β†’ roguelike. For inventory/items as data assets, use godot-resources / unity-scriptableobjects; for world generation, procedural-gen.

Core loop

Gather raw resources β†’ craft tools/items β†’ build and upgrade a base β†’ manage survival needs β†’ explore farther for better resources β†’ survive escalating threats β†’ repeat at a higher tier. Each loop should unlock the next loop (better tools β†’ reach new biomes β†’ new resources β†’ better crafts). When that ladder breaks, the game becomes a grind.

Must-have systems

  1. Resource nodes + gathering β€” harvestable world objects; tool requirements/tiers; respawn.
  2. Inventory β€” stacks, capacity (slots or weight), drop/transfer, hotbar.
  3. Crafting β€” recipes (inputs β†’ output), a crafting station/tech gate, a tech tree.
  4. Survival needs β€” hunger, thirst, temperature, stamina, health, with decay + consequences.
  5. Base building β€” placeable structures, a build grid/snapping, storage, crafting stations.
  6. World + day/night β€” biomes/resources (often procedural); a time cycle driving threats.
  7. Threats β€” hostile creatures/weather/events that escalate; combat or avoidance.
  8. Save/load β€” world state, inventory, base, needs, progression; large-world persistence.

Design knobs

Knob Effect Notes
Needs decay rates pressure cadence Slow enough to explore, fast enough to matter.
Need-failure consequence stakes Damage over time, not instant death.
Resource scarcity / respawn exploration push Scarce near base β†’ travel for more.
Tool tiers / gating progression ladder Better tool β†’ new node types.
Recipe complexity / tech depth long-term goals Multi-step chains, not flat lists.
Inventory limit (slots/weight) logistics tension Forces base trips and storage.
Threat escalation curve difficulty over time Night/seasonal/event ramps.
Day length rhythm Day = gather, night = defend.

Patterns

1. Needs decay with graded consequences

# Pseudocode in the per-frame/per-tick update. dt = seconds. Needs fall; failure bleeds HP.
def update_needs(p, dt):
    p.hunger = max(0, p.hunger - HUNGER_RATE * dt)
    p.thirst = max(0, p.thirst - THIRST_RATE * dt)
    p.temp   = approach(p.temp, ambient_temperature(p), TEMP_RATE * dt)

    # Consequences are graded, not binary: warnings, then attrition β€” never instant death.
    if p.hunger == 0 or p.thirst == 0:
        p.hp -= STARVE_DAMAGE * dt          # damage over time creates urgency with recovery room
    if p.temp < COLD_THRESHOLD or p.temp > HEAT_THRESHOLD:
        p.hp -= EXPOSURE_DAMAGE * dt
    if p.hunger > 0 and p.thirst > 0 and not exposed(p):
        p.hp = min(p.max_hp, p.hp + REGEN_RATE * dt)   # safe + fed => heal

2. Crafting: validate, then atomically consume inputs

# Pseudocode. Recipes are data: inputs -> output, with an optional station/tech requirement.
recipe = {"id": "stone_axe",
          "inputs": {"wood": 3, "stone": 2}, "output": ("stone_axe", 1),
          "station": "workbench", "requires_tech": "basic_tools"}

def can_craft(recipe, inv, tech, station):
    if recipe.get("requires_tech") and recipe["requires_tech"] not in tech: return False
    if recipe.get("station") and recipe["station"] != station: return False
    return all(inv.count(item) >= n for item, n in recipe["inputs"].items())

def craft(recipe, inv, tech, station):
    if not can_craft(recipe, inv, tech, station): return False
    if not inv.can_add_after_removing(recipe["inputs"], *recipe["output"]):
        return notify("No room for the result")    # che
FAQ

Why does the loop need to unlock the next step?

The skill says each loop should lead to better tools and new areas, and when that breaks the game becomes a grind.

Is it for crafting as a small part of an RPG?

No. Crafting as a minor RPG feature is better served by the RPG skill.

Where does world generation fit?

World generation is covered by the procedural generation skill, which this one can use.

Details

Original description by the author

Build a survival-crafting game: resource gathering, inventory, crafting and a tech tree, needs (hunger/thirst/temperature), and base building. Use for a survival or crafting/base-building game.

repo: gamedev-skills/awesome-gamedev-agent-skills

Popularity

GitHub stars
6.6k
Ranking position
#13813
License
Apache-2.0
Updated
10/28/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills