mcpField
S
swift-docc

swift-docc

github.com/nonameplumDevelopment1756 installsUpdated 12w ago
Repository

About swift-docc

swift-docc is a reference skill for creating API documentation and interactive tutorials for Swift frameworks and packages. It covers source comments, supplemental content, formatting, and publishing documentation.

Key features

  1. 01Generate API reference documentation
  2. 02Create step-by-step interactive tutorials
  3. 03Document symbols from source comments
  4. 04Add articles, links, and code snippets
  5. 05Format and organize documentation pages

Use cases

  1. 01Document a Swift package API
  2. 02Create tutorials for Swift API users
  3. 03Add conceptual articles and code examples

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/nonameplum/agent-skills --skill swift-docc

After installing, type/swift-doccin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

adding-code-snippets-to-your-content.md
adding-images.md
adding-structure-to-your-documentation-pages.md
adding-supplemental-content-to-a-documentation-catalog.md
adding-tables-of-data.md
customizing-the-appearance-of-your-documentation-pages.md
distributing-documentation-to-other-developers.md
documenting-a-swift-framework-or-package.md
formatting-your-documentation-content.md
linking-to-symbols-and-other-content.md
other-formatting-options.md
Assets/
table-align-center.svg
table-align-leading.svg
table-align-trailing.svg
Documenting API with different language representations/
documenting-api-with-different-language-representations.md
Reference Syntax/API Reference Syntax/
api-reference-syntax.md
DisplayName.md
DocumentationExtension.md
Metadata.md
TitleHeading.md
Reference Syntax/Shared Syntax/
Comment.md
Reference Syntax/Tutorials Syntax/
building-an-interactive-tutorial.md
Reference Syntax/Tutorials Syntax/Shared Directives/
Image.md
Intro.md
tutorial-shared-directives.md
Video.md
Reference Syntax/Tutorials Syntax/Shared Directives/Chapter/
Chapter.md
TutorialReference.md
Reference Syntax/Tutorials Syntax/Top-Level Directives/Tutorial/Assessments/
Assessments.md
Reference Syntax/Tutorials Syntax/Top-Level Directives/Tutorial/Assessments/MultipleChoice/Choice/
Choice.md

Details

From the project README

docc

Produce rich API reference documentation and interactive tutorials for your Swift framework or package.

Documentation Structure

Essentials
Documentation Content
  • Writing Symbol Documentation in Your Source Files (writing-symbol-documentation-in-your-source-files.md): Add reference documentation to your symbols that explains how to use them.
  • Adding Supplemental Content to a Documentation Catalog (adding-supplemental-content-to-a-documentation-catalog.md): Include articles and extension files to extend your source documentation comments or provide supporting conceptual content.
  • Linking to Symbols and Other Content (linking-to-symbols-and-other-content.md): Facilitate navigation between pages using links.
  • Adding Code Snippets to your Content (adding-code-snippets-to-your-content.md): Create and include code snippets to illustrate and provide examples of how to use your API.
  • Documenting API with Different Language Representations ([Documenting API with different language representations/documenting-api-with-different-language-representations.md](Documenting API with different language representations/documenting-api-with-different-language-representations.md)): Create documentation for API that's callable from more than one source language.
Structure and Formatting
Distribution
Documentation Types
  • API Documentation ([Reference Syntax/API Reference Syntax/api-reference-syntax.md](Reference Syntax/API Reference Syntax/api-reference-syntax.md)): Teach your APIs through reference documentation you create from code comments and extension files, or create detailed articles and conceptual guides.
  • Interactive Tutorials ([Reference Syntax/Tutorials Syntax/tutorial-syntax.md](Reference Syntax/Tutorials Syntax/tutorial-syntax.md)): Teach developers your Swift APIs through step-by-step, interactive content.
Shared Syntax

Usage Notes

  • Documentation is organized progressively from getting started to advanced topics
  • Start with the Introduction or Getting Started section
  • Consult specific guides for detailed information

License & Attribution

This skill contains content converted from DocC documentation format.

Comments

Markdown supported