Ajouter une nouvelle compétence

VérifiéSûr

Crée un nouveau fichier de compétence avec la structure requise, en chargeant les guides de style et en analysant les arguments de catégorie, nom et description. À utiliser lors de l'ajout d'une nouvelle compétence pour garantir le respect du format standard et des conventions.

Spar Skills Guide Bot
DocumentationIntermédiaire
7002/06/2026
Claude CodeCursor
#skill-creation#template#contribution#catalog

Recommandé pour

Notre avis

Ce skill permet de créer un nouveau skill pour le catalogue en suivant un format standardisé.

Points forts

  • Fournit un modèle structuré pour des skills cohérents
  • Inclut une checklist de vérification et des anti-patrons
  • Référence des guides de style pour améliorer la qualité

Limites

  • Nécessite la mise à jour manuelle du fichier README
  • Ne crée pas automatiquement les nouveaux répertoires de catégories
  • Ne valide pas le contenu des skills créés
Quand l'utiliser

Utilisez ce skill lorsque vous devez ajouter un nouveau skill au catalogue en respectant le format officiel.

Quand l'éviter

N'utilisez pas ce skill pour modifier des skills existants ou pour des contenus ne correspondant pas au modèle standard.

Analyse de sécurité

Sûr
Score qualité88/100

The skill only performs file system inspection and creation tasks using safe commands like ls and head, and guides creation of markdown files. There is no network access, no execution of arbitrary code, and no destructive actions.

Aucun point d'attention détecté

Exemples

Add XSS prevention skill
Add a new skill security xss-prevention 'Prevent cross-site scripting attacks in WordPress'
Create a skill for React testing
Add a new skill testing react-testing 'Write unit tests for React components with Jest and React Testing Library'
Add a skill for code formatting
Add a new skill development prettier 'Configure and enforce Prettier code formatting across projects'

Add New Skill

Create a new skill following the standard format.

Arguments

$ARGUMENTS

Expected format: <category> <skill-name> "<one-line description>"

Example: security xss-prevention "Prevent cross-site scripting attacks in WordPress"

Pre-flight Checks

# List existing skill categories
ls -d skills/*/ 2>/dev/null | sed 's/skills\///' | sed 's/\///'

# Show skill format reference
head -30 skills/prompt-engineering/SKILL.md

Instructions

  1. Parse the arguments to get:

    • Category (must be existing directory or create new)
    • Skill name (kebab-case)
    • One-line description
  2. Load style guides first:

    • skills/prompt-engineering/references/anti-patterns.md
    • skills/prompt-engineering/references/wordpress-docs-style-guide.md
  3. Create the skill file at skills/<category>/<skill-name>.md with this structure:

# [Skill Name in Title Case]

> **Topic**: <category>/<skill-name>
> **Platforms**: All
> **Source**: wp-dev-prompts

<skill>
<summary>
[One-line description from arguments]
</summary>

<knowledge>
## Core Concepts

[Essential knowledge - 2-3 paragraphs]

## Best Practices

1. [Practice with explanation]
2. [Practice with explanation]
3. [Practice with explanation]

## Common Patterns

```[language]
[Correct code pattern example]

Anti-Patterns (Avoid)

  • ❌ [What NOT to do and why]
  • ❌ [Another thing to avoid]

Verification Checklist

  • [ ] [How to verify correct implementation]
  • [ ] [Another verification step] </knowledge>
<references> - [Relevant official docs](URL) </references> </skill>

Platform Integration

Claude Code / Cursor / Cline

Reference this skill in prompts or CLAUDE.md.

ChatGPT / Gemini

Copy the <knowledge> section directly into your prompt.


4. Update `skills/README.md`:
   - Add to directory structure if new category
   - Update skill count
   - Add to category description section

5. Verify the skill:
   - Check for AI indicator words
   - Confirm proper markdown formatting
   - Validate internal links
Skills similaires