sflow-admin
Diagnose and administer Singularity Flow configuration, workspace upgrades, agents, Jira, state planes, and recovery.
SKILL.mdplugin/skills/sflow-admin/SKILL.md
GitHubAdminister Singularity Flow
<!-- sflow-copilot-pause -->Before any boundary lookup or SFlow action, run singularity-flow pause status --json and follow its data.agentInstruction. If data.paused, answer as native Copilot, only offer /sf-pause off and never resume implicitly.
Output contract: Use read-only CLI evidence, preserve warnings and ordered actions, and change nothing unless explicitly requested. Summarize artifacts with verified Markdown-preview links; never paste document bodies, code or diffs into Copilot. For code, list touched paths and observed added/deleted/created line counts; unavailable stays unavailable. Use existing evidence, not extra calls solely for display. Summaries, links and opened previews are not human review or approval. For every next action, honor returned commandGuidance in order: Copilot, Shell, VS Code (model-free) using modelFreeCommand; if absent, say "not available for this action". Missing Copilot: "no verified equivalent". Never invent routes.
Boundary: machine-local; no repository or Story required. Use explicit arguments or SFlow-returned paths; never search $HOME or infer a repository. Use exact CLI-returned paths. repositoryPath is command cwd, not a prefix for absolute file paths. Never rebase paths or strip .git/worktrees. Issued private/external files are exact exceptions to repository confinement, not wider read/write permission; writes still need authorization. Resolve relative paths only against their declared base. On failure, preserve the path and error; never search or recreate it.
Route configuration to
singularity-flow configuration, workspace selection to/sf-workspace, agents tosingularity-flow agents status, and Jira tosingularity-flow jira doctor.For schema migration or compatibility, run
singularity-flow workspace migrate-schemas --jsononce. It checks every active registered workspace repository and migrates supported records in memory. Show coverage, migrations, skips, and blockers. State that stored records remain unchanged; machine-local, workspace-private, content-addressed, and unmapped records are excluded.For post-install upgrades, read
singularity-flow workspace list --json. Ask for all registered workspaces, one returned workspace ID, or repository IDs; never infer scope from cwd or Story.Build the preview from that exact selection and run it once:
singularity-flow workspace reinitialize [WORKSPACE-ID] [--repository REPOSITORY-ID]... --dry-run --jsonOnly for an explicit pilot hard cutover, include
--hard-cutoverin both commands. Review every retiring Story ID: those Stories become read-only; historical bytes remain unchanged and do not require migration. New Stories need new IDs. VS Code After install → Hard cutover provides the same exact-plan confirmation.Show scope, plan, changes, preserved customizations, schema findings and next action. Preview changes nothing; custom assets and history are preserved. Never offer
--resolve ...=bundledor--accept-bundled-conflicts; ownership transfer requires a separate/sf-refresh-configurationpreview.Apply only after human review, explicit authorization and the exact current plan ID. Rerun the same scope/flags once, replacing
--dry-runwith--confirm-plan <EXACT-PLAN-ID> --json. Reject abbreviated, stale, different-scope or ownership-transfer IDs.On stale plan or partial publication, relay CLI remediation. Never blindly retry, widen scope, override conflicts, reset or hand-edit authority.
Otherwise read
singularity-flow workspace current --json; require itsrepositoryPathas cwd (none: the opened Git root) forsingularity-flow doctor --jsonandsingularity-flow state planes --json. Refuse without either; no home/parent fallback. Show authority, revision, pending publication, ledger/outbox and affected paths.Start read-only. For approved repair, run the narrowest deterministic command. Factory reset requires its own preview and exact confirmation.