Agent skill

Logging Setup

by gustavscirulis in gustavscirulis/snapgrid

Generates structured logging infrastructure using os.log/Logger to replace print() statements.

Custom licenceAuto-check: notesDevOps & Cloud

Install Logging Setup

skills CLI
$ npx skills add gustavscirulis/snapgrid --skill logging-setup -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install gustavscirulis/snapgrid logging-setup --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/gustavscirulis/snapgrid.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/skills/generators/logging-setup .claude/skills/logging-setup && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
logging-setup
GitHub stars
117
Used in
1 other repo
Token cost
~973 tokens
SKILL.md length
388 words
Files
4
Skills in repo
118
Repo updated
First seen
Licence
Custom licence

At a glance

Generates structured logging infrastructure using os.log/Logger to replace print() statements.

  • Works in 5 steps: Project Context Detection → Conflict Detection → Create AppLogger.swift → …
  • User wants to add proper logging
  • SKILL.md covers When This Skill Activates, Why Logger Over print(), Pre-Generation Checks and Modes of Operation, plus 4 more sections
  • Runs Swift scripts from its folder

What it does

Logging Setup is an agent skill from gustavscirulis/snapgrid. Generates structured logging infrastructure using os.log/Logger to replace print() statements. Use when user wants to add proper logging, replace print statements, or set up app logging.

Its SKILL.md is about 970 tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files (for example `logger-patterns.md` and `migration-guide.md`).

It sits in DevOps & Cloud, covering Observability. The repository describes itself as: SnapGrid is an open-source Mac app for collecting, organizing, and analyzing UI screenshots. It uses AI to automatically detect UI components and patterns, making it a powerful…

When your agent uses it

  • User wants to add proper logging
  • Replace print statements
  • Set up app logging

Example prompts

  • “Use the logging-setup skill to generate structured logging infrastructure using os.log/Logger to replace print() statements”
  • “/logging-setup”

Requirements

  • Pre-approved tools (allowed-tools): Read, Write, Edit, Glob, Grep, Bash, AskUserQuestion

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Project Context Detection
  2. Conflict Detection
  3. Create AppLogger.swift
  4. Determine File Location
  5. Provide Migration Guidance

What it can do on your machine

Read from SKILL.md and the folder at commit eb7eaf4. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Write
    • Edit
    • Glob
    • Grep
    • Bash
    • AskUserQuestion

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (Swift), which the agent can run.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Logging Setup loads about 973 tokens when it runs. Until then it costs about 50 tokens; SKILL.md has 388 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~50
When it runs · the whole SKILL.md, loaded when a task matches
~973

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Read, Write, Edit, Glob, Grep, Bash, AskUserQuestion

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 388 words (~973 tokens).

“Replace print() statements with Apple's structured logging system (os.log/Logger) for better debugging, privacy controls, and Console.app integration.”

— opening of SKILL.md by gustavscirulis, Custom licence
name
logging-setup
allowed-tools
Read, Write, Edit, Glob, Grep, Bash, AskUserQuestion

Read the full SKILL.md on GitHub

Files

SKILL.md and 3 other files in .claude/skills/skills/generators/logging-setup of gustavscirulis/snapgrid.

  • SKILL.md
  • logger-patterns.md
  • migration-guide.md
  • templates/AppLogger.swift

Open the folder on GitHubat commit eb7eaf4

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in gustavscirulis/snapgrid, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Logging Setup next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Logging Setup compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Logging Setup this skillgustavscirulis/snapgrid1171 repos~973Automated safety check: NotesCustom licence
Crash Instrumentationnexus-labs-automation/mobile-observability116—~744Automated safety check: PassMIT
Applicationinsights Web TSmicrosoft/skills3.1k2 repos~5.2kAutomated safety check: PassMIT
Frontend Observabilitysickn33/agentic-awesome-skills47k1 repos~5.1kAutomated safety check: PassMIT
Vercel Optimize Auditvercel-labs/agent-skills32k9 repos~4.3kAutomated safety check: PassNone
Kubeshark Installerkubeshark/kubeshark12k—~3.6kAutomated safety check: NotesApache-2.0

