
User Detection & Session Context Reviewer
by LB Creations
Review macOS admin scripts for reliable current-user detection and safe session-context handling.
- Fix failing user-detection logic in Jamf Pro or Kandji scripts.
- Ensure UI prompts appear correctly across Fast User Switching sessions.
- Prepare management scripts for multi-user and Setup Assistant edge cases.
$14.99
· or 75 creditsSecure checkout via Stripe
Included in download
- Fix failing user-detection logic in Jamf Pro or Kandji scripts.
- Ensure UI prompts appear correctly across Fast User Switching sessions.
- terminal automation included
- Ready for Codex CLI
Sample input
Review this Jamf check-in script that uses $3 to identify the user and tell me if the UI prompt will work reliably during background runs.
Sample output
Context Review:
- Issue: Script uses static Jamf $3 which is empty during check-in policies.
- Fix: Implement 'stat -f %Su /dev/console' with a loginwindow check.
- Risk: UI prompt will hang if no user is logged in.
- Test: Verify behavior during Fast User Switching and Setup Assistant.
Review macOS admin scripts for reliable current-user detection and safe session-context handling.
$14.99
· or 75 creditsSecure checkout via Stripe
Included in download
- Fix failing user-detection logic in Jamf Pro or Kandji scripts.
- Ensure UI prompts appear correctly across Fast User Switching sessions.
- terminal automation included
- Ready for Codex CLI
- Instant install
Sample input
Review this Jamf check-in script that uses $3 to identify the user and tell me if the UI prompt will work reliably during background runs.
Sample output
Context Review:
- Issue: Script uses static Jamf $3 which is empty during check-in policies.
- Fix: Implement 'stat -f %Su /dev/console' with a loginwindow check.
- Risk: UI prompt will hang if no user is logged in.
- Test: Verify behavior during Fast User Switching and Setup Assistant.
Screenshots
About This Skill
Defensive review for macOS current-user logic
User Detection & Session Context Reviewer reviews Jamf, Kandji, and Iru scripts that need to identify the logged-in user or show a user-facing prompt.
What it checks
- Current-user patterns such as
stat -f %Su /dev/console,scutil, Jamf$3, and related approaches. - Root execution versus user UI context, including
launchctl asuser. - Loginwindow, logout, setup assistant, Fast User Switching, and stale-user edge cases.
- Prompt patterns that avoid logs, process listings, and persistent files.
- Jamf, Kandji, and Iru workflow differences.
Boundaries
This is a defensive admin-review skill. Use redacted or synthetic examples. It does not collect, validate, store, transmit, or request real passwords, tokens, recovery keys, or private tenant values.
Output
You get a context-readiness verdict, edge-case notes, safer detection and prompt patterns, validation checklist, and open questions for local policy or vendor documentation.
Use Cases
- Fix failing user-detection logic in Jamf Pro or Kandji scripts.
- Ensure UI prompts appear correctly across Fast User Switching sessions.
- Prepare management scripts for multi-user and Setup Assistant edge cases.
- Generate validation checklists for macOS script production rollouts.
Known Limitations
- Cannot execute or test scripts on live hardware.
- Reviews logic only; does not verify MDM server-side API permissions.
- Limited to shell scripts (zsh/bash), not Swift or Objective-C binaries.
How to Install
mkdir -p ~/.claude/skills && curl -sL https://www.agensi.io/api/install/user-detection-session-context-reviewer -o /tmp/user-detection-session-context-reviewer.zip && unzip -o /tmp/user-detection-session-context-reviewer.zip -d ~/.claude/skills && rm /tmp/user-detection-session-context-reviewer.zipFree skills install directly. Paid skills require purchase - use the download button above after buying.
Reviews
No reviews yet - be the first to share your experience.
Only users who have downloaded or purchased this skill can leave a review.
Early access skill
Be the first to review this skill.
Only users who have downloaded or purchased this skill can leave a review.
Security Scanned
Passed automated security review
Permissions
No runtime dependencies. Works with SKILL.md-compatible agents including Claude Code, Codex CLI, Cursor, VS Code Copilot, Gemini CLI, and OpenClaw. Best results require redacted script snippets, launch method, target macOS versions, MDM platform, and intended user-facing behavior.
Creator
LB designs and builds autonomous AI systems optimized for local deployment. Specializing in distributed inference fleets, multi-model orchestration, and agent-native tooling, everything runs on your hardware, zero API fees.
Frequently Asked Questions
Learn More About AI Agent Skills
More Premium Skills
Multi-Agent Orchestration Master Library
Transform Claude Code into a coordinated multi-agent system. Battle-tested tmux orchestration patterns, YAML task queues, event-driven communication, and parallel worker management for 8+ agents.
software-architect
A structured framework for planning, reviewing, and evolving complex software systems with explicit trade-offs.
designing-hybrid-context-layers
Architects the right retrieval strategy for every query — teaching your agent when to use RAG, a knowledge graph, or a temporal index instead of defaulting to vector search for everything.
ai-automation-qa-pack
Professional QA & UAT documentation generator for AI automation agencies and complex agent deployments.