← 返回 Skills 市场
truenorth-lj

Adaptive Agent: Build User Profile

作者 LJ Li · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
77
总下载
1
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install adaptive-agent-build-user-profile
功能描述
Build or update the user profile memory by observing workspace context, git history, and conversation patterns. Run on first interaction or when profile feel...
使用说明 (SKILL.md)

Build User Profile

Actively build and maintain a user profile in the agent's memory system.

When to Run

  • First session in a new workspace — bootstrap the profile from observable context
  • Profile feels stale — interests, focus areas, or tech stack have shifted
  • User explicitly asks to update their profile
  • After major project changes — new repo added, tech stack shift, role change

Step 1: Gather Observable Context

Collect signals from the workspace without asking the user. Run these in parallel:

1a. Git identity and activity

git log --all --format='%an \x3C%ae>' | sort -u
git log --oneline -50 --all
git log --since='30 days ago' --oneline --all | head -20

1b. Project structure

ls -d */ 2>/dev/null
cat *.yaml *.yml 2>/dev/null | head -50

1c. Tech stack signals

Look for package.json, requirements.txt, go.mod, Cargo.toml, pyproject.toml, or similar. Read framework choices.

1d. Existing memory and feedback patterns

Check for memory files or CLAUDE.md that reveal preferences.

1e. Content signals

Check for blog posts, research docs, or README content that reveals interests.

Step 2: Read Existing Profile

Read the current user profile memory file if it exists. Note what's already captured and what might be outdated.

Step 3: Synthesize Profile

Build or update the profile with these sections:

---
name: {User} User Profile
description: {one-line} — used to tailor collaboration approach
type: user
---

## Role & Focus
- What they do, what projects they're working on

## Technical Strengths
- Languages, frameworks, tools they're strong in
- Areas they're learning or new to

## Work Style
- Autonomy level (do they want to be asked, or just do it?)
- Pace (ship fast vs deliberate?)
- Research habits (deep-dive vs pragmatic?)

## Communication Preferences
- Language preferences
- Verbosity (concise vs detailed?)
- Format preferences (tables, bullet points, prose?)

## Current Interests
- What they're researching or exploring right now
- Include date for staleness detection, e.g. (2026-04)

Step 4: Validate with User

Present the profile summary to the user:

Here's what I've built from your workspace context. Anything wrong or missing?

Incorporate their feedback immediately.

Step 5: Write and Index

  1. Write/update the user profile memory file
  2. Ensure the memory index has a pointer to it
  3. If this is a brand new profile, inform the user:

Profile created. Every new session in this workspace will now start knowing who you are.

Key Rules

  • Observe first, ask second — gather as much as possible from context before asking questions
  • No judgments — profile is for tailoring collaboration, not evaluating the user
  • Date current interests — so future sessions can detect staleness
  • Keep it under 2KB — this gets loaded every session; don't bloat it
  • Iterate, don't rewrite — on updates, patch specific sections rather than regenerating the whole thing
安全使用建议
This skill will proactively crawl your workspace (including git history) and create/update a persistent profile file without asking each time. Before installing, consider: 1) Do you want an agent to scan all repos and files automatically? It will likely collect commit emails and content from any YAML/README/manifest files it can read. 2) Limit the scan scope: restrict directories, remove the '--all' git flags, or add exclude patterns so personal or sensitive files aren't read. 3) Require explicit confirmation before scanning or before writing the profile. 4) Verify where the profile will be written, who/what can read it, and how long it is retained; ensure it won't be indexed or sent externally. 5) Test the skill in a disposable workspace first. If you want safer defaults, ask the author to remove unbounded commands (git --all, cat *.yaml) and to add explicit prompts and filters for sensitive data.
功能分析
Type: OpenClaw Skill Name: adaptive-agent-build-user-profile Version: 1.0.0 The skill is designed to personalize the agent's interaction by analyzing the local workspace, git history, and project configuration files to create a user profile. It uses standard bash commands in SKILL.md to identify contributors and tech stacks, stores the information locally, and explicitly includes a step to validate the findings with the user, showing no signs of malicious intent or data exfiltration.
能力评估
Purpose & Capability
The actions (reading repo files, git history, READ/WRITE access to memory) are generally consistent with 'build user profile'. However some requested reads (git --all showing commit authors/emails, grepping many config files) collect data beyond a single user's explicit identity (other contributors' emails, potentially sensitive files). These reads may be reasonable for profiling but are broader than a minimal implementation.
Instruction Scope
The SKILL.md instructs the agent to 'Collect signals from the workspace without asking the user' and runs wide scans (git --all, cat *.yaml/yml, search for many manifests). This is proactive, broad data collection without per-run consent and lacks clear scope limits (no directory whitelist, no exclude patterns, no sensitivity filters). It also directs writing/updating a memory file and index pointer without specifying storage location or retention policy.
Install Mechanism
No install spec and no code files — instruction-only — so nothing is downloaded or written at install time. This minimizes installation risk.
Credentials
The skill requests no environment variables, credentials, or config paths. There are no disproportionate external credential requests.
Persistence & Privilege
always is false (not force-included). The skill explicitly instructs writing and indexing a user-profile memory file. That behavior is expected for this purpose but the SKILL.md does not explain where the profile is stored, who can read it, or retention — the user should confirm storage location, access controls, and deletion policy.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install adaptive-agent-build-user-profile
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /adaptive-agent-build-user-profile 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of the adaptive-agent-build-user-profile skill. - Actively builds and updates a user profile by observing workspace context, git history, and conversation patterns. - Runs on first interaction, by request, or when the profile may be outdated. - Focuses on gathering information from context before asking the user. - Profiles include role, technical strengths, work style, communication preferences, and current interests. - Updates are concise (<2KB) and dated for easy staleness detection.
元数据
Slug adaptive-agent-build-user-profile
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Adaptive Agent: Build User Profile 是什么?

Build or update the user profile memory by observing workspace context, git history, and conversation patterns. Run on first interaction or when profile feel... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 77 次。

如何安装 Adaptive Agent: Build User Profile?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install adaptive-agent-build-user-profile」即可一键安装,无需额外配置。

Adaptive Agent: Build User Profile 是免费的吗?

是的,Adaptive Agent: Build User Profile 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Adaptive Agent: Build User Profile 支持哪些平台?

Adaptive Agent: Build User Profile 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Adaptive Agent: Build User Profile?

由 LJ Li(@truenorth-lj)开发并维护,当前版本 v1.0.0。

💬 留言讨论