Borrowing it
Nothing to install: this file belongs to adamayoung/TMDb. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/adamayoung/TMDb/main/.claude/skills/document-swift/SKILL.mdgit clone --depth 1 https://github.com/adamayoung/TMDbWrote 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.
[](https://agentmods.dev/skills/adamayoung/tmdb/document-swift)<a href="https://agentmods.dev/skills/adamayoung/tmdb/document-swift"><img src="https://agentmods.dev/badge/skills/adamayoung/tmdb/document-swift.svg" alt="Measured on agentmods" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 1 finding, up to high
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- high Anti-Refusal · line 250 Skill instructs the agent to omit warnings, disclaimers, or ethical commentary. Stripping safety caveats hides risk from the user and is a common jailbreak preamble.Fix: Remove instructions that suppress warnings, disclaimers, or ethical commentary. Let the agent surface safety-relevant caveats to the user.
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00101 | $0.02502 |
| Opus 5 | $0.00051 | $0.01251 |
| Sonnet 5 | $0.00020 | $0.00500 |
| Haiku 4.5 | $0.00010 | $0.00250 |
Grade A, and why
document-swift 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 8d 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.
How it starts
The opening of the file, as written. The whole thing — 256 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Document Swift (DocC conventions)
The canonical guide for documenting public API in the TMDb Swift package. Apply
these conventions inline, in the same step you write the declaration — a
public symbol without a /// comment is not finished (CLAUDE.md requires it,
and make build-docs runs warnings-as-errors, so a miss breaks the build). For
documenting many files at once, the documentation-writer agent follows these
same rules in an isolated context.
Scope
- Document only
publicdeclarations — skipinternal,private,fileprivate,package. - Document every public declaration — no "self-explanatory" exceptions:
protocols, classes, structs, enums (and cases where meaning isn't obvious),
actors, typealiases, models, stored/computed properties, initializers, methods,
subscripts. Custom
init(from:)/encode(to:)in apublic extensionneed comments too (a common miss). - Use
///style — never/** */. - 100-character line length; wrap continuation lines indented to align with the text above.
Summary patterns
The first /// line after the opening blank /// is the summary. Match the
project's house style by declaration kind:
- Method — verb phrase: "Returns the primary information about a movie." (not "Gets a movie.")
- Property — noun phrase: "Movie identifier." (not "The ID of the movie.")
- Type (struct/class) — "A model representing a [noun]."
- Protocol — "Provides an interface for [verb]-ing [noun] from TMDb."
- Enum — "A model representing a [noun]."; cases use concise noun phrases/adjectives.
- Initializer — "Creates a [type description] object."
Be concise. Extra detail goes in later paragraphs only when it adds something the signature doesn't.
Structure of a doc comment
Opening ///, summary, blank ///, then sections in this order, each separated
by a blank /// line: API link → Precondition → Parameters → Throws →
Returns. No trailing whitespace on blank /// lines.
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.
- 8d ago First seen · 256 lines · 101 tokens per session scan A 574be70ae624
document-swift is a skill published in the GitHub repository adamayoung/TMDb (177 stars, last pushed 8d ago), licensed Apache-2.0. It adds 101 tokens to every session and 2,502 once invoked, about $0.0005 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-30.
Other skills, from other repositories
Swift Patterns
Use this skill when working on Swift projects (SwiftPM packages, iOS/macOS apps) and you want consistent patterns for concurrency, structure, and safety.
using-xtool
This skill should be used when building iOS apps with xtool (Xcode-free iOS development), creating xtool projects, adding app extensions, or configuring xtool.yml. Triggers on "xtool", "SwiftPM iOS", "iOS on Linux", "iOS on Windows", "Xcode-free", "app extension", "widget extension", "share extension". Covers project…
scarf-miniapp-author
Author a Scarf mini-app — a small sandboxed web surface (HTML/CSS/JS) that renders inside a project's cockpit and talks to the bound Hermes session + project data through the versioned window.scarf bridge. Use to build a bespoke panel (a task board, an approval queue, a chart, a data table) for a project.
boutique-best-practices
Best practices for using Boutique with Swift 6 concurrency, @Observable, @ObservationIgnored, Sendable conformance, testing with preview stores, and dependency injection. Use when troubleshooting Boutique issues, migrating to Swift 6, or setting up tests.
workflow-audit
Systematic UI workflow auditing for SwiftUI applications. Discovers entry points, traces user flows, detects dead ends and broken promises, audits data wiring, evaluates from user perspective. Triggers: "workflow audit", "audit flows", "find dead ends", "check navigation".
swift-testing-expert
Expert guidance for Swift Testing: test structure, #expect/#require macros, traits and tags, parameterized tests, test plans, parallel execution, async waiting patterns, and XCTest migration. Use when writing new Swift tests, modernizing XCTest suites, debugging flaky tests, or improving test quality and…