微算力 · API 导航与自营网关
API 接入 EN
未登录登录
🌾

智能土地资产与租赁管理平台

Farmos Land Portfolio · v1.0.0
专业技能 安全 B 级 作者 brianppetty 公开目录收录
980 下载 0 安装 4.2k 收藏 11 浏览

简介

专为农业企业设计的土地资产管理工具,整合租赁跟踪、地主关系、付款管理与财务规划,支持读写双模式操作。

原始描述

Query land ownership, leases, landlord info, and land payments. Write operations for payment management and lease renewals.

通过你的 Agent 添加

安装目录:farmos-land-portfolio/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/farmos-land-portfolio/
Codex CLI~/.codex/skills/farmos-land-portfolio/
DeepSeek Harness~/.agents/skills/farmos-land-portfolio/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

中文使用说明 来自收录源

核心用法

FarmOS Land Portfolio 是一套面向规模化农业经营者的综合土地资产管理解决方案,核心功能覆盖四大模块:

1. 土地与租赁全景视图 通过 /api/integration/leases/all 和 /api/integration/parcels 端点获取完整的自有与租赁土地清单,包括地块位置、面积、所有权类型及租赁条款细节。系统特别强调数据完整性——强制使用 /all 后缀端点,严禁使用会截断至5条记录的 dashboard 接口。

2. 付款与现金流管理 支持多维度付款查询(按状态、类型、日期范围、作物年度),集成 /api/integration/payments/all 实现精准现金流规划。关键特性包括:逾期付款自动标红、未来N天付款预测、以及按日期/批量/单条的灵活标记付款功能。对于"三月需支付多少租金"类问题,系统要求显式返回记录总数与金额合计。

3. 地主关系维护 集中管理地主联系信息、活跃租约数量及总租金规模,数据访问受严格角色管控(仅 admin/manager 可见敏感商业信息)。

4. 年度财务规划 通过 /api/integration/finance/costs 与 /api/integration/finance/cost-per-field 实现按月度、类别、实体的成本拆解,支持P&L报表级的地块级成本归因。

显著优点

  • 数据完整性保障:强制 /all 端点策略杜绝"部分数据陷阱",所有查询必须声明记录总数
  • 双模式架构设计:集成端点(免认证)用于高频读取,认证端点(JWT)保护写操作,平衡便利与安全
  • 前瞻性预警机制:自动标红6个月内到期租约、逾期付款及待执行任务
  • 批量操作安全锁:租约续签与年度结转均强制"预览→确认→执行"三步流程
  • 精细化权限控制:敏感商业数据(租金金额、地主联系方式)与操作权限(付款标记、租约续签)分级隔离

潜在局限性与风险

  • 网络依赖性强:所有数据实时来自 http://100.102.77.110:8009,离线场景完全不可用
  • 令牌时效窗口:JWT 仅15分钟有效期,长时操作需频繁刷新
  • 无内置缓存层:重复查询可能产生冗余网络负载
  • IP硬编码风险:内网地址暴露可能引发网络配置安全隐患
  • 批量操作不可逆:租约续签与年度结转执行后无显式回滚机制

适合人群

规模化农场运营者(>1000英亩)、农业企业财务经理、负责多地主关系的土地协调员,以及需要整合土地成本进行作物级盈利分析的农场主。特别适合租约结构复杂(现金地租+产量分成+弹性租金混合)、付款周期密集(月付/季付/年付并存)的经营主体。

常规风险

风险类型 具体表现 缓解建议
数据截断误读 误用 dashboard 端点导致决策基于不完整数据 严格遵循 /all 端点强制规则
越权数据泄露 非授权人员获取敏感租金/地主信息 强制检查 ~/.openclaw/farmos-users.json 角色
误操作执行 批量付款标记或租约续签未确认即提交 严格执行预览→确认流程
令牌过期中断 写操作中途401导致流程断裂 操作前主动获取新令牌
网络单点故障 内网服务不可用时全功能瘫痪 建议配置健康检查与降级策略

技能正文


name: farmos-land-portfolio description: Query land ownership, leases, landlord info, and land payments. Write operations for payment management and lease renewals. tags: [farming, land, leases, landlords]

FarmOS Land Portfolio

