This is a standardized template for starting new projects using the Opencode workflow. It includes all necessary configurations, documentation structures, and agent instructions to ensure a consistent and efficient development process.
To start a new project, follow these steps exactly:
-
Clone/Copy the Template:
cp -r D:/Ai/opencode_template path/to/your_new_project
(Note: Replace the source path with your actual template location)
-
Enter the Project Directory:
cd path/to/your_new_project -
Initialize Git:
git init
-
Launch Opencode:
opencode
.opencode/: Core agent configurations, including roles (agents.yaml) and specialized instructions.docs/: The "Source of Truth". Contains all technical specifications (Requirements, Architecture, API, Database).specs/: Detailed feature breakdowns and granular task lists.AGENTS.md: The fundamental operating principles for AI Agents in this project.TASK.md: The active task tracker (Must be maintained!).PROGRESS.md: The historical log of all development progress.HANDOFF.md: Context for resuming development sessions.
The AI Agents in this project are configured to:
- Context-First: Always read
docs/before writing code. - Traceable: Every change must be reflected in
TASK.mdandPROGRESS.md. - Structured: Follow the strict rate-limiting and execution rules defined in
AGENTS.md.
- Documentation: Always update
docs/when the architecture or API changes. - Commitments: Use meaningful commit messages.
- Task Management: Never leave a
TASK.mditem inin_progresswithout an update.