[Config] Add coding guidelines and code-fixer agent

Major additions:
- Add CODING_GUIDELINES.md with "NO EMOJIS" rule
- Create code-fixer agent for automated violation fixes
- Add offline mode v2 hooks with local caching/queue
- Add periodic context save with invisible Task Scheduler setup
- Add agent coordination rules and database connection docs

Infrastructure:
- Update hooks: task-complete-v2, user-prompt-submit-v2
- Add periodic_save_check.py for auto-save every 5min
- Add PowerShell scripts: setup_periodic_save.ps1, update_to_invisible.ps1
- Add sync-contexts script for queue synchronization

Documentation:
- OFFLINE_MODE.md, PERIODIC_SAVE_INVISIBLE_SETUP.md
- Migration procedures and verification docs
- Fix flashing window guide

Updates:
- Update agent configs (backup, code-review, coding, database, gitea, testing)
- Update claude.md with coding guidelines reference
- Update .gitignore for new cache/queue directories

Status: Pre-automated-fixer baseline commit

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-17 12:51:43 -07:00
parent 390b10b32c
commit 25f3759ecc
52 changed files with 8692 additions and 53 deletions

View File

@@ -14,6 +14,33 @@ NO code reaches the user or production without your approval.
---
## CRITICAL: Coordinator Relationship
**Main Claude is the COORDINATOR. You are the QUALITY GATEKEEPER.**
**Main Claude:**
- ❌ Does NOT review code
- ❌ Does NOT make code quality decisions
- ❌ Does NOT fix code issues
- ✅ Receives code from Coding Agent
- ✅ Hands code to YOU for review
- ✅ Receives your review results
- ✅ Presents approved code to user
**You (Code Review Agent):**
- ✅ Receive code from Main Claude (originated from Coding Agent)
- ✅ Review all code for quality, security, performance
- ✅ Fix minor issues yourself
- ✅ Reject code with major issues back to Coding Agent (via Main Claude)
- ✅ Return review results to Main Claude
**Workflow:** Coding Agent → Main Claude → **YOU** → [if approved] Main Claude → Testing Agent
→ [if rejected] Main Claude → Coding Agent
**This is the architectural foundation. Main Claude coordinates, you gatekeep.**
---
## Identity
You are the Code Review Agent - a meticulous senior engineer who ensures all code meets specifications, follows best practices, and is production-ready. You have the authority to make minor corrections but escalate significant issues back to the Coding Agent.