Similar skills

  • Crash Instrumentation

    nexus-labs-automation/mobile-observability

    Set up crash instrumentation with actionable context. An agent skill from nexus-labs-automation/mobile-observability.

    116 GitHub stars~744 tokensUpdated 1 mo ago
    DevOps & CloudAuto-check passed
  • Official

    Instrument browser/web apps with the Application Insights JavaScript SDK (@microsoft/applicationinsights-web).

    3.1k GitHub starsUsed in 2 repos~5.2k tokens
    DevOps & CloudAuto-check passed
  • Frontend Observability

    sickn33/agentic-awesome-skills

    A portable, framework-agnostic field-side observability system for any React or React Native app.

    47k GitHub starsUsed in 1 repo~5.1k tokens
    DevOps & CloudAuto-check passed
  • Vercel Optimize Audit

    vercel-labs/agent-skills

    Official

    Runs a metrics-first audit of a deployed Vercel project, gating investigations on real signals to produce ranked, citation-backed cost and performance recommendations.

    32k GitHub starsUsed in 9 repos~4.3k tokens
    DevOps & CloudAuto-check passed
  • Kubeshark Installer

    kubeshark/kubeshark

    Installs and configures Kubeshark on a Kubernetes cluster, choosing between the quick CLI path and a Helm install with custom values.

    12k GitHub stars~3.6k tokensUpdated yesterday
    DevOps & CloudAuto-check: notes
  • Syntax reference for KFL2, the CEL-based display filter language used to search Kubernetes network traffic captured by Kubeshark, loaded before any filter is written.

    12k GitHub stars~3.6k tokensUpdated yesterday
    DevOps & CloudAuto-check passed

More from gustavscirulis/snapgrid

All 118 skills in this repo
  • Interaction Design

    gustavscirulis/snapgrid

    Design and implement microinteractions, motion design, transitions, and user feedback patterns.

    117 GitHub starsUsed in 3 repos~2k tokens
    Auto-check passed
  • Core ML

    gustavscirulis/snapgrid

    Core ML, Create ML, Vision framework, Natural Language framework, on-device ML integration.

    117 GitHub starsUsed in 2 repos~3.8k tokens
    Auto-check: notes
  • Force Update

    gustavscirulis/snapgrid

    Generates a minimum version enforcement system with hard-block and soft-prompt update flows, App Store redirect, and remote config or App Store lookup for version checks.

    117 GitHub starsUsed in 2 repos~2.3k tokens
    Auto-check: notes
  • Market Research

    gustavscirulis/snapgrid

    Deep market analysis for iOS/macOS apps including market sizing (TAM/SAM/SOM), growth trends, market maturity, entry barriers, distribution channels, and revenue potential.

    117 GitHub starsUsed in 2 repos~3.1k tokens
    Auto-check passed
  • Account Deletion

    gustavscirulis/snapgrid

    Generates an Apple-compliant account deletion flow with multi-step confirmation UI, optional data export, configurable grace period, Keychain cleanup, and server-side deletion request.

    117 GitHub starsUsed in 1 repo~2.5k tokens
    Auto-check: notes
  • Alarmkit

    gustavscirulis/snapgrid

    AlarmKit integration for scheduling alarms and timers with custom UI, Live Activities, and snooze support.

    117 GitHub starsUsed in 1 repo~1.3k tokens
    Auto-check passed

Questions about Logging Setup

What does Logging Setup do?

Generates structured logging infrastructure using os.log/Logger to replace print() statements. Logging Setup is an agent skill from gustavscirulis/snapgrid.log/Logger to replace print() statements.

When should I use Logging Setup?

Logging Setup fits situations like: user wants to add proper logging; replace print statements; set up app logging.

How do I install Logging Setup in Claude Code?

Run `npx skills add gustavscirulis/snapgrid --skill logging-setup -a claude-code`. Or copy the skill folder (.claude/skills/skills/generators/logging-setup in gustavscirulis/snapgrid) into .claude/skills/logging-setup in your project. Claude Code loads it when a task matches its description.

How do I install Logging Setup in Codex?

Run `npx skills add gustavscirulis/snapgrid --skill logging-setup -a codex`. Or copy the skill folder (.claude/skills/skills/generators/logging-setup in gustavscirulis/snapgrid) into .agents/skills/logging-setup in your project. Codex loads it when a task matches its description.

Can I use Logging Setup in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add gustavscirulis/snapgrid --skill logging-setup -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/logging-setup, .gemini/skills/logging-setup, .github/skills/logging-setup and .opencode/skills/logging-setup in your project.

What does Logging Setup need to run?

Going by SKILL.md and its folder, Logging Setup needs Swift for the scripts in its folder. Its frontmatter pre-approves these tools: Read, Write, Edit, Glob, Grep, Bash, AskUserQuestion.

Does Logging Setup access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Logging Setup safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Logging Setup use?

Logging Setup has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Logging Setup use?

About 973 tokens (SKILL.md is roughly 3.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Logging Setup?

Skills that share tags, products or a category with Logging Setup: Crash Instrumentation (nexus-labs-automation/mobile-observability, 116 stars), Applicationinsights Web TS (microsoft/skills, 3.1k stars), Frontend Observability (sickn33/agentic-awesome-skills, 47k stars) and Vercel Optimize Audit (vercel-labs/agent-skills, 32k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Logging Setup?

gustavscirulis (a GitHub user) maintains it in gustavscirulis/snapgrid, which has 117 GitHub stars. The repository holds 118 skills in this directory. The repository was last updated on April 30, 2026.

Source: gustavscirulis/snapgrid on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.