Token导航 LogoToken导航

Agent Skill · 研究检索

retrospect(retrospect 分析)

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

retrospect 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描有未通过项,按安装量在研究检索类的 73,675 个 Skill 里排第 64,068。

总安装 306周安装 13GitHub Stars 1下载 107核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/cyberelf/agent_skills --skill retrospect

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

Retrospect 对当前对话与项目指令进行元分析,持续优化代码质量与开发流程。适用于 Codex、Claude、Cursor、Gemini CLI 中需要反馈闭环与模式改进的场景。核心能力包括识别用户纠正点、检测编码规范偏离、更新指令模板防止重复错误。通过迭代循环提升开发一致性,建立持续学习机制。

仅在用户指出重复问题时激活,不主动介入常规开发流程。

来源仓库内路径:skills/retrospect

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/cyberelf/agent_skills --skill retrospect;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

retrospect 怎么安装?

在终端执行 npx skills add https://github.com/cyberelf/agent_skills --skill retrospect。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

retrospect 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

retrospect 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

retrospect 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

retrospect 用的人多吗?

公开数据是累计安装 306 次,近一周安装 13 次,下载 107 次,GitHub 1 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

retrospect 安全吗?

第三方扫描有未通过项,风险较高。除非你确认过源码,否则不建议直接安装到常用环境。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
retrospect

retrospect 分析 · 本页

3061需要联网未明确未通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Retrospect Skill

This skill performs meta-analysis on the current conversation and project instructions to continuously improve code and process quality and adherence to established patterns.

Purpose

This skill helps maintain and improve the quality of AI-assisted development by:

  1. Identifying patterns where user corrections reveal gaps in instructions
  2. Detecting violations of existing coding standards and conventions
  3. Updating instructions to prevent repeating the same mistakes
  4. Creating a feedback loop for continuous improvement

When to Use This Skill

Use this skill when:

  • A user points out a recurring mistake or anti-pattern
  • Multiple corrections have been made during a session
  • You want to ensure coding standards are being followed
  • A user explicitly requests instruction review or updates
  • After completing a significant feature or fix

Retrospect Process

Phase 1: Session Analysis

Objective: Review the current chat session to identify learning opportunities.

1.1 Collect User Corrections

Scan the conversation history for:

  • Direct corrections: "No, you should..." or "That's wrong, the correct way is..."
  • Repeated mistakes: Same issue corrected multiple times
  • Clarifications: "Actually, we use X instead of Y"
  • New requirements: "From now on, always do X when Y"
  • Anti-patterns: "Don't do X, prefer Y"
1.2 Identify Instruction Gaps

For each correction, determine:

  • Is this covered by existing instructions?
  • Is this a new pattern that should be documented?
  • Is this specific to this project or a general principle?
  • Should this be a new rule, guideline, or example?
1.3 Categorize Lessons

Classify lessons by domain and type:

  • Architecture: Design patterns, system organization, separation of concerns
  • Process: Workflows, procedures, operational patterns
  • Behavioral: Agent decision-making, interaction patterns, role adherence
  • Communication: Documentation standards, reporting formats, terminology
  • Domain-Specific: Business logic, domain rules, specialized requirements
  • Quality: Standards, conventions, validation patterns
  • Integration: Cross-system patterns, API usage, external dependencies

Phase 2: Constitution Review

Objective: Verify compliance with existing standards and constitutions.

2.1 Load Current Constitutions

Read all relevant constitution and standards documents:

  • AGENTS.md - Agent architecture, behavior patterns, and operational guidelines
  • SDD files (Software Design Documents) - System design principles and requirements
  • Project-specific constitution files (.github/constitution.md, docs/constitution.md)
  • Domain-specific standards and guidelines
  • Any .copilot-instructions.md or similar instruction files

Document Discovery Strategy:

  1. Search for AGENTS.md in project root and docs folders
  2. Search for SDD files (look for patterns: *SDD.md, *design*.md, requirements.md)
  3. Search for constitution files in .github/, docs/, or root directory
  4. Check for skill-specific constitution documents in skills folders
2.2 Scan for Violations

