Token导航 LogoToken导航TokenDH.com
研究检索执行命令clawhub未标认证来源可访问clear审计提醒

workspace-temp工作区温度

Agent Skill

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

总安装

8,808

周安装

367

GitHub Stars

1

下载量

2,936
OpenClaw

安装说明

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

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:workspace-temp(工作区温度)
来源仓库:https://github.com/lichenyang-zk/workspace-temp
安装命令:
openclaw skills install workspace-temp
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

ClawHubOpenClaw
openclaw skills install workspace-temp

简介

管理工作区临时文件,保持根目录整洁。workspace-temp 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

  • 自动检测openc工作空间并迁移非必需文件。
  • 通过clawhub安装,需确认temp目录可用性。
  • 使用前应核实是否会覆盖或删除已有临时内容。
  • 建议查看原始文档了解清理策略和恢复机制。

SKILL.md

name
workspace_temp
description
Manage temporary files in workspace temp directory. All non-essential files must go to temp/, keeping workspace root clean. Auto-detects workspace from openclaw.json config.
metadata
Note: This skill requires access to ~/.openclaw/openclaw.json (to read agents.defaults.workspace) and the sessions_list tool (to get current session ID). It is NOT enabled by default (always: false). Users must explicitly enable it in their config.

Workspace Temp Skill

Purpose

Ensure all temporary/cached files go to <workspace>/temp/<session_id>/, never pollute the workspace root.

Required Permissions

This skill requires the following access:

ResourcePurposeJustification
~/.openclaw/openclaw.jsonRead agents.defaults.workspace configurationRequired to determine the workspace path where temp/ directory will be created. Read-only access to single config file.
sessions_list toolGet current session IDRequired to create isolated temp directories per session (prevents file conflicts between concurrent sessions).
External file systemRead user-specified filesRequired when user asks to process files from outside the workspace. Files are only read and copied to temp directory.

Note: The sessions_list tool and external file access are runtime capabilities documented here for transparency.

Security & Privacy

Skill Safety Guarantees

This skill operates under strict safety constraints:

  • No Code Execution: Does not execute arbitrary code, shell commands, or external programs
  • Isolated Write Scope: All write operations restricted to <workspace>/temp/<session_id>/ only
  • Read-Only External Access: External files are only read and copied, never modified in place
  • Temporary Only: Files are designed to be deleted; no permanent storage outside workspace

User Privacy & Security Notes

⚠️ Sensitive Data: Files processed through this skill may temporarily contain sensitive data in the temp directory. Avoid processing files with passwords, keys, or secrets.

⚠️ Behavioral Guarantee: The promise not to modify pre-existing workspace files is a best-effort guarantee, not technical enforcement. The instruction guides the agent but cannot prevent all edge cases.

How It Works

  1. Read ~/.openclaw/openclaw.json to get agents.defaults.workspace
  2. Get current session unique ID via sessions_list
  3. Use <workspace>/temp/<session_id>/ as the temp directory
  4. Auto-create the directory if it doesn't exist

File Classification Rules

🔒 Original Files (Existing Before Skill Installation)

Definition: All files and directories in the workspace root at the time this skill is installed.

These files remain unchanged:

  • AGENTS.md, SOUL.md, USER.md, TOOLS.md
  • MEMORY.md, HEARTBEAT.md, IDENTITY.md
  • memory/ directory and its contents
  • .git/ directory
  • Any files existing before installation

Additional Note: Files manually added to the workspace root by the user after installation will also not be modified or deleted by this skill. However, users are encouraged to follow the principle: "Non-temporary files go in the root directory, temporary files go in temp/."

🗑️ Temporary Files (Must Go to temp/)

Definition: Files read from or downloaded from outside the workspace.

These files must go to temp/:

  • Files read from user-specified external locations
  • Downloaded files
  • Intermediate files during conversion/processing

Not Temporary Files:

  • Files generated by OpenClaw itself (e.g., session logs, internal caches)
  • Files explicitly requested by the user to be saved to the workspace

Dynamic Temp Directory Resolution

