Token导航 LogoToken导航TokenDH.com
研究检索需要联网clawhub未标认证来源可访问clear审计提醒

file-classification-manager文件分类管理器

Agent Skill

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

总安装

2,305

周安装

97

GitHub Stars

1

下载量

807
OpenClaw

安装说明

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

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

ClawHubOpenClaw
openclaw skills install file-classification-manager

简介

根据文件类型自动分类路由至永久或临时存储区。

  • 适用于多项目并行环境下资产有序管理机制。
  • 同步双目录保持本地与云端版本一致性。file-classification-manager 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 安装命令:openclaw skills install file-classification-manager。
  • 需预先定义好各类别对应的物理路径映射关系。

SKILL.md

File Classification Manager Skill

Description

Dual-purpose intelligent file classification system that manages BOTH project outputs AND temporary files with synchronized directory structures. Automatically organizes files into proper projects/ and temp/ directories based on content type, purpose, and project context. Prevents file clutter in workspace root by enforcing structured dual-storage.

Key Principle: Synchronized Dual Storage

Every project has TWO corresponding directories:

  • projects/{project_name}/ - For permanent, valuable outputs (reports, final documents, deliverables)
  • temp/{project_name}/ - For temporary, intermediate files (scripts, extracted data, cache, working files)

Both directories are automatically created together and share the same project name to maintain clear association between final outputs and their supporting temporary files.

Capabilities

  • Dual Directory Management: Simultaneously manages projects/ (outputs) and temp/ (intermediate files) directories
  • Synchronized Project Naming: Ensures identical project names across both storage areas for clear association
  • Purpose-Based Classification: Automatically determines whether a file belongs in outputs vs intermediate based on content and file patterns
  • Project Detection: Identifies project context from user input or file content
  • Automatic Structure Creation: Creates standardized dual directory structure for any new project
  • Smart File Routing: Routes files to correct subdirectories in the appropriate storage area (projects vs temp)
  • Legacy File Cleanup: Migrates existing misplaced files to proper dual-storage locations
  • Cross-Agent Compatibility: Works with subagents and ACP coding sessions

Usage Scenarios

  • When generating new files (reports, scripts, data)
  • When processing files via other skills (PDF Extract, Summarize Pro, etc.)
  • When organizing existing workspace clutter
  • When working with multiple concurrent projects

API Functions

classify_and_route_file(filepath, project_context)

Routes a file to the appropriate directory based on its type and project context.

Parameters:

  • filepath: Path to the file to be classified
  • project_context: Project name or context object

Returns: Final destination path

ensure_project_structure(project_name)

Creates the standard directory structure for a project if it doesn't exist.

Parameters:

  • project_name: Name of the project (alphanumeric + underscores only)

Directory Structure Created:

projects/{project_name}/
├── outputs/
└── assets/
temp/{project_name}/
├── intermediate/
└── cache/

detect_project_from_content(content)

Analyzes file content to determine likely project association.

Parameters:

  • content: File content or metadata to analyze

Returns: Suggested project name or null

cleanup_workspace_root()

Scans workspace root for misplaced files and routes them appropriately.

Returns: Migration report

File Type Classification Rules

Files are automatically routed to the CORRECT storage area based on their purpose:

🎯 Projects Storage (Permanent Outputs)

File PatternDestinationPurpose
*_review.md, *_literature.mdprojects/{project}/outputs/Literature reviews and analyses
final_*.md, comprehensive_*.mdprojects/{project}/outputs/Final reports and deliverables
summary_*.md, conclusion_*.mdprojects/{project}/outputs/Executive summaries and conclusions

⚡ Temp Storage (Temporary Files)

File PatternDestinationPurpose
*.py, *.js, *.mtemp/{project}/intermediate/Analysis and processing scripts
*_content.txt, *_extract.txttemp/{project}/intermediate/Extracted raw content
*.pdf, *.docxtemp/{project}/intermediate/Source documents for processing
*.mat, *.csv, *.jsontemp/{project}/intermediate/Intermediate data files
*.png, *.jpg, *.giftemp/{project}/intermediate/Generated or processed images
cache_*, temp_*temp/{project}/cache/Cached API responses and temporary data

Key Rule: The system maintains synchronized project names - if a file goes to projects/dipleg_review/outputs/, its supporting files go to temp/dipleg_review/intermediate/.

Integration Guidelines

For Other Skills:

When developing skills that generate files, import this skill and use:

const fcm = require('file-classification-manager');
const outputPath = fcm.classify_and_route_file(filename, projectContext);

For Subagents:

Pass project context when spawning subagents:

sessions_spawn({
  task: "Process documents",
  runtime: "subagent",
  attachments: [{name: "fcm_config.json", content: JSON.stringify({project: "my_project"})}]
})

Safety Rules

  • Never delete files without confirmation
  • Always backup before moving critical files
  • Preserve original file timestamps and metadata
  • Log all file operations to memory/YYYY-MM-DD.md

Error Handling

  • If project context is ambiguous, prompt user for clarification
  • If file type is unrecognized, place in temp/general/intermediate/
  • If directory creation fails, fall back to safe temporary location

Examples

Basic Usage:

// Classify a literature review file
const result = classify_and_route_file("brain_dipleg_review.md", "dipleg_research");
// Result: "projects/dipleg_research/outputs/brain_dipleg_review.md"

Project Setup:

// Ensure project structure exists
ensure_project_structure("pv_topology_analysis");
// Creates projects/pv_topology_analysis/ and temp/pv_topology_analysis/ directories

Workspace Cleanup:

// Clean up misplaced files
const report = cleanup_workspace_root();
console.log(report.movedFiles); // Array of successfully moved files

Version

1.0.0

Author

OpenClaw Assistant

License

MIT

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

能力 5

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

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

平台分布

OpenClaw

97.73%
按下载量换算789

安全审计

VirusTotal

可疑

ClawScan

可疑

Static analysis

通过

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills