下载地址
https://www.zhengdianxue.com/wp-content/uploads/skills/yahuixun--field-agent-status.zip将提示词发送给你的 AI 安装该 skills
请根据 https://skillhub.cn/install/skillhub.md,安装 @yahuixun/field-agent-status。- Query registered Feishu field-agent account status and work progress from the field-agent-ai backend. Use when an Agent needs to check whether a Feishu user is an approved member, …
- s task progress, summarize recent field records, or answer questions like "
- what is this agent working on"
- , "
- has this person finished their visits"
- , or "
- …(完整说明见下方「阅读全文」)
阅读全文 (展开查看完整说明)
概述
Field Agent Status
Overview
Use this skill to query the field-agent-ai backend for registered field members and their work progress. The backend treats Feishu Bot registration as the account entry point: a user sends /register name or 注册 name, an admin approves the member, then Agent status queries can read that member's progress.
Required Runtime Settings
The query script can read runtime settings from environment variables:
FIELD_AGENT_API_BASE_URL=https://test-waiqin.cloudplus.im
AGENT_API_TOKEN=your_agent_api_token
FIELD_AGENT_USER_AGENT=Mozilla/5.0 (compatible; FieldAgentStatusSkill/0.1.4; +https://test-waiqin.cloudplus.im)In production, create a Skill Operator in the Web admin page and use the generated token as AGENT_API_TOKEN. New or reset tokens are shown only once; copy the token immediately because the admin list only shows the token prefix later.
To persist the Agent-side token across Skill upgrades, save it to the user-level config file:
python skills/field-agent-status/scripts/query_status.py --configureNon-interactive setup:
python skills/field-agent-status/scripts/query_status.py --save-config --base-url https://test-waiqin.cloudplus.im --token your_agent_api_tokenThe config is saved outside the Skill directory:
~/.field-agent-ai/skill-config.jsonSkill upgrades replace the package files but do not overwrite this user-level config. Environment variables still take precedence when set.
The packaged skill defaults to:
https://test-waiqin.cloudplus.imUse FIELD_AGENT_API_BASE_URL only when overriding the deployment domain, such as local development or a staging migration. Use FIELD_AGENT_USER_AGENT only when an edge firewall requires a specific allowed User-Agent for the /agent/* API path.
For local development:
FIELD_AGENT_API_BASE_URL=http://127.0.0.1:8000If neither the server-wide AGENT_API_TOKEN nor any active Skill Operator exists, the API allows unauthenticated dev access. In production, create at least one active Skill Operator or set the server-wide token.
Query Progress
Prefer the bundled script:
python skills/field-agent-status/scripts/query_status.py <feishu_open_id>Optional record limit:
python skills/field-agent-status/scripts/query_status.py <feishu_open_id> --limit 10Show the persistent config path:
python skills/field-agent-status/scripts/query_status.py --config-pathThe script calls:
GET /agent/members/{feishu_open_id}/statusIt returns:
- member account status
- total field records
- result status counts
- review status counts
- latest field records
Interpret Results
member.status = active: the person is approved and valid.member.status = pending: the person registered through Feishu but still needs web/admin approval.member.status = rejected: the person cannot submit valid field records.total_records = 0: no accepted field records have been submitted yet.review_status_counts.need_revieworlow_confidence: mention that human review is needed.- Latest records are ordered newest first and include customer, task type, result, next action, and review status.
Registration Workflow
Feishu user command:
/register Zhang San
注册 张三Admin approval endpoint:
POST /admin/members/{member_id}/approveAdmin rejection endpoint:
POST /admin/members/{member_id}/rejectResponse Style
When answering a human, summarize in operational terms:
- whether the person is a valid approved member
- how many records they have submitted
- what the latest task/result/next action is
- whether any records need review
Avoid exposing raw tokens or internal headers.