vip-clean-architecture

vip-clean-architecture is a skill for Claude Code, Codex from dagba/ios-mcp. It costs 52 tokens per session (3,648 once invoked), scanned A, original, MIT.

A guide to VIP Clean Architecture for iOS, a three-part structure where screen actions, business work, and displayed results move in one direction.

In plain words
What is it for?
Use it to build or refactor complex iOS features with View, Interactor, and Presenter components, especially when strict separation and testability matter.
Why use it?
It separates responsibilities and creates clear boundaries, which makes complicated business rules easier to test and change.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to build or refactor complex iOS features with View, Interactor, and Presenter components, especially when strict separation and testability matter.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dagba/ios-mcp/vip-clean-architecture
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 dagba/ios-mcp --skill vip-clean-architecture
Clone the repo
git clone --depth 1 https://github.com/dagba/ios-mcp

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 vip-clean-architecture

README.md
[![agentmods](https://agentmods.dev/badge/skills/dagba/ios-mcp/vip-clean-architecture/github.svg)](https://agentmods.dev/skills/dagba/ios-mcp/vip-clean-architecture)
Your own site
<a href="https://agentmods.dev/skills/dagba/ios-mcp/vip-clean-architecture"><img src="https://agentmods.dev/badge/skills/dagba/ios-mcp/vip-clean-architecture/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 vip-clean-architecture

Your own site · 80×15
<a href="https://agentmods.dev/skills/dagba/ios-mcp/vip-clean-architecture"><img src="https://agentmods.dev/badge/skills/dagba/ios-mcp/vip-clean-architecture.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,648 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.00052 $0.03648
Opus 5 $0.00026 $0.01824
Sonnet 5 $0.00010 $0.00730
Haiku 4.5 $0.00005 $0.00365

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

Security

Grade A, and why

vip-clean-architecture 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 10d 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/vip-clean-architecture/SKILL.md · 499 lines

How it starts

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

VIP Clean Architecture

Overview

VIP (View-Interactor-Presenter) is Uncle Bob's Clean Architecture applied to iOS with strict unidirectional data flow. Unlike MVVM (bidirectional) or VIPER (complex 5-component), VIP uses 3 core components with protocol-based boundaries.

Core Principle: Data flows in one direction: View → Interactor → Presenter → View. No component ever calls backward in the cycle.

When to Use VIP

digraph vip_decision {
    "Enterprise app?" [shape=diamond];
    "Max testability?" [shape=diamond];
    "Complex business logic?" [shape=diamond];
    "Team > 3 devs?" [shape=diamond];
    "Use VIP" [shape=box, style=filled, fillcolor=lightgreen];
    "Use MVVM" [shape=box, style=filled, fillcolor=lightblue];

    "Enterprise app?" -> "Max testability?" [label="yes"];
    "Enterprise app?" -> "Use MVVM" [label="no"];
    "Max testability?" -> "Use VIP" [label="yes"];
    "Max testability?" -> "Complex business logic?" [label="no"];
    "Complex business logic?" -> "Team > 3 devs?" [label="yes"];
    "Complex business logic?" -> "Use MVVM" [label="no"];
    "Team > 3 devs?" -> "Use VIP" [label="yes"];
    "Team > 3 devs?" -> "Use MVVM" [label="no"];
}

Use VIP for:

  • Enterprise iOS apps with strict quality requirements
  • Features requiring 80%+ test coverage
  • Complex business logic with multiple edge cases
  • Multi-team projects needing clear boundaries
  • Apps where testability > development speed

Use MVVM instead for:

  • Standard iOS apps (most apps)
  • Rapid prototyping or MVPs
  • Simple CRUD applications
  • Small teams (1-2 developers)
  • Projects prioritizing delivery speed

VIP Components

Component Responsibility Testability What It Must NOT Do
View Display, user input, lifecycle events UI tests only Business logic, formatting, navigation
Interactor Business logic, use cases, orchestration 100% unit testable UI updates, data formatting, navigation
Presenter Format data for display, prepare view models 100% unit testable Business logic, network calls, persistence
Worker External services (network, DB, APIs) Mock/stub in tests Business logic, data formatting
Router Navigation, screen transitions Integration tests Business logic, data management

Read the full file on GitHub · 499 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. 10d ago First seen · 499 lines · 52 tokens per session scan A 8928b159940c

Subscribe to this mod's changes

vip-clean-architecture is a skill published in the GitHub repository dagba/ios-mcp (3 stars, last pushed 7mo ago), licensed MIT. It adds 52 tokens to every session and 3,648 once invoked, about $0.0003 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-08-31.

Related

Other skills, from other repositories