tools-file-ops
Installation
SKILL.md
File Operations Base Skill
Role: Shared Python module providing atomic file operations, metadata parsing, TOON output helpers, and base directory configuration for workflow scripts.
Enforcement
Execution mode: Library module; import functions as documented in usage examples.
Prohibited actions:
- Do not access
.plan/files directly; usebase_path()for path construction - Do not bypass atomic write; always use
atomic_write_file()for writes - Do not construct cross-domain paths manually; use ID-based access pattern
Constraints:
- All path construction goes through
base_path()orget_base_dir() - File writes use atomic temp-file-plus-rename pattern
- Cross-domain access uses IDs, not paths