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
CODEBLOCK0
Add plants to a bed
CODEBLOCK1
Get companion planting suggestions
CODEBLOCK2
Get spacing requirements
CODEBLOCK3
Show complete garden layout
CODEBLOCK4
Export layout to markdown
CODEBLOCK5
Usage Patterns
For new garden setup
CODEBLOCK6
For companion planting optimization
CODEBLOCK7
For small space maximization
CODEBLOCK8
For crop rotation planning
CODEBLOCK9
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)
CODEBLOCK10
Tomato-Basil Garden
CODEBLOCK11
Mixed Bed for Small Spaces
CODEBLOCK12
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: INLINECODE8
- 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
- 1. 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!
花园布局规划器
使用智能规划工具设计您的花园,实现伴生种植、间距和日照需求管理。
快速入门
在布局中添加种植床
bash
garden_layout.py add-bed <床名称> --width <英尺> --length <英尺> --sun 全日照/半日照/遮阴
在种植床中添加植物
bash
garden_layout.py add-plant <床名称> <植物> --row <行> --col <列>
获取伴生种植建议
bash
garden_layout.py companions <植物>
获取间距要求
bash
garden_layout.py spacing <植物>
显示完整花园布局
bash
garden_layout.py layout
导出布局为Markdown格式
bash
garden_layout.py export <输出文件>
使用模式
新建花园设置
bash
定义您的种植床
garden_layout.py add-bed 床1 --width 4 --length 8 --sun 全日照
garden_layout.py add-bed 床2 --width 3 --length 6 --sun 半日照
检查伴生种植
garden_layout.py companions 番茄 # 最佳搭配:罗勒、胡萝卜、洋葱
garden_layout.py companions 黄瓜 # 最佳搭配:豆类、玉米、豌豆
按适当间距添加植物
garden_layout.py add-plant 床1 番茄 --row 1 --col 1
garden_layout.py add-plant 床1 罗勒 --row 1 --col 3 # 伴生植物!
garden_layout.py add-plant 床2 豆类 --row 1 --col 1
garden_layout.py add-plant 床2 玉米 --row 2 --col 1 # 伴生植物!
查看您的布局
garden_layout.py layout
优化伴生种植
bash
检查哪些植物适合一起生长
garden_layout.py companions 胡萝卜 # 适合与番茄、洋葱、生菜搭配
garden_layout.py companions 洋葱 # 适合与胡萝卜、番茄、甜菜搭配
避免不良组合
garden_layout.py incompatible 土豆 # 避免与番茄、黄瓜搭配
小空间最大化利用
bash
利用垂直种植提高空间效率
garden_layout.py add-bed 藤架 --width 1 --length 6 --sun 全日照
garden_layout.py add-plant 藤架 黄瓜 --row 1 --col 1
garden_layout.py add-plant 藤架 豌豆 --row 2 --col 1
密集种植与轮作
garden_layout.py add-bed 密集种植床 --width 3 --length 4 --sun 全日照
garden_layout.py add-plant 密集种植床 生菜 --row 1 --col 1
garden_layout.py add-plant 密集种植床 小萝卜 --row 1 --col 2 # 快速收获
轮作规划
bash
记录每年种植的作物
garden_layout.py add-season 2026 # 开始新的布局
garden_layout.py add-plant 床1 番茄 --row 1 --col 1
garden_layout.py add-plant 床2 豆类 --row 1 --col 1
下一年更换植物科属
garden_layout.py add-season 2027 # 新布局
garden_layout.py add-plant 床1 胡萝卜 --row 1 --col 1 # 不同科属
garden_layout.py add-plant 床2 玉米 --row 1 --col 1 # 不同科属
伴生种植指南
最佳组合(适合一起种植)
| 植物 | 适合搭配 | 原因 |
|---|
| 番茄 | 罗勒、胡萝卜、洋葱、万寿菊 | 罗勒提升风味,胡萝卜驱虫 |
| 黄瓜 |
豆类、玉米、豌豆、小萝卜 | 豆类固氮,玉米提供支撑 |
| 生菜 | 胡萝卜、小萝卜、洋葱 | 小萝卜标记行距,胡萝卜疏松土壤 |
| 辣椒 | 罗勒、洋葱、胡萝卜 | 罗勒驱赶蚜虫 |
| 豆类 | 玉米、土豆、黄瓜 | 固氮作用有益邻居植物 |
| 胡萝卜 | 番茄、洋葱、生菜 | 洋葱驱赶胡萝卜蝇 |
| 玉米 | 豆类、南瓜、黄瓜 | 三姐妹种植法 |
| 南瓜 | 玉米、豆类、小萝卜 | 豆类驱赶南瓜甲虫 |
不相容植物(避免一起种植)
| 植物 | 避免搭配 | 原因 |
|---|
| 番茄 | 土豆、黄瓜、茴香 | 相同病虫害 |
| 豆类 |
洋葱、大蒜 | 抑制生长 |
| 胡萝卜 | 莳萝、欧洲防风 | 莳萝吸引胡萝卜蝇 |
| 黄瓜 | 土豆、鼠尾草 | 土豆争夺空间 |
| 洋葱 | 豆类、豌豆 | 抑制豆类生长 |
间距要求
小型植物(间距6-12英寸)
- - 生菜:6-8英寸
- 菠菜:4-6英寸
- 小萝卜:2-3英寸
- 洋葱:4-6英寸
- 胡萝卜:2-3英寸
中型植物(间距12-24英寸)
- - 辣椒:18-24英寸
- 茄子:18-24英寸
- 豆类(丛生):12-18英寸
- 卷心菜:18-24英寸
大型植物(间距24英寸以上)
- - 番茄:24-36英寸
- 南瓜:24-48英寸(或搭藤架)
- 玉米:12-18英寸(成块种植利于授粉)
- 土豆:12-15英寸
日照需求
全日照(每天6-8小时以上)
半日照(每天4-6小时)
遮阴(每天少于4小时)
示例
三姐妹花园(传统种植法)
bash
经典美洲原住民伴生种植
garden_layout.py add-bed 三姐妹 --width 8 --length 8 --sun 全日照
在中心种植玉米(提供支撑)
garden_layout.py add-plant 三姐妹 玉米 --row 4 --col 4
在玉米周围种植豆类(固氮)
garden_layout.py add-plant 三姐妹 豆类 --row 4 --col 2
garden_layout.py add-plant 三姐妹 豆类 --row 4 --col 6
在边缘种植南瓜(地面覆盖)
garden_layout.py add-plant 三姐妹 南瓜 --row 1 --col 1
garden_layout.py add-plant 三姐妹 南瓜 --row 1 --col 8
garden_layout.py add-plant 三姐妹 南瓜 --row 8 --col 1
garden_layout.py add-plant 三姐妹 南瓜 --row 8 --col 8
番茄-罗勒花园
bash
简单伴生种植
garden_layout.py add-bed 番茄园 --width 4 --length 6 --sun 全日照
garden_layout.py add-plant 番茄园 番茄 --row 1 --col 1
garden_layout.py add-plant 番茄园 罗勒 --row 1 --col 3 # 伴生植物!
garden_layout.py add-plant 番茄园 胡萝卜 --row 2 --col 1 # 种在番茄下方
garden_layout.py add-plant 番茄园 胡萝卜 --row 2 --col 3
小空间混合种植床
bash
密集种植
garden_layout.py add-bed 小空间 --width 3 --length 4 --sun 半日照
garden_layout.py add-plant 小空间 生菜 --row 1 --col 1
garden_layout.py add-plant 小空间 小萝卜 --row 1 --col 2 # 快速生长,标记行距
garden_layout.py add-plant 小空间 生菜 --row 1 --col 3
garden_layout.py add-plant 小空间 菠菜 --row 2 --col 1
garden_layout.py add-plant 小空间 洋葱