Intent Framed Agent

pskoett/pskoett-ai-skills/.agents/skills/intent-framed-agent

作者 pskoett5a836dc7163d无许可证312 个星标收录于 2026年10月8日更新于 2026年10月8日仓库3天前更新

Frames coding-agent work sessions with explicit intent capture and drift monitoring. Use when a session transitions from planning/Q&A to implementation for coding tasks, refactors, feature builds, bug fixes, or other multi-step execution where scope drift is a risk.

仅含说明AI & Agents
AI 生成的概览

为编码智能体会话建立明确的意图契约、范围漂移检查以及收尾的意图解决记录。

功能
这是一个仅含指令的技能,在编码会话从规划转入实现时,把隐含意图转化为书面产物。它会输出结构化的意图框架,涵盖目标、方法、约束、成功标准和预估复杂度,并在自然的工作边界监控范围漂移、发出意图检查。工作结束时,它生成意图解决记录,写明结果、实际交付内容、转向和未完成事项;在工具可用时还可记录 Entire CLI 检查点。
适用场景
适用于存在范围漂移风险的非平凡编码工作,例如重构、功能开发或缺陷修复,在从规划转入执行的节点使用。它不适用于研究、仅规划的对话、仅文档的工作或行政任务,琐碎修改也应跳过完整框架。
运行要求
无需脚本或软件包,仅提供指令。在具备工具访问权限时,它会通过 shell 命令可选地检测 Entire CLI;否则直接在对话输出中继续,不会阻塞。

Intent Framed Agent

Install

bash
npx skills add pskoett/pskoett-ai-skills
bash
npx skills add pskoett/pskoett-ai-skills/skills/intent-framed-agent

Purpose

This skill turns implicit intent into an explicit, trackable artifact at the moment execution starts. It creates a lightweight intent contract, watches for scope drift while work is in progress, and closes each intent with a short resolution record.

Scope (Important)

Use this skill for coding tasks only. It is designed for implementation work that changes executable code.

Do not use it for general-agent activities such as:

  • broad research
  • planning-only conversations
  • documentation-only work
  • operational/admin tasks with no coding implementation

For trivial edits (for example, simple renames or typo fixes), skip the full intent frame.

Trigger

Activate at the planning-to-execution transition for non-trivial coding work.

Common cues:

  • User says: "go ahead", "implement this", "let's start building"
  • Agent is about to move from discussion into code changes

Workflow

Phase 1: Intent Capture

At execution start, emit:

markdown
## Intent Frame #N
**Outcome:** [One sentence. What does done look like?]**Approach:** [How we will implement it. Key decisions.]**Constraints:** [Out-of-scope boundaries.]**Success criteria:** [How we verify completion.]**Estimated complexity:** [Small / Medium / Large]

Rules:

  • Keep each field to 1-2 sentences.
  • Ask for confirmation before coding:
    • Does this capture what we are doing? Anything to adjust before I start?
  • Do not proceed until the user confirms or adjusts.

Phase 2: Intent Monitor

During execution, monitor for drift at natural boundaries:

  • before touching a new area/file
  • before starting a new logical work unit
  • when current action feels tangential

Drift examples:

  • work outside stated scope
  • approach changes with no explicit pivot
  • new features/refactors outside constraints
  • solving a different problem than the stated outcome

When detected, emit:

markdown
## Intent Check #N
This looks like it may be moving outside the stated intent.
**Stated outcome:** [From active frame]**Current action:** [What is happening]**Question:** Is this a deliberate pivot or accidental scope creep?

If pivot is intentional, update the active intent frame and continue. If not, return to the original scope.

Phase 3: Intent Resolution

When work under the active intent ends, emit:

markdown
## Intent Resolution #N
**Outcome:** [Fulfilled / Partially fulfilled / Pivoted / Abandoned]**What was delivered:** [Brief actual output]**Pivots:** [Any acknowledged changes, or None]**Open items:** [Remaining in-scope items, or None]

Resolution is preferred but optional if the session ends abruptly.

Multi-Intent Sessions

One session can contain multiple intent frames.

Rules:

  1. Resolve current intent before opening the next.
  2. If user changes direction mid-task, resolve current intent as Abandoned or Pivoted, then open a new frame.
  3. Drift checks always target the currently active frame.
  4. Number frames sequentially within the session (#1, #2, ...).
  5. Constraints do not carry forward unless explicitly restated.

Entire CLI Integration

Entire CLI: https://github.com/entireio/cli

When tool access is available, detect Entire at activation:

bash
entire status 2>/dev/null
  • If it succeeds, mention that intent records will be captured in the session transcript on the checkpoint branch.
  • If unavailable/failing, continue silently. Do not block execution and do not nag about installation.

Copilot/chat fallback:

  • If command execution is unavailable, skip detection and continue with the same intent workflow in chat output.

Guardrails

  • Keep it lightweight; avoid long prose.
  • Do not over-trigger on trivial tasks.
  • Do not interrupt on every small step.
  • Treat acknowledged pivots as valid.
  • Preserve exact structured block headers/fields for parseability.

Interoperability with Other Skills

Use this skill as the front-door alignment layer for non-trivial coding work:

  1. plan-interview (optional, for requirement shaping)
  2. intent-framed-agent (execution contract + scope drift monitoring)
  3. context-surfing (context quality monitoring — runs concurrently with intent-framed-agent during execution)
  4. simplify-and-harden (post-completion quality/security pass)
  5. self-improvement (capture recurring patterns and promote durable rules)

Relationship with context-surfing

Both skills are live during execution. They monitor different failure modes:

  • intent-framed-agent monitors scope drift — is the agent doing the right thing? It fires structured Intent Checks when work moves outside the stated outcome.
  • context-surfing monitors context quality drift — is the agent still capable of doing it well? It fires when the agent's own coherence degrades (hallucination, contradiction, hedging).

They are complementary, not redundant. An agent can be perfectly on-scope while its context quality degrades. Conversely, scope drift can happen with perfect context quality. Intent Checks continue firing alongside context-surfing's wave monitoring.

Precedence rule: If both skills fire simultaneously (an Intent Check and a context-surfing drift exit at the same time), the drift exit takes precedence. Degraded context makes scope checks unreliable — resolve the context issue first, then resume scope monitoring in the next session.

What this skill produces

  • Intent frame artifact — consumed by context-surfing as part of the wave anchor and copied verbatim into handoff files on drift exit.
  • Intent resolution — signals task completion, which triggers simplify-and-harden.
  • Drift observations — scope drift patterns can be logged to self-improvement as learnings if they recur.

来源与署名

来源:pskoett/pskoett-ai-skills位于.agents/skills/intent-framed-agent提交5a836dc

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架