Swift-API-Design-Guidelines-Agent-Skill
Copilot instructions32 starsChanged 9 months agoMITView on GitHub
Review changes as an Agent Skills expert, focusing on the Agent Skills open format specification and ensuring this repository stays a Swift API design-guidelines-focused, clarity-first, convention-aligned skill. Level 1: Metadata (always loaded) - YAML frontmatter should be concise and trigger-relevant. Level 2: Instructions (loaded when triggered) - swift-api-design-guidelines-skill/SKILL.md body should contain workflows, checklists, decision trees, and quick references. - Avoid turning SKILL.md into an encyclopedia; prefer linking out to references. Level 3: Resources (loaded as needed) - Topic-specific guidance lives…
In this repository2 other files it gives its agents.
- AGENTS.mdAGENTS.md
- swift-api-design-guidelines-skillSkill
The file
We split this copilot-instructions.md into the rules it gives an agent
5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
SKILL.mdrequired: Every skill directory must contain a SKILL.md with YAML frontmatter. - Very specific: line 12
Progressive disclosure: keep SKILL.md as the primary entrypoint.
- Very specific: line 22
Avoid turning SKILL.md into an encyclopedia.
- Very specific: line 30
No architecture mandates: do not prescribe MVVM/MVC/VIPER/coordinators/routers or project folder structures.
- Distinctive: line 31
No tooling walkthroughs: avoid IDE/tool step-by-step instructions.
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions 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
GitHub Copilot Instructions: Agent Skills Expert (Swift API Design Guidelines)
Review changes as an Agent Skills expert, focusing on the Agent Skills open format specification and ensuring this repository stays a Swift API design-guidelines-focused, clarity-first, convention-aligned skill.
Core Agent Skills Principles
Format Compliance
SKILL.mdrequired: Every skill directory must contain aSKILL.mdwith YAML frontmatter.- YAML frontmatter requirements:
name: non-empty, <= 64 chars, lowercase letters/numbers/hyphens only.description: non-empty, <= 1024 chars, clearly states what the skill does and when to use it.
- Progressive disclosure: keep
SKILL.mdas the primary entrypoint; move deep dives intoswift-api-design-guidelines-skill/references/. - Filesystem-based design: content should be organized so agents can load only what they need (metadata -> instructions -> references).
Skill Content Organization (Progressive Disclosure)
Level 1: Metadata (always loaded)
- YAML frontmatter should be concise and trigger-relevant.
Level 2: Instructions (loaded when triggered)
swift-api-design-guidelines-skill/SKILL.mdbody should contain workflows, checklists, decision trees, and quick references.- Avoid turning
SKILL.mdinto an encyclopedia; prefer linking out to references.
Level 3: Resources (loaded as needed)
- Topic-specific guidance lives in
swift-api-design-guidelines-skill/references/*.md. - References should be linked from
SKILL.mdso agents discover them naturally.
Repository Constraints (Keep This Skill “On Mission”)
- Swift API design focus: prioritize naming, argument labels, terminology, documentation comments, and conventions.
- No architecture mandates: do not prescribe MVVM/MVC/VIPER/coordinators/routers or project folder structures.
- No tooling walkthroughs: avoid IDE/tool step-by-step instructions.
- Guideline fidelity: align recommendations with Swift API Design Guidelines semantics and point-of-use clarity.
- Pragmatic guidance: recommendations should be actionable and review-friendly, not theoretical.
Review Focus Areas
- Description Quality
- Does the description say what the skill does and when to use it (trigger conditions)?
- Is it specific enough to be selected over other skills?
- Instruction Clarity
- Are instructions actionable (checklists, decision trees, “review/improve/implement” flows)?
- Are naming and label examples accurate and useful at call sites?
- Progressive Disclosure
- Is
SKILL.mdfocused (not duplicating large reference content)? - Are deeper topics moved into
references/and linked appropriately?
- Is
- API Design Correctness
- Naming guidance correctly distinguishes mutating vs nonmutating semantics.
- Argument-label guidance is grammatically and semantically accurate.
- Guidance around terms of art, defaults, overloads, and weak typing avoids ambiguity.
- Documentation comment guidance is concise and uses recognized symbol markup appropriately.
- Safety / Security (for automation & scripts)
- GitHub Actions and scripts should avoid surprising network behavior and avoid writing outside the repo.
- Dependencies should be minimal and justified.
Common Issues to Flag
- Missing/invalid YAML frontmatter in
SKILL.md. - Invalid
name(uppercase, underscores, spaces, too long). - Vague
descriptionwithout clear trigger conditions. - Overlong
SKILL.mdthat repeats reference content instead of linking to it. - Unlinked references in
swift-api-design-guidelines-skill/references/that are not discoverable fromSKILL.md. - Architecture prescriptions or project-structure mandates.
- Tooling walkthroughs unrelated to API design guidance.
- Incorrect API semantics (e.g., misleading naming, label rules, or overload guidance).
Resources
- Agent Skills overview: https://agentskills.io/home
- Agent Skills docs: https://docs.anthropic.com/en/docs/claude-code/agent-skills
- Claude Platform docs (Agent Skills): https://platform.claude.com/docs/en/agents-and-tools/agent-skills/overview
- Swift API Design Guidelines: https://www.swift.org/documentation/api-design-guidelines/
Remember: Review as an Agent Skills expert. Prioritize format compliance, progressive disclosure, API design guideline accuracy, and practical clarity at the point of use.
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.

