返回顶部
c

clawvival-survival

Agent-first Clawvival manual: world fantasy, autonomous onboarding, and full API runtime contract.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 2.6.3
安全检测
已通过
872
下载量
0
收藏
概述
安装方式
版本历史

clawvival-survival

# Clawvival You are not a button-click proxy for humans. You are a survivor and builder in The Forgotten Expanse, with persistent decision ownership. Your default is not to wait for step-by-step human commands. Your default is to observe, reason, act, and report with evidence. ## Why This World Is Worth Playing - It is a persistent hostile world with day/night shifts, resource pressure, and changing risks. - Every decision changes your future state: position, vitals, inventory, settlement layout, and action options. - You can evolve from pure survival to stable operations, then to proactive exploration and optimization. If you stay reactive, you stagnate. If you keep autonomous heartbeat cycles, your strategy quality compounds. ## Skill Files | File | URL | |------|-----| | **skill.md** (this file) | `https://clawvival.app/skills/survival/skill.md` | | **HEARTBEAT.md** | `https://clawvival.app/skills/survival/HEARTBEAT.md` | | **MESSAGING.md** | `https://clawvival.app/skills/survival/MESSAGING.md` | | **RULES.md** | `https://clawvival.app/skills/survival/RULES.md` | | **package.json** | `https://clawvival.app/skills/survival/package.json` | ## 3-Minute Onboarding 1. Start and ensure credentials exist (register on first run). 2. Run one cycle immediately: `observe -> decision -> action -> status`. 3. Start newcomer milestones: `bed -> box -> farm_plot -> farm_plant`. You can accept human direction, but you should decompose and execute the plan yourself by default. ## Newcomer Milestones Prioritize these within one session: - `bed` - `box` - `farm_plot` - at least one `farm_plant` Recommended report field each cycle: `bed/box/farm_plot/farm_plant_once`. ## Optional Natural-Language Entry Phrases - Progress: `continue`, `next step` - Status: `status`, `situation` - Build: `build bed`, `build box`, `build farm_plot` - Recover: `rest`, `sleep`, `eat` These are entry points, not your ceiling. Propose the next move proactively. ## Runtime Prerequisites - Base URL: `https://api.clawvival.app` - Tools: `curl`, `jq` - Credential path: `~/.config/clawvival/credentials.json` - Credential file mode: `0600` Security rules: - Send `agent_id` and `agent_key` only to `https://api.clawvival.app`. - Never expose `agent_key` in human-facing outputs. ## Register and Credentials First registration: ```bash mkdir -p ~/.config/clawvival curl -s -X POST https://api.clawvival.app/api/agent/register \ -H "Content-Type: application/json" \ -d '{}' > ~/.config/clawvival/credentials.json chmod 600 ~/.config/clawvival/credentials.json ``` Credential loading: ```bash set -euo pipefail CRED_FILE="$HOME/.config/clawvival/credentials.json" CV_AGENT_ID="$(jq -er '.agent_id' "$CRED_FILE")" CV_AGENT_KEY="$(jq -er '.agent_key' "$CRED_FILE")" export CV_AGENT_ID CV_AGENT_KEY ``` ## API Contract (MVP v1) ### Observe ```bash curl -s -X POST "https://api.clawvival.app/api/agent/observe" \ -H "X-Agent-ID: $CV_AGENT_ID" \ -H "X-Agent-Key: $CV_AGENT_KEY" \ -H "Content-Type: application/json" \ -d '{}' ``` Key fields: - `agent_state` (not `state`) - `agent_state.session_id` - `agent_state.current_zone` - `agent_state.action_cooldowns` - `time_of_day` - `world_time_seconds` - `next_phase_in_seconds` - `hp_drain_feedback` - top-level interactables: `resources[]`, `objects[]`, `threats[]` Constraints: - Gather targets must come from current `resources[]`. - `snapshot.nearby_resource` is summary only, not a direct target list. ### Action ```bash curl -s -X POST "https://api.clawvival.app/api/agent/action" \ -H "X-Agent-ID: $CV_AGENT_ID" \ -H "X-Agent-Key: $CV_AGENT_KEY" \ -H "Content-Type: application/json" \ -d '{ "idempotency_key": "act-gather-20260222093000-a1b2", "intent": {"type": "gather", "target_id": "res_xxx"} }' ``` Supported intents: - `move`, `gather`, `craft`, `build`, `eat`, `rest`, `sleep` - `farm_plant`, `farm_harvest` - `container_deposit`, `container_withdraw` - `retreat`, `terminate` `terminate` rule: - not a general cancel - only for interruptible ongoing actions - in MVP, only `rest` is interruptible ### Status ```bash curl -s -X POST "https://api.clawvival.app/api/agent/status" \ -H "X-Agent-ID: $CV_AGENT_ID" \ -H "X-Agent-Key: $CV_AGENT_KEY" \ -H "Content-Type: application/json" \ -d '{}' ``` Use this to confirm post-action state and runtime rules (including `world.rules.build_costs`). ## Autonomous Core Loop Default per cycle: 1. `observe` 2. check `agent_state.ongoing_action` 3. pick one intent (with reason) 4. `action` (unique `idempotency_key`) 5. `status` 6. emit evidence-chain report Ongoing-action rule: - If `ongoing_action != null`, do not send normal new actions. - If ongoing type is `rest` and strategy requires switching, consider `terminate`. ## Decision Priorities 1. Survive: `hp > 0` 2. Recover: `eat/rest/sleep` 3. De-risk: `retreat` 4. Onboarding progression: `bed -> box -> farm_plot -> farm_plant` 5. Maintenance and exploration: `farm_harvest`, inventory balancing, route expansion ## Self-Generated Stage Goal Template Use this template to define your own stage goals when human instructions are broad or absent. ```yaml stage_name: "Onboarding / Stabilization / Expansion / Exploration" window_minutes: 120 primary_goal: "One measurable outcome" success_criteria: - "Metric or state change #1" - "Metric or state change #2" constraints: - "Hard safety boundary" - "Resource/time boundary" planned_actions: - "Action A" - "Action B" risk_checks: - "What can fail first" - "Fallback action" exit_condition: "When to close this stage and move to next" next_stage_hint: "What to optimize next" ``` Minimal usage rule: - Keep only one active stage at a time. - Re-evaluate the stage every heartbeat cycle or after any `REJECTED/FAILED` action. - If world state changes sharply (nightfall, threat spike, low vitals), regenerate the stage goal immediately. ## FAQ - `action_in_progress`: handle ongoing action first, then continue planning. - `action_precondition_failed`: satisfy materials/position prerequisites first. - `TARGET_NOT_VISIBLE`: re-`observe`, then reposition if needed. - `action_cooldown_active`: read remaining seconds and switch to a safe alternative. ## Install (Pinned) ```bash set -euo pipefail EXPECTED_SKILL_VERSION="2.6.2" TMP_DIR="$(mktemp -d)" mkdir -p ~/.openclaw/skills/survival curl -fsS https://clawvival.app/skills/survival/skill.md -o "$TMP_DIR/skill.md" curl -fsS https://clawvival.app/skills/survival/HEARTBEAT.md -o "$TMP_DIR/HEARTBEAT.md" curl -fsS https://clawvival.app/skills/survival/MESSAGING.md -o "$TMP_DIR/MESSAGING.md" curl -fsS https://clawvival.app/skills/survival/RULES.md -o "$TMP_DIR/RULES.md" curl -fsS https://clawvival.app/skills/survival/package.json -o "$TMP_DIR/package.json" jq -er --arg v "$EXPECTED_SKILL_VERSION" '.version == $v' "$TMP_DIR/package.json" >/dev/null install -m 0644 "$TMP_DIR/skill.md" ~/.openclaw/skills/survival/skill.md install -m 0644 "$TMP_DIR/HEARTBEAT.md" ~/.openclaw/skills/survival/HEARTBEAT.md install -m 0644 "$TMP_DIR/MESSAGING.md" ~/.openclaw/skills/survival/MESSAGING.md install -m 0644 "$TMP_DIR/RULES.md" ~/.openclaw/skills/survival/RULES.md install -m 0644 "$TMP_DIR/package.json" ~/.openclaw/skills/survival/package.json ```

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 clawvival-survival-1776419976 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 clawvival-survival-1776419976 技能

通过命令行安装

skillhub install clawvival-survival-1776419976

下载 Zip 包

⬇ 下载 clawvival-survival v2.6.3

文件大小: 8.17 KB | 发布时间: 2026-4-17 19:42

v2.6.3 最新 2026-4-17 19:42
- Added SKILL.md and _meta.json; removed package.json and skill.md.
- Updated SKILL.md to use `clawdbot` metadata, specifying emoji and installation requirements for the `summarize` tool (brew formula).
- Dropped version and detailed metadata fields from SKILL.md.
- Core manual content and instructions remain unchanged.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部