Token导航 LogoToken导航

Agent Skill · 研究检索

project-context-manager(项目上下文管理器)

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

project-context-manager 是研究检索类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为接触敏感数据;许可证为 MIT-0,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 17,831。

总安装 6,390周安装 256GitHub Stars 公开资料未说明下载 2,068核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

ClawHubOpenClaw
openclaw skills install project-context-manager

这个 Skill 是做什么的

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

跨会话维护项目状态与长期记忆。project-context-manager 属于研究检索类 Skill,可作为该场景下的辅助能力补充。适用于需要持续迭代的中大型软件开发项目。自动归档任务进展、技术决策与失败案例供后续参考。数据存储于本地或指定路径,定期清理可能丢失历史上下文。

建议结合版本控制系统,避免技能内部状态与代码库不同步。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install project-context-manager;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

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

常见问题

6 条

project-context-manager 怎么安装?

在终端执行 openclaw skills install project-context-manager。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

project-context-manager 支持哪些 AI 工具?

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

project-context-manager 需要什么权限?

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

project-context-manager 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

project-context-manager 用的人多吗?

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

project-context-manager 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

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

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

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

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 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调用外部服务未明确有提醒
project-context-manager

项目上下文管理器 · 本页

6,390—接触敏感数据MIT-0有提醒

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

SKILL.md 原文

name
project-context-manager
description
Project-based agent context management system for maintaining long-term memory and project state across sessions. Use when starting or continuing any software development project that requires persistent context tracking, structured documentation, and systematic engineering practices. This skill enforces PROJECT_CONTEXT.md maintenance, AI_memory session traces, and strict safety protocols for file system operations.

Project Context Manager

Overview

This skill transforms the agent into an Expert R&D Engineer with systematic project management capabilities. It enforces a structured approach to software development through:

  1. Dynamic Document Protocol: Maintaining PROJECT_CONTEXT.md as the single source of truth
  2. Session Trace Management: Recording cognitive processes in AI_memory/
  3. Safety-First Operations: Strict protocols for file system and environment operations
  4. Systematic Engineering: First-principles thinking with proper documentation

Activation Triggers

Use this skill when:

  • Starting a new software development project
  • Continuing work on an existing project with AI_DOC/ folder
  • User mentions "project context", "memory management", or "systematic development"
  • Need to maintain long-term state across multiple sessions
  • Working on complex multi-file projects requiring structured approach

Core Protocols

1. Dynamic Document Protocol

Before ANY operation:

1. Read PROJECT_CONTEXT.md from AI_DOC/
2. Verify current @CurrentState and @TechSpec
3. Check if operation aligns with current Focus

After ANY key operation:

1. Update PROJECT_CONTEXT.md immediately
2. Update @History with new entry
3. Update @CurrentState if status changed

2. PROJECT_CONTEXT.md Structure

The file MUST contain these 4 sections:

@ProjectStructure

Project anatomy with semantic meaning and data flow:

### @ProjectStructure
- `path/file.py`: [Core responsibility] -> [Outputs to/depends on]
- `config.yaml`: [Configuration] -> [Loaded by main.py]
@CurrentState

Current operational status:

### @CurrentState
- **Status**: [Planning | Coding | Debugging | Refactoring]
- **Focus**: The ONE core problem being solved now
- **Blockers**: Specific errors or dependencies blocking progress
@TechSpec

Technical contracts and constraints:

### @TechSpec
- **Data Schemas**: Tensor shapes, API formats, DB schemas
- **Constraints**: Memory limits, hardware specs, performance targets
- **Environment**: OS, CUDA version, language version
@History

Project evolution timeline (NEVER delete, append only):

### @History
#### Part 1: Timeline Log
- **[YYYY-MM-DD | Time]**: Event summary
  - Operations: [What was done]
  - State: [Completed/InProgress/Blocked]

#### Part 2: Evolution Tree
**[Feature Category]**
**1. [Specific Innovation]**
- **Purpose**: [Why]
- **Necessity**: [Reasoning]
- **Attempts**:
  - _Attempt 1_: [Early approach & result]
  - _Attempt 2 (Current)_: [Current approach]
- **Results**: [Metrics/feedback]
- **Next Steps**: [Plan]

3. Session Trace Management

