ashokraj2011

sflow-hook

Diagnose or explicitly invoke a Singularity Flow lifecycle hook using its exact host-supplied payload.

ashokraj2011 0 Updated 2w ago
GitHub

Install

npx skillscat add ashokraj2011/singularityflow/sflow-hook

Install via the SkillsCat registry.

SKILL.md

Inspect or invoke lifecycle hooks

Output contract: Let the CLI validate and mutate state; preserve its exact result, warnings, publication status, artifacts, and next actions. For suggested actions, pair Shell with the returned Copilot command; honor commandGuidance. If absent, say "Copilot: no verified equivalent"; never invent a slash command.

Boundary: singularity-flow session current --json → ready/workId, cwd=repositoryPath; use CLI/workItemRoot paths; never $HOME.

Hooks are host integration points, not shortcuts for lifecycle commands.

  1. Prefer /sf-logs when the user only wants to understand a hook decision.
  2. Invoke singularity-flow hook <HOOK> only when the user explicitly requests the hook and provides the exact payload or environment required by that host contract.
  3. Preserve allow/deny, reason, selected work, session, agent, and exit status exactly.
  4. Never fabricate host identifiers, bypass a guard, or translate a denied hook into a direct mutation.