Now that you’ve configured a provider, you can navigate to a project that you want to work on.
Terminal window
cd /path/to/project
And run OpenCode.
Terminal window
opencode
Next, initialize OpenCode for the project by running the following command.
/init
This will get OpenCode to analyze your project and create an AGENTS.md file in the project root.
Tip
You should commit your project’s AGENTS.md file to Git.
This helps OpenCode understand the project structure and the coding patterns used.
1---2name: initialize3description: Initialize4license: MIT5---67# OpenCode Initialization89Now that you’ve configured a provider, you can navigate to a project that you want to work on.1011Terminal window1213```14cd /path/to/project15```1617And run OpenCode.1819Terminal window2021```22opencode23```2425Next, initialize OpenCode for the project by running the following command.2627```28/init29```3031This will get OpenCode to analyze your project and create an `AGENTS.md` file in the project root.3233Tip3435You should commit your project’s `AGENTS.md` file to Git.3637This helps OpenCode understand the project structure and the coding patterns used.
Run npx skillmds@latest add timsonner/initialize in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Initialize It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free. This skill is licensed under MIT.
timsonner (@timsonner) published this skill. Their other Agent Skills are listed on their SkillMD profile.