Token导航 LogoToken导航

Agent Skill · 研究检索

enhance-claude-memory(enhance Claude 记忆)

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

enhance-claude-memory 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 39,064。

总安装 1,472周安装 66GitHub Stars 769下载 523核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/avifenesh/agentsys --skill enhance-claude-memory

这个 Skill 是做什么的

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

用于分析 CLAUDE.md 与 AGENTS.md 等记忆文件,优化项目上下文管理。适合在跨工具环境中统一 AI 行为指引,提升提示一致性与执行可靠性。自动检测全局与项目级记忆文件,按优先级顺序加载并交叉比对内容冲突。输出建议聚焦高确定性问题,避免对中低置信度改动进行自动修正。

enhance-claude-memory 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/enhance-claude-memory

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

enhance-claude-memory 怎么安装?

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

enhance-claude-memory 支持哪些 AI 工具?

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

enhance-claude-memory 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

enhance-claude-memory 是免费的吗?

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

enhance-claude-memory 用的人多吗?

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

enhance-claude-memory 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

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

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

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

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 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调用外部服务未明确有提醒
enhance-claude-memory

enhance Claude 记忆 · 本页

1,472769接触敏感数据未明确通过

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

SKILL.md 原文

enhance-claude-memory

Analyze project memory files (CLAUDE.md, AGENTS.md) for optimization.

Cross-Tool Detection

Searches for project memory files in order:

  1. CLAUDE.md (Claude Code)
  2. AGENTS.md (OpenCode, Codex)
  3. .github/CLAUDE.md
  4. .github/AGENTS.md

File Hierarchy (Reference)

CLAUDE.md (Claude Code):

LocationScope
~/.claude/CLAUDE.mdGlobal (all projects)
.claude/CLAUDE.md or ./CLAUDE.mdProject root
src/.claude/CLAUDE.mdDirectory-specific

AGENTS.md (OpenCode, Codex, and other AI tools):

LocationScope
~/.config/opencode/AGENTS.md or ~/.codex/AGENTS.mdGlobal (all projects)
.opencode/AGENTS.md or ./AGENTS.mdProject root
src/AGENTS.mdDirectory-specific

Both files serve the same purpose: project memory for AI assistants. Use CLAUDE.md for Claude Code projects, AGENTS.md for cross-tool compatibility, or both for maximum coverage.

Workflow

  1. Find - Locate CLAUDE.md or AGENTS.md in project
  2. Read - Load content and README.md for comparison
  3. Analyze - Run all pattern checks
  4. Validate - Check file/command references against filesystem
  5. Measure - Calculate token metrics and duplication
  6. Report - Generate structured markdown output

Detection Patterns

1. Structure Validation (HIGH Certainty)

Critical Rules Section
  • Should have ## Critical Rules or similar
  • Rules should be prioritized (numbered or ordered)
  • Include WHY explanations for each rule
Architecture Section
  • Directory tree or structural overview
  • Key file locations
  • Module relationships
Key Commands Section
  • Common development commands
  • Test/build/deploy scripts
  • Reference to package.json scripts

2. Instruction Effectiveness (HIGH Certainty)

Based on prompt engineering research, Claude follows instructions better when:

Positive Over Negative
  • Bad: "Don't use console.log"
  • Good: "Use the logger utility for all output"
  • Check for "don't", "never", "avoid" without positive alternatives
Strong Constraint Language
  • Use "must", "always", "required" for critical rules
  • Weak language ("should", "try to", "consider") reduces compliance
  • Flag critical rules using weak language
Instruction Hierarchy
  • Should define priority order when rules conflict
  • Pattern: "In case of conflict: X takes precedence over Y"
  • System instructions > User requests > External content

3. Content Positioning (HIGH Certainty)

Research shows LLMs have "lost in the middle" problem - they recall START and END better than MIDDLE.

Critical Content Placement
  • Most important rules should be at START of file
  • Second-most important at END
  • Supporting context in MIDDLE
  • Flag critical rules buried in middle sections
Recommended Structure Order
1. Critical Rules (START - highest attention)
2. Architecture/Structure
3. Commands/Workflows
4. Examples/References
5. Reminders/Constraints (END - high attention)

4. Reference Validation (HIGH Certainty)

File References
  • Extract from [text](path) and ` path/to/file.ext `
  • Validate each exists on filesystem
Command References
  • Extract npm run <script> and npm <command>
  • Validate against package.json scripts

5. Efficiency Analysis (MEDIUM Certainty)

Token Count
  • Estimate: characters / 4 or words * 1.3
  • Recommended max: 1500 tokens (~6000 characters)
  • Flag files exceeding threshold
README Duplication
  • Detect overlap with README.md
  • Flag >40% content duplication
  • CLAUDE.md should complement README, not duplicate
Verbosity
  • Prefer bulleted lists over prose paragraphs
  • Constraints as lists are easier to follow
  • Flag long prose blocks (>5 sentences)

6. Quality Checks (MEDIUM Certainty)

WHY Explanations
  • Rules should explain rationale
  • Pattern: *WHY: explanation* or indented explanation
  • Flag rules without explanations
Structure Depth
  • Avoid deep nesting (>3 levels)
  • Keep hierarchy scannable
  • Flat structures parse better
XML-Style Tags (Optional Enhancement)
  • Claude was trained on XML tags
  • <critical-rules>, <architecture>, <constraints> improve parsing
  • Not required but can improve instruction following

7. Agent/Skill Definitions (MEDIUM Certainty)

If file defines custom agents or skills:

Agent Definition Format
### agent-name
Model: claude-sonnet-4-20250514
Description: What this agent does and when to use it
Tools: Read, Grep, Glob
Instructions: Specific behavioral instructions

