本文へ移動
cccskills
無料GitHub で公開

filemanager-tkinter-and-ssh-transfer

Use when maintaining vailá File Manager Frame A buttons, previewed local operations, CLI parity, or interactive SSH transfer with status-file completion.

インストール方法を見る

含まれるファイル(1)

  • SKILL.md4.5 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

File Manager: previewed ops, CLI, and SSH transfer

Architecture since v0.3.137 (11 September 2026). Parameter collection is separate from execution. GUI and CLI share the same plan/execute path.

Modules

FileRole
vaila/filemanager.pybuild_plan / execute_plan, CLI (python -m vaila.filemanager), thin wrappers
vaila/filemanager_gui.pyTkinter: fields → Preview → Apply; Transfer opens a terminal
vaila/task_feedback.py>> vaila/filemanager: messages, WorkerTask queue, redaction
vaila.py Frame ALazy wrappers → copy_file, move_file, …, transfer_file → show_action

Help: vaila/help/filemanager.md (+ .html). Button notes: docs/vaila_buttons/*-file.md. Diagnose failures with /debug → .agents/skills/debug/SKILL.md.

vailá maintenance rule (version/date)

When editing these modules (or any *.py), also update:

  • Script header Update Date + Version (global from vaila.py banner)
  • Root README.md Last updated: YYYY-MM-DD
  • Help: vaila/help/filemanager.{md,html}, vaila/help/index.{md,html}
  • Installers / vaila.py if install/run UX changes

See AGENTS.md checklist.

Flow

Frame A / CLI args
    → FileManagerGUI or argparse
    → build_plan(action, source, …)   # fixed Target list + identity stamps
    → preview (dry-run / GUI Preview) # no silent changes
    → execute_plan(plan)              # worker thread in GUI; refuse stale/changed targets
    → Feedback summary + exit code

Invariants:

  • Preview locks the target list; files added after preview are not selected.
  • No silent overwrite; collisions are partial failures.
  • Destination inside source skips previous vaila_* output trees and the active log file.
  • Removal is permanent; CLI needs --yes (GUI confirms the fixed list).
  • Workers must not touch Tk widgets; GUI drains WorkerTask via after().
  • One busy task per window; Cancel cooperates between files.

GUI vs CLI

  • Rename button → normalize_names() → action normalize (accents/spaces cleanup).
  • Literal rename → CLI/action rename (--text / --replacement).
  • Import → import-vicon only; other formats marked unavailable (no fake success).
  • GUI prints a safely quoted equivalent CLI (command_text); removal prints default to --dry-run.
  • Subcommands: copy, move, remove, rename, normalize, find, tree, export, import-vicon, transfer.
  • Local mutating ops support --dry-run. Optional --debug and --log-file (keep log outside selected removal targets).
uv run python -m vaila.filemanager copy --help
uv run python -m vaila.filemanager remove --source /data/tmp --pattern .tmp --removal-type ext --dry-run
uv run python -m vaila.filemanager transfer --local "/data/my files" --host server --user analyst --remote /data

Tkinter window ownership

Still use hybrid roots: if tk._default_root exists, open Toplevel + wait_window(); else Tk() + mainloop(). Implemented in filemanager_gui.show_action. Do not create a second Tk() under the main vailá process.

Keep StringVars / widgets alive for the window lifetime (bind to the window or class attrs). Returning from a non-blocking dialog while Entries still reference GC’d StringVars caused segfault 139 historically.

SSH Transfer

rsync/scp need a real TTY for passwords. Pattern:

  1. GUI collects local/host/user/port/remote/mode.
  2. Writes a temp script that runs python -m vaila.filemanager transfer … --status-file PATH.
  3. Launches an external terminal (gnome-terminal, etc.).
  4. Status line: Terminal opened - waiting for transfer result ≠ completed.
  5. When --status-file appears with an exit code, GUI shows success or failed (exit N).

Do not treat “terminal launched” as transfer success. Never auto-run real transfers from /debug.

Tests

uv run pytest tests/test_filemanager_operations.py tests/test_filetools_downloader.py -v

Coverage includes collisions, nested destination, stale targets after preview, cancel, VICON import, headless CLI, transfer argv safety + status-file, GUI/CLI equivalence, Frame A dispatch to show_action, and simulated Transfer success/failure (no real SSH).

GUI smoke needs a display; set VAILA_GUI_ARTIFACTS=/tmp/… for window PNGs.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Configures best-practice alerting policies for AI agents using OpenTelemetry (OTel) metrics, generating output as Terraform (.tf) configuration files. Use when analyzing, writing, or deploying alerting policies to monitor agent latency, error rates, token usage, and quality metrics. Don't use for standard infrastructure monitoring unrelated to AI agents, or when the agent is not instrumented with OpenTelemetry (for Reliability, Cost, Safety, Security alerts). NOTE: Reliability, Cost, Safety, and Security alerts use generic OTel metrics and work across runtimes (such as Cloud Run, Vertex AI). Quality alerts rely on Vertex AI Online Monitors and are strictly bound to Vertex AI deployments.

日本語の概要は準備中です。原文の説明を表示しています。

vaila-multimodaltoolbox/vaila192026年10月8日 更新

Deploy open models or custom weights from Model Garden to Agent Platform endpoints, check the status of an in-progress deployment operation, or clean up resources by undeploying models and deleting endpoints. Use when asked to actively deploy a model, list the Model Garden CATALOG of available models, check if a specific model is deployable (`gcloud ai model-garden models list-deployment-config`), query deployment cost, troubleshoot deployment errors (like quota limits), or undeploy/clean up endpoints. Also use when copying and deploying a 1P Tuned Model. Don't use for pure listing/discovery questions of the form "is X deployed?", "list my endpoints", or "which regions have models running?" — for those use `agent-platform-endpoint-management`. Don't use for public Vertex AI deployments (use the `vertex-deploy` skill) or for running model evaluations (use the `agent-platform-eval-flywheel` skill).

日本語の概要は準備中です。原文の説明を表示しています。

vaila-multimodaltoolbox/vaila192026年10月8日 更新

Manages Agent Platform serving endpoints. Use when you need to create, list, describe, update, or delete serving endpoints for model deployment on Agent Platform. Also use when troubleshooting endpoint permission, quota, or resource busy errors. Don't use for deploying models to endpoints or for running model evaluations.

日本語の概要は準備中です。原文の説明を表示しています。

vaila-multimodaltoolbox/vaila192026年10月8日 更新

Measures and improves the quality of AI models and agents on Google Cloud using the Eval Quality Flywheel methodology. Use when evaluating an agent or model, building an eval dataset, picking or writing evaluation metrics, analyzing failures, comparing results before and after a fix, or when guidance is needed on Agent Platform eval methodology — including dataset schema, LLM-as-judge scoring, and common failure causes. For fine-tuning, use agent-platform-tuning. For general production deployment, use agent-platform-deploy.

日本語の概要は準備中です。原文の説明を表示しています。

vaila-multimodaltoolbox/vaila192026年10月8日 更新

Connects to and performs inference with Google Cloud Agent Platform GenAI models, including First-Party Gemini models and Third-Party OpenMaaS models (Llama, DeepSeek, Qwen, etc.). Use when asked to perform inference, ask a model a question, run a test prompt, execute chat completions, or generate code for calling Gemini or OpenMaaS models, authenticate with GenAI SDK, OpenAI SDK, or legacy Agent Platform SDK, configure base URLs and global/regional endpoints, or troubleshoot 429 Resource Exhausted (DSQ), 400 User Validation, or 404 Not Found errors. Don't use for deploying models to endpoints or for running model evaluations.

日本語の概要は準備中です。原文の説明を表示しています。

vaila-multimodaltoolbox/vaila192026年10月8日 更新

Guides agents and users through migrating from Gemini API in Google AI Studio to Gemini Enterprise Agent Platform (formerly Vertex AI). Use this skill when moving applications to Google Cloud, to leverage Cloud credits, or to unify inferencing with other Cloud infrastructure (IAM, billing, telemetry).

日本語の概要は準備中です。原文の説明を表示しています。

vaila-multimodaltoolbox/vaila192026年10月8日 更新

vaila-multimodaltoolbox のスキルをすべて見る

このスキルの問題を報告する