1.7 KiB
1.7 KiB
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Project Overview
This is an Eino framework project (Go-based AI application framework by ByteDance/CloudWeGo). The repository is in its early stages.
Build & Development Commands
# Initialize Go module (if not done)
go mod init eino-test
# Build
go build ./...
# Run
go run .
# Test all
go test ./...
# Test a single package
go test ./path/to/package/
# Test a single function
go test ./path/to/package/ -run TestFunctionName
# Lint (install golangci-lint if needed)
golangci-lint run ./...
# Tidy dependencies
go mod tidy
Auto-Commit Convention
After completing each discrete subtask (file creation, feature implementation, bug fix, refactor), automatically generate a conventional commit message and commit. Do NOT push.
Process:
- Stage the relevant changed files (
git add <files>) - Generate a commit message following Conventional Commits format:
feat: <description>for new featuresfix: <description>for bug fixesrefactor: <description>for code refactoringdocs: <description>for documentationtest: <description>for test additions/changeschore: <description>for tooling/config changes
- Commit with
git commit -m "<message>" - Never run
git pushunless explicitly asked
Use a SubAgent for commit generation when the change is non-trivial, to keep the main context clean.
Restrictions
- Do NOT use WebSearch. All work must rely on local code, existing documentation, and tool-provided context only.
Architecture
(To be updated as the project grows.)
Key Dependencies
(To be updated as dependencies are added.)