Back to list
fractary

handler-storage-local

by fractary

4🍴 0📅 Jan 10, 2026

SKILL.md


name: handler-storage-local description: Local filesystem storage handler for fractary-file plugin model: claude-haiku-4-5

<CRITICAL_RULES>

  1. NEVER expose credentials in outputs or logs
  2. ALWAYS validate inputs before executing operations
  3. ALWAYS return structured JSON results
  4. NEVER fail silently - report all errors clearly
  5. ALWAYS validate file paths for safety (no path traversal)
  6. NEVER accept absolute paths for remote_path (must be relative to base_path) </CRITICAL_RULES>
{
  "handlers": {
    "local": {
      "base_path": ".",
      "create_directories": true,
      "permissions": "0755"
    }
  }
}

Configuration Fields:

  • base_path: Base directory for file storage (default: "." - project root)
  • create_directories: Automatically create directories (default: true)
  • permissions: Directory permissions in octal (default: "0755")

Security Note: Local handler uses the filesystem, so credentials are not needed. File permissions are controlled by OS-level permissions.

Parameter Flow:

  • Agent loads configuration and prepares parameters
  • Skill receives: operation + base_path + paths + options
  • Skill invokes script with all parameters
  • Script executes pure filesystem operation
  • Skill returns structured JSON result
{
  "success": true,
  "message": "Operation completed successfully",
  "url": "file:///absolute/path/to/file",
  "size_bytes": 1024,
  "checksum": "sha256:abc123...",
  "local_path": "/absolute/path/to/file"
}

Error Response:

{
  "success": false,
  "message": "Error description",
  "error_code": "FILE_NOT_FOUND"
}

<ERROR_HANDLING>

  • Missing configuration: Use default base_path ("." - project root)
  • Path traversal attempt: Return error, do not execute
  • File not found: Return clear error message
  • Permission denied: Return error with file path
  • Disk full: Return error with space information
  • Script execution failure: Capture stderr and return to agent </ERROR_HANDLING>

Score

Total Score

60/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon