<!DOCTYPE html> <html lang=”zh-CN”> <head> <meta charset=”UTF-8″> <meta name=”viewport” content=”width=device-width, initial-scale=1.0″> <title>OpenClaw工作空间文件指南与优化案例</title> <script src=”https://cdn.tailwindcss.com”></script> <link href=”https://fonts.proxy.ustclug.org/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap” rel=”stylesheet”> <link href=”https://cdn.bootcdn.net/ajax/libs/font-awesome/6.4.0/css/all.min.css” rel=”stylesheet”> <style> body .font-mono { font-family: ‘JetBrains Mono’, monospace; } .search-focus:focus { box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1); } .hover-card { transition: all 0.2s ease; } .hover-card:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(124, 58, 237, 0.1); } .gradient-text { background: linear-gradient(135deg, #7C3AED 0%, #A78BFA 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .workflow-step { position: relative; } .workflow-step::after { content: ”; position: absolute; top: 50%; right: -20px; width: 0; height: 0; border-left: 10px solid #7C3AED; border-top: 8px solid transparent; border-bottom: 8px solid transparent; transform: translateY(-50%); } .workflow-step:last-child::after { display: none; } @media (max-width: 768px) { .workflow-step::after { display: none; } } </style> </head> <body> <!– Hero Section –> <section class=”relative overflow-hidden bg-gradient-to-br from-purple-50 via-purple-100 to-indigo-100″> <div class=”absolute inset-0 opacity-30″> <svg width=”60″ height=”60″ viewBox=”0 0 60 60″ xmlns=”http://www.w3.org/2000/svg” class=”w-full h-full”> <g fill=”none” fill-rule=”evenodd”> <g fill=”#9C92AC” fill-opacity=”0.05″> <path d=”M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H4zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z”/> </g> </g> </svg> </div> <div class=”relative max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-20 lg:py-32″> <div class=”text-center”> <h1 class=”text-4xl sm:text-5xl lg:text-6xl font-bold mb-3 bg-gradient-to-r from-purple-600 to-indigo-600 bg-clip-text text-transparent”> OpenClaw工作空间指南 </h1> <p class=”text-xl text-purple-700 mb-8 max-w-3xl mx-auto font-medium”> 深度解析AI代理核心运行环境的文件结构、配置管理与优化策略 </p> <!– Search Bar –> <div class=”max-w-2xl mx-auto”> <div class=”relative”> <input type=”text” id=”searchInput” placeholder=”搜索工作空间文件、配置项或优化技巧…” class=”w-full px-6 py-4 text-lg border-2 border-purple-200 rounded-2xl focus:border-purple-500 focus:outline-none search-focus bg-white/80 backdrop-blur-sm”> <button class=”absolute right-3 top-1/2 transform -translate-y-1/2 bg-purple-600 text-white px-6 py-2 rounded-xl hover:bg-purple-700 transition-colors”> <i class=”fas fa-search mr-2″></i>搜索 </button> </div> </div> </div> </div> </section> <!– Core Files Overview –> <section class=”py-16 bg-white”> <div class=”max-w-7xl mx-auto px-4 sm:px-6 lg:px-8″> <div class=”text-center mb-16″> <h2 class=”text-3xl font-bold text-purple-900 mb-4″>核心文件清单</h2> <p class=”text-lg text-purple-700 max-w-2xl mx-auto”> 工作空间位于 <code class=”font-mono bg-purple-100 px-2 py-1 rounded”>~/.openclaw/workspace/</code> 目录,包含8个核心配置文件 </p> </div> <div class=”grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6″> <!– SOUL.md –> <div class=”hover-card bg-gradient-to-br from-purple-50 to-indigo-50 p-6 rounded-2xl border border-purple-100″> <div class=”flex items-center mb-4″> <div class=”w-12 h-12 bg-purple-600 rounded-xl flex items-center justify-center”> <i class=”fas fa-heart text-white text-xl”></i> </div> <h3 class=”text-xl font-bold text-purple-900 ml-4″>SOUL.md</h3> </div> <h4 class=”font-semibold text-purple-800 mb-2″>灵魂文件</h4> <p class=”text-purple-700 text-sm mb-4″>定义代理的核心价值观、行为准则和人格特征</p> <div class=”space-y-2″> <div class=”flex items-center text-sm text-purple-600″> <i class=”fas fa-check-circle mr-2″></i>人格定义 </div> <div class=”flex items-center text-sm text-purple-600″> <i class=”fas fa-check-circle mr-2″></i>行为边界 </div> <div class=”flex items-center text-sm text-purple-600″> <i class=”fas fa-check-circle mr-2″></i>进化机制 </div> </div> </div> <!– USER.md –> <div class=”hover-card bg-gradient-to-br from-blue-50 to-cyan-50 p-6 rounded-2xl border border-blue-100″> <div class=”flex items-center mb-4″> <div class=”w-12 h-12 bg-blue-600 rounded-xl flex items-center justify-center”> <i class=”fas fa-user text-white text-xl”></i> </div> <h3 class=”text-xl font-bold text-blue-900 ml-4″>USER.md</h3> </div> <h4 class=”font-semibold text-blue-800 mb-2″>用户档案</h4> <p class=”text-blue-700 text-sm mb-4″>openclaw docker 教程记录用户基本信息、偏好和交互习惯</p> <div class=”space-y-2″> <div class=”flex items-center text-sm text-blue-600″> <i class=”fas fa-check-circle mr-2″></i>基本信息 </div> <div class=”flex items-center text-sm text-blue-600″> <i class=”fas fa-check-circle mr-2″></i>职业背景 </div> <div class=”flex items-center text-sm text-blue-600″> <i class=”fas fa-check-circle mr-2″></i>交互偏好 </div> </div> </div> <!– AGENTS.md –> <div class=”hover-card bg-gradient-to-br from-green-50 to-emerald-50 p-6 rounded-2xl border border-green-100″> <div class=”flex items-center mb-4″> <div class=”w-12 h-12 bg-green-600 rounded-xl flex items-center justify-center”> <i class=”fas fa-cogs text-white text-xl”></i> </div> <h3 class=”text-xl font-bold
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/275017.html原文链接:https://javaforall.net