Track owned and leased land, lease terms, landlord relationships, payments, and annual land costs.

CRITICAL: Data Completeness Rules

NEVER use partial or truncated data. These rules are non-negotiable:

  1. NEVER use /api/integration/dashboard — it truncates results to 5 items. Partial payment data is worse than no data because it creates a false sense of completeness.
  2. ALWAYS use the /all endpoints listed below for complete data.
  3. If an endpoint returns an error or empty results, REPORT THE FAILURE to the user. Do not silently fall back to a different endpoint or present partial data.
  4. ALWAYS state the total count of records returned so the user knows the data is complete. Example: "Found 11 payments due in March totaling $175,058."
  5. If you cannot get complete data, say so explicitly. "I was unable to retrieve complete payment data" is infinitely better than showing 5 of 11 payments.

When This Skill Triggers

  • "When do our leases expire?"
  • "What's the rent on the Smith ground?"
  • "Total land costs this year?"
  • "Show overdue payments"
  • "Landlord contact info"
  • "Cost per acre by parcel"
  • "List all leased parcels"
  • "What payments are due in March?"
  • "Cash requirements for next month"
  • "Mark payment [X] as paid"
  • "Mark all March payments paid"
  • "Renew the Smith lease"
  • "Preview lease renewals"

Access Control

Lease terms, rent amounts, and landlord info are sensitive business data. Restrict to admin or manager roles only.

Role mapping: Check the sender's role in ~/.openclaw/farmos-users.json. If the user is not admin or manager, tell them they don't have access to land portfolio data.

API Base

http://100.102.77.110:8009

Integration Endpoints (No Auth Required) — READ OPERATIONS ONLY

IMPORTANT: Use auth endpoints for WRITE operations (mark-paid, renewals). Use integration /all endpoints for READ operations (listing payments, leases, landlords).

Payments (FULL — use this, not dashboard)

GET /api/integration/payments/all

  • Returns ALL payments with full details — parcel names, landlord names, overdue status
  • Query parameters:
    • status — pending, paid, overdue, scheduled
    • payment_type — rent, mortgage, property_tax, insurance, improvement, other
    • parcel_id — filter by specific parcel
    • due_date_from — YYYY-MM-DD range start
    • due_date_to — YYYY-MM-DD range end
    • crop_year — filter by crop year
  • Examples:
    • All overdue: /api/integration/payments/all?status=overdue
    • March 2026 payments: /api/integration/payments/all?due_date_from=2026-03-01&due_date_to=2026-03-31
    • All rent payments: /api/integration/payments/all?payment_type=rent

Upcoming Payments (next N days)

GET /api/integration/payments/upcoming?days=30

  • Returns ALL upcoming payments within N days (no truncation)
  • Use days=60 or days=90 for longer lookahead

Leases (FULL)

GET /api/integration/leases/all

  • Returns ALL leases with landlord contact info, rent terms, expiration status
  • Query parameters:
    • status — active, expired
    • landlord_id — filter by landlord

Expiring Leases

GET /api/integration/leases/expiring?days=90

  • Returns ALL leases expiring within N days

Landlords (FULL)

GET /api/integration/landlords/all

  • Returns ALL landlords with contact info, active lease count, total acres, total rent

Parcels

GET /api/integration/parcels

  • Returns ALL parcels with ownership type, acres, county
  • Query parameter: ownership_type — owned, leased

Summary Stats

GET /api/integration/summary

  • Total acres, owned/leased breakdown, parcel/lease/landlord counts, annual cost

Annual Land Costs (by month and entity)

GET /api/integration/finance/costs?year=2026

  • Monthly cost breakdown by category (rent, mortgage, tax, insurance)
  • Entity breakdown
  • Query parameters: year, entity_id

Cost Per Field (for P&L)

GET /api/integration/finance/cost-per-field?year=2026

  • Land costs allocated to production fields
  • Query parameters: year, entity_id

Overdue Items

GET /api/integration/tasks/overdue

  • All overdue payments and reminders — high priority items

Actionable Items

GET /api/integration/tasks/actionable?days_ahead=30

  • Upcoming payments, expiring leases, pending reminders

Authenticated Endpoints — WRITE OPERATIONS