Review actions and outputs from the session against constitutions:

  • Process violations: Not following prescribed workflows or procedures
  • Principle violations: Contradicting stated design principles or values
  • Standard violations: Deviating from established patterns or conventions
  • Requirement violations: Missing mandatory elements or constraints
  • Behavioral violations: Acting inconsistently with agent role or responsibilities
  • Communication violations: Not following documentation or reporting standards
2.3 Cross-Reference with Corrections

Compare user corrections with existing constitutions:

  • Was the constitution rule ignored or misunderstood?
  • Was the constitution unclear or ambiguous?
  • Does the constitution conflict with other guidelines?
  • Is the constitution outdated or incorrect?
  • Was the violation due to missing context or incomplete information?

Phase 3: Constitution Update

Objective: Formalize lessons learned into actionable constitutions.

Update Strategy:

  1. Identify the appropriate constitution document to update
  2. Check if a skill exists for updating that document type
  3. If a skill exists, invoke it with the update requirements
  4. If no skill exists, perform in-place updates following document conventions
3.1 Draft New Constitution Rules

For each identified gap or violation:

Structure:

## [Category]: [Specific Rule]

**Context**: [When does this apply?]

**Rule**: [What should be done?]

**Rationale**: [Why is this important?]

**Example** (if helpful):

// Bad [anti-pattern]

// Good [correct pattern]


**Related Instructions**: [Link to related rules]
3.2 Update Existing Constitutions

In-Place Update Process:

For violations of existing constitution rules:

  • Clarify ambiguous language
  • Add concrete examples relevant to the domain
  • Strengthen weak guidelines (e.g., "should" → "must")
  • Add cross-references to related rules
  • Add "Common Mistakes" or "Anti-Patterns" sections

Skill-Based Updates (if available):

  1. Check for update skills: Search for skills related to the constitution document

- openspec-constitution-guard for OpenSpec constitutions - agents-constitution-updater for AGENTS.md - Document-specific updater skills

  1. Invoke update skill: If found, call the skill with:

- The lesson learned - The violation context - Proposed update text - Rationale for the change

  1. Fallback to direct update: If no skill exists, update the file directly
3.3 Create New Constitution Entries

For lessons that don't fit existing documents, create or update appropriate constitution files:

Location Options:

  • .github/constitution.md - General project principles
  • AGENTS.md - Agent-specific behaviors and patterns
  • docs/constitution.md - Domain-specific guidelines
  • Skill-specific constitutions in skills/[skill-name]/constitution.md

Format:

# Project Constitution

This document captures project-specific principles and lessons learned.

## [Principle Name]

**Date Added**: YYYY-MM-DD
**Origin**: [What situation led to this principle?]

**Principle**: [Clear statement of the rule]

**Application**: [How to apply this in practice]

**Examples**: [Concrete examples]

Phase 4: Validation

Objective: Ensure updates are effective and non-disruptive.

4.1 Review Changes
  • Ensure new instructions don't contradict existing ones
  • Verify examples are accurate and compilable
  • Check that rationale is clear and convincing
  • Confirm changes are actionable (specific, measurable)
4.2 Test Instructions
  • Review recent code against updated instructions
  • Verify instructions would have prevented the mistake
  • Check for unintended consequences or side effects
4.3 Summarize Changes

Provide a summary:

## Retrospect Summary

### Lessons Learned
1. [Lesson 1]: [What was learned and why]
2. [Lesson 2]: [What was learned and why]

### Instructions Updated
- **File**: [filename]
  - **Section**: [section name]
  - **Change**: [what was changed]
  - **Reason**: [why it was changed]

### New Violations Detected
1. [Violation 1]: [Description and location]
2. [Violation 2]: [Description and location]

### Recommendations
- [Action item 1]
- [Action item 2]

Output Format

The retrospect process should produce:

  1. Retrospect Report (printed to console):

- Summary of lessons learned - List of instruction violations - Recommendations for improvement

  1. Updated Constitution Files:

- Modified AGENTS.md with updated agent behaviors and principles - Updated SDD files with refined design requirements - Modified constitution.md files with clarifications and new rules - Skill-specific constitution updates

  1. Action Items:

