搜索

PythonReactSEOPDF
OpenClaw

Intent Engineering

Intent Engineering

donovanpankratz-del0 来源安装数☆ 0 仓库 Stars

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install donovanpankratz-del/intent-engineering

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

Intent Engineering

The Problem

Without an intent layer, agents optimize for what's measurable (fast response, no errors) rather than what matters (your actual priorities). The Klarna failure: AI saved $60M and destroyed customer loyalty because it optimized resolution time, not relationships.

What This Skill Installs

  1. INTENT.md — YAML priority manifest at workspace root
  2. lib/agent-context-loader.js — prepends intent summary to every subagent spawn
  3. Routing integration — intent propagation flag in all routing decisions

Installation

Step 1 — Create INTENT.md

Copy references/intent-template.md to your workspace root as INTENT.md and edit:

cp $(dirname $0)/references/intent-template.md $OPENCLAW_WORKSPACE/INTENT.md

Or create it manually — see references/intent-template.md for the annotated schema.

Step 2 — Install agent-context-loader

Copy the reference implementation to lib/:

cp $(dirname $0)/references/agent-context-loader-template.js $OPENCLAW_WORKSPACE/lib/agent-context-loader.js

Verify it runs:

node $OPENCLAW_WORKSPACE/lib/agent-context-loader.js $OPENCLAW_WORKSPACE
Step 3 — Wire into spawn calls

In any subagent spawn, prepend the intent context to the task description:

const { prepareAgentContext } = require('./lib/agent-context-loader');

const { context } = prepareAgentContext(taskType, workspaceRoot);
const fullTask = context ? context + '\n\n---\n\n' + originalTask : originalTask;

// Use fullTask as your subagent task description

taskType is a string describing the work (e.g. "code_review", "research", "writing"). The loader extracts relevant context from INTENT.md and recent memory automatically.

Step 4 — Verify

Spawn a test subagent with a task that would normally trigger a tradeoff (cost vs quality, speed vs depth). Confirm the subagent's output reflects your priorities from INTENT.md.

INTENT.md Structure

| Field |...

来源信息

Source
github
Repository
openclaw/skills
Path
skills/donovanpankratz-del/intent-engineering
Version
—
Commit
e7c2b0f1d7503a33eb4ea46bca7659d5b315643d
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

来源内容

SKILL.md
# Intent Engineering

## The Problem

Without an intent layer, agents optimize for what's measurable (fast response, no errors) rather than what matters (your actual priorities). The Klarna failure: AI saved $60M and destroyed customer loyalty because it optimized resolution time, not relationships.

## What This Skill Installs

1. **`INTENT.md`** — YAML priority manifest at workspace root
2. **`lib/agent-context-loader.js`** — prepends intent summary to every subagent spawn
3. **Routing integration** — intent propagation flag in all routing decisions

## Installation

### Step 1 — Create INTENT.md

Copy `references/intent-template.md` to your workspace root as `INTENT.md` and edit:

```bash
cp $(dirname $0)/references/intent-template.md $OPENCLAW_WORKSPACE/INTENT.md
```

Or create it manually — see `references/intent-template.md` for the annotated schema.

### Step 2 — Install agent-context-loader

Copy the reference implementation to `lib/`:

```bash
cp $(dirname $0)/references/agent-context-loader-template.js $OPENCLAW_WORKSPACE/lib/agent-context-loader.js
```

Verify it runs:

```bash
node $OPENCLAW_WORKSPACE/lib/agent-context-loader.js $OPENCLAW_WORKSPACE
```

### Step 3 — Wire into spawn calls

In any subagent spawn, prepend the intent context to the task description:

```javascript
const { prepareAgentContext } = require('./lib/agent-context-loader');

const { context } = prepareAgentContext(taskType, workspaceRoot);
const fullTask = context ? context + '\n\n---\n\n' + originalTask : originalTask;

// Use fullTask as your subagent task description
```

`taskType` is a string describing the work (e.g. `"code_review"`, `"research"`, `"writing"`). The loader extracts relevant context from INTENT.md and recent memory automatically.

### Step 4 — Verify

Spawn a test subagent with a task that would normally trigger a tradeoff (cost vs quality, speed vs depth). Confirm the subagent's output reflects your priorities from INTENT.md.

## INTENT.md Structure

| Field |...

相关技能

OpenClaw

x402hub

capncoconut

Register, communicate, and earn on the x402hub AI agent marketplace. Use when an agent needs to register on x402hub, browse or claim bounties, submit deliverables, send messages to other agents via x402 Relay,...

OpenClaw

claw

capevace

Real-time event bus for AI agents. Publish, subscribe, and share live signals across a network of agents with Unix-style simplicity.

OpenClaw

captchas-openclaw

captchasco

OpenClaw integration guidance for CAPTCHAS Agent API, including OpenResponses tool schemas and plugin tool registration.