$npx skillfedfor your agent

urlsession-code-review

This skill audits URLSession implementations across iOS and macOS projects, checking async/await adoption, proper HTTP status validation, memory lifecycle management, and secure request construction. It validates response handling, resource cleanup, session configuration, and background transfer patterns against a structured checklist. Use it when reviewing code that touches URLSession, URLRequest, URLCache, or URLError APIs.

URLSession Code Review examines iOS networking implementations for async patterns, request handling, error validation, and resource management best practices.

AI-generated summary based on this skill's SKILL.md

74 10 Apache-2.0updated by existential-birds

Decision gist · record as of 2026-07-21

URLSession Code Review examines iOS networking implementations for async patterns, request handling, error validation, and resource management best practices. This skill audits URLSession implementations across iOS and macOS projects, checking async/await adoption, proper HTTP status validation, memory lifecycle management, and secure request construction. It validates response handling, resource cleanup, session configuration, and background transfer patterns against a structured checklist. Use it when reviewing code that touches URLSession, URLRequest, URLCache, or URLError APIs.

manual: git clone https://github.com/existential-birds/beagle → cp -r beagle/plugins/beagle-ios/skills/urlsession-code-review ~/.claude/skills/urlsession-code-review
plugins/beagle-ios/skills/urlsession-code-review/SKILL.md · version f0657457

Use it when

  • urlsession-code-review reviews HTTP error handling by checking that your code properly validates HTTP status codes, handles URLError cases.
  • Yes.

Verify before relying

Read SKILL.md below before installing (5 files). Open directory: indexed for reading, not audited.

Same gist for agents: .md · .json

Install

existential-birds/beagle/urlsession-code-review · repository language: TypeScript

Open directory. Skills are indexed for reading, not audited. Review a skill's body before installing it.

Frequently asked questions

AI-generated answers based on this skill's SKILL.md and metadata

What does urlsession-code-review check in my networking code?

urlsession-code-review audits URLSession implementations across iOS and macOS projects, checking async/await adoption, proper HTTP status validation, memory lifecycle management, and secure request construction. It validates response handling, resource cleanup, session configuration, and background transfer patterns against a structured checklist.

How does urlsession-code-review validate HTTP error handling?

urlsession-code-review reviews HTTP error handling by checking that your code properly validates HTTP status codes, handles URLError cases, and distinguishes between network failures and server errors. It ensures response status checks occur before processing data and that error recovery paths are implemented.

Does urlsession-code-review review URLSession implementation for memory leaks?

Yes. urlsession-code-review audits memory management and resource cleanup in networking tasks, checking for retain cycles in completion handlers, proper task cancellation, delegate lifecycle management, and URLCache cleanup patterns to prevent memory leaks in long-running or background sessions.

What async/await and background session patterns does urlsession-code-review examine?

urlsession-code-review checks async/await adoption in URLSession code, validates background session configuration for proper delegate setup, verifies timeout settings, and ensures task cancellation is handled correctly. It reviews whether background transfers use appropriate session types and error recovery.

Can urlsession-code-review identify security issues in my URLRequest code?

urlsession-code-review includes security auditing of URLSession implementations, checking for secure request construction, proper certificate validation, safe header handling, and protection against common networking vulnerabilities in iOS and macOS projects.

When should I use urlsession-code-review on my project?

Use urlsession-code-review when reviewing code that touches URLSession, URLRequest, URLCache, or URLError APIs. It's most valuable during code reviews of networking layers, when refactoring to async/await, when optimizing caching strategies, or when auditing security-sensitive network operations.

SKILL.md

Rendered from the published skill. Quoted content, verbatim.

URLSession Code Review

Quick Reference

Topic Reference
Async/Await async-networking.md
Requests request-building.md
Errors error-handling.md
Caching caching.md

Review Checklist