- Processes that need refinement - Behaviors that need adjustment - Documentation that needs updating - Skills that need to be created or modified

Best Practices

Constitutions

  1. Be Specific: "Validate inputs" → "All agent operations MUST validate input structure and constraints before any processing or state chang
  2. Be Specific: "Use Pydantic models" → "Use Pydantic models instead of dict[str, Any] for all API request/response bodies"
  3. Explain Why: Include rationale so the principle is understood, not just memorized
  4. Provide Examples: Show both the wrong way and the right way
  5. Make it Actionable: Instructions should be clear enough to follow without interpretation
  6. Prioritize: Use "must", "should", "prefer" to indicate priority level

Avoiding Over-Prescription

  • Don't create rules for one-off situations
  • Focus on patterns that repeat across multiple instances
  • Leave room for judgment and context-specific decisions
  • Balance between guidance and flexibility

Maintaining Consistency

  • Use consistent terminology across all instruction files
  • Cross-reference related instructions
  • Organize instructions hierarchically (general → specific)
  • Keep a single source of truth for each concept

Implementation Guidelines

When Running Retrospect

  1. Start with analysis: Don't jump to solutions
  2. Be thorough: Review entire conversation history
  3. Stay objective: Look for patterns, not just recent issues
  4. Think long-term: Will this instruction scale as the project grows?
  5. Validate changes: Test that new instructions would prevent the issue

After Retrospect

  1. Apply updates immediately: Update instruction files right away
  2. Communicate changes: Summarize what changed and why
  3. Verify effectiveness: Check if similar mistakes are prevented
  4. Iterate: Retrospect is continuous, not one-time

Example Scenarios

Scenario 1: Workflow Process Violation

User Correction: "Don't skip the validation step - always validate inputs before processing"

Analysis:

  • Violation of established workflow in AGENTS.md or SDD
  • Skipped mandatory process step

Constitution Update (AGENTS.md):

### Input Validation Protocol

**Context**: All agent operations that accept external inputs

**Rule**: Input validation MUST occur before any processing or state changes.

**Rationale**: Prevents cascading errors and ensures data integrity throughout the system.

**Process**:
1. Receive input
2. Validate structure and constraints
3. Transform to internal representation
4. Process validated data

**Anti-Pattern**: Processing data before validation

**Related**: See "Error Handling Standards" and "State Management"

Scenario 2: Agent Role Violation

User Correction: "This agent shouldn't be making decisions about deployment - that's the DevOps agent's responsibility"

Analysis:

  • Violation of agent role boundaries defined in AGENTS.md
  • Overstepping defined responsibilities

Constitution Update (AGENTS.md):

### Agent Responsibility Boundaries

**Context**: Multi-agent system with defined roles

**Rule**: Each agent MUST operate only within its defined domain. Cross-domain decisions require delegation to the appropriate agent.

**[AgentName] Responsibilities**:
- [Primary responsibility 1]
- [Primary responsibility 2]

**NOT Responsible For**:
- Deployment decisions → DevOps Agent
- Security policies → Security Agent
- Resource allocation → Resource Manager Agent

**Delegation Protocol**: When encountering a task outside your domain:
1. Identify the appropriate agent
2. Format the delegation request
3. Hand off with full context
4. Wait for response or acknowledgment

**Rationale**: Maintains clear separation of concerns and prevents conflicting decisions.

References

  • Agent architecture: AGENTS.md
  • System design: SDD files in spec/ or docs/
  • Constitution documents: .github/constitution.md, docs/constitution.md
  • Update skills: skills/openspec-constitution-guard/, skills/*/constitution.md
  • Workflow documentation: Project-specific process documents

Continuous Improvement

This skill itself should evolve:

  • Add new analysis patterns as they emerge
  • Refine the instruction update format
  • Improve violation detection accuracy
  • Enhance the categorization of lessons

The meta-goal is to make AI-assisted development increasingly accurate and aligned with project standards over time.

平台分布

Codex

35.72%
按下载量换算38

Claude

27.45%
按下载量换算29

Cursor

18.24%
按下载量换算20

Gemini CLI

8.65%
按下载量换算9

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills