author-swift-docc-docs

author-swift-docc-docs is a skill for Claude Code, Codex from gaelic-ghost/socket. It costs 70 tokens per session (1,321 once invoked), scanned A, original, Apache-2.0.

A writing and review workflow for DocC, Apple’s documentation system for Swift code. It covers symbol comments, articles, landing pages, topic groups, extensions, and documentation structure.

In plain words
What is it for?
Use it to write or review DocC comments and articles, organize documentation catalogs, and choose between source comments, articles, extension files, or landing pages.
Why use it?
It helps developers decide where documentation belongs and check that it is clear and correctly organized for generated Swift documentation. Swift is Apple’s programming language; a symbol is a named piece of code such as a type, method, or property.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/gaelic-ghost/socket/author-swift-docc-docs
Any agent
npx skills add gaelic-ghost/socket --skill author-swift-docc-docs
Clone the repo
git clone --depth 1 https://github.com/gaelic-ghost/socket

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 author-swift-docc-docs

README.md
[![agentmods](https://agentmods.dev/badge/skills/gaelic-ghost/socket/author-swift-docc-docs.svg)](https://agentmods.dev/skills/gaelic-ghost/socket/author-swift-docc-docs)
Your own site
<a href="https://agentmods.dev/skills/gaelic-ghost/socket/author-swift-docc-docs"><img src="https://agentmods.dev/badge/skills/gaelic-ghost/socket/author-swift-docc-docs.svg" alt="Measured on agentmods" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,321 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00070 $0.01321
Opus 5 $0.00035 $0.00660
Sonnet 5 $0.00014 $0.00264
Haiku 4.5 $0.00007 $0.00132

Measured 3d ago against content hash 248f18d3db0c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

author-swift-docc-docs 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 3d 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.

plugins/apple-dev-skills/skills/author-swift-docc-docs/SKILL.md · 110 lines

How it starts

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

Author Swift DocC Docs

Purpose

Provide the canonical DocC authoring-and-review workflow for Swift components. scripts/run-workflow.fsx classifies the task and, only when execution is needed, selects SwiftPM or Xcode according to the requested generation operation.

When To Use

  • Use this skill for in-source symbol documentation work that is meant to compile into DocC output.
  • Use this skill for DocC article writing and review.
  • Use this skill for DocC extension-file, landing-page, topic-group, and catalog-structure work.
  • Use this skill when the user wants a DocC-oriented review pass for clarity, content accuracy, or DocC-specific structure quality.
  • Use this skill when the user wants help deciding whether content belongs in source comments, articles, extension files, or landing pages.
  • Use this skill for tutorial-aware DocC review when the user clearly wants DocC tutorial help but the task is still mainly about authoring shape and conceptual flow rather than directive-deep mechanics.
  • Recommend explore-apple-swift-docs when the user really needs broader Apple or Swift documentation lookup, WWDC-material lookup, or directive-reference lookup instead of DocC authoring or review work.
  • Recommend swift-package-build-run-workflow for SwiftPM DocC generation and package-oriented follow-through.
  • Recommend xcode-build-run-workflow for Product > Build Documentation, xcodebuild docbuild, scheme, export, archive, or project-integrity follow-through.

Single-Path Workflow

  1. Classify the DocC task:
    • symbol-docs
    • article
    • structure
    • review
    • tutorial-aware-review
  2. Run scripts/run-workflow.fsx so task inference, tutorial-depth boundaries, and handoff rules resolve into one JSON contract.
  3. If the request is actually broad Apple-docs lookup, hand off to explore-apple-swift-docs.
  4. If the request is DocC generation, export, hosting, archive, or project-integrity follow-through, select the execution surface required by that operation and hand off to its owner.
  5. Otherwise stay local to DocC authoring and review:
    • revise or review source comments
    • revise or review articles and extension files
    • review landing-page and topic-group structure
    • explain the difference between content correctness, DocC correctness, and project correctness
  6. Return one status, one path_type, one resolved task type, optional execution surface, and one next-step contract.

Read the full file on GitHub · 110 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 3d ago First seen · 110 lines · 70 tokens per session scan A 248f18d3db0c

Subscribe to this mod's changes

author-swift-docc-docs is a skill published in the GitHub repository gaelic-ghost/socket (7 stars, last pushed 8d ago), licensed Apache-2.0. It adds 70 tokens to every session and 1,321 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

create-skill

Creates new skills from the user's repeating patterns. Interview-driven: discovers the task, analyzes failure modes, generates a production SKILL.md, installs it, tests it on a real target, and teaches the user how to use it. Use when a user wants to encode a repeating workflow; do NOT use for one-off tasks or…

SethGammon/Citadel · 73 tokens

zapier-demo

Walk a new user through setting up their first Zapier action and running it live — the smallest possible win. Asks what app they use, recommends one read action to enable, guides them to mcp.zapier.com to add it, then demonstrates it working in the same chat. Use when the user asks "show me how Zapier works", "set up…

zapier/zapier-mcp · 121 tokens

vitaecontext-vitaegraph

Build, deepen, validate, index, and maintain a private hierarchical career knowledge graph from supplied career materials. Use when the user asks to create or update a VitaeGraph, model education with nested courses or thesis work, enrich projects from Git repositories, or supply deep selected career context to…

vitaecontext/vitaecontext · 69 tokens

exam-study-guide

将已经讲完但尚未完成阶段门禁的一个章节整理成强类型教材清单,并在视觉模式下编译为公式可读、图片可见、知识点与全部对应例题逐项精讲的自包含 HTML/PDF。结构化工作区准备阶段完成证据、用户说 Markdown 公式仍是 raw LaTeX、图片缺失、要含课件/作业/Quiz/模拟考试题及答案的零基础讲义,或要求打印版时使用。.

ZeKaiNie/universal-examprep-skill · 113 tokens

hwp

Use this skill whenever the user wants to read, create, or edit Korean Hangul Word Processor documents (.hwp or .hwpx files). Triggers include any mention of 'hwp', 'hwpx', '한글 문서', '아래한글', '한컴오피스', or uploading/attaching .hwp/.hwpx files. Also use when extracting text from Korean reports or producing Korean-formatted…

DoHyun468/claw-hwp · 0 tokens

exam-tutor

按章节惰性加载授课:每次只读当前阶段的一个 wiki 章节,用生活隐喻讲概念、解剖公式;重点题固定走 题面图→问题→读图量→公式→演算→答案详解→溯源七步,画图题先运行算法。用于讲懂当前章或老师勾出的重点题。.

ZeKaiNie/universal-examprep-skill · 88 tokens