MAJOR FIXES: - AGENT-LLM.MD: Add git init setup instructions for fresh repositories - AGENT-LLM.MD: Replace clone workflow with template workflow - AGENT-LLM.MD: Add deterministic command sequences for consistent AI outcomes - WORKLOG-LLM.md: Convert to template with bracketed placeholders - CURRENTWORK-LLM.md: Convert to template with structured sections - Add TEMPLATE-README.md with complete setup instructions DETERMINISTIC IMPROVEMENTS: - Exact command sequences for AI agents - Mandatory worklog maintenance patterns - Specific commit message and tagging formats - Clear CTO delegation principles and audit trails Ready for milestone tag download and fresh git init usage.
3.3 KiB
3.3 KiB
AI AGENT REFERENCE - TEMPLATE VERSION
FOR: Gemini-CLI, Claude, OpenCode, all AI tools working with CTO delegation template
CRITICAL SETUP (FIRST TIME ONLY)
This template requires initial git setup:
git init
git add .
git commit -m "Initial commit from CTO template"
git branch -M main
git remote add origin YOUR_REPO_URL
git push -u origin main
Create required branches:
git checkout -b INTEGRATION-WIP && git push -u origin INTEGRATION-WIP
git checkout -b RELEASE && git push -u origin RELEASE
git checkout main
CRITICAL RULES
- NEVER work on
main
branch - Always use feature branches - NEVER auto-delete feature branches - Preserve all branches permanently
- ALWAYS push before switching branches - Never lose work
- Push every 10 commits max - Keep work backed up
- Tag milestones - Mark completed stages/milestones
- UPDATE WORKLOGS - Maintain both worklog files
DETERMINISTIC COMMANDS
Start new feature (EXACT sequence):
git checkout main
git pull origin main
git checkout -b feature/TASK-NAME
Save work before switching (MANDATORY):
git add .
git commit -m "SPECIFIC_DESCRIPTION_OF_CHANGES"
git push origin CURRENT-BRANCH-NAME
Tag completed milestone:
git tag -a MILESTONE-NAME -m "DETAILED_DESCRIPTION_OF_COMPLETION"
git push origin MILESTONE-NAME
BRANCH STRUCTURE (CREATE THESE)
main
- Stable, protected, no direct commitsINTEGRATION-WIP
- Auto-merge target for testing featuresRELEASE
- Manual PR target for production releasesfeature/TASK-NAME
- All development work (descriptive names)
DETERMINISTIC WORKFLOW
- Always start from main:
git checkout main && git pull origin main
- Create specific branch:
git checkout -b feature/EXACT-TASK-NAME
- Work in small chunks: Commit every logical change
- Push frequently: Every 5-10 commits or before any branch switch
- Never delete branches: Preserve all feature branches permanently
- Tag milestones: When features/stages complete
MILESTONE TAGGING (DETERMINISTIC)
When to tag:
- Feature completely implemented and tested
- Stage of project fully complete
- Major milestone achieved
Format (be specific):
feature-auth-complete
(feature done)milestone-YYYY-MM-DD-DESCRIPTION
(date+description)stage-NAME-done
(stage complete)
WORKLOG MAINTENANCE (MANDATORY)
Update these files every session:
- docs/WORKLOG-LLM.md - Current status, progress, next actions
- docs/CURRENTWORK-LLM.md - Detailed notes, decisions, concerns
Pattern (deterministic):
- Session start → Update current status in WORKLOG-LLM.md
- During work → Add detailed notes to CURRENTWORK-LLM.md
- Session end → Update completion status and next actions
CTO DELEGATION PRINCIPLES
Make outcomes deterministic:
- Use specific commit messages describing exact changes
- Tag with descriptive names explaining what was accomplished
- Document all decisions and concerns in CURRENTWORK-LLM.md
- Follow exact command sequences above
- Never deviate from branch protection rules
CONTEXT
- Purpose: Template for CTO AI delegation framework
- Platform: Any git hosting (GitHub, Gitea, GitLab)
- Structure: Keep docs in docs/ directory for clean repos
- Philosophy: Deterministic AI delegation with complete audit trail