context-manager

Detect autonomous execution context via env var and JSON file. Prevents operator prompts during non-interactive sessions.

SKILL.md

GitHub

Context Manager

Detect and manage autonomous execution context.

Trigger

/skill context-manager — invoke from gstack or CLI

Input Schema

interface Input {
  checkEnv?: boolean;           // check AUTONOMOUS_EXECUTION env (default: true)
  contextFile?: string;         // path to .autonomous-context.json (default: cwd)
  validate?: boolean;           // validate context freshness (default: true)
}

Output Schema

interface Output {
  status: "success" | "error";
  isAutonomous: boolean;
  context?: {
    mode: string;
    initiator: string;
    startTime: string;
    timeout?: number;
  };
  timestamp: string;
}

Full reference: See Skill Operator Guide.