Initialiser le fichier AGENTS.md

VérifiéSûr

Crée un lien symbolique de AGENTS.md vers CLAUDE.md dans le répertoire du projet, puis exécute éventuellement `/init` et nettoie le fichier en remplaçant les références à Claude par AI agents. Utile pour initialiser un projet avec un fichier mémoire personnalisé.

Spar Skills Guide Bot
DeveloppementDébutant
4002/06/2026
Claude Code
#project-setup#symlink#agents-md#claude-md#init

Recommandé pour

Notre avis

Crée un lien symbolique de AGENTS.md vers CLAUDE.md pour utiliser AGENTS.md comme fichier mémoire principal pour Claude Code, avec possibilité d'exécuter /init et de nettoyer le contenu.

Points forts

  • Offre un moyen simple de passer de CLAUDE.md à AGENTS.md
  • Exécute automatiquement /init pour découvrir les paramètres du projet
  • Nettoie le fichier AGENTS.md pour supprimer les références spécifiques à Claude
  • Interface conviviale avec avertissements et confirmations

Limites

  • Ne fonctionne que dans le répertoire de travail actuel
  • Nécessite la confirmation de l'utilisateur pour les fichiers existants
  • Le nettoyage peut ne pas couvrir toutes les références à Claude
Quand l'utiliser

Utilisez cette compétence lorsque vous souhaitez utiliser AGENTS.md au lieu de CLAUDE.md comme fichier mémoire du projet pour Claude Code.

Quand l'éviter

N'utilisez pas cette compétence si vous comptez conserver CLAUDE.md comme fichier principal ou si vous n'utilisez pas Claude Code.

Analyse de sécurité

Sûr
Score qualité80/100

The skill performs only local file operations (creating a file, making a symlink) and offers to run an internal '/init' command, but no destructive actions, exfiltration, or obfuscation. It includes user confirmation before overwriting files, and does not invoke external scripts or network access.

Aucun point d'attention détecté

Exemples

Initialize AGENTS.md for project
Set up AGENTS.md as the memory file for this project.
Override CLAUDE.md with AGENTS.md
I want to use AGENTS.md instead of CLAUDE.md. Please create the necessary symlink and initialize.
Switch to AGENTS.md with init
Create a symlink from AGENTS.md to CLAUDE.md and run /init to populate project settings.

name: init-override description: Create a symlink from AGENTS.md to CLAUDE.md in the current project directory. Use when the user wants to initialise a project to use AGENTS.md as the memory file instead of CLAUDE.md.

init-override

Create a symlink from AGENTS.md to CLAUDE.md in the current project directory, then optionally run /init and sanitise the output.

Instructions

  1. Check if CLAUDE.md already exists in the current working directory

    • If it exists and is a symlink pointing to AGENTS.md, inform the user it's already configured and skip to step 4
    • If it exists and is a regular file, warn the user and ask if they want to replace it
  2. Create AGENTS.md if it doesn't exist, using the template below

  3. Create the symlink: ln -s AGENTS.md CLAUDE.md

  4. Ask the user if they want to run /init to auto-discover project settings

    • If yes, run /init and then proceed to step 5
    • If no, confirm success and finish
  5. Sanitise the AGENTS.md file by removing or replacing:

    • Any line containing "Claude Code" or "claude.ai"
    • References to CLAUDE.md (replace with AGENTS.md)
    • References to .claude/ paths
    • The boilerplate phrase "This file provides guidance to Claude Code"
    • Replace "Claude" with "AI agents" where it refers to the assistant
  6. Ensure the file header is # AGENTS.md (not # CLAUDE.md or # Project guidance)

  7. Confirm success and show the user the sanitised content

AGENTS.md template

Use this content when creating a new AGENTS.md file (before /init runs):

# AGENTS.md

This file provides guidance for AI agents working with code in this repository.
Skills similaires