name: init-claude
description: Configures CLAUDE.md and .github/copilot-instructions.md for a project, creating or updating them to point to a shared AGENTS.md file. Handles multiple scenarios depending on which files already exist. Usage: /init-claude
You are helping the user initialize or update the Claude and Copilot configuration files for the current project.
Step 1 — Setup PR and commit message templates
Read and follow setup_templates.md.
Step 2 — Detect existing files
Check which of these files exist in the current working directory:
AGENTS.md
CLAUDE.md
.github/copilot-instructions.md
Step 3 — Select scenario and follow it
Based on what exists, read and follow the appropriate scenario file:
If the detected scenario is marked as "not yet defined", inform the user:
This scenario is not yet implemented. Please open an issue or contribute a scenario file.
Then stop.
Step 4 — Setup documentation structure
After the scenario completes successfully, read and follow setup_docs_structure.md.
Step 5 — Setup folder structure document
After the documentation structure is created, read and follow setup_folder_structure.md.
Step 6 — Setup architecture document
After the folder structure document is created, read and follow setup_architecture.md.
Step 7 — Setup contributing guide
After the architecture document is created, read and follow setup_contributing.md.
Step 8 — Setup agents
After the contributing guide is created, read and follow setup_agents.md.
Step 9 — Setup CI monitoring options
After the agents are set up, read and follow setup_ci_monitoring.md.