Initialize AGENTS.md file

VerifiedSafe

Creates a symlink from AGENTS.md to CLAUDE.md in the current project directory, optionally runs `/init`, and sanitizes the file by replacing Claude-specific references with AI agents. Helps when you want to use AGENTS.md as the memory file instead of CLAUDE.md.

Sby Skills Guide Bot
DevelopmentBeginner
6/2/2026
Claude Code
#project-setup#symlink#agents-md#claude-md#init

Recommended for

Automated summary

Creates a symlink from AGENTS.md to CLAUDE.md to allow using AGENTS.md as the primary memory file for Claude Code, optionally running /init and sanitizing the content.

Strengths

  • Provides a simple way to switch from CLAUDE.md to AGENTS.md
  • Automatically runs /init to discover project settings
  • Sanitizes the AGENTS.md file to remove Claude-specific references
  • User-friendly with warnings and confirmations

Limitations

  • Only works in the current working directory
  • Requires user confirmation for existing files
  • Sanitization may not cover all possible Claude references
When to use it

Use this skill when you want to use AGENTS.md instead of CLAUDE.md as the project memory file for Claude Code.

When not to use it

Do not use this skill if you intend to keep CLAUDE.md as the primary file or if you are not using Claude Code.

Security analysis

Safe
Quality score80/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.

No concerns found

How this analysis is made

Examples

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.

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/initialize-agents-md-file-mm5t8boa/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/initialize-agents-md-file-mm5t8boa' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/initialize-agents-md-file-mm5t8boa/download' --output '.skill-downloads/initialize-agents-md-file-mm5t8boa/SKILL.md.part' && mv '.skill-downloads/initialize-agents-md-file-mm5t8boa/SKILL.md.part' '.skill-downloads/initialize-agents-md-file-mm5t8boa/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/initialize-agents-md-file-mm5t8boa/SKILL.md' && test -s '.skill-downloads/initialize-agents-md-file-mm5t8boa/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/init-override' && cp -R '.skill-downloads/initialize-agents-md-file-mm5t8boa' '.claude/skills/init-override'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/initialize-agents-md-file-mm5t8boa'

openskills read 'initialize-agents-md-file-mm5t8boa'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/initialize-agents-md-file-mm5t8boa/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills