From b03549b08764e7b4f11d6c8fc9b9c530d0552bcc Mon Sep 17 00:00:00 2001 From: uroma Date: Fri, 16 Jan 2026 09:16:59 +0000 Subject: [PATCH] Update MASTER-PROMPT for agent-updater and sync-agents.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit MASTER-PROMPT.md changes: - Update agent count: 37 → 38 agents - Add Agent Updater to Bonus section (now 3 bonus agents) - Add agent-updater as 8th special agent (Utility Agent, on-demand) - Add new Step 1.75: Install Agent Sync Script - Complete sync-agents.sh installation instructions - Usage examples with GITEA_REPO_URL - REPO_AGENTS_DIR for updating installer agents - Crontab example for automatic weekly sync - Rollback instructions - Update architecture overview: - 7 PROACTIVELY Coordinators (auto-trigger) - 1 Utility Agent (manual trigger) - 30 Specialist Agents (was 31) - Update all agent count references throughout document This provides complete MASTER-PROMPT installation method with automatic agent update capabilities matching the interactive installer. --- MASTER-PROMPT.md | 101 ++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 96 insertions(+), 5 deletions(-) diff --git a/MASTER-PROMPT.md b/MASTER-PROMPT.md index 06f2bdb..7c1942a 100644 --- a/MASTER-PROMPT.md +++ b/MASTER-PROMPT.md @@ -120,7 +120,7 @@ Each component is explained below with real-life examples showing the benefits. --- -## Step 1: Install Contains Studio Agents (37 agents with PROACTIVELY auto-triggering) +## Step 1: Install Contains Studio Agents (38 agents with PROACTIVELY auto-triggering) Source: https://github.com/contains-studio/agents @@ -140,7 +140,7 @@ cp -r /tmp/contains-studio-agents/agents/* ~/.claude/agents/ - **Project Management (3):** Experiment Tracker, Project Shipper, Studio Producer - **Studio Operations (5):** Analytics Reporter, Finance Tracker, Infrastructure Maintainer, Legal Compliance Checker, Support Responder - **Testing (5):** API Tester, Performance Benchmarker, Test Results Analyzer, Tool Evaluator, Workflow Optimizer -- **Bonus (2):** Studio Coach, Joker +- **Bonus (3):** Studio Coach, Agent Updater, Joker ### 🎯 Auto-Triggering System: How Agents Coordinate @@ -148,7 +148,8 @@ cp -r /tmp/contains-studio-agents/agents/* ~/.claude/agents/ The 38 agents are divided into two types: - **7 PROACTIVELY Coordinators** - Auto-trigger based on context and coordinate specialists -- **31 Specialist Agents** - Execute specific domain tasks when called +- **1 Utility Agent** - Manually triggered for maintenance (agent-updater) +- **30 Specialist Agents** - Execute specific domain tasks when called **How It Works:** @@ -163,6 +164,8 @@ This gives you automation when you want it, control when you need it. **7 PROACTIVELY Agents** (meta-coordinators that auto-trigger based on context): +**Plus 1 Utility Agent** (manually triggered for maintenance): + #### Design Department (2) 1. **ui-ux-pro-max** - Triggers on UI/UX design work @@ -206,6 +209,14 @@ This gives you automation when you want it, control when you need it. - Motivates and aligns agents when stuck - Example: "Build a viral TikTok app in 2 weeks" → studio-coach organizes frontend, backend, marketing agents +#### Utility Agent (On-Demand) + +8. **agent-updater** - Manually triggered for agent synchronization + - Checks GitHub for agent updates + - Downloads and installs new/updated agents safely + - Preserves local customizations + - Example: "Check for agent updates" → agent-updater fetches latest from GitHub and syncs your installation + --- **🔄 Real Workflow Example:** @@ -281,6 +292,86 @@ cp /tmp/ui-ux-pro-max-skill/.claude/skills/ui-ux-pro-max/SKILL.md ~/.claude/skil --- +## Step 1.75: Install Agent Sync Script (Keep Agents Updated) + +Source: https://github.rommark.dev/admin/claude-code-glm-suite + +Install the automated sync script to keep your agents up-to-date: +```bash +# Download sync-agents.sh +wget -O ~/.claude/sync-agents.sh https://raw.githubusercontent.com/github.rommark.dev/admin/claude-code-glm-suite/main/sync-agents.sh + +# Make it executable +chmod +x ~/.claude/sync-agents.sh +``` + +### What This Provides: + +**Automated agent synchronization:** +- Fetches latest agents from official GitHub repository +- Creates timestamped backups before updating +- Detects new, updated, and customized agents +- Safely updates while preserving your customizations +- Commits changes to git (if configured) +- Pushes updates to your Gitea repository + +**Usage:** +```bash +# Run sync manually +~/.claude/sync-agents.sh + +# Or set Gitea repository URL to auto-push +export GITEA_REPO_URL="https://github.rommark.dev/admin/claude-code-glm-suite.git" +~/.claude/sync-agents.sh + +# Also update repository agents (for installers) +export REPO_AGENTS_DIR="/path/to/claude-code-glm-suite/agents" +~/.claude/sync-agents.sh +``` + +**How it works:** +1. Clones latest agents from `https://github.com/contains-studio/agents` +2. Compares with your local `~/.claude/agents/` +3. Identifies: + - ✨ New agents to add + - 📝 Updated agents to refresh + - ⚠️ Custom agents to preserve +4. Creates backup: `~/.claude/agents.backup.YYYYMMDD-HHMMSS/` +5. Applies updates safely +6. Reports all changes +7. [Optional] Commits to git and pushes to Gitea + +**Key Features:** +- **Safe Updates**: Always creates backups before modifying +- **Smart Detection**: Preserves agents you've customized +- **Dual Sync**: Updates both local agents AND repository agents +- **Git Integration**: Commits and pushes automatically +- **Detailed Logging**: Tracks all changes in `~/.claude/agents/update.log` + +**Keeping Agents Updated:** +Run the sync script regularly (weekly or monthly) to get the latest agent improvements: +```bash +# Add to crontab for automatic weekly sync +0 2 * * 0 ~/.claude/sync-agents.sh +``` + +Or manually check for updates anytime: +```bash +~/.claude/sync-agents.sh +``` + +**Rollback if needed:** +```bash +# List backups +ls -la ~/.claude/agents.backup.* + +# Restore a backup +rm -rf ~/.claude/agents +mv ~/.claude/agents.backup.YYYYMMDD-HHMMSS ~/.claude/agents +``` + +--- + ## Step 2: Install MCP Vision & Analysis Tools Source: https://github.com/zai-ai/mcp-server @@ -427,7 +518,7 @@ tldr status . claude --version Expected results: -- ✅ 38+ agent files (37 agents + README) +- ✅ 39+ agent files (38 agents + README) - ✅ All 8 departments present - ✅ MCP tools accessible - ✅ TLDR indexed current directory @@ -668,7 +759,7 @@ React 19 was released in December 2024 with new features: ### 1. contains-studio/agents **Source:** https://github.com/contains-studio/agents -**Type:** Agent Collection (37 agents) +**Type:** Agent Collection (38 agents) **Integration:** File-based agents in ~/.claude/agents/ **Key Feature:** PROACTIVELY auto-triggering system **Benefits:**