These require JWT auth. See Authentication section below.

Authentication

This skill accesses protected FarmOS endpoints that require a JWT token.

To get a token: Run the auth helper with the appropriate role:

TOKEN=$(~/clawd/scripts/farmos-auth.sh admin)

To use the token: Include it as a Bearer token:

curl -H "Authorization: Bearer $TOKEN" http://100.102.77.110:8009/api/endpoint

Token expiry: Tokens last 15 minutes. If you get a 401 response, request a new token.

Mark Single Payment Paid

POST /api/payments/{id}/mark-paid Authorization: Bearer {token} Content-Type: application/json

Body:

{
  "paid_date": "2026-02-15",
  "notes": "Check #1234"
}

Mark Multiple Payments Paid (Bulk)

POST /api/payments/bulk/mark-paid Authorization: Bearer {token} Content-Type: application/json

Body:

{
  "payment_ids": [12, 34, 56],
  "paid_date": "2026-02-15",
  "notes": "Batch check run"
}

Mark Payments Paid by Date Range

POST /api/payments/bulk/mark-paid-by-date Authorization: Bearer {token} Content-Type: application/json

Body:

{
  "due_date_from": "2026-03-01",
  "due_date_to": "2026-03-31",
  "paid_date": "2026-02-15",
  "payment_type": "rent",
  "notes": "March rent payments"
}

Use this when the user says "mark all March payments as paid" or similar bulk date-based operations.

Preview Lease Renewal

POST /api/leases/renewal-preview Authorization: Bearer {token} Content-Type: application/json

Body:

{
  "lease_ids": [5, 12],
  "new_start_date": "2027-03-01",
  "rent_increase_percent": 3.0
}

Returns: Preview of what the renewed leases would look like, including new payment schedules. Use this BEFORE executing bulk renewals so the user can confirm.

Execute Bulk Lease Renewal

POST /api/leases/bulk-renew Authorization: Bearer {token} Content-Type: application/json

Body:

{
  "lease_ids": [5, 12],
  "new_start_date": "2027-03-01",
  "new_end_date": "2028-02-28",
  "new_rent_amount": 52000.00,
  "rent_increase_percent": 3.0,
  "notes": "Annual renewal with 3% increase"
}

IMPORTANT: Always preview first, confirm with user, then execute.

Year-End Rollover Preview

POST /api/payments/year-end-rollover/preview Authorization: Bearer {token} Content-Type: application/json

Body:

{
  "from_year": 2026,
  "to_year": 2027
}

Returns: Preview of payment schedules that would be created for the new crop year.

Year-End Rollover Execute

POST /api/payments/year-end-rollover/execute Authorization: Bearer {token} Content-Type: application/json

Body:

{
  "from_year": 2026,
  "to_year": 2027,
  "apply_rent_increase": true,
  "rent_increase_percent": 2.5
}

IMPORTANT: This creates next year's payment schedules based on current year leases. Always preview first.

FORBIDDEN Endpoints — Do NOT Use

Endpoint Why
GET /api/integration/dashboard Truncates to 5 items. NEVER use this.

Key Concepts

  • Parcel: A land unit — either owned or leased.
  • Lease types: Cash rent, crop share, flex rent.
  • Lease expiration: Critical to track — approaching expirations need proactive attention.
  • Land payments: Rent, mortgage, property tax, insurance — each with due dates.

Usage Notes

  • Lease expiration tracking is the highest-value query — always flag leases expiring within 6 months.
  • Payment status (due/overdue) is critical — flag overdue payments immediately.
  • Cost per acre analysis helps compare owned vs leased economics.
  • Landlord contact info is private — never share outside admin/manager channels.
  • When asked about "cash requirements" or "what do we owe", always use /api/integration/payments/all with date filtering to get the COMPLETE picture.
  • For financial planning questions, combine /api/integration/payments/all with /api/integration/finance/costs for the full view.
  • Write operations: Always use authenticated endpoints for marking payments paid or renewing leases. Preview first when doing bulk operations.
  • Bulk payment marking: When user says "mark all March payments paid", use the bulk-by-date endpoint rather than individual calls.

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

farmingland-managementleasespaymentslandlordscrop-planningfinancial-trackingbulk-operations

同类 Skill