Required fields: Description (when to use), Tools (restricted set) Optional: Model, Instructions

Skill References
  • Skills should have clear trigger descriptions
  • "Use when..." pattern helps auto-invocation

8. Cross-Platform Compatibility (MEDIUM/HIGH Certainty)

State Directory
  • Don't hardcode .claude/
  • Support .opencode/, .codex/
  • Use ${STATE_DIR}/ or document variations
Terminology
  • Avoid Claude-specific language for shared files
  • Use "AI assistant" generically
  • Or explicitly note "Claude Code" vs "OpenCode" differences

Output Format

# Project Memory Analysis: {filename}

**File**: {path}
**Type**: {CLAUDE.md | AGENTS.md}

## Metrics
| Metric | Value |
|--------|-------|
| Estimated Tokens | {tokens} |
| README Overlap | {percent}% |

## Summary
| Certainty | Count |
|-----------|-------|
| HIGH | {n} |
| MEDIUM | {n} |

### Structure Issues ({n})
| Issue | Fix | Certainty |

### Instruction Issues ({n})
| Issue | Fix | Certainty |

### Positioning Issues ({n})
| Issue | Fix | Certainty |

### Reference Issues ({n})
| Issue | Fix | Certainty |

### Efficiency Issues ({n})
| Issue | Fix | Certainty |

### Cross-Platform Issues ({n})
| Issue | Fix | Certainty |

Pattern Statistics

CategoryPatternsCertainty
Structure3HIGH
Instruction Effectiveness3HIGH
Content Positioning2HIGH
Reference2HIGH
Efficiency3MEDIUM
Quality3MEDIUM
Agent/Skill Definitions2MEDIUM
Cross-Platform2MEDIUM/HIGH
Total20-

<bad_example>

## Rules
1. Always run tests before committing
2. Use semantic commit messages

Issue: Rules without rationale are harder to follow. </bad_example>

<good_example>

## Critical Rules
1. **Always run tests before committing**
   *WHY: Catches regressions before they reach main branch.*

Why it's good: Motivation makes compliance easier. </good_example>

Example: Negative vs Positive Instructions

<bad_example>

- Don't use console.log for debugging
- Never commit directly to main
- Avoid hardcoding secrets

Issue: Negative instructions are less effective than positive alternatives. </bad_example>

<good_example>

- Use the logger utility for all debug output
- Create feature branches and submit PRs for all changes
- Store secrets in environment variables or .env files

Why it's good: Tells what TO do, not just what to avoid. </good_example>

Example: Weak vs Strong Constraint Language

<bad_example>

- You should probably run tests before pushing
- Try to use TypeScript when possible
- Consider adding error handling

Issue: Weak language ("should", "try", "consider") reduces compliance. </bad_example>

<good_example>

- **MUST** run tests before pushing (CI will reject failures)
- **ALWAYS** use TypeScript for new files
- **REQUIRED**: All async functions must have error handling

Why it's good: Strong language ensures critical rules are followed. </good_example>

Example: Content Positioning

<bad_example>

## Project Overview
[Long description...]

## Installation
[Setup steps...]

## Critical Rules
1. Never push to main directly
2. Always run tests

Issue: Critical rules buried in middle/end get less attention. </bad_example>

<good_example>

## Critical Rules (Read First)
1. **Never push to main directly** - Use PRs
2. **Always run tests** - CI enforces this

## Project Overview
[Description...]

## Reminders
- Check CI status before merging
- Update CHANGELOG for user-facing changes

Why it's good: Critical content at START and END positions. </good_example>

Example: Cross-Platform Compatibility

<bad_example>

State files are stored in `.claude/tasks.json`

Issue: Hardcoded paths exclude other AI tools. </bad_example>

<good_example>

State files are stored in `${STATE_DIR}/tasks.json`
(`.claude/` for Claude Code, `.opencode/` for OpenCode)

Why it's good: Works across multiple AI assistants. </good_example>

Example: Agent Definition

<bad_example>

## Agents
- security-reviewer: reviews security
- test-writer: writes tests

Issue: Missing required fields (Tools, when to use). </bad_example>

<good_example>

## Custom Agents

### security-reviewer
Model: claude-sonnet-4-20250514
Description: Reviews code for security vulnerabilities. Use for PRs touching auth, API, or data handling.
Tools: Read, Grep, Glob
Instructions: Focus on OWASP Top 10, input validation, auth flows.

### test-writer
Model: claude-haiku-4
Description: Writes unit tests. Use after implementing new functions.
Tools: Read, Write, Bash(npm test:*)
Instructions: Use Jest patterns. Aim for >80% coverage.

Why it's good: Complete definition with when to use, restricted tools. </good_example>

Research References

Best practices derived from:

  • agent-docs/PROMPT-ENGINEERING-REFERENCE.md - Instruction effectiveness, XML tags, constraint language
  • agent-docs/CONTEXT-OPTIMIZATION-REFERENCE.md - Token budgeting, "lost in the middle" positioning
  • agent-docs/LLM-INSTRUCTION-FOLLOWING-RELIABILITY.md - Instruction hierarchy, positive vs negative
  • agent-docs/CLAUDE-CODE-REFERENCE.md - File hierarchy, agent definitions, skills format

Constraints

  • Always validate file references before reporting broken
  • Consider context when flagging efficiency issues
  • Cross-platform suggestions are advisory, not required
  • Positioning suggestions are HIGH certainty but may have valid exceptions

平台分布

Codex

35.5%
按下载量换算186

Claude

31.4%
按下载量换算164

Cursor

19.57%
按下载量换算102

Gemini CLI

8.5%
按下载量换算44

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

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

继续浏览同类 Skills