cli-and-automation
Day-to-day OpenSquilla CLI automation for chat, agent runs, sessions, memory, cron, cost, diagnostics, replay, migration, recovery, sandbox posture, bundle, dist, reset, init, and uninstall.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- cli-and-automation
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Day-to-day OpenSquilla CLI automation for chat, agent runs, sessions, memory, cron, cost, diagnostics, replay, migration, recovery, sandbox posture, bundle, dist, reset, init, and uninstall.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/automation-patterns.md9.0 KB
- 参考文档references/command-map.md11.4 KB
- 参考文档references/state-and-data-workflows.md10.1 KB
- 参考文档references/troubleshooting.md11.3 KB
03 SKILL.md 正文
CLI and Automation
Use this sub-skill as the command hub for an existing OpenSquilla user who has already installed the package and is asking how to run, automate, inspect, or clean up ordinary CLI workflows. The evidence for this skill was checked against OpenSquilla 0.5.3 in a CPU-only inspection build where the opensquilla entry point and assigned command help surfaces loaded successfully.
Load This When
- The user asks for
opensquilla chat,agent,code-task,sessions,memory,agents,cron,cost,diagnostics,replay,bundle,dist,migrate,recovery,sandbox,reset,init, oruninstallusage. - The user wants non-interactive CLI patterns with
--json,--timeout, workspace controls, transcripts, usage files, progress events, or bounded retries. - The user needs a safe sequence for session export/resume, memory indexing/repair/flush, scheduled jobs, cost inspection, diagnostics/replay, migration preview/apply, recovery, or data removal.
- The user is confused about gateway-backed commands versus local/offline commands after first setup.
Route Elsewhere
- First-run install, onboarding, gateway lifecycle, Web UI launch, or
doctorreadiness basics: setup-and-gateway. - Provider credentials, model selection, router modes, model catalog, search providers, or raw config precedence: configuration-and-routing.
- Messaging channels, pairings, channel delivery, and MCP bridge setup: channels-and-integrations.
- Skill catalog, skill install/update/publish, or meta-skill runs: skills-and-meta.
- Terminal UI renderer selection, OpenTUI behavior, desktop shell startup, or Web UI presentation details: tui-and-desktop.
Operating Rules
- Identify whether the command is gateway-backed before prescribing it. Sessions, most memory inspection commands, cron, cost, diagnostics, and
resetneed a reachable gateway;agent,chat --standalone,code-task,replay,dist,bundle,migrate,recovery,sandbox,init, anduninstallare local/offline or manage their own process as documented in the bundled references. - Prefer
--jsonand explicit confirmation flags for scripts, but never hide destructive consequences.uninstallandcron remove/runhave confirmation behavior;code-task solverequires--yesfor non-interactive trusted-host use;migrateis dry-run until--apply. - For automation that can touch files, set an explicit
--workspace; add--workspace-strict,--workspace-lockdown, and--scratch-dirwhen containment matters. Use per-run transcript, usage, event-stream, and session DB paths when jobs must be reproducible. - Keep sharing surfaces redacted. Session exports, diagnostics bundles, replay output, raw diagnostics, and
bundle --include-contentcan contain prompts, tool results, private paths, secrets, or channel identifiers. - Do not assume the original repository checkout exists at runtime. Use only the command patterns and local references bundled in this generated skill.
Reference Map
- Command map: command groups, gateway requirements, JSON support, and common examples.
- Automation patterns: non-interactive agent, code-task, cron, event-stream, workspace, and parallel-run patterns.
- State and data workflows: sessions, memory, diagnostics, cost, migration, recovery, bundle/dist, reset, init, sandbox, and uninstall workflows.
- Troubleshooting: gateway dependency failures, session export risk, stale memory index/repair, migration conflicts, uninstall purge safety, sandbox posture confusion, optional dependency gaps, and live-script boundaries.
Quick Triage
- "Run one prompt and return machine-readable output" →
opensquilla agent --json -m "..."; see automation patterns. - "Continue or export a prior conversation" →
opensquilla sessions ...; see state workflows. - "Find or repair durable memory" →
opensquilla memory ...; see state workflows. - "Schedule repeated work" →
opensquilla cron ...; see automation patterns. - "Debug a surprising or costly turn" →
diagnostics,cost,replay, andbundle; see state workflows. - "Move state from another runtime or recover profile data" →
migrateorrecovery; see state workflows. - "Remove OpenSquilla or reset data" → start with
uninstall --dry-run; see state workflows.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).