agentleFS
AvdLeeAvdLee/Swift-Testing-Agent-Skill/.github/copilot-instructions.md

Swift-Testing-Agent-Skill

Copilot instructions467 starsChanged 10 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 Testing-focused, migration-friendly, modern-testing skill. Level 1: Metadata (always loaded) - YAML frontmatter should be concise and trigger-relevant. Level 2: Instructions (loaded when triggered) - swift-testing-expert/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…

The file

We split this copilot-instructions.md into the rules it gives an agent

8 rules. About 0 are common, 3 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    SKILL.md required: Every skill directory must contain a SKILL.md with YAML frontmatter.

    line 8
  2. Very specific:

    Progressive disclosure: keep SKILL.md as the primary entrypoint.

    line 12
  3. Very specific:

    Avoid turning SKILL.md into an encyclopedia.

    line 22
  4. Distinctive:

    No architecture mandates: do not prescribe app architectures or project structures.

    line 31
  5. Very specific:

    Prefer #expect/#require over legacy assert families in Swift Testing code.

    line 34
  6. Very specific:

    Use @available on tests where relevant.

    line 35
  7. Distinctive:

    Call out default parallel execution and isolation requirements.

    line 36
  8. Distinctive:

    Accuracy over novelty: do not invent unsupported APIs or migration shortcuts.

    line 37

≈ “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.

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

GitHub Copilot Instructions: Agent Skills Expert (Swift Testing)

Review changes as an Agent Skills expert, focusing on the Agent Skills open format specification and ensuring this repository stays a Swift Testing-focused, migration-friendly, modern-testing skill.

Core Agent Skills Principles

Format Compliance

  • SKILL.md required: Every skill directory must contain a SKILL.md with 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.md as the primary entrypoint; move deep dives into swift-testing-expert/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-testing-expert/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 swift-testing-expert/references/*.md.
  • References should be linked from SKILL.md so agents discover them naturally.

Swift Testing Repository Constraints (Keep This Skill "On Mission")

  • Swift Testing-first: guidance should prioritize import Testing, @Test, suites, traits, tags, and macro-based expectations.
  • Migration-aware: allow XCTest coexistence and incremental migration, but keep XCTest usage scoped to unsupported areas (UI automation, XCTMetric, Objective-C tests).
  • No architecture mandates: do not prescribe app architectures or project structures.
  • No broad IDE walkthroughs: mention workflows only when they directly improve test outcomes.
  • Modern APIs and semantics:
  • Prefer #expect/#require over legacy assert families in Swift Testing code.
  • Use @available on tests where relevant; do not apply @available to suite types.
  • Call out default parallel execution and isolation requirements.
  • Accuracy over novelty: do not invent unsupported APIs or migration shortcuts.

Review Focus Areas

  1. 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?
  1. Instruction Clarity
  • Are instructions actionable (triage paths, decision trees, migration steps)?
  • Are examples correct Swift Testing usage and aligned with Apple docs?
  1. Progressive Disclosure
  • Is SKILL.md focused (not duplicating large reference content)?
  • Are deeper topics moved into references/ and linked appropriately?
  1. Swift Testing Correctness
  • Guidance for test declaration and suite organization is accurate.
  • Migration mappings from XCTest are correct and non-destructive.
  • Async waiting guidance uses modern concurrency and confirmations where needed.
  • Parallelization guidance prioritizes fixing isolation over blanket serialization.
  1. 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 description without clear trigger conditions.
  • Overlong SKILL.md that repeats reference content instead of linking to it.
  • Unlinked references in swift-testing-expert/references/ not discoverable from SKILL.md.
  • Incorrect XCTest migration claims (e.g. suggesting unsupported 1:1 API replacements).
  • Guidance that imports Testing in non-test targets.
  • Applying @available to suite types or ignoring suite initializer constraints.
  • Unnecessary .serialized guidance without first addressing shared-state design.

Resources


Remember: You are reviewing as an Agent Skills expert. Prioritize format compliance, progressive disclosure, Swift Testing accuracy, and migration-safe guidance.

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.