swift-docc
Skill1.3k starsChanged 3 months agoMITView on GitHub
Use when adding triple-slash comments to Swift types, methods, or properties; creating a .docc catalog folder; writing articles or extension files for a Swift package; fixing DocC build warnings about broken symbol links or missing documentation; or setting up module-level documentation for the first time.
2 other projects use a version of this.
Trending
Quiet since October.about the whole repository
Most recently taken up by
- mac95sb/skillstheir own version, first seen Jul 31, 2026
- nonameplum/agent-skillstheir own version, first seen Feb 9, 2026
Who's talking about supabase/supabase-swift
- supabase/supabase-js“refactor(ci): use reusable workflows from supabase/actions”GitHub · Jan 21, 2026 · 2 reactions
- supabase/supabase-flutter“Allow to pass query params when invoking function”GitHub · May 10, 2024 · 2 reactions
- skiptools/skip“Cannot depend on external packages when using Skip native”GitHub · Apr 29, 2025 · 1 reactions
- supabase/supabase-flutter“[Feature request]: Add pull token approach to Realtime”GitHub · Dec 5, 2024 · 1 reactions
- supabase-community/supabase-kt“[Bug]: After deleting a user via edge function you can not logout”GitHub · Jun 25, 2024 · 1 reactions
The biggest 5 of 32 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 32
Talked about on GitHub (32 times).
On GitHub · 32
- Jan 21, 2026refactor(ci): use reusable workflows from supabase/actions — supabase/supabase-js2 reactions
- May 10, 2024Allow to pass query params when invoking function — supabase/supabase-flutter2 reactions · 3 comments
- Apr 29, 2025Cannot depend on external packages when using Skip native — skiptools/skip1 reaction · 11 comments
- Dec 5, 2024[Feature request]: Add pull token approach to Realtime — supabase/supabase-flutter1 reaction · 1 comment
- Jun 25, 2024[Bug]: After deleting a user via edge function you can not logout — supabase-community/supabase-kt1 reaction · 6 comments
27 more on GitHub
- Oct 5, 2026chore(deps): bump the swift-minor-patch group across 1 directory with 5 updates — matthewcross27/Pictalis0 reactions
- Oct 1, 2026chore(deps): bump the ios-deps group in /iOS with 4 updates — thegoodcompany-sst/TAVAttendance0 reactions
- Sep 29, 2026deps: bump github.com/supabase/supabase-swift from 2.55.1 to 2.55.2 in /Packages/AlbumRaterKit in the swift group — jaimerabazo/album-rater0 reactions · 1 comment
- Sep 26, 2026Bump github.com/supabase/supabase-swift from 2.54.1 to 2.55.2 in /macOS — prioneto/signalcase0 reactions · 1 comment
- Sep 21, 2026deps: bump the swift-packages group across 1 directory with 3 updates — bobokenbippers/meetup-ios0 reactions
- Sep 19, 2026chore(deps): bump the swift-minor-patch group across 1 directory with 6 updates — matthewcross27/Pictalis0 reactions · 1 comment
- Sep 16, 2026【iOS】Pealsh 担当タスク — Magii-Corp/Magii_AirLine0 reactions
- Sep 15, 2026chore(deps): bump github.com/supabase/supabase-swift from 2.55.1 to 2.55.2 in /packages/RecAnimeKit in the swift-minor-and-patch group — DANIELSSF/RecAnime0 reactions · 1 comment
- Sep 14, 2026deps: bump github.com/supabase/supabase-swift from 2.55.1 to 2.55.2 in the swift-packages group — bobokenbippers/meetup-ios0 reactions · 1 comment
- Sep 12, 2026chore(deps): bump the swift-minor-patch group across 1 directory with 7 updates — matthewcross27/Pictalis0 reactions · 1 comment
- Sep 5, 2026chore(deps): bump the swift-minor-patch group across 1 directory with 6 updates — matthewcross27/Pictalis0 reactions · 1 comment
- Sep 1, 2026chore(deps): bump the ios-deps group in /iOS with 3 updates — thegoodcompany-sst/TAVAttendance0 reactions
- Aug 29, 2026chore(deps): bump the swift-minor-patch group across 1 directory with 3 updates — matthewcross27/Pictalis0 reactions · 1 comment
- Aug 25, 2026build(deps): bump the swift-health-updates group in /native-plugins/sendlog-health with 2 updates — jirathip-dev/sendmeter0 reactions
- Aug 19, 2026Bump github.com/supabase/supabase-swift from 2.41.1 to 2.55.1 — surenss861/movemark-ios0 reactions
- Aug 17, 2026deps: bump github.com/supabase/supabase-swift from 2.54.1 to 2.55.1 in the swift-packages group — bobokenbippers/meetup-ios0 reactions
- Aug 15, 2026chore(deps): bump the swift-minor-patch group across 1 directory with 2 updates — matthewcross27/Pictalis0 reactions · 1 comment
- Aug 10, 2026deps: bump github.com/supabase/supabase-swift from 2.53.0 to 2.54.1 in the swift-packages group — bobokenbippers/meetup-ios0 reactions
- Jul 29, 2026chore(deps): bump github.com/supabase/supabase-swift from 2.53.0 to 2.54.0 in /iOS — thegoodcompany-sst/TAVAttendance0 reactions · 2 comments
- Jul 27, 2026deps: bump the swift-packages group with 2 updates — bobokenbippers/meetup-ios0 reactions
- Jul 22, 2026chore(deps): bump github.com/supabase/supabase-swift from 2.46.0 to 2.53.0 in /iOS — thegoodcompany-sst/TAVAttendance0 reactions
- Jun 22, 2026chore(deps): bump github.com/supabase/supabase-swift from 2.41.1 to 2.48.0 — Xomware/Float0 reactions · 1 comment
- May 11, 2026chore(deps): bump github.com/supabase/supabase-swift from 2.34.0 to 2.46.0 — barclayd/keepfresh-ios0 reactions · 1 comment
- Mar 30, 2026deps(swift): bump github.com/supabase-community/supabase-swift from 2.37.0 to 2.43.0 — geoffsipperly/BendFlyShop0 reactions · 1 comment
- Mar 27, 2026Build CloudTour AVP - Native visionOS Apple Vision Pro App — EdwardZehuaZhang/cloudtour-monorepo0 reactions
- Oct 13, 2025build(deps): bump github.com/supabase/supabase-swift from 2.31.2 to 2.34.0 — zunda-pixel/niabis-api0 reactions
- Dec 5, 2024[Feature request]: Add pull token approach to Realtime — supabase/supabase-py0 reactions · 3 comments
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- nonameplum/agent-skills★ 17same name
- mac95sb/skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository5 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- swift-api-design-guidelinesSkill
- writing-migration-guidesSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 30
Use /// (triple-slash only — never / */).
- Very specific: line 157
If ./scripts/test-docs.sh is unavailable:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Swift DocC Documentation
DocC compiles /// comments and .docc catalog files into a navigable hierarchy: landing
page → articles → symbol pages. A ## Topics group is what places a symbol in that hierarchy —
without it, DocC renders the symbol but nothing links to it from the navigation tree.
Step 1: Identify the scope
| What the user wants | Output to produce |
| Document one symbol | /// block in the source file |
| Organize many symbols under a type | /// block on the type with ## Topics |
| Add Topics without touching source | Extension .md file in the catalog |
| Module overview or conceptual guide | .docc catalog with a landing page article |
| Step-by-step walkthrough | .tutorial file — see tutorials.md |
Completion criterion: you know which output type(s) you will produce before writing anything.
Step 2: Write symbol documentation
Use /// (triple-slash only — never /** */). The comment must be directly adjacent to the
declaration with no blank line between them.
/// One-sentence abstract describing what this does.
///
/// Extended discussion — one or more paragraphs. Markdown works here:
/// **bold**, _italic_, `inline code`.
///
/// > Note: Appears as a blue callout. Also: Warning, Important, Tip, Experiment.
///
/// Link symbols with double backticks: ``OtherType`` or ``OtherType/method(_:)``.
/// Link articles with: <doc:ArticleName>.
///
/// ```swift
/// let result = try client.fetch(request)
/// ```
///
/// - Parameters:
/// - paramName: What this parameter represents.
/// - another: Another parameter.
/// - Returns: What the return value represents (omit if obvious from the abstract).
/// - Throws: ``MyError/notFound`` when the resource does not exist.
public func fetch(_ request: Request) throws -> Response { ... }Rules:
- Abstract is the first non-blank
///line. It appears in every reference to this symbol. - Parameters:children are indented two spaces:- name: description.- Returns:only when the return value adds information beyond the abstract.- Throws:only when the method can throw. List each error case.- Properties and enum cases need only the abstract — skip Parameters/Returns.
- No
@param,@return,@throws— those are Objective-C javadoc style.
Completion criterion: every public symbol in scope has an abstract; methods with parameters
have a - Parameters: block; all thrown errors are listed under - Throws:.
Step 3: Add Topics to build the hierarchy
Without a ## Topics section, a type's members appear on its page but are not surfaced in the
navigation sidebar or article links. Write Topics either inline in the source or in an extension file.
Inline (on the type itself):
/// The main networking client.
///
/// ## Topics
///
/// ### Creating a Client
/// - ``init(configuration:)``
///
/// ### Making Requests
/// - ``fetch(_:)``
/// - ``upload(_:data:)``
public struct NetworkClient { ... }Extension file (NetworkClient.md in the .docc catalog):
# ``NetworkClient``
@Metadata {
@DocumentationExtension(mergeBehavior: append)
}
## Topics
### Creating a Client
- ``init(configuration:)``
### Making Requests
- ``fetch(_:)``
- ``upload(_:data:)``mergeBehavior: append adds the Topics without touching the in-source summary.
mergeBehavior: override replaces the in-source documentation entirely.
Completion criterion: every type that owns child symbols has a ## Topics section listing all
public members under named groups.
Step 4: Create a documentation catalog (when needed)
A catalog is a folder ModuleName.docc placed inside Sources/ModuleName/:
Sources/Auth/Auth.docc/
├── Auth.md ← landing page
└── Resources/ ← images, videos (optional)Landing page (Auth.md):
# Auth
@Metadata {
@TechnologyRoot
}
One-sentence module summary.
## Overview
One or more paragraphs introducing the module.
## Topics
### Essentials
- ``AuthClient``
- ``AuthClientConfiguration``
### Session Management
- ``Session``
- ``User``@TechnologyRoot marks this as the module root. Without it, DocC may not render it as a
top-level entry point in Xcode or the web output.
Completion criterion: the catalog folder exists and the landing page compiles without warnings.
Step 5: Verify
./scripts/test-docs.shIf ./scripts/test-docs.sh is unavailable:
swift package generate-documentation --target ModuleName 2>&1 | grep -E "warning:|error:"Fix every warning before declaring done.
Completion criterion: the documentation build exits 0 with no warnings.
Common mistakes
| Mistake | Fix |
Using /** */ instead of /// | Replace with triple-slash on every line |
| Blank line between comment and declaration | Remove it — no gap allowed |
@param, @return, @throws (Obj-C style) | Use - Parameters:, - Returns:, - Throws: |
Single backticks for symbol links: `Foo` | Use double backticks: Foo |
| Symbol not showing in navigation sidebar | Add a ## Topics entry linking to it |
@TechnologyRoot missing from landing page | Add @Metadata { @TechnologyRoot } |
Extension file heading uses plain text: # NetworkClient | Use symbol path: #NetworkClient |
doc:Article link not resolving | Check the article filename matches exactly (case-sensitive) |
Metadata directives reference
| Directive | Purpose |
@TechnologyRoot | Marks the landing page as the module root |
@DocumentationExtension(mergeBehavior: append) | Adds to existing symbol docs |
@DocumentationExtension(mergeBehavior: override) | Replaces existing symbol docs |
@DisplayName("Custom Name") | Overrides how the symbol name renders in navigation |
@PageKind(sampleCode) | Marks a page as sample code |
Symbol link path syntax
``TypeName``
``TypeName/propertyName``
``TypeName/methodName()``
``TypeName/methodName(_:secondLabel:)``
``TypeName/init(label:)``Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