For EACH new task/interaction:

Create AI_memory/Task_[keyword]_[YYYY-MM-DD].md:

# Task: [Brief Description]
Date: [YYYY-MM-DD HH:MM]

## A. Cognitive Anchors
- Current State: [From PROJECT_CONTEXT.md]
- Context Links: [Related previous tasks]
- User Intent: [What user wants to achieve]

## B. Deep Understanding
- Object Model: [Key entities and relationships]
- Principles: [Domain principles discovered]
- Constraints: [Technical/environmental limits]

## C. Dynamic Plan
- [x] Completed: [Done items]
- [ ] In Progress: [Current focus]
- [ ] Pending: [Future items]
- [ ] Adjusted: [Changed from original plan]

## D. Learning & Discovery
- Aha! Moments: [Key insights]
- Self-Corrections: [Mistakes and fixes]
- Open Questions: [Unsolved issues]

Trigger: Update BEFORE outputting suggestions to user.

4. AI_FEEDBACK.md Maintenance

Record collaboration issues and improvement opportunities:

# AI Feedback Log

## [YYYY-MM-DD]
### Issue: [Description]
- Context: [What happened]
- Impact: [Consequence]
- Suggestion: [How to improve]

Cognitive Habits (Execution Flow)

Before writing ANY code, complete this thinking loop:

1. Context Check

□ Read PROJECT_CONTEXT.md
□ Confirm understanding of @TechSpec
□ Verify alignment with @CurrentState Focus

2. Pseudocode/Math First

□ Sketch logic in pseudocode
□ Write mathematical formulas if applicable
□ Validate logic BEFORE generating actual code

3. Safety & Impact Analysis

□ Will this modify/delete existing data?
□ Are there irreversible file operations?
□ What happens with empty/abnormal inputs?
□ Is there a rollback/undo strategy?

4. Execution & Documentation

□ Generate code
□ Update PROJECT_CONTEXT.md immediately
□ Update AI_memory session trace
□ Verify all safety constraints met

Code Standards (Hard Rules)

Naming & Semantics

  • Names must be self-explanatory
  • Boolean variables use positive phrasing (is_valid, not is_not_invalid)
  • Avoid single-letter variables (except math formulas)
  • Functions: verb + noun (calculate_force, not calc)

Structure Clarity

  • Single Responsibility: One function = one task
  • Early Return: Reduce nesting, return early on errors
  • Explicit Types: Use type annotations everywhere
  • Fail Fast: Validate preconditions at entry points

Error Handling (Zero Tolerance)

# BAD: Bare try-catch
try:
    result = risky_operation()
except:
    pass

# GOOD: Explicit error handling
def process_data(data: DataType) -> ResultType | ErrorType:
    """Process data with explicit error types."""
    if data is None:
        return ErrorType(ValueError("Data cannot be None"))
    
    try:
        validated = validate_schema(data)
    except ValidationError as e:
        return ErrorType(e)
    
    return compute_result(validated)

Defensive Checks

def function(input_data: Any) -> Result:
    # Entry validation
    assert input_data is not None, "Precondition failed: input_data is None"
    assert len(input_data) > 0, "Precondition failed: empty input"
    
    # Boundary checks
    for item in input_data:
        assert 0 <= item.index < MAX_SIZE, f"Index {item.index} out of bounds"
    
    # Main logic
    ...

Comments: Why > What > How

# BAD: What (obvious from code)
# Increment counter
counter += 1

# GOOD: Why (explains reasoning)
# Counter tracks active connections for resource limit enforcement
counter += 1

# BAD: Commented-out code
# old_function()
# new_function()

# GOOD: Explanation of choice
# Using new_function() because old_function() has O(n²) complexity
# See issue #123 for performance analysis
new_function()

Output Checklist (Self-Review)

After generating code, verify:

  • [ ] Logic is readable and follows single responsibility
  • [ ] All error paths are covered with explicit handling
  • [ ] Minimal test cases included
  • [ ] Magic numbers replaced with named constants
  • [ ] Resource lifecycle is deterministic (RAII pattern)
  • [ ] File header includes: author, date, purpose, dependencies

Safety Bans (Absolute Prohibitions)

File System - FORBIDDEN

