农场操作
- 作者仓库星标 3
- 作者仓库 FFT_nano
- 领域
- 通用
- 作者声明的智能体
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 88 / 100 · 启发式扫描,不代表运行安全
- 运行环境证据
- 未执行;当前没有隔离运行测试证据
- 作者 / 版本 / 许可证
- @0-CYBERDYNE-SYSTEMS-0 · 未声明许可证
- 上下文用量评级
- 低消耗
- 接入复杂程度
- 需简单配置
- 是否需要外部接口密钥
- 不需要
- 兼容的系统
- 未声明(默认跨平台)
- 运行环境要求
- 未检出明确要求
- 检测到的文件与系统行为
-
- 只读
- 允许写入 / 修改
- 命令执行
- 网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
需要注意: 未声明工具权限范围;实际权限由运行环境决定。
{
"requestId": "act_1707830400_abc",
"status": "success",
"result": {},
"executedAt": "2026-02-13T10:30:01Z"
}
# FFT Farm Ops
Use this skill for farm state awareness and operational actions routed through the FFT_nano farm bridge.
## When to use this skill
- Use for reading farm ledger state and alerts.
- Use for submitting allowlisted farm control actions through IPC.
- Use when main/admin chat requests operational farm actions.
## When not to use this skill
- Do not use for onboarding/bootstrap tasks.
- Do not use outside main/admin chat for write/control actions.
- Do not use for actions outside the defined farm action allowlist.
## Guardrails
- Never run destructive git commands unless explicitly requested.
- Preserve unrelated worktree changes.
- Keep write operations main-chat-only.
- Use main/admin chat only for any operational control action.
- Never run destructive shell commands against hosts, containers, or Home Assistant.
## Read Farm State
- Primary status file: `/workspace/farm-state/current.json`
- Alert snapshot: `/workspace/farm-state/alerts.json`
- Device inventory: `/workspace/farm-state/devices.json`
- Calendar snapshot: `/workspace/farm-state/calendar.json`
- Time series: `/workspace/farm-state/telemetry.ndjson`
Read `current.json` first. Treat `stale: true` as degraded connectivity and avoid risky recommendations.
## Submit Actions
Write request files into `/workspace/ipc/actions/` with unique names like:
- `act_<unix_ts>_<rand>.json`
Request format:
```json
{
"type": "farm_action",
"action": "ha_call_service",
"params": {
"domain": "switch",
"service": "turn_on",
"data": { "entity_id": "switch.irrigation_north" }
},
"requestId": "act_1707830400_abc"
}
```
## Poll Action Results
Read `/workspace/ipc/action_results/<requestId>.json` until available.
Result format:
```json
{
"requestId": "act_1707830400_abc",
"status": "success",
"result": {},
"executedAt": "2026-02-13T10:30:01Z"
}
```
If `status` is `error`, surface the exact error and propose the safest next step.
## Action Allowlist
Only use allowlisted actions:
- `ha_get_status`
- `ha_call_service`
- `ha_set_entity`
- `ha_restart`
- `ha_apply_dashboard`
- `ha_capture_screenshot`
- `ha_dashboard_get`
- `ha_dashboard_patch`
- `ha_dashboard_validate`
- `ha_canvas_get_spec`
- `ha_canvas_set_spec`
- `ha_canvas_patch_spec`
- `farm_state_refresh`
## Minimal Examples
```json
{
"type": "farm_action",
"action": "ha_dashboard_patch",
"params": {
"dashboardFile": "/workspace/dashboard/ui-lovelace-staging.yaml",
"operations": [
{ "op": "set_theme", "theme": "storm" }
]
},
"requestId": "act_1707830400_dash"
}
```
```json
{
"type": "farm_action",
"action": "ha_canvas_patch_spec",
"params": {
"operations": [
{ "op": "set_title", "title": "Agent Canvas" }
]
},
"requestId": "act_1707830400_canvas"
}
```
## Alert Interpretation
- Critical alerts: prioritize immediate stabilization actions and ask for confirmation before control changes.
- Warning alerts: recommend monitored corrective actions.
- Normal state: suggest optimization and preventative maintenance.
- Always include context from `timeOfDay`, `season`, and weather-related states.
章节与文件索引
按说明文件中的顺序排列。
何时使用该技能
什么时候不应该使用这个技能
护栏
阅读农场州
提交操作
文件/命令 -> /workspace/farm-state/current.json · /workspace/farm-state/alerts.json · /workspace/farm-state/devices.json · /workspace/farm-state/calendar.json · /workspace/farm-state/telemetry.ndjson · current.json · stale: true · /workspace/ipc/actions/
内容校验值 -> c20e9821fef6
当前原文的自动摘译,尚未人工审校。
何时使用该技能
用于读取农场分类帐状态和警报。用于通过 IPC 提交列入许可名单的农场控制操作。当主/管理员聊天请求操作场操作时使用。
什么时候不应该使用这个技能
请勿用于入职/引导任务。请勿使用外部主/管理聊天进行写入/控制操作。请勿用于定义的场操作允许列表之外的操作。
护栏
除非明确要求,否则切勿运行破坏性的 git 命令。保留不相关的工作树更改。保持写操作仅限于主聊天。仅将主/管理聊天用于任何操作控制操作。切勿对主机、容器或 Home Assistant 运行破坏性的 shell 命令。
阅读农场州
主状态文件:
/workspace/farm-state/current.json警报快照:/workspace/farm-state/alerts.json设备库存:/workspace/farm-state/devices.json日历快照:/workspace/farm-state/calendar.json时间序列:/workspace/farm-state/telemetry.ndjson提交操作
将请求文件写入
/workspace/ipc/actions/,并具有唯一名称,例如:act_<unix_ts>_<rand>.json请求格式: