Phase 0: Foundation & Cursor Rules Setup - Complete This commit establishes the foundation for a comprehensive documentation and project management system for Tendril, following best practices from the COMPLETE-SYSTEM-REPLICATION-GUIDE.md. ## What Was Created ### 1. Cursor Rules System (.cursorrules) - Comprehensive rules for AI agent behavior in Cursor IDE - Phase documentation synchronization rules (auto-update changelog, tasks, decisions) - KB (Knowledge Base) ingestion and routing rules - Gitea Actions workflow maintenance rules - README maintenance rules - File deletion protection rules - Customized for Tendril project with Gitea platform ### 2. Directory Structure - tendril/phases/ - Phase-based project management structure - kb/ - Knowledge Base system with 8 categories: * 01_projects/tendril/ - Project-specific notes * 02_systems/ - Infrastructure/tooling * 03_research/ - Informal research * 04_design/ - Product specs/UX * 05_decisions/ - Project-level ADRs * 06_glossary/ - Terms/acronyms * 07_playbooks/ - How-to guides * 08_archive/ - Superseded content * Special directories: _guides/, _templates/, _inbox/, _review_queue/, scripts/ - .github/workflows/ - Gitea Actions workflows (compatible with GitHub Actions) - docs/PROMPTS/ - LLM usage guides ### 3. Agent Guidelines (docs/AGENT-GUIDELINES.md) - Comprehensive guide for AI agents working on Tendril - Documents project structure, workflows, and conventions - Mandatory workflows and critical rules - Project-specific context (Rust/WASM, Zed extension) - Links to all documentation systems ### 4. Gitea Documentation (docs/GITEA/) Complete documentation suite for working with Gitea: - README.md - Overview and quick reference - Gitea-Basics.md - Core concepts, features, differences from GitHub - Gitea-Actions-Guide.md - CI/CD guide with compatibility notes - Gitea-Workflows.md - Common workflows and best practices - Gitea-API-Reference.md - API differences and usage - LLM-Gitea-Guidelines.md - LLM-specific guidelines and terminology ### 5. Phase Updates Documentation (docs/PHASE-UPDATES/) - COMPLETE-SYSTEM-REPLICATION-GUIDE.md - Complete replication guide - PHASE-0-GITEA-UPDATES.md - Documents Gitea-specific updates - README.md - Directory overview and navigation ## Why This Was Done 1. **Establish AI-Friendly Documentation System** - Enables consistent AI agent behavior across the project - Provides clear guidelines for documentation maintenance - Ensures automated synchronization of related documents 2. **Platform-Specific Adaptation (Gitea)** - Tendril uses self-hosted Gitea, not GitHub - Gitea Actions is compatible with GitHub Actions but needs proper documentation - Ensures all references use correct terminology (Gitea vs GitHub) 3. **Foundation for Phase-Based Management** - Sets up structure for phase documentation system - Prepares for KB system implementation - Establishes automation workflows foundation 4. **Knowledge Management** - KB system structure ready for capturing project knowledge - Templates and guides prepared for future use - Index generation system prepared ## How It Benefits the Project ### 1. Automated Documentation Synchronization - When phase blueprints are modified, related documents (changelog, tasks, decisions) are automatically checked and updated - Reduces manual synchronization errors - Ensures consistency across all phase documents ### 2. AI Agent Consistency - Cursor rules ensure all AI interactions follow the same patterns - Clear guidelines prevent inconsistent documentation - Automated checks ensure nothing is missed ### 3. Gitea Platform Understanding - Comprehensive Gitea documentation helps LLMs understand the platform - Correct terminology prevents confusion (Gitea vs GitHub) - Workflow compatibility clearly documented ### 4. Scalable Structure - Phase-based system supports long-term project management - KB system ready for knowledge capture and organization - Automation workflows prepared for CI/CD ### 5. Developer Experience - Clear documentation structure makes onboarding easier - Automated workflows reduce manual maintenance - Consistent patterns across all documentation ### 6. Future-Proof Foundation - Structure supports future phases (1-6) - KB system ready for knowledge capture - Automation system ready for workflow implementation ## Technical Details ### Gitea Actions Compatibility - Gitea Actions uses same YAML format as GitHub Actions - Same .github/workflows/ directory structure - Workflows are largely interchangeable - Documentation notes compatibility throughout ### File Organization - All documentation organized in docs/ directory - Phase updates tracked in docs/PHASE-UPDATES/ - Gitea-specific docs in docs/GITEA/ - Agent guidelines in docs/AGENT-GUIDELINES.md ### Cursor Rules Customization - Project name: Tendril - Phase directory: tendril/phases/ - KB project: tendril - Platform: Gitea (self-hosted) ## Next Steps Phase 0 is complete. Ready for: - Phase 1: Phase Documentation System setup - Phase 2: KB System implementation - Phase 3: Gitea Actions workflows - Phase 4: LLM Usage Guides - Phase 5: Documentation migration - Phase 6: Validation and testing ## Files Added - .cursorrules (root) - docs/AGENT-GUIDELINES.md - docs/GITEA/ (6 files) - docs/PHASE-UPDATES/ (3 files) - Directory structures for phases, KB, workflows, and prompts All files validated with no linter errors.
63 lines
2.4 KiB
Markdown
63 lines
2.4 KiB
Markdown
# Phase 0 Gitea Updates Summary
|
|
|
|
**Date**: 2025-01-27
|
|
**Purpose**: Document updates made to Phase 0 files to reflect Gitea (self-hosted) instead of GitHub
|
|
|
|
## Changes Made
|
|
|
|
### 1. `.cursorrules` File Updates
|
|
|
|
**Updated References:**
|
|
- "GitHub Actions workflows" → "Gitea Actions workflows" (3 occurrences)
|
|
- "GitHub Actions will auto-update" → "Gitea Actions will auto-update"
|
|
|
|
**Note**: Gitea Actions is compatible with GitHub Actions, so the `.github/workflows/` directory structure and YAML format remain the same.
|
|
|
|
### 2. `docs/AGENT-GUIDELINES.md` Updates
|
|
|
|
**Updated References:**
|
|
- "GitHub issues" → "Gitea issues"
|
|
- "GitHub Automation" → "Gitea Automation" (section title)
|
|
- "GitHub Actions workflows" → "Gitea Actions workflows (compatible with GitHub Actions format)"
|
|
- "When Modifying GitHub Workflows" → "When Modifying Gitea Actions Workflows"
|
|
- Added note: "Gitea Actions is compatible with GitHub Actions, so workflows use the same YAML format and `.github/` directory structure."
|
|
- Added note: "Gitea Actions workflows use the same YAML format as GitHub Actions, so existing GitHub Actions workflows can be used with minimal or no modifications."
|
|
- "GitHub automation" → "Gitea automation" (in Getting Help section)
|
|
|
|
## Key Points
|
|
|
|
1. **Gitea Actions Compatibility**: Gitea Actions is compatible with GitHub Actions, meaning:
|
|
- Same `.github/workflows/` directory structure
|
|
- Same YAML workflow format
|
|
- Same triggers and syntax
|
|
- Existing GitHub Actions workflows can be used with minimal or no modifications
|
|
|
|
2. **Repository Context**:
|
|
- Primary repository: https://git.parkingmeter.info/Mycelium/tendril (Gitea)
|
|
- Self-hosted Gitea instance
|
|
- Uses Gitea Actions for CI/CD automation
|
|
|
|
3. **No Structural Changes Needed**:
|
|
- Directory structure remains the same
|
|
- Workflow files will work as-is
|
|
- Only documentation references needed updating
|
|
|
|
## Files Modified
|
|
|
|
1. `.cursorrules` - Updated 3 references from GitHub to Gitea
|
|
2. `docs/AGENT-GUIDELINES.md` - Updated 6 references and added compatibility notes
|
|
|
|
## Next Steps
|
|
|
|
When creating workflows in Phase 3:
|
|
- Use standard GitHub Actions YAML format
|
|
- Workflows will work with Gitea Actions automatically
|
|
- Reference "Gitea Actions" in documentation, but note GitHub Actions compatibility
|
|
- Test workflows in Gitea Actions interface (similar to GitHub Actions tab)
|
|
|
|
---
|
|
|
|
**Location**: `docs/PHASE-UPDATES/PHASE-0-GITEA-UPDATES.md`
|
|
**Related**: Phase 0 setup, Gitea Actions compatibility
|
|
|