ablevarghese/ios-claude-toolkit/forge-development
Claude Code and agent skill by ablevarghese/ios-claude-toolkit
- community
Checking that the SKILL.md file is still in the repository.
Use ANY TIME Swift code is written, modified, or created — even for 'small' changes. TDD-first Swift/SwiftUI development with hexagonal architecture, MVVM, and protocol-based DI. Triggers: implementing features, writing Swift code, creating views or viewmodels, refactoring, fixing bugs, adding a new screen, building a service, wiring dependencies, setting up DI. Covers Swift 6 strict concurrency, Sendable compliance, and error handling. If unsure whether to use this skill, use it — it is the default for all Swift implementation work. For code review without changes, use ios-review instead.
Install
npx vskill@latest install ablevarghese/ios-claude-toolkit/forge-developmentSKILL.md
The same SKILL.md was published earlier as ablevarghese/ios-claude-toolkit/forge-development.
FORGE — Development & Code Engineering
Swift/SwiftUI development skill for iOS apps. Enforces hexagonal architecture + MVVM + protocol-based DI with TDD-first methodology.
Iron Law: "No implementation without a failing test first. No exception."
Project Discovery: Before executing, determine project-specific values (project name, scheme, bundle ID, target, architecture layers) from project configuration files (CLAUDE.md, project.yml, .xcodeproj, Package.swift).
Phased TDD Workflow: RED → GREEN → REFACTOR
TDD is not optional. Every implementation begins with a failing test. This section shows the complete cycle with real Swift/XCTest examples.
Phase 1: RED — Write the Failing Test
Write the test first. It must fail. If it passes before you write implementation code, the test is wrong — it's not testing anything new.
Run the test. It must fail:
This failure confirms the test is real. Now proceed to GREEN.
Phase Gate: RED
Cannot proceed to GREEN until ALL conditions are met:
- [ ] Test file exists and compiles
- [ ] Test has been RUN (not just written)
- [ ] Output shows FAILURE (not compilation error — a genuine test assertion failure)
- [ ] You can explain in one sentence WHY it fails
Proof required: Show the test run command and its failure output.
If test passes immediately: The test is wrong — it's testing existing behavior, not new behavior. Delete the test. Write one that actually fails. This is the most common TDD mistake.
If you wrote implementation code before reaching this gate: STOP. Delete the implementation. You violated the Iron Law. Return to RED.
Phase 2: GREEN — Minimum Implementation to Pass
Write only enough code to make the test pass. Resist the urge to over-engineer.
Run the test. It must pass:
Phase Gate: GREEN
Cannot proceed to REFACTOR until ALL conditions are met:
- [ ] The previously-failing test now PASSES
- [ ] You wrote the MINIMUM code to pass (not the "right" code — the minimum)
- [ ] All OTHER existing tests still pass (no regressions)
Proof required: Show test suite output. Previously-red test is green. No other tests broken.
Counter: If you wrote more than ~20 lines to pass one test, you're over-engineering the GREEN phase. The point is minimum viable — elegance comes in REFACTOR.
Phase 3: REFACTOR — Improve Without Changing Behavior
Now clean up. Extract, rename, simplify — but the tests must stay green after every change.
Common refactoring targets:
- Extract validation into a private method
- Add
Sendableconformance if the type crosses actor boundaries - Ensure
@MainActoris applied if needed - Improve naming for clarity
- Remove duplication
Phase Gate: REFACTOR
Cannot commit until ALL conditions are met:
- [ ] All tests pass (zero failures)
- [ ] No new compiler warnings introduced
- [ ] Import boundaries verified (Domain imports only Foundation)
- [ ] No force unwraps added
- [ ] No
.sharedsingletons introduced
Proof required: Full test suite output — zero failures, zero warnings.
Architecture Gate (Before Writing ANY File)
Before creating or modifying any Swift file, verify:
- Which layer does this file belong to? (Presentation / Domain / Infrastructure)
- What does it import? Check: Does any import violate the dependency rule?
- Presentation: may import Domain + SwiftUI/UIKit
- Domain: may import ONLY Foundation (no frameworks, no infrastructure)
- Infrastructure: may import Domain + external frameworks (Supabase, Stripe, etc.)
- If an import violates the rule, extract a protocol in the Domain layer first.
Cannot write the file until layer and imports are verified. Writing code in the wrong layer cascades architectural violations that are expensive to fix later.
Architecture: Hexagonal (Ports & Adapters)
Layer Diagram
Architecture Violation Detection Decision Tree
Dependency Injection Pattern
SwiftUI View Composition
When to Extract Subviews
Extract a subview when:
- The
bodyproperty exceeds ~30 lines - A visual section is reused in multiple views
- A section has its own state or logic
- The view has more than 3 levels of nesting
@ViewBuilder Usage
Use @ViewBuilder for computed properties and helper methods that return views:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/forge-development/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ablevarghese/ios-claude-toolkit/forge-development)