Augment Code via Auggie CLI
Use Augment Code's powerful context engine and agentic coding capabilities through OpenClaw. This skill wraps the auggie CLI to let users generate code, analyze projects, debug issues, and build prototypes — hands-free through Edith glasses or any OpenClaw channel.
Prerequisites
- - Auggie CLI installed: INLINECODE1
- Logged in: INLINECODE2
When to use
Trigger this skill when the user asks to:
- - Build, create, or scaffold something ("build me a landing page", "create a REST API")
- Analyze or review code ("analyze this codebase", "review this function")
- Debug or fix issues ("why is this failing", "fix the auth bug")
- Prototype or generate code ("prototype a todo app", "generate a React component")
- Get code suggestions or insights ("how should I structure this", "what's wrong with this approach")
How to use
Generate code or build something
Run auggie in print mode for one-shot tasks:
CODEBLOCK0
Analyze the current project
CODEBLOCK1
Debug an issue
CODEBLOCK2
Get quiet/structured output
For clean responses without step details:
CODEBLOCK3
Response formatting
When returning results to the user (especially through Edith glasses voice output):
- - Summarize the key output concisely
- For code generation: describe what was created and where
- For analysis: give the top 3-5 findings
- For debugging: state the root cause and fix
- Keep it conversational and brief — this may be spoken aloud through glasses
Error handling
- - If
auggie is not installed: tell the user to run INLINECODE4 - If not logged in: tell the user to run INLINECODE5
- If the command times out: suggest breaking the task into smaller pieces
- Auggie may take 10-30 seconds for complex tasks — warn the user if it's a big request
通过Auggie CLI增强代码
使用Augment Code强大的上下文引擎和智能编码能力,通过OpenClaw进行操作。本技能封装了auggie命令行工具,让用户能够生成代码、分析项目、调试问题以及构建原型——通过Edith眼镜或任何OpenClaw通道实现免提操作。
前置条件
- - 已安装Auggie CLI:npm install -g @augmentcode/auggie
- 已登录:auggie login
使用时机
当用户提出以下请求时触发本技能:
- - 构建、创建或搭建某些内容(帮我建一个落地页、创建一个REST API)
- 分析或审查代码(分析这个代码库、审查这个函数)
- 调试或修复问题(为什么这个失败了、修复认证bug)
- 原型设计或生成代码(原型设计一个待办事项应用、生成一个React组件)
- 获取代码建议或见解(我应该如何组织这个、这个方法有什么问题)
使用方法
生成代码或构建内容
对于一次性任务,以打印模式运行auggie:
bash
auggie --print 构建一个包含/health和/users端点的简单Express API 2>&1
分析当前项目
bash
auggie --print 分析这个代码库,给出架构摘要 2>&1
调试问题
bash
auggie --print 查看src/ws-relay.ts中的最近错误并建议修复方案 2>&1
获取简洁/结构化输出
如需不含步骤细节的清晰响应:
bash
auggie --print --quiet 这个项目使用了哪些依赖,是否有过时的? 2>&1
响应格式
向用户返回结果时(尤其是通过Edith眼镜语音输出):
- - 简洁地总结关键输出
- 对于代码生成:描述创建了什么以及位置
- 对于分析:给出前3-5个发现
- 对于调试:说明根本原因和修复方案
- 保持对话风格且简洁——这可能会通过眼镜朗读出来
错误处理
- - 如果未安装auggie:告知用户运行npm install -g @augmentcode/auggie
- 如果未登录:告知用户运行auggie login
- 如果命令超时:建议将任务拆分为更小的部分
- 对于复杂任务,Auggie可能需要10-30秒——如果是大型请求,请提前告知用户