
bocato/swift-testing-agent-skill
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
エージェントスキルは、AIコーディングツールのエキスパートのSwiftテストガイダンスを提供します。テストダブル、フィクスチャ、非同期パターン、XCTestマイグレーションをカバーし、ベストプラクティスをテストします.
概要
エージェントスキルのオープンフォーマットをサポートするAIコーディングツールのエキスパートガイド - Swift Testingフレームワーク、テストダブル、フィクスチャ、テストベストプラクティス。 - 現代のテストパターンが必要なSwiftのテストフレームワークを採用するチーム。 - ユニットテスト、統合テスト、またはスナップショットテストを書く開発者。 ・ 信頼できるテスト インフラストラクチャ(モック、スタブ、スパイ、備品)を望む人。 - チームはXCTestからSwiftのテストに移行します。 単一のコマンドでこのスキルをインストールします。 次に、AIエージェントのスキルを使用する例: 迅速なテストスキルを使用して、UserServiceクラスのテストを書くのに役立ちます GitHub Copilotは、VSコード、VSコードインサイダー、Copilot CLIのエージェントスキルをサポートしています。 リポジトリの .github/skills/ ディレクトリに、fast-testing/ フォルダーをコピーします。 あなたのプロジェクト構造は以下のようなものでなければなりません: すべてのプロジェクトで個人的な使用のために、ホームディレクトリにコピーします
概要(AI 翻訳)
エージェントスキルのオープンフォーマットをサポートするAIコーディングツールのエキスパートガイド - Swift Testingフレームワーク、テストダブル、フィクスチャ、テストベストプラクティス。
誰がこれなのか
- 現代のテストパターンが必要なSwiftのテストフレームワークを採用するチーム。
- ユニットテスト、統合テスト、またはスナップショットテストを書く開発者。
- 信頼できるテスト インフラストラクチャ(モック、スタブ、スパイ、備品)を望む人。
- チームはXCTestからSwiftのテストに移行します。
このスキルを使用する方法
##Option A: Skill.sh の使用 (推奨) 単一のコマンドでこのスキルをインストールします。
次に、AIエージェントのスキルを使用する例:
迅速なテストスキルを使用して、UserService クラスのテストを書くのに役立ちます
オプション B: GitHub Copilot
GitHub Copilotは、VSコード、VSコードインサイダー、Copilot CLIのエージェントスキルをサポートしています。
#####プロジェクトスキル(推奨)
swift-testing/フォルダをリポジトリの[.github/skills/]ディレクトリにコピーします。
あなたのプロジェクト構造は以下のようなものでなければなりません:
パーソナルスキル
すべてのプロジェクトで個人的な使用のために、ホームディレクトリにコピーします。
###VS コード構成
VS コード設定でエージェント スキルが有効になっていることを確認します
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
Swift Testing Agent Skill
Expert guidance for any AI coding tool that supports the Agent Skills open format — Swift Testing framework, test doubles, fixtures, and testing best practices.
Who this is for
- Teams adopting Swift Testing framework who need modern testing patterns.
- Developers writing unit tests, integration tests, or snapshot tests.
- Anyone wanting reliable test infrastructure (mocks, stubs, spies, fixtures).
- Teams migrating from XCTest to Swift Testing.
How to Use This Skill
Option A: Using skills.sh (recommended)
Install this skill with a single command:
npx skills add https://github.com/bocato/swift-testing-agent-skill --skill swift-testing
Then use the skill in your AI agent, for example:
Use the swift testing skill and help me write tests for the UserService class
Option B: GitHub Copilot
GitHub Copilot supports Agent Skills in VS Code, VS Code Insiders, and Copilot CLI.
Project Skills (Recommended)
Copy the swift-testing/ folder to your repository’s .github/skills/ directory:
# Clone this repo and copy the skill
git clone https://github.com/bocato/swift-testing-agent-skill.git
cp -r swift-testing-agent-skill/swift-testing .github/skills/
Your project structure should look like:
your-project/
├── .github/
│ └── skills/
│ └── swift-testing/
│ ├── SKILL.md
│ └── references/
│ └── ...
└── ...
Personal Skills
For personal use across all projects, copy to your home directory:
# Create personal skills directory if it doesn't exist
mkdir -p ~/.copilot/skills
# Copy the skill
cp -r swift-testing-agent-skill/swift-testing ~/.copilot/skills/
VS Code Configuration
Ensure Agent Skills are enabled in VS Code settings:
{
"chat.useAgentSkills": true
}
Copilot will automatically discover and load the skill when relevant to your testing tasks.
Option C: Claude Code Plugin
Personal Usage
To install this Skill for your personal use in Claude Code:
-
Add the marketplace:
/plugin marketplace add bocato/swift-testing-agent-skill -
Install the Skill:
/plugin install swift-testing@swift-testing-agent-skill
Project Configuration
To automatically provide this Skill to everyone working in a repository, configure the repository’s .claude/settings.json:
{
"enabledPlugins": {
"swift-testing@swift-testing-agent-skill": true
},
"extraKnownMarketplaces": {
"swift-testing-agent-skill": {
"source": {
"source": "github",
"repo": "bocato/swift-testing-agent-skill"
}
}
}
}
When team members open the project, Claude Code will prompt them to install the Skill.
Option D: Gemini CLI
Gemini CLI supports custom instructions through GEMINI.md files or the .gemini/ directory.
Project Instructions (Recommended)
推奨ツール
別のキーワードを試すか、フィルタを外してください。
インストール
npx skillfish add bocato/swift-testing-agent-skill