file-time-magic
v1.1.1文件时间属性修改技能。自动设置文件的创建时间、修改时间、访问时间和编辑时长,确保所有时间逻辑一致且真实可信。 触发场景: - 用户要求修改文件时间属性 - 用户说"这个文件编辑了X小时" - 用户说"把时间改成..."或"文件时间要合理" - 用户指定创建时间或修改时间 - 用户提问"能不能改文件编辑时长
⭐ 0· 17·0 current·0 all-time
by@psyhl
MIT-0
Download zip
LicenseMIT-0 · Free to use, modify, and redistribute. No attribution required.
Security Scan
OpenClaw
Benign
high confidencePurpose & Capability
Name/description, SKILL.md, README, and the included Python script all align: the tool parses durations/times, updates filesystem timestamps and Office docProps (app.xml/core.xml), and supports dry-run. One minor mismatch: registry metadata does not restrict OS, but the README and SKILL.md indicate Windows-specific behaviors (SetFileTime / PowerShell fallbacks). This is an implementation/platform expectation mismatch rather than malicious incoherence.
Instruction Scope
Instructions limit actions to the target file/folder and Office internals and provide a --dry-run. However the skill declares that it will auto-close Office processes if a file is in use and will modify files in-place (extract/repack .docx/.pptx/.xlsx, create temp dirs). That is intrusive system behavior (process termination, filesystem writes) but is coherent with the stated purpose; there is no instruction to read or transmit unrelated files or environment variables.
Install Mechanism
No install spec — instruction-only with an included script. Nothing is downloaded or installed by the skill itself; the script runs locally. This is the lowest-risk install mechanism from a supply-chain perspective.
Credentials
The skill declares no required environment variables, credentials, or config paths. The code operates on local filesystem and process APIs only; no unrelated secrets are requested.
Persistence & Privilege
always is false and the skill does not request permanent platform-level privileges. It does modify local files when run (expected for its purpose) but does not alter other skills' configs or request elevated platform presence.
Assessment
This skill is internally consistent with its stated purpose, but it performs intrusive local actions — it modifies files in-place (including unzipping and repacking Office documents), writes temporary directories, and may terminate Office processes to release locked files. Before using: 1) Run --dry-run first to verify the computed times. 2) Always work on copies/backups of files (do not run directly on originals you cannot replace). 3) Expect Windows-specific behavior; verify the environment (PowerShell/Windows API) if not on Windows. 4) Be mindful of legal/ethical/forensic implications of changing file timestamps — altering metadata can be misuse in some contexts. 5) If you do not want the agent to invoke this skill autonomously, disable or restrict the skill in your agent settings.Like a lobster shell, security has layers — review code before you run it.
latestvk97f2669zjnb2vmkhq9y69t2yd852mk2
License
MIT-0
Free to use, modify, and redistribute. No attribution required.
Runtime requirements
⏰ Clawdis
