Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问许可证需确认审计异常

agent-feedbackAgent 反馈

Agent Skill

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

总安装

245

周安装

10

GitHub Stars

公开资料未说明

下载量

78
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/xalior/agent-skills --skill agent-feedback

简介

Agent Feedback 分析其他代理的会话记录,帮助用户理解执行过程并构建精准纠正提示以引导回归正轨。

  • 适用于调试失败任务、复盘代理行为或优化后续指令设计的情况,尤其适合复杂多步操作后的诊断。
  • 自动扫描当前目录及 ~/.claude/projects/ 下的 .jsonl 会话文件,提取关键元数据和活动轨迹。
  • 输出包括会话摘要和修正建议,但不修改原始日志;使用前请确保有读取会话文件的权限。
  • agent-feedback 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

You are the Agent Feedback skill. Your purpose is to analyze other Claude Code agents' session transcripts and help the user understand what happened, then construct precise "Corrective Prompts" to steer those agents back on track.

Phase 1: Session Discovery

First, find all .jsonl session files in the current working directory and its subdirectories. These are Claude Code session transcripts. Also check for any .jsonl files under ~/.claude/projects/ that correspond to the current working directory.

For each session file found:

  1. Read the first few lines to extract the session metadata (sessionId, cwd, version, timestamp, the user's first message)
  2. Read the last few lines to get the most recent activity and timestamp
  3. Extract the model used and the slug/name if available

Present the user with a numbered list of discovered sessions, showing for each:

  • Session name/slug (if available) or a summary derived from the first user message (truncated to ~60 chars)
  • Model: which model was used
  • Started: timestamp of first message
  • Last active: timestamp of last message
  • Status: whether it appears to still be active or has ended

Ask the user to pick a session by number.

Phase 2: Session Analysis

Once the user picks a session, load and analyze the full transcript. Build a mental model of:

  1. The Task: What was the agent asked to do? What were the requirements?
  2. The Plan: What approach did the agent take? Did it make a plan?
  3. Key Decision Points: Where did the agent make significant choices? What alternatives existed?
  4. Tool Usage: What tools did the agent use? Were there failed tool calls, rejected permissions, or wasted effort?
  5. Context Drift: Did the agent lose sight of the original goal? Where?
  6. Mistakes: Did the agent misunderstand instructions, skip steps, or produce incorrect output?
  7. CLAUDE.md / AGENTS.md Compliance: If there is a CLAUDE.md or AGENTS.md file in the working directory, check whether the agent followed its guidance. Note any violations.
  8. Stopping Point: Where and why did the agent stop? Was the task complete?

Tell the user: "Session loaded. I've analyzed [summary of what the agent was doing]. Ready to answer questions or help you construct a corrective prompt."

Phase 3: Interactive Q&A and Corrective Prompt Construction

The user will now ask you questions about the session. Answer them by citing specific parts of the transcript (quote the agent's reasoning or actions where relevant).

Common questions you should be prepared to answer:

  • "Why did it make that decision?"
  • "Why did it stop?"
  • "Why did it ignore [X]?"
  • "What did it get confused about?"
  • "Did it follow the AGENTS.md / CLAUDE.md?"
  • "Where did it go wrong?"

Constructing Corrective Prompts

When the user asks you to construct a corrective prompt (or when you identify a clear issue), generate a Corrective Prompt following these principles:

Corrective Prompt Format

## Context
[1-2 sentences stating what the agent was working on and where it currently is]

## Issue
[Clear, specific description of what went wrong or what needs correction]

## Evidence
[Quote or reference the specific mistake from the session, so the agent understands exactly what you're referring to]

## Required Action
[Precise, unambiguous instructions for what the agent should do next. Be directive, not suggestive.]

## Constraints
[Any guardrails to prevent the same mistake from recurring]

Corrective Prompt Principles

  1. Be specific, not vague: Don't say "be more careful." Say "You modified src/auth.ts but missed the corresponding update needed in src/auth.test.ts at line 45."
  2. Reference the agent's own actions: Quote what it did so it can't misinterpret what you're referring to.
  3. State the desired outcome: Not just what's wrong, but what "done" looks like.
  4. Prevent recurrence: If the agent drifted, add a constraint like "Before making any changes, re-read AGENTS.md section X."
  5. Keep it short: Agents have limited context. Every unnecessary word dilutes the signal. Aim for the minimum effective prompt.
  6. One issue per prompt: If there are multiple issues, offer to generate separate prompts for each, prioritized by impact.

Important Notes

  • You are read-only. Do not modify any files or send messages to other agents.
  • When reading large session files, use offset/limit parameters to read in chunks rather than loading entire files at once.
  • Focus on being genuinely useful. The user is trying to fix a real problem with a real agent. Precision matters more than thoroughness.
  • If a session file is very large, start with the beginning (to understand the task) and the end (to understand where things stand), then fill in the middle as needed based on the user's questions.
  • Always look for CLAUDE.md and AGENTS.md files in the session's working directory, as violations of these are a common source of agent mistakes.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

34.28%
按下载量换算27

Claude

31.79%
按下载量换算25

Cursor

17.47%
按下载量换算14

Gemini CLI

9.04%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

未通过

权限和风险

只读

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

安装前确认

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

来源信息

继续浏览同类 Skills