Skip to content
Skills Library
Education · Learning & explanation

teach-swift-design-pattern

/teach-swift-design-pattern

Turn verified Swift pattern code and tests into a standalone evidence-first teaching guide with a direct baseline, turning point, diagram, trade-offs, alternatives, and when-not-to-use guidance. Use for documentation and learning artifacts; not for choosing architecture or inventing missing implementation evidence.

Author
rgmez ↗
Licence
MIT
Last repository change
11.11.2026

Assessment and security

90/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
9
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 11.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Turn verified Swift pattern code and tests into a standalone evidence-first teaching guide with a direct baseline, turning point, diagram, trade-offs, alternatives, and when-not-to-use guidance. Use for documentation and learning artifacts; not for choosing architecture or inventing missing implementation evidence.

Original author description

Turn verified Swift pattern code and tests into a standalone evidence-first teaching guide with a direct baseline, turning point, diagram, trade-offs, alternatives, and when-not-to-use guidance. Use for documentation and learning artifacts; not for choosing architecture or inventing missing implementation evidence.

How it works

  1. Entry gate
  2. Reading experience
  3. Workflow
  4. Visuals
  5. Boundaries
  6. Response contract
Original SKILL.md headings · 57 lines, 531 words
SKILL.md preview
---
name: teach-swift-design-pattern
description: Turn verified Swift pattern code and tests into a standalone evidence-first teaching guide with a direct baseline, turning point, diagram, trade-offs, alternatives, and when-not-to-use guidance. Use for documentation and learning artifacts; not for choosing architecture or inventing missing implementation evidence.
license: MIT
---

# Teach Swift Design Pattern

Create a guide that helps a reader decide, not memorize. The pattern name is the conclusion of the story, not its opening argument.

## Entry gate

Require verified code, relevant tests, and a current app requirement. If the implementation is incomplete or the pressure exists only in prose, report the missing evidence instead of presenting the pattern as earned.

Do not change production architecture to make the document easier to write. Route implementation work to `implement-swift-design-pattern` and decision work to `choose-swift-design-pattern` when those skills are available.

## Reading experience

Read the synced [pattern README template](references/pattern-readme-template.md) for the complete content contract. Read [README experience](references/readme-experience.md) when the target repository uses long-form GitHub documentation or needs mobile-friendly navigation.

Every guide must let the reader answer quickly:

- What app problem exists now?
- What is the smallest direct Swift solution?
- What changed and why is a local refactor insufficient?
- Which responsibility moves to the pattern boundary?
- What complexity is added?
- Which nearby alternative loses and why?
- When should the pattern be removed or avoided?

## Workflow

1. Verify names, signatures, commands, behavior, and tests against the source.
2. Write an `At a glance` summary covering problem, direct baseline, use signal, and keep-it-simple signal.
3. Explain the app problem and invariants before describing the pattern.
4. Preserve the direct solution and make the turning point concrete and measurable.
5. Describe participants by app responsibility rather than GoF placeholder names.
6. Trace one real input through the Swift implementation to an observable result or error.
7. Add one domain-specific Mermaid diagram and an equivalent accessible description.
8. Document exact run/test commands, trade-offs, closest alternatives, `When not to use it`, and a source map.
9. End the decision with one concrete reversal signal: the requirement that removes the pattern, changes the infrastructure boundary, or makes the direct design preferable again.

## Visuals

Read [visual contract](references/visual-style.md) only when the target repository uses the RG editorial system or requests a compatible header. Otherwise preserve the target's existing visual authority.

The synced pattern template is evidence from the RG catalogue, not a universal asset-path requirement. In another repository, preserve its content sequence but replace or omit the editorial header and RG-specific paths rather than creating nonexistent assets.

An editorial image communicates one thesis; Mermaid explains code relationships, sequence, or state. Neither replaces behavioral evidence. Never let an image generator recreate a supplied logo or final typography.

## Boundaries

- Do not paste generic pattern definitions from a book.
- Do not claim a benchmark, memory saving, concurrency guarantee, or platform behavior that tests or measurements do not establish.
- Do not create a class per participant when Swift values, enums, functions, actors, or native APIs express the responsibility more clearly.
- Do not hide known limitations, invalid alternatives, or renderer/tooling gaps.
- Keep each prose paragraph and list item on one logical Markdown line unless the target repository requires another style.

## Response contract

Return the guide path, evidence used, commands verified, diagram type, visual status, known limits, and any architecture fact that could not be confirmed. Do not mark the guide complete while source, tests, links, or terminology disagree.
Files in this package (9)
  • LICENSE 1 KB
  • README.md 3 KB
  • SKILL.md 4 KB
  • agents/openai.yaml 1 KB
  • assets/icon-large.svg 1 KB
  • assets/icon-small.svg 1 KB
  • references/pattern-readme-template.md 7 KB
  • references/readme-experience.md 4 KB
  • references/visual-style.md 7 KB

Versions

The database has no other skills named teach-swift-design-pattern.

Database snapshot: 13.11.2026 · package version 49dd5d048cb9 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100desiderio-teach
    Turns a learning topic into a stateful teaching workspace and a TYPO3 page built with Desiderio Content Blocks. Use when the user asks to add a topic to teach, create lesson content, teach a concept inside TYPO3, create a Desiderio learning page, or fill Desiderio content…
  • 100audit-swift-pattern-catalogue
    Audit a Swift design-pattern catalogue for usefulness, classification, overengineering, executable evidence, documentation quality, and release readiness. Use for multi-pattern repositories or teaching collections; not for choosing one pattern for one feature or implementing…
  • 100choose-swift-design-pattern
    Evaluate whether a concrete Swift app problem has earned a GoF design pattern or should retain a direct language or platform solution. Use when choosing or reviewing a pattern from current requirements; not for generic pattern definitions or implementing a preselected design.
  • 86swift
    Always use when creating and editing Swift files (*.swift)
  • 90learning-guide
    Use when the user asks to "create a learning guide", "make an interactive tour", "generate onboarding doc", "build a learning module", or any variant of turning an artifact (codebase, planning session, refactor plan, design doc) into an interactive HTML guide. Dispatches to…
  • 100swift-review
    Reviews Swift/Xcode codebases, pull requests, local changes, or individual files against Swift best practices including Google's Swift Style Guide, Apple's API Design Guidelines, build performance, memory management, and testing standards. Use this skill whenever the user asks…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.