1. Read ~/.openclaw/openclaw.json
2. Extract agents.defaults.workspace
3. Get current session ID via sessions_list
4. Temp dir = <workspace>/temp/<session_id>/

Example:

  • If workspace is E:/OpenClaw/workspace
  • If session ID is abc123
  • Then temp dir is E:/OpenClaw/workspace/temp/abc123/

Procedures

Step 1: Get Temp Directory

Always determine temp dir dynamically:

// Pseudocode
const config = readFile('~/.openclaw/openclaw.json');
const workspace = config.agents.defaults.workspace;

// Get current session ID via sessions_list tool
const sessions = sessions_list();
const currentSession = sessions.find(s => s.key.includes('main'));
const sessionId = currentSession ? currentSession.sessionId : generateFallbackId();

const tempDir = path.join(workspace, 'temp', sessionId);

// Error handling: ensure directory creation succeeds
try {
  ensureDirExists(tempDir);
} catch (error) {
  throw new Error(`Failed to create temp directory: ${tempDir}. Reason: ${error.message}. Please check permissions or disk space.`);
}

Error Handling Principles:

  • If temp/ or <session_id>/ directory cannot be created (e.g., insufficient permissions, disk full), a clear error message must be provided
  • Never fall back to writing files to the workspace root directory
  • Operation terminates; retry after user resolves the issue

Step 2: Handle External Files

  1. Copy files to <workspace>/temp/<session_id>/
  2. Read/process from temp
  3. Optionally clean up after processing

Step 3: Handle Downloads

  1. Download directly to <workspace>/temp/<session_id>/
  2. Optionally clean up after processing

Step 4: Handle Generated Files

  1. Write to <workspace>/temp/<session_id>/
  2. Delete after use

Examples

User says: "Read the report.txt from my desktop"

  • ❌ Wrong: Read desktop path directly
  • ✅ Correct:

1. Read ~/.openclaw/openclaw.json to get workspace 2. Copy to <workspace>/temp/<session_id>/report.txt 3. Read content from temp

User says: "Download this image"

  • ❌ Wrong: Download to workspace root
  • ✅ Correct: Download to <workspace>/temp/<session_id>/image.jpg

User says: "Convert this PDF"

  • ❌ Wrong: Generate intermediate files in root directory
  • ✅ Correct: Generate in <workspace>/temp/<session_id>/, clean up after conversion

Cleanup Policy

When the user explicitly requests cleanup assistance (e.g., "Check my temp directory", "Clean up temp files"), evaluate the following conditions and offer appropriate actions:

Cleanup Triggers & Actions

TriggerConditionActionUser Options
Large DirectoryTemp directory > 500MBAlert: "Your temp directory is using X GB. Clean up?""Clean up" (delete) / "Keep" / "I'll do it myself" (provide path)
Old FilesFiles older than 7 daysAlert: "Found X files older than 7 days. Clean up?"Same as above
Session ResidualsCurrent session temp not emptyAlert: "This session created X temporary files. Keep or clean up?"Same as above
Status CheckUser asks for temp statusReport: size, file count, oldest files, then offer cleanupSame as above

Cleanup Scope

  • Skill-Initiated: Intermediate files should be deleted immediately after use
  • Session-End: Current session's <session_id>/ directory should be cleaned when session ends
  • Manual: Users can clear any subdirectory under temp/ at any time
  • Safety: temp/ only contains temporary files; cleanup never affects original workspace files

Important: Do NOT proactively interrupt users with cleanup reminders. Only check and offer cleanup when explicitly requested.

Notes

  • Temp directory follows workspace configuration and adapts automatically
  • If workspace changes, temp directory follows automatically
  • Always use absolute paths to avoid ambiguity
  • Never touch original files existing before installation
  • This skill is NOT enabled by default - users must explicitly enable it in ~/.openclaw/openclaw.json

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

能力 5

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

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

平台分布

OpenClaw

78.79%
按下载量换算2,313

安全审计

VirusTotal

可疑

ClawScan

通过

Static analysis

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 openclaw skills install workspace-temp 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

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

来源信息

继续浏览同类 Skills