Garden Layout Planner
Design your garden with smart planning tools for companion planting, spacing, and sun requirements.
Quick Start
Add a garden bed to your layout
garden_layout.py add-bed "<bed_name>" --width <feet> --length <feet> --sun "full/partial/shade"
Add plants to a bed
garden_layout.py add-plant "<bed_name>" "<plant>" --row <row> --col <col>
Get companion planting suggestions
garden_layout.py companions "<plant>"
Get spacing requirements
garden_layout.py spacing "<plant>"
Show complete garden layout
garden_layout.py layout
Export layout to markdown
garden_layout.py export "<output_file>"
Usage Patterns
For new garden setup
# Define your beds
garden_layout.py add-bed "Bed 1" --width 4 --length 8 --sun "full"
garden_layout.py add-bed "Bed 2" --width 3 --length 6 --sun "partial"
# Check companion planting
garden_layout.py companions "tomato" # Best with basil, carrots, onions
garden_layout.py companions "cucumber" # Best with beans, corn, peas
# Add plants with proper spacing
garden_layout.py add-plant "Bed 1" "tomato" --row 1 --col 1
garden_layout.py add-plant "Bed 1" "basil" --row 1 --col 3 # Companion!
garden_layout.py add-plant "Bed 2" "beans" --row 1 --col 1
garden_layout.py add-plant "Bed 2" "corn" --row 2 --col 1 # Companion!
# Review your layout
garden_layout.py layout
For companion planting optimization
# Check what grows well together
garden_layout.py companions "carrots" # Good with tomatoes, onions, lettuce
garden_layout.py companions "onions" # Good with carrots, tomatoes, beets
# Avoid bad combinations
garden_layout.py incompatible "potatoes" # Avoid with tomatoes, cucumbers
For small space maximization
# Use vertical growing for space efficiency
garden_layout.py add-bed "Trellis" --width 1 --length 6 --sun "full"
garden_layout.py add-plant "Trellis" "cucumber" --row 1 --col 1
garden_layout.py add-plant "Trellis" "peas" --row 2 --col 1
# Intensive planting with succession
garden_layout.py add-bed "Intensive Bed" --width 3 --length 4 --sun "full"
garden_layout.py add-plant "Intensive Bed" "lettuce" --row 1 --col 1
garden_layout.py add-plant "Intensive Bed" "radishes" --row 1 --col 2 # Fast harvest
For crop rotation planning
# Track what you planted each year
garden_layout.py add-season "2026" # Starts fresh layout
garden_layout.py add-plant "Bed 1" "tomatoes" --row 1 --col 1
garden_layout.py add-plant "Bed 2" "beans" --row 1 --col 1
# Next year, change families
garden_layout.py add-season "2027" # New layout
garden_layout.py add-plant "Bed 1" "carrots" --row 1 --col 1 # Different family
garden_layout.py add-plant "Bed 2" "corn" --row 1 --col 1 # Different family
Companion Planting Guide
Best Combinations (Good Together)
| Plant |
Good With |
Why |
| Tomatoes |
Basil, carrots, onions, marigolds |
Basil enhances flavor, carrots repel pests |
| Cucumbers |
Beans, corn, peas, radishes |
Beans fix nitrogen, corn provides support |
| Lettuce |
Carrots, radishes, onions |
Radishes mark rows, carrots break soil |
| Peppers |
Basil, onions, carrots |
Basil repels aphids |
| Beans |
Corn, potatoes, cucumbers |
Nitrogen fixation benefits neighbors |
| Carrots |
Tomatoes, onions, lettuce |
Onions repel carrot fly |
| Corn |
Beans, squash, cucumbers |
Three Sisters method |
| Squash |
Corn, beans, radishes |
Beans repel squash beetles |
Incompatible Plants (Avoid Together)
| Plant |
Avoid With |
Why |
| Tomatoes |
Potatoes, cucumbers, fennel |
Same pests/diseases |
| Beans |
Onions, garlic |
Inhibit growth |
| Carrots |
Dill, parsnips |
Dill attracts carrot fly |
| Cucumbers |
Potatoes, sage |
Potatoes compete for space |
| Onions |
Beans, peas |
Inhibit bean growth |
Spacing Requirements
Small Plants (6-12 inches apart)
- Lettuce: 6-8 inches
- Spinach: 4-6 inches
- Radishes: 2-3 inches
- Onions: 4-6 inches
- Carrots: 2-3 inches
Medium Plants (12-24 inches apart)
- Peppers: 18-24 inches
- Eggplant: 18-24 inches
- Beans (bush): 12-18 inches
- Cabbage: 18-24 inches
Large Plants (24+ inches apart)
- Tomatoes: 24-36 inches
- Squash: 24-48 inches (or trellis)
- Corn: 12-18 inches (in blocks for pollination)
- Potatoes: 12-15 inches
Sun Requirements
Full Sun (6-8+ hours daily)
- Tomatoes, peppers, eggplant, squash, corn, beans, cucumbers
Partial Sun (4-6 hours daily)
- Lettuce, spinach, kale, peas, carrots, beets
Shade (<4 hours daily)
- Some leafy greens, herbs like mint, chives
Examples
Three Sisters Garden (Traditional)
# Classic Native American companion planting
garden_layout.py add-bed "Three Sisters" --width 8 --length 8 --sun "full"
# Plant corn in center (support)
garden_layout.py add-plant "Three Sisters" "corn" --row 4 --col 4
# Plant beans around corn (nitrogen)
garden_layout.py add-plant "Three Sisters" "beans" --row 4 --col 2
garden_layout.py add-plant "Three Sisters" "beans" --row 4 --col 6
# Plant squash at edges (ground cover)
garden_layout.py add-plant "Three Sisters" "squash" --row 1 --col 1
garden_layout.py add-plant "Three Sisters" "squash" --row 1 --col 8
garden_layout.py add-plant "Three Sisters" "squash" --row 8 --col 1
garden_layout.py add-plant "Three Sisters" "squash" --row 8 --col 8
Tomato-Basil Garden
# Simple companion planting
garden_layout.py add-bed "Tomato Patch" --width 4 --length 6 --sun "full"
garden_layout.py add-plant "Tomato Patch" "tomato" --row 1 --col 1
garden_layout.py add-plant "Tomato Patch" "basil" --row 1 --col 3 # Companion!
garden_layout.py add-plant "Tomato Patch" "carrots" --row 2 --col 1 # Under tomatoes
garden_layout.py add-plant "Tomato Patch" "carrots" --row 2 --col 3
Mixed Bed for Small Spaces
# Intensive planting
garden_layout.py add-bed "Small Space" --width 3 --length 4 --sun "partial"
garden_layout.py add-plant "Small Space" "lettuce" --row 1 --col 1
garden_layout.py add-plant "Small Space" "radishes" --row 1 --col 2 # Fast, marks row
garden_layout.py add-plant "Small Space" "lettuce" --row 1 --col 3
garden_layout.py add-plant "Small Space" "spinach" --row 2 --col 1
garden_layout.py add-plant "Small Space" "onions" --row 2 --col 2
garden_layout.py add-plant "Small Space" "spinach" --row 2 --col 3
Search Features
- Find compatible plants for companion planting
- Get spacing requirements for any plant
- Search layouts by plant name
- Filter by sun requirements
Security
Path Validation
The export function validates output paths to prevent malicious writes:
- ✅ Allowed:
~/.openclaw/workspace/, /tmp/, and home directory
- ❌ Blocked: System paths (
/etc/, /usr/, /var/, etc.)
- ❌ Blocked: Sensitive dotfiles (
~/.bashrc, ~/.ssh, etc.)
Data Storage
- Garden layouts stored in:
~/.openclaw/workspace/garden_layout_db.json
- Each bed tracks: dimensions, sun exposure, plants with positions
- Companion database built-in with 50+ plant relationships
- JSON format makes it easy to backup or migrate
Best Practices
- Plan before planting - Use layout planner to visualize before putting seeds in ground
- Use companion planting - Plant compatible species together
- Check spacing - Don't overcrowd, plants need room to grow
- Track sun exposure - Different beds have different sun requirements
- Plan for rotation - Track what you plant where each year
- Export for reference - Keep a backup of your garden plan
Related Skills
- plant-tracker - Track individual plants with care schedules and harvests
- seasonal-planting-guide - What to plant when in your growing zone
Use together for complete garden management!
1---
2name: garden-layout-planner
3description: "Garden design and layout planning for gardeners. Plan your garden
4 with companion planting, spacing, and sun requirements. Use when designing a
5 new garden, planning crop rotation, or optimizing space. Security: file
6 exports restricted to safe directories. Perfect for home gardeners, small
7 farmers, and anyone maximizing their growing space."
8metadata:
9 source: https://skillmd.com/skills/modbender/garden-layout-planner
10---
11
12
13# Garden Layout Planner
14
15Design your garden with smart planning tools for companion planting, spacing, and sun requirements.
16
17## Quick Start
18
19### Add a garden bed to your layout
20```bash
21garden_layout.py add-bed "<bed_name>" --width <feet> --length <feet> --sun "full/partial/shade"
22```
23
24### Add plants to a bed
25```bash
26garden_layout.py add-plant "<bed_name>" "<plant>" --row <row> --col <col>
27```
28
29### Get companion planting suggestions
30```bash
31garden_layout.py companions "<plant>"
32```
33
34### Get spacing requirements
35```bash
36garden_layout.py spacing "<plant>"
37```
38
39### Show complete garden layout
40```bash
41garden_layout.py layout
42```
43
44### Export layout to markdown
45```bash
46garden_layout.py export "<output_file>"
47```
48
49## Usage Patterns
50
51### For new garden setup
52```bash
53# Define your beds
54garden_layout.py add-bed "Bed 1" --width 4 --length 8 --sun "full"
55garden_layout.py add-bed "Bed 2" --width 3 --length 6 --sun "partial"
56
57# Check companion planting
58garden_layout.py companions "tomato" # Best with basil, carrots, onions
59garden_layout.py companions "cucumber" # Best with beans, corn, peas
60
61# Add plants with proper spacing
62garden_layout.py add-plant "Bed 1" "tomato" --row 1 --col 1
63garden_layout.py add-plant "Bed 1" "basil" --row 1 --col 3 # Companion!
64garden_layout.py add-plant "Bed 2" "beans" --row 1 --col 1
65garden_layout.py add-plant "Bed 2" "corn" --row 2 --col 1 # Companion!
66
67# Review your layout
68garden_layout.py layout
69```
70
71### For companion planting optimization
72```bash
73# Check what grows well together
74garden_layout.py companions "carrots" # Good with tomatoes, onions, lettuce
75garden_layout.py companions "onions" # Good with carrots, tomatoes, beets
76
77# Avoid bad combinations
78garden_layout.py incompatible "potatoes" # Avoid with tomatoes, cucumbers
79```
80
81### For small space maximization
82```bash
83# Use vertical growing for space efficiency
84garden_layout.py add-bed "Trellis" --width 1 --length 6 --sun "full"
85garden_layout.py add-plant "Trellis" "cucumber" --row 1 --col 1
86garden_layout.py add-plant "Trellis" "peas" --row 2 --col 1
87
88# Intensive planting with succession
89garden_layout.py add-bed "Intensive Bed" --width 3 --length 4 --sun "full"
90garden_layout.py add-plant "Intensive Bed" "lettuce" --row 1 --col 1
91garden_layout.py add-plant "Intensive Bed" "radishes" --row 1 --col 2 # Fast harvest
92```
93
94### For crop rotation planning
95```bash
96# Track what you planted each year
97garden_layout.py add-season "2026" # Starts fresh layout
98garden_layout.py add-plant "Bed 1" "tomatoes" --row 1 --col 1
99garden_layout.py add-plant "Bed 2" "beans" --row 1 --col 1
100
101# Next year, change families
102garden_layout.py add-season "2027" # New layout
103garden_layout.py add-plant "Bed 1" "carrots" --row 1 --col 1 # Different family
104garden_layout.py add-plant "Bed 2" "corn" --row 1 --col 1 # Different family
105```
106
107## Companion Planting Guide
108
109### Best Combinations (Good Together)
110| Plant | Good With | Why |
111|-------|-----------|------|
112| Tomatoes | Basil, carrots, onions, marigolds | Basil enhances flavor, carrots repel pests |
113| Cucumbers | Beans, corn, peas, radishes | Beans fix nitrogen, corn provides support |
114| Lettuce | Carrots, radishes, onions | Radishes mark rows, carrots break soil |
115| Peppers | Basil, onions, carrots | Basil repels aphids |
116| Beans | Corn, potatoes, cucumbers | Nitrogen fixation benefits neighbors |
117| Carrots | Tomatoes, onions, lettuce | Onions repel carrot fly |
118| Corn | Beans, squash, cucumbers | Three Sisters method |
119| Squash | Corn, beans, radishes | Beans repel squash beetles |
120
121### Incompatible Plants (Avoid Together)
122| Plant | Avoid With | Why |
123|-------|-----------|------|
124| Tomatoes | Potatoes, cucumbers, fennel | Same pests/diseases |
125| Beans | Onions, garlic | Inhibit growth |
126| Carrots | Dill, parsnips | Dill attracts carrot fly |
127| Cucumbers | Potatoes, sage | Potatoes compete for space |
128| Onions | Beans, peas | Inhibit bean growth |
129
130## Spacing Requirements
131
132### Small Plants (6-12 inches apart)
133- Lettuce: 6-8 inches
134- Spinach: 4-6 inches
135- Radishes: 2-3 inches
136- Onions: 4-6 inches
137- Carrots: 2-3 inches
138
139### Medium Plants (12-24 inches apart)
140- Peppers: 18-24 inches
141- Eggplant: 18-24 inches
142- Beans (bush): 12-18 inches
143- Cabbage: 18-24 inches
144
145### Large Plants (24+ inches apart)
146- Tomatoes: 24-36 inches
147- Squash: 24-48 inches (or trellis)
148- Corn: 12-18 inches (in blocks for pollination)
149- Potatoes: 12-15 inches
150
151## Sun Requirements
152
153### Full Sun (6-8+ hours daily)
154- Tomatoes, peppers, eggplant, squash, corn, beans, cucumbers
155
156### Partial Sun (4-6 hours daily)
157- Lettuce, spinach, kale, peas, carrots, beets
158
159### Shade (<4 hours daily)
160- Some leafy greens, herbs like mint, chives
161
162## Examples
163
164### Three Sisters Garden (Traditional)
165```bash
166# Classic Native American companion planting
167garden_layout.py add-bed "Three Sisters" --width 8 --length 8 --sun "full"
168
169# Plant corn in center (support)
170garden_layout.py add-plant "Three Sisters" "corn" --row 4 --col 4
171
172# Plant beans around corn (nitrogen)
173garden_layout.py add-plant "Three Sisters" "beans" --row 4 --col 2
174garden_layout.py add-plant "Three Sisters" "beans" --row 4 --col 6
175
176# Plant squash at edges (ground cover)
177garden_layout.py add-plant "Three Sisters" "squash" --row 1 --col 1
178garden_layout.py add-plant "Three Sisters" "squash" --row 1 --col 8
179garden_layout.py add-plant "Three Sisters" "squash" --row 8 --col 1
180garden_layout.py add-plant "Three Sisters" "squash" --row 8 --col 8
181```
182
183### Tomato-Basil Garden
184```bash
185# Simple companion planting
186garden_layout.py add-bed "Tomato Patch" --width 4 --length 6 --sun "full"
187
188garden_layout.py add-plant "Tomato Patch" "tomato" --row 1 --col 1
189garden_layout.py add-plant "Tomato Patch" "basil" --row 1 --col 3 # Companion!
190garden_layout.py add-plant "Tomato Patch" "carrots" --row 2 --col 1 # Under tomatoes
191garden_layout.py add-plant "Tomato Patch" "carrots" --row 2 --col 3
192```
193
194### Mixed Bed for Small Spaces
195```bash
196# Intensive planting
197garden_layout.py add-bed "Small Space" --width 3 --length 4 --sun "partial"
198
199garden_layout.py add-plant "Small Space" "lettuce" --row 1 --col 1
200garden_layout.py add-plant "Small Space" "radishes" --row 1 --col 2 # Fast, marks row
201garden_layout.py add-plant "Small Space" "lettuce" --row 1 --col 3
202
203garden_layout.py add-plant "Small Space" "spinach" --row 2 --col 1
204garden_layout.py add-plant "Small Space" "onions" --row 2 --col 2
205garden_layout.py add-plant "Small Space" "spinach" --row 2 --col 3
206```
207
208## Search Features
209
210- Find compatible plants for companion planting
211- Get spacing requirements for any plant
212- Search layouts by plant name
213- Filter by sun requirements
214
215## Security
216
217### Path Validation
218The `export` function validates output paths to prevent malicious writes:
219- ✅ Allowed: `~/.openclaw/workspace/`, `/tmp/`, and home directory
220- ❌ Blocked: System paths (`/etc/`, `/usr/`, `/var/`, etc.)
221- ❌ Blocked: Sensitive dotfiles (`~/.bashrc`, `~/.ssh`, etc.)
222
223## Data Storage
224
225- Garden layouts stored in: `~/.openclaw/workspace/garden_layout_db.json`
226- Each bed tracks: dimensions, sun exposure, plants with positions
227- Companion database built-in with 50+ plant relationships
228- JSON format makes it easy to backup or migrate
229
230## Best Practices
231
2321. **Plan before planting** - Use layout planner to visualize before putting seeds in ground
2332. **Use companion planting** - Plant compatible species together
2343. **Check spacing** - Don't overcrowd, plants need room to grow
2354. **Track sun exposure** - Different beds have different sun requirements
2365. **Plan for rotation** - Track what you plant where each year
2376. **Export for reference** - Keep a backup of your garden plan
238
239## Related Skills
240
241- **plant-tracker** - Track individual plants with care schedules and harvests
242- **seasonal-planting-guide** - What to plant when in your growing zone
243
244Use together for complete garden management!