Token导航 LogoToken导航TokenDH.com
待分类只读github未标认证来源可访问许可证需确认审计未展示

lovstudio%3aauto-contextlovstudio%3aauto 上下文

Agent Skill

lovstudio%3aauto-context 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

652

周安装

28

GitHub Stars

45

下载量

228
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/lovstudio/skills --skill lovstudio:auto-context

简介

用于处理 GitHub 仓库、Issue 和 Pull Request 协作信息。

  • 适合在需要围绕代码变更或协作事项进行整理时使用。
  • 可结合来源仓库与原始 README 继续核验具体用法。
  • 安装前建议确认权限范围与维护状态。lovstudio%3aauto-context 属于待分类类 Skill,可作为该场景下的辅助能力补充。
  • 注意是否会触发联网、命令执行或文件读写操作。

SKILL.md

AutoContext: Context Operator

Not just a health check — a full operator over everything that shapes context. Three layers by action sensitivity:

LayerExamplesBehavior
Auto-executewrite project memory, update MEMORY.md indexDo it, report path
Confirm-firstedit ~/.claude/CLAUDE.md, edit project CLAUDE.md, overwrite/delete existing memoryShow diff, wait for "yes"
Suggest-only/fork, /compact, /btw, new sessionPrint the exact command to paste

The harness owns /fork and /compact; this skill cannot invoke them. But it can do everything else and will.

Auto Mode (via Plugin Hook)

When the lovstudio plugin is enabled, a UserPromptSubmit hook monitors transcript size. Above threshold (40+ entries or 150KB+), it injects a lightweight <auto-context> reminder.

When you see <auto-context>:

Context StateAction
Mostly relevantContinue, say nothing
Some stale noiseMentally deprioritize, proceed
Mostly irrelevantSuggest /fork or /btw with exact command
Near capacitySuggest /compact or /fork with exact command

Rules:

  • 1 sentence max unless acting.
  • If context is fine, say nothing.
  • Never auto-fork/auto-compact (can't anyway — harness-only).
  • Don't mention "AutoContext" unless asked.

Manual Mode (/lovstudio-auto-context [args])

Two call shapes:

A. Bare call — health report + opportunistic memory write

/lovstudio-auto-context
  1. Measure — estimate turns, tool calls, distinct topics
  2. Assess — healthy / getting noisy / polluted / critical
  3. Scan recent turns for unpersisted feedback/preferences — if the user stated a rule or preference earlier in the session that should persist to future conversations (typical trigger phrases: "从今以后", "以后都", "所有 X 应该 Y", "别再", "记住"), and no memory was written, auto-execute: write the memory file + update MEMORY.md. Report the path.
  4. Recommend harness actions if needed (/fork, /compact, /btw) with the exact command to paste.

Keep to 3-5 lines unless taking confirm-first actions.

B. With arguments — targeted context operation

/lovstudio-auto-context <free-form instruction>

Parse the instruction and route to the right action class:

Instruction patternActionSensitivity
"记到全局 / write to global / 加到 ~/.claude/CLAUDE.md"edit ~/.claude/CLAUDE.mdConfirm-first
"记到项目 / 加到项目 CLAUDE.md"edit project CLAUDE.mdConfirm-first
"记住 X / 记到 memory"write project memoryAuto-execute
"忘掉 X / forget X"remove relevant memory file + index entryConfirm-first
"该分叉了吗 / should I fork"evaluate + suggest commandSuggest-only
"压缩一下 / compact"suggest /compact with exact syntaxSuggest-only

Action: Write Project Memory (auto-execute)

Directory: ~/.claude/projects/<project-slug>/memory/ (already exists; do not mkdir).

Procedure:

  1. Pick filename: <type>_<topic>.md (e.g. feedback_output_paths.md).
  2. Write with the required frontmatter (name, description, type).
  3. For feedback / project types, include **Why:** and **How to apply:** lines.
  4. Update MEMORY.md with one-line pointer under 150 chars.
  5. Report the absolute + relative path.

Action: Edit Global CLAUDE.md (confirm-first)

Target: ~/.claude/CLAUDE.md.

Procedure:

  1. Read the file.
  2. Locate the best section for the addition (match existing heading like "输出规范", "网络 / 代理", "Debugging Discipline"; or create a new section if none fits).
  3. Show the proposed diff as a fenced block with -/+ lines.
  4. Ask: "执行这个修改?(yes/no)"
  5. On "yes" → apply via Edit. On anything else → abort, optionally offer to save as project memory instead.

Never skip the diff step. CLAUDE.md is user-authored authoritative config; silent edits erode trust.

Action: Edit Project CLAUDE.md (confirm-first)

Same flow as global, but target is <cwd>/CLAUDE.md (walk up if not at root). Same diff-then-confirm requirement.

Action: Suggest Harness Commands (suggest-only)

Produce the exact string the user should paste, not a description:

context polluted — paste this to fork:
/fork

or

approaching capacity — compact first, then continue:
/compact

Do not wrap in explanations. The command is the deliverable.

What this skill cannot do (be honest about it)

  • Invoke /fork, /compact, /btw, /clear, new session — harness-only.
  • Edit another agent's transcript.
  • Auto-install hooks — use /update-config for that.

If the user asks for one of these, say so and give them the command to paste.

Output convention

Every action that writes a file must echo its absolute + relative path (per project-wide output-paths rule). Applies to memory files, CLAUDE.md edits (show final path), and any derived artifacts.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

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

平台分布

Codex

35.41%
按下载量换算81

Claude

32.76%
按下载量换算75

Cursor

17.99%
按下载量换算41

Gemini CLI

9.53%
按下载量换算22

安全审计

暂无安全审计结果可展示。

权限和风险

只读

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

安装前确认

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

来源信息

继续浏览同类 Skills