Response Validation
  • [ ] HTTP status codes validated - URLSession does NOT throw on 404/500
  • [ ] Response cast to HTTPURLResponse before checking status
  • [ ] Both transport errors (URLError) and HTTP errors handled
Memory & Resources
  • [ ] Downloaded files moved/deleted (async API doesn't auto-delete)
  • [ ] Sessions with delegates call finishTasksAndInvalidate()
  • [ ] Long-running tasks use [weak self]
  • [ ] Stored Task references cancelled when appropriate
Configuration
  • [ ]

(truncated - see the full file via the links below)

File tree — 5 files
plugins/beagle-ios/skills/urlsession-code-review/SKILL.md
plugins/beagle-ios/skills/urlsession-code-review/references/async-networking.md
plugins/beagle-ios/skills/urlsession-code-review/references/caching.md
plugins/beagle-ios/skills/urlsession-code-review/references/error-handling.md
plugins/beagle-ios/skills/urlsession-code-review/references/request-building.md

Let your AI agent find skills like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 56,283 agent skills by what they can do, searchable in plain language.

wish › “Review URLSession networking code for correctness and best practices”

Give your agent the search over MCP, or paste the wish link into any chat. No install? Search from any chat →

Related skills

Ios Networking
by dpearson2699 · dpearson2699/swift-ios-skills

This skill teaches you to build robust network communication in iOS and macOS apps using URLSession with async/await and structured concurrency. You'll learn practical patterns for HTTP requests, REST API clients, file transfers, streaming, and handling network errors—plus architecture strategies like middleware, API client protocols, and testable designs.

no license declared → metadata onlyupdated Jul 2026
★ 932repo stars
prompt-improver
by existential-birds · existential-birds/beagle

Prompt Improver refines code-related prompts by evaluating task clarity, investigation depth, verification steps, and scope control. It applies transformation rules to strengthen prompts for implementation, debugging, refactoring, code review, and testing tasks. The skill ensures prompts follow investigation-first principles and include appropriate verification checks before execution.

Apache-2.0updated Jul 2026
★ 74repo stars
integration-test-scaffold
by rshankras · rshankras/claude-code-apple-skills

This skill generates foundational test infrastructure for multi-module integration scenarios, helping you establish consistent testing patterns across your codebase. It automates the setup of test scaffolding, reducing boilerplate and enabling faster integration test development.

MITupdated Jul 2026
★ 565repo stars
go-code-review
by existential-birds · existential-birds/beagle

Go Code Review systematically audits Go source files against idiomatic patterns, error handling practices, concurrency safety, and common pitfalls. The skill applies version-aware guidance based on your project's Go baseline, covering generics, structured logging, and loop variable semantics. It follows a structured workflow that reads full context, applies targeted checklists, and verifies findings before reporting issues with severity calibration.

Apache-2.0updated Jul 2026
★ 74repo stars
watchos-code-review
by existential-birds · existential-birds/beagle

This skill audits watchOS applications against framework-specific patterns for app lifecycle management, scene handling, and delegate setup. It checks complications using WidgetKit or ClockKit, WatchConnectivity message passing and file transfers, and enforces memory and battery constraints for background execution.

Apache-2.0updated Jul 2026
★ 74repo stars
architecture-spec
by rshankras · rshankras/claude-code-apple-skills

This skill generates comprehensive technical architecture specifications tailored for iOS, macOS, watchOS, visionOS, and other Apple platforms. It helps developers document system design, component relationships, and implementation strategies from initial concept through App Store submission. Part of a layered indie Apple developer toolkit, it integrates with Claude Code to streamline architecture planning and maintain consistency across Apple ecosystem projects.

MITupdated Jul 2026
★ 565repo stars

More skills swift-code-review (Apache-2.0) · swiftdata-code-review (Apache-2.0)

Tags
code-auditnetwork-securityresource-lifecycleasync-patternshttp-validationbackground-transfersmemory-managementios-networkingconfiguration-reviewerror-classification