agentleFS
swift-instituteswift-institute/Skills/documentation/SKILL.md

documentation

Skill0 starsChanged 4 months agoApache-2.0View on GitHub

Everything written for humans — inline DocC comments, .docc catalogues and tutorials, READMEs, blog posts and launch articles, and generated HTML/PDF documents. Apply when writing or reviewing documentation comments, a .docc article or tutorial, a README, a public post, or when building or verifying a rendered document or a deployed docs site.

58 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use refactoring, typescript and 8 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • pproencaSkill

    refactoring

    Code refactoring best practices based on Martin Fowler's catalog and Clean Code principles. This skill should be used when refactoring existing code, improving code structure, reducing complexity, eliminating code smells, or reviewing code for maintainability. Triggers on tasks involving extract method, rename, decompose conditional, reduce coupling, or improve readability.

    Also in 8 projects that use this

  • MicrosoftSkill

    typescript

    Use this guide when working on TypeScript changes in the FAST monorepo — authoring Web Components, writing templates and styles, working with the observable/reactive system, and testing.

    Also in 5 projects that use this

  • VercelSkill

    oauth

    Configure OAuth providers (Google, Apple, Microsoft, Facebook, GitHub, etc.) to work with portless local dev URLs. Use when setting up OAuth redirect URIs, fixing "redirect_uri_mismatch" or "invalid redirect" errors, configuring sign-in providers for local development, or when a provider rejects .localhost subdomains. Triggers include "OAuth not working with portless", "redirect URI mismatch", "Google/Apple/Microsoft sign-in fails locally", "configure OAuth for local dev", or any task involving OAuth callback URLs with portless domains.

    Also in 3 projects that use this

  • MicrosoftSkill

    rust

    Use this guide when working on Rust changes in the FAST monorepo.

    Also in 3 projects that use this

  • Microsoft AzureSkill

    git-workflow

    Squad branching model: dev-first workflow with insiders preview channel

    Also in 10 projects that use this

  • SentrySkill

    architecture-review

    Staff-level codebase health review. Finds monolithic modules, silent failures, type safety gaps, test coverage holes, and LLM-friendliness issues.

    Also in 5 projects that use this

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 52 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Never invent a rationale. Where one is unrecorded, say so, and say that none should be inferred — a plausible reconstruction is …

    line 27
  2. Distinctive:

    When layout matters, render the artifact and look at it.

    line 54
  3. Distinctive:

    Write from one reader problem to one durable insight, and explain the problem and its constraints before naming the Institute abstraction …

    line 59
  4. Distinctive:

    No whimsy. No internal rule IDs and no skill names in public prose — restate the principle in general terms, which is also what makes it …

    line 69

“Common” is measured: kept by at least 6 in 10 of the 52 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Docs

One skill for prose aimed at humans. Code conventions live elsewhere.

Audience layers

A feature's documentation lives in four layers, each reaching a different reader in a different context. They do not substitute for each other.

LayerWhereReaderOptimize for
Inline ///.swift sourcesomeone using the API right nowthe autocomplete/quick-help popup at the call site: one-line summary plus canonical usage snippet
Per-symbol article.docc/{Symbol}.mdsomeone who clicked through to the typeoverview, example, rationale, member Topics groupings
Topical article.docc/{Topic}.mdsomeone learning a concept spanning symbolstask-oriented prose, decision matrices
Tutorial.docc/{Name}.tutoriala first-time readerlearning by doing

Author each fact in one layer and reference it from the others. API contract belongs inline; decision matrices belong in topical articles; historical rationale, research summaries, and experiment links belong in .docc articles and never in inline ///. Duplication is a smell unless it is a deliberate mirror of a contract the reader needs in-context.

Never invent a rationale. Where one is unrecorded, say so, and say that none should be inferred — a plausible reconstruction is indistinguishable from a recorded one once it is on the page, and the next reader has no way to tell.

Generated documents

import PDF pulls the whole stack and is the default. Narrower imports exist only to avoid that: import HTML for HTML pages and Markdown-to-HTML rendering; import PDF_Rendering for direct low-level PDF composition with PDF.View / @PDF.Builder and no HTML involved.

Configuration entry points: PDF.HTML.Configuration for the HTML-to-PDF path (paper size, margins, default font and size, line height, table styling, outline depth), PDF.Configuration for direct rendering, and Markdown.Configuration / Markdown.Rendering for markdown — slug generation and directives are configuration, per-element HTML is rendering.

Fonts are the PDF Standard 14, which is what PDF.Font models: Helvetica, Times, and Courier across the regular/bold × normal/italic-or-oblique grid, plus Symbol and ZapfDingbats. The family enum also carries a custom case for an embedded TrueType/OpenType face; treat that as available but unproven here — nothing in this corpus exercises the embedding path end to end, so verify it against the renderer before relying on it.

Headers and footers require two-pass rendering — pass one counts pages, pass two renders — which is what makes "Page X of Y" correct. Declare header:/footer: heights in the configuration and pass header:/footer: closures to PDF.HTML.pages(...); each closure receives a Page.Info carrying pageNumber, totalPages, sectionTitle, documentTitle, and date.

When layout matters, render the artifact and look at it. Test escaping, Unicode, empty content, and pagination — none of which a passing render asserts anything about.

Public writing

Write from one reader problem to one durable insight, and explain the problem and its constraints before naming the Institute abstraction that solves it. Every code sample compiles against the version the piece presents.

Link a receipt per claim, not one blanket "see the experiments" link at the bottom. Per-claim links cost more to write and dramatically less to verify; that asymmetry is the point. When a claim is empirically true but resists minimal reproduction, link the production artifact as the receipt, link whatever experiment demonstrates the adjacent mechanism, and say plainly that the minimal reproduction does not exist.

No whimsy. No internal rule IDs and no skill names in public prose — restate the principle in general terms, which is also what makes it legible to a reader outside the Institute. Cut content that documents internal editorial or organizational decisions: why the launch was structured this way, which package graduated out of which, post-meta ledes, and links that ground nothing load-bearing.

Ownership and reference primitives are escape hatches for what the language cannot express — the preferred approach is always borrowing, consuming, ~Copyable, ~Escapable. They may ship, but they are never the flagship, the lead blog topic, or the featured example. Their absence from most code is the point being made.

Elsewhere

  • .docc catalogues, the symbol-graph trap, tutorials, deployed-site verification — docc.md.
  • README families, structure, badges, org profiles — readmes.md.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.