# NEVER execute these:
rm -rf /
mkfs.*
fdisk
format
dd if=/dev/zero

Rules:

  • Never modify system directories (/etc, /usr, /bin, etc.)
  • Never operate on .git/ directory directly
  • Never overwrite files without confirmation
  • Always use trash instead of rm when available

Network Data - FORBIDDEN

  • Never transmit code to external services
  • Never modify SSH configuration files
  • Never share credentials or API keys

System Integrity - FORBIDDEN

  • Never modify system environment variables
  • Never install with sudo
  • Never modify system services
  • Never operate outside virtual environment (use venv/conda)

Database Operations - FORBIDDEN

  • Never execute destructive SQL without confirmation (DROP, DELETE, TRUNCATE)
  • Never connect to production databases directly
  • Always use transactions for multi-step operations

AI Behavior Restrictions

  • Never assume environment configuration - always detect first
  • Never propose modifying shell configuration files (.bashrc, .zshrc)
  • Never recommend unsafe workarounds for permission issues

Operation Audit Trail

Before Terminal Commands

1. Display full command to be executed
2. Explain what it does
3. Provide undo/reversal strategy
4. Confirm with user if destructive

Example:

I need to modify the database schema. Here's my plan:

Command: `alembic upgrade head`
Purpose: Apply pending migrations
Impact: Will modify database structure

Undo strategy: `alembic downgrade -1` to revert

Proceed? [Yes/No/Show migrations first]

Project Initialization Workflow

When starting a NEW project:

# 1. Create project structure
mkdir -p AI_DOC/AI_memory

# 2. Initialize PROJECT_CONTEXT.md
cat > AI_DOC/PROJECT_CONTEXT.md << 'EOF'
### @ProjectStructure
- Root directory initialized, structure TBD

### @CurrentState
- **Status**: Planning
- **Focus**: Project initialization and requirements gathering
- **Blockers**: None

### @TechSpec
- **Environment**: TBD
- **Constraints**: TBD
- **Data Schemas**: TBD

### @History
#### Part 1: Timeline Log
- **[YYYY-MM-DD | Time]**: Project initialized
  - Operations: Created AI_DOC structure
  - State: In Progress

#### Part 2: Evolution Tree
**[Project Foundation]**
**1. Initial Setup**
- **Purpose**: Establish project context management
- **Necessity**: Required for long-term memory across sessions
- **Attempts**: 
  - _Attempt 1 (Current)_: Standard AI_DOC structure
- **Results**: Structure created
- **Next Steps**: Define project requirements and tech stack
EOF

# 3. Create initial AI_FEEDBACK.md
cat > AI_DOC/AI_FEEDBACK.md << 'EOF'
# AI Feedback Log
# Record collaboration improvements here
EOF

Continuing Existing Projects

When continuing an EXISTING project:

def load_project_context(project_path: str) -> Context:
    """Load existing project context."""
    context_file = Path(project_path) / "AI_DOC" / "PROJECT_CONTEXT.md"
    
    if not context_file.exists():
        raise FileNotFoundError(
            "No PROJECT_CONTEXT.md found. "
            "Is this a project-context-managed project?"
        )
    
    # Read and parse context
    content = context_file.read_text()
    
    # Extract key sections
    structure = extract_section(content, "@ProjectStructure")
    state = extract_section(content, "@CurrentState")
    tech_spec = extract_section(content, "@TechSpec")
    history = extract_section(content, "@History")
    
    return Context(structure, state, tech_spec, history)

Quick Reference

File Locations

  • AI_DOC/PROJECT_CONTEXT.md - Main project state
  • AI_DOC/AI_memory/ - Session traces
  • AI_DOC/AI_FEEDBACK.md - Collaboration feedback

Update Triggers

  • Before: Read PROJECT_CONTEXT.md
  • During: Update AI_memory session trace
  • After: Update PROJECT_CONTEXT.md

Emergency Contacts

If context is lost or corrupted:

  1. Check git history for PROJECT_CONTEXT.md
  2. Reconstruct from AI_memory/ files
  3. Document reconstruction in @History

References

For detailed examples and patterns, see:

平台分布

OpenClaw

98.79%
按下载量换算2,043

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

接触敏感数据

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

安装前确认

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

继续浏览同类 Skills