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.mdCopy 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
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
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
- Resource nodes + gathering β harvestable world objects; tool requirements/tiers; respawn.
- Inventory β stacks, capacity (slots or weight), drop/transfer, hotbar.
- Crafting β recipes (inputs β output), a crafting station/tech gate, a tech tree.
- Survival needs β hunger, thirst, temperature, stamina, health, with decay + consequences.
- Base building β placeable structures, a build grid/snapping, storage, crafting stations.
- World + day/night β biomes/resources (often procedural); a time cycle driving threats.
- Threats β hostile creatures/weather/events that escalate; combat or avoidance.
- 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.
Popularity
- GitHub stars
- 6.6k
- Ranking position
- #13813
- License
- Apache-2.0
- Updated
- 10/28/2026
Comments
- β¦
More skills from this repository
router
6.6kHelps your agent pick the right game development skill for a request by detecting your engine and the kind of task you need.
ai-behavior-trees-utility-ai
6.6kHelps your agent build a behavior tree and utility AI system for game enemies and characters that choose actions by priority and score.
audio-design
6.6kTeaches your agent game audio mixing: buses, decibel volume, ducking under dialogue, adaptive music and sound effect variation.
camera-systems
6.6kHelps your agent build game cameras that follow smoothly, stay inside the level, and orbit or look around in 3D.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.