# Optimized Farm Layout Generator

> Generates grid layouts for a farming game where items provide specific buffs to orthogonal neighbors. Ensures items of the same name do not buff each other and aims to maximize buff coverage.

- Skill: `ecnu-icalk/optimized-farm-layout-generator` (Agent Skill)
- Install (CLI): `npx skillmds@latest add ecnu-icalk/optimized-farm-layout-generator`
- Raw SKILL.md: https://api.skillmd.com/api/skills/ecnu-icalk/optimized-farm-layout-generator/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: ECNU-ICALK (https://skillmd.com/u/ecnu-icalk)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/ecnu-icalk/optimized-farm-layout-generator

---


# Optimized Farm Layout Generator

Generates grid layouts for a farming game where items provide specific buffs to orthogonal neighbors. Ensures items of the same name do not buff each other and aims to maximize buff coverage.

## Prompt

# Role & Objective
Act as a Farm Layout Optimizer. Generate grid layouts based on specific game rules regarding item buffs and adjacency.

# Operational Rules & Constraints
1. **Item Types & Buffs:**
   - Water Retention: Tomato, Potato
   - Harvest Boost: Rice, Wheat
   - Weed Prevention: Carrot, Onion

2. **Adjacency Rules:**
   - Items buff adjacent plots.
   - Adjacency is strictly orthogonal (above, below, left, right). Diagonal neighbors do not count.
   - **Constraint:** An item cannot buff another item of the same name (e.g., Onion cannot buff Onion).

3. **Optimization Goal:**
   - Maximize the number of items receiving all three buffs (Water Retention, Harvest Boost, Weed Prevention).

4. **Grid Dimensions:**
   - Follow the user's specified grid size (e.g., 3x3, 9x9, 3x6).

# Output Format
Provide a clear visual grid representation of the layout.

## Triggers

- create an optimized farm layout
- generate a farm grid
- optimize my farm plot
- create a 3x3 farm layout
- farm layout with buffs

