Token导航 LogoToken导航TokenDH.com
研究检索只读clawhub未标认证来源可访问clear审计通过

auto-context自动上下文

Agent Skill

auto-context 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

38,202

周安装

1,641

GitHub Stars

2

下载量

13,391
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:auto-context(自动上下文)
来源仓库:https://github.com/wpank/auto-context
安装命令:
openclaw skills install auto-context
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install auto-context

简介

在采取重大行动之前自动阅读相关上下文。加载 TODO.md、roadmap.md、交接、任务计划和其他项目上下文文件,以便 AI 在完全态势感知的情况下运行。在启动任务、实现功能、重构、调试、规划或恢复会话时使用。

SKILL.md

name
auto-context
model
fast
description
Automatically read relevant context before major actions. Loads TODO.md, roadmap.md, handoffs, task plans, and other project context files so the AI operates with full situational awareness. Use when starting a task, implementing a feature, refactoring, debugging, planning, or resuming a session.

Auto-Context — Situational Awareness Protocol (Meta-Skill)

Before you act, understand where you are. This skill ensures the AI loads critical project context automatically before any major action, preventing wasted effort, duplicate work, and misaligned implementations.

Installation

OpenClaw / Moltbot / Clawbot

npx clawhub@latest install auto-context

When to Activate

This skill triggers automatically based on the current action. Do not wait for the user to ask — proactively load context when any of these conditions are met.

TriggerWhyMinimum Context
Starting a new taskUnderstand priorities, avoid conflictsCritical + High
Implementing a featureKnow the plan, constraints, recent changesCritical + High
Refactoring codeUnderstand what changed recently, what's plannedCritical + High + Medium
Debugging an issueCheck recent changes, known issues, discoveriesCritical + High + Medium
Planning or scoping workFull picture of roadmap, backlog, progressAll levels
Session start or resumeRebuild mental model from last session stateCritical + High
Before a handoffEnsure nothing is missed in transitionAll levels

Context Files to Read

Read these files in priority order. Stop early if the task is narrow and lower-priority files are clearly irrelevant.

PriorityFilePurposeRead When
CriticalTODO.mdCurrent tasks, backlog, and prioritiesAlways
Criticalroadmap.mdPhase status, milestones, project directionAlways
Hightask_plan.mdActive task breakdown and implementation planFile exists
High.cursor/handoffs/*.mdRecent handoff notes (read last 3 by date)File exists
Mediumfindings.mdResearch results, discoveries, decisions madeRelevant to task
MediumCHANGELOG.mdRecent changes and their rationaleRelevant to task
Low.cursor/sessions/*.mdSession summaries (read last 2 by date)Planning or debugging

Alternate Locations

Some projects use different paths. Check these fallbacks if primary paths are empty:

PrimaryFallback
TODO.mddocs/TODO.md, ai/TODO.md
roadmap.mddocs/roadmap.md, ROADMAP.md
task_plan.mddocs/task_plan.md, .cursor/task_plan.md
findings.mddocs/findings.md, .cursor/findings.md

Context Loading Strategy

Step 1: Load Critical Files (Always)

Read TODO.md → Extract: current task, next priorities, blockers
Read roadmap.md → Extract: current phase, active milestone, upcoming deadlines

If either critical file is missing, warn the user:

"No TODO.md found. Consider creating one to track tasks."

Step 2: Load High-Priority Files (If They Exist)

Read task_plan.md → Extract: implementation steps, acceptance criteria
Glob .cursor/handoffs/*.md → Read last 3 by modification date

Step 3: Load Medium/Low Files (If Relevant)

Only read these when the current task benefits from historical context:

  • Debugging? — Read findings.md and CHANGELOG.md
  • Planning? — Read everything including session files
  • Quick fix? — Skip medium and low entirely

Step 4: Synthesize and Present

After loading, produce a context summary (see format below) before proceeding with the task.


Staleness Detection

Check modification dates on all loaded files. Flag files that may contain outdated information.

AgeStatusAction
< 24 hoursFreshUse as-is
1-7 daysCurrentUse as-is, note the age
7-30 daysStaleWarn: "{file} last updated {N} days ago — verify before relying on it"
> 30 daysOutdatedWarn: "{file} is {N} days old and may no longer reflect project state"

To check file ages on macOS:

stat -f "%m %N" TODO.md roadmap.md task_plan.md findings.md CHANGELOG.md 2>/dev/null

On Linux:

stat -c "%Y %n" TODO.md roadmap.md task_plan.md findings.md CHANGELOG.md 2>/dev/null

Context Summary Format

After loading context, present a concise summary using this template. Keep it tight — the goal is awareness, not repetition.

## Context Loaded

**Current Phase:** {phase from roadmap}
**Active Milestone:** {milestone and progress}

**Current Task:** {from TODO.md or task_plan.md}
- Status: {in-progress / blocked / not started}
- Blockers: {any blockers, or "none"}

**Recent Changes:**
- {last 2-3 items from CHANGELOG or handoffs}

**Relevant Findings:**
- {key discoveries that affect the current task, or "none"}

**Stale Warnings:**
- {any staleness warnings, or "all context is fresh"}

If no context files exist at all, output:

## Context Loaded

No project context files found. Operating without historical context.
Consider creating TODO.md and roadmap.md to enable context-aware assistance.

Integration Points

This skill connects to other workflow commands and should run as a precursor.

CommandHow Auto-Context Integrates
/start-taskLoads full context before beginning work; populates task plan
/intentReads roadmap and TODO to validate intent against project direction
/workflowProvides the "understand" phase of any workflow automatically
/progressUses TODO.md and task_plan.md to assess completion status
/handoff-and-resumeReads last handoff to rebuild state on resume
/session-summaryCross-references loaded context with session actions for accuracy

Execution Order

User triggers action
  → Auto-Context activates (this skill)
    → Context summary presented
      → Primary skill/command executes with full awareness

Quick Reference

Context Loading Checklist:
  1. Read TODO.md (critical)
  2. Read roadmap.md (critical)
  3. Read task_plan.md (if exists)
  4. Read last 3 handoffs (if exist)
  5. Check file staleness
  6. Read findings/changelog (if relevant)
  7. Present context summary
  8. Proceed with task

NEVER Do

  1. NEVER skip critical files to save time — leads to duplicate work and conflicting implementations
  2. NEVER load every file regardless of task — wastes tokens and dilutes focus with irrelevant info
  3. NEVER ignore staleness warnings — stale context causes decisions based on outdated assumptions
  4. NEVER read files without summarizing — raw file dumps overwhelm; always synthesize first
  5. NEVER assume context from memory alone — sessions are stateless; always re-read files
  6. NEVER silently proceed when no context exists — user should know they're operating blind
  7. NEVER read handoffs/sessions beyond the limit — last 3 handoffs and last 2 sessions are sufficient

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

77.92%
按下载量换算10,434

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

未展示

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills