axiom-combine-patterns

axiom-combine-patterns is a skill for Claude Code, Codex from ComeOnOliver/skillshub. It costs 45 tokens per session (5,473 once invoked), scanned A, original, MIT.

A guide to Combine, Apple’s system for connecting changing values and asynchronous events. It also explains how Combine relates to Swift’s newer async/await code.

In plain words
What is it for?
Use it to build or maintain Combine pipelines, manage AnyCancellable lifetimes, work with ObservableObject and @Published, use subjects, and connect Combine with async/await.
Why use it?
It helps prevent memory leaks, silent data-flow failures, and confusing choices between Combine and async/await. It also addresses issues with subscriptions, published properties, and event streams.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument.

Good fit Use it to build or maintain Combine pipelines, manage AnyCancellable lifetimes, work with ObservableObject and @Published, use subjects, and connect Combine with async/await.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/comeonoliver/skillshub/axiom-combine-patterns
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ComeOnOliver/skillshub --skill axiom-combine-patterns
Clone the repo
git clone --depth 1 https://github.com/ComeOnOliver/skillshub

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for axiom-combine-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/comeonoliver/skillshub/axiom-combine-patterns/github.svg)](https://agentmods.dev/skills/comeonoliver/skillshub/axiom-combine-patterns)
Your own site
<a href="https://agentmods.dev/skills/comeonoliver/skillshub/axiom-combine-patterns"><img src="https://agentmods.dev/badge/skills/comeonoliver/skillshub/axiom-combine-patterns/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for axiom-combine-patterns

Your own site · 80×15
<a href="https://agentmods.dev/skills/comeonoliver/skillshub/axiom-combine-patterns"><img src="https://agentmods.dev/badge/skills/comeonoliver/skillshub/axiom-combine-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,473 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00045 $0.05473
Opus 5 $0.00023 $0.02736
Sonnet 5 $0.00009 $0.01095
Haiku 4.5 $0.00005 $0.00547

Measured 6d ago against content hash 8f81a05a9e30, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

axiom-combine-patterns scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/CharlesWiltgen/Axiom/axiom-combine-patterns/SKILL.md · 644 lines

How it starts

The opening of the file, as written. The whole thing — 644 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Combine Patterns

Overview

Combine remains embedded in massive production codebases — UIKit delegates, NotificationCenter bridging, KVO observation, and @Published properties are everywhere. New code prefers async/await, but interop and maintenance of existing Combine pipelines is daily work. This skill covers the decisions and pitfalls that matter: when to use Combine vs async/await, how to avoid memory leaks, and how to bridge between the two paradigms.

Core principle: Combine is not dead — it's mature. The question isn't "should I use Combine?" but "is Combine the right tool for THIS specific data flow?"

When to Use This Skill

  • Working with existing Combine pipelines
  • Deciding between Combine and async/await for a new data flow
  • Debugging AnyCancellable memory leaks or silent pipeline failures
  • Using @Published or ObservableObject
  • Bridging Combine publishers with async/await code
  • Working with Subjects (PassthroughSubject, CurrentValueSubject)

When NOT to Use This Skill

  • Timer.publish patterns → route via axiom-ios-concurrency to timer-patterns skill (dedicated timer lifecycle coverage)
  • @Observable migration from ObservableObject → use axiom-swift-concurrency (modern observation)
  • UIKit ↔ SwiftUI bridging → route via axiom-ios-ui (view wrapping, not data flow)
  • General async/await patterns → use axiom-swift-concurrency

Example Prompts

  • "Should I use Combine or async/await for this?"
  • "My Combine pipeline silently stops producing values"
  • "How do I convert a publisher to an async sequence?"
  • "AnyCancellable is leaking — where do I store it?"
  • "What's the difference between combineLatest and zip?"
  • "How do I debounce a text field with Combine?"
  • "My @Published property update isn't reaching the view"
  • "How do I bridge a Combine publisher into async/await code?"

Part 1: Combine vs async/await Decision Tree

Use Case Combine async/await Why
One-shot network call No Yes async/await is simpler, no cancellable management
Stream of values over time Yes AsyncStream Combine's operators (debounce, combineLatest) are richer
Debounce/throttle user input Yes Awkward Combine has built-in debounce/throttle; AsyncStream requires manual implementation
Merge multiple sources Yes TaskGroup Combine's merge/combineLatest handle heterogeneous streams naturally
Existing UIKit KVO/Notification Yes Bridge publisher(for:) and NotificationCenter.default.publisher are idiomatic Combine
New project iOS 17+ No Yes @Observable + async/await is the modern pattern
Existing codebase with Combine Maintain Migrate incrementally Don't rewrite working pipelines — bridge at boundaries

Read the full file on GitHub · 644 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 644 lines · 45 tokens per session scan A 8f81a05a9e30

Subscribe to this mod's changes

axiom-combine-patterns is a skill published in the GitHub repository ComeOnOliver/skillshub (63 stars, last pushed 2mo ago), licensed MIT. It adds 45 tokens to every session and 5,473 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.