Skip to content

Getting Started

Welcome to agent-init! This guide will help you set up your development environment for AI-assisted development with Claude.

Before you begin, ensure you have the following installed:

  • Git (2.0 or higher)
  • Your preferred text editor with syntax highlighting
  • Basic familiarity with command-line operations
Terminal window
git clone https://github.com/yourusername/agent-init.git
cd agent-init

Run the initialization script to set up your project with agent-init templates:

Terminal window
./init.sh your-project-name

This will:

  • Create essential configuration files
  • Set up development workflows
  • Initialize git with proper .gitignore
  • Create documentation templates

After initialization, your project will have the following structure:

your-project/
├── CLAUDE.md # AI assistant instructions
├── CHANGELOG.md # Project changelog
├── Makefile # Automation commands
├── README.md # Project documentation
├── .gitignore # Git ignore patterns
├── external/ # External dependencies (git submodules)
└── src/ # Your source code

The CLAUDE.md file contains instructions for AI assistants. It includes:

  • Project overview and context
  • Development standards and conventions
  • Session tracking information
  • Quality assurance checklists

See the development best practices for more details on maintaining this file.

The Makefile provides automation for common tasks:

Terminal window
make dev # Start development environment
make test # Run tests
make lint # Run linters
make session-start # Begin a new development session
make session-end # End current session

All external repositories should be added as git submodules in the external/ directory:

Terminal window
git submodule add https://github.com/example/repo.git external/repo
git submodule update --init --recursive
Terminal window
make session-start

This will:

  • Create a session entry in CLAUDE.md
  • Prompt for session goals
  • Set up your development environment

Before writing code, create an issue to track your work:

Terminal window
make issue

Follow the issue-driven development workflow:

  1. Create a feature branch: git checkout -b feature/issue-number-description
  2. Make your changes
  3. Run quality checks: make lint test
  4. Commit with meaningful messages
Terminal window
make session-end

This will:

  • Update session tracking
  • Run final quality checks
  • Create a session summary

If you encounter issues:

  1. Check the troubleshooting section in the README
  2. Review the session history in CLAUDE.md
  3. Create an issue with detailed context