Exemples de compétences de tâche

VérifiéSûr

Trois exemples de compétences structurées : création de commits conventionnels, revue de pull requests et déploiement d'applications avec formats standardisés et outils autorisés.

Spar Skills Guide Bot
DeveloppementDébutant
3002/06/2026
Claude Code
#git#commit#conventional-commit#version-control

Recommandé pour

Notre avis

Crée un commit avec un message formaté selon les conventions Conventional Commit.

Points forts

  • Automatise la création de commits formatés
  • Utilise les changements stagés pour générer le message
  • Garantit le respect du format Conventional Commit

Limites

  • Fonctionne uniquement avec Git
  • Nécessite que les changements soient stagés
  • Peut ne pas capturer le contexte complet
Quand l'utiliser

Lorsque vous devez créer un commit respectant les conventions pour améliorer la clarté de l'historique.

Quand l'éviter

Quand vous avez besoin d'un message très personnalisé ou que les changements ne sont pas encore stagés.

Analyse de sécurité

Sûr
Score qualité85/100

The SKILL.md contains only example skill definitions and instructions; it does not execute any commands or pose any risk of destructive or exfiltrating behavior.

Aucun point d'attention détecté

Exemples

Create a commit from staged changes
Create a commit for the staged changes. Use a proper conventional commit message.
Commit fix for bug
I fixed a bug in the login module. Create a conventional commit for the staged changes.

タスク型スキルの例

例1: コミットスキル

---
name: commit
description: Create a conventional commit with proper message format
disable-model-invocation: true
allowed-tools: Bash(git:*)
---

# コミット作成

## 手順

1. `git diff --cached` でステージされた変更を確認
2. 変更内容を分析し、Conventional Commit 形式でメッセージを作成
3. コミットを実行

## メッセージ形式

\```
<type>(<scope>): <subject>

<body>

<footer>
\```

type: feat, fix, refactor, chore, docs, test, ci

例2: PR レビュースキル

---
name: review-pr
description: Review a pull request for code quality, security, and best practices
disable-model-invocation: true
argument-hint: "[PR番号またはURL]"
allowed-tools: Bash(gh:*), Read, Grep, Glob
---

# PR レビュー

## PR 情報の取得

$ARGUMENTS  PR を取得する:

1. `gh pr diff $ARGUMENTS` で差分を取得
2. `gh pr view $ARGUMENTS`  PR の概要を確認

## レビュー観点

- コードの正確性
- セキュリティ(OWASP Top 10
- パフォーマンス
- テストカバレッジ
- 命名規約の遵守

## 出力形式

各ファイルについて:
- 問題の深刻度(Critical / Warning / Info)
- 該当箇所(ファイル名:行番号)
- 問題の説明と改善案

例3: デプロイスキル

---
name: deploy
description: Deploy the application to production
disable-model-invocation: true
argument-hint: "[staging|production]"
allowed-tools: Bash(npm:*, docker:*, git:*)
---

# デプロイ

対象環境: $ARGUMENTS

## 手順

1. テストスイートを実行
2. ビルド
3. デプロイターゲットにプッシュ
4. デプロイ後の動作確認

## 注意事項

- production デプロイ前に staging での検証を確認する
- ロールバック手順を把握しておく
Skills similaires