god-mode Skill
Conversational project oversight and AI agent coaching for OpenClaw.
Overview
god-mode lets users ask about their projects in plain English. You run the commands and explain the results conversationally.
What users can ask:
- - "Set up god-mode for my repos"
- "What's happening across my projects?"
- "Which repos need attention?"
- "Analyze my agents.md"
- "What should I work on today?"
What you provide:
- - Multi-project status summaries (GitHub + Azure DevOps)
- Plain-English explanations of commit activity, PRs, issues
- LLM-powered agent instruction analysis
- Recommendations for improving their AGENTS.md
Perfect for:
- - Developers juggling multiple repos who want conversational oversight
- Teams using AI coding assistants (Claude, Copilot, etc.)
- Anyone who wants data-driven improvements to their AGENTS.md
Getting Started
For OpenClaw Users (Conversational)
Just tell me what you want! I'll run the god-mode commands for you.
Example conversations:
You: "Set up god-mode for my tada repository"
Me: Sure! I'll set up god-mode and add your tada repo.
[runs god setup and god projects add github:YourUsername/tada]
Done! Your repo is configured. Want me to sync the data?
You: "Yes, and show me what's happening"
Me: [runs god sync and god status]
Here's your overview:
- - tada: 30 commits this week, last activity 3 days ago
- 0 open PRs, 0 issues
Your most active project! Commits are all features and bug fixes.
You: "Analyze my agents.md for tada"
Me: [runs god agents analyze github:YourUsername/tada]
I've analyzed your AGENTS.md against 155 commits. Here's what I found:
GAPS:
- - Testing practices (high impact) - 68 bug fixes but no testing guidance
- Voice API debugging - 12 commits mention "voice" but no troubleshooting
STRENGTHS:
- - TypeScript strictness is working - zero type-related fixes
Want me to add testing guidance to your AGENTS.md?
What you can ask me:
- - "Set up god-mode for [repo]"
- "Show me all my projects"
- "What's happening across my repos?"
- "Analyze my agents.md"
- "Which repos need attention?"
- "What should I work on today?"
I'll handle all the commands and explain the results in plain English.
For CLI Users (Direct Commands)
If you prefer running commands yourself:
CODEBLOCK0
Commands
god status [project]
Show overview of all projects, or details for one:
CODEBLOCK1
god sync [project] [--force]
Fetch/update data from repositories:
CODEBLOCK2
god projects
Manage configured projects:
CODEBLOCK3
god review [--month YYYY-MM]
Generate monthly activity reviews:
CODEBLOCK4
What it shows:
- - Total commits across all projects
- Most active repositories
- Pull request activity (merged, active, closed)
- Detailed breakdown by project with date ranges
- Perfect for monthly retrospectives and planning
Example output:
CODEBLOCK5
Use cases:
- - Monthly team stand-ups
- Personal retrospectives ("What did I actually work on?")
- Quarterly planning ("Which projects got attention?")
- Automated monthly summaries via cron
god agents analyze <project>
Analyze agents.md against commit history using LLM:
CODEBLOCK6
What it does:
- 1. Fetches your AGENTS.md from the repository
- Analyzes commit patterns (types, pain points, frequently changed files)
- Calls an LLM (Claude/GPT) to find gaps and suggest improvements
- Displays recommendations interactively
- Optionally applies changes to your AGENTS.md
LLM Configuration:
god-mode automatically detects and uses the best available LLM:
- 1. OpenClaw (default when running as skill) - Uses your OpenClaw agent
- Anthropic - Set INLINECODE10
- OpenAI - Set INLINECODE11
- OpenRouter - Set INLINECODE12
- Manual - Outputs prompt if no LLM available
When running in OpenClaw:
- - The analysis prompt is displayed to your OpenClaw agent
- You (or your agent) provides the JSON analysis directly in the conversation
- Much simpler than managing separate API keys!
OpenClaw Workflow:
When you run god agents analyze in OpenClaw:
- 1. Analysis starts:
CODEBLOCK7
- 2. I (OpenClaw agent) receive the analysis prompt showing:
- Your complete AGENTS.md content
- Commit pattern summary (45 features, 68 bug fixes, etc.)
- Most changed files/directories
- Pain points and commit samples
- 3. I analyze and provide JSON response:
CODEBLOCK8
- 4. god-mode displays results and offers to apply changes to your AGENTS.md
- 5. You choose which recommendations to accept, and god-mode updates the file
Standalone Workflow (outside OpenClaw):
If you set ANTHROPIC_API_KEY or OPENAI_API_KEY, god-mode calls the API directly:
CODEBLOCK9
god agents generate <project> (Coming Soon)
Bootstrap agents.md for a new project by analyzing repo structure.
god logs [options]
View activity logs:
CODEBLOCK10
All god-mode activity is logged to ~/.god-mode/logs/activity.log with timestamps for transparency and debugging.
Configuration
Config file: INLINECODE19
CODEBLOCK11
Data Storage
All data stored locally in ~/.god-mode/:
- -
cache.db - SQLite database (commits, PRs, issues, analyses) - INLINECODE22 - Saved workspace contexts (v0.2)
Authentication
god-mode uses your existing CLI authentication:
| Provider | CLI | Setup |
|---|
| GitHub | INLINECODE23 | INLINECODE24 |
| Azure |
az |
az login |
| GitLab |
glab |
glab auth login |
No tokens stored by god-mode. We delegate to CLIs you already trust.
Requirements
- -
gh - GitHub CLI (for GitHub repos) - INLINECODE30 - Database
- INLINECODE31 - JSON processing
Examples
Morning Check-In
CODEBLOCK12
Before Switching Projects
CODEBLOCK13
Improving Your AI Assistant
CODEBLOCK14
Weekly Review
CODEBLOCK15
Agent Guide (For OpenClaw Agents)
When the user asks about their projects, here's what to do:
"Set up god-mode" / "Track my [repo]"
- 1. Run
god setup (checks dependencies) - Run INLINECODE33
- Run
god sync to fetch data - Summarize what you found
"Show me my projects" / "What's happening?"
- 1. Run INLINECODE35
- Translate output to conversational summary:
- "Your most active repo is X with Y commits this week"
- "Z repo hasn't had activity in N days"
- "You have M open PRs across all projects"
"Analyze my agents.md"
- 1. Run INLINECODE36
- You'll receive the analysis prompt with:
- Their complete AGENTS.md
- Commit pattern analysis (155 commits, 68 bug fixes, etc.)
- Pain points and frequently changed files
- 3. Provide JSON analysis in this format:
{
"gaps": [
{"area": "Testing", "observation": "68 bug fixes but no test guidance", "impact": "high", "suggestion": "Add testing section"}
],
"strengths": [
{"area": "TypeScript", "observation": "Zero type errors in 155 commits"}
],
"recommendations": [
{"priority": 1, "section": "## Testing", "content": "- Write unit tests for new code\n- Run tests before commits"}
],
"summary": "Strong TypeScript practices, needs testing guidance"
}
- 4. Summarize the analysis conversationally
- Offer to apply recommendations
"Which repos need attention?"
- 1. Run INLINECODE37
- Look for:
- Stale PRs (>3 days old)
- No activity in >5 days
- Open issues piling up
- 3. Suggest what to focus on
Automated Workflows
Daily Briefing (Heartbeat):
CODEBLOCK17
Monthly Review (Cron - 1st of month):
CODEBLOCK18
Weekly Analysis (Cron):
CODEBLOCK19
Common Questions
How do I use god-mode?
In OpenClaw: Just ask me! "Show me my projects", "Analyze my agents.md", etc. I'll run the commands and explain the results.
CLI: Run commands directly: god status, god sync, INLINECODE40
Do I need to set up anything first?
First time: Tell me to "set up god-mode for [your repo]" and I'll handle it. Or run
god setup and
god projects add github:your/repo yourself.
Authentication: Make sure gh auth login is done (GitHub CLI authentication).
Do I need an API key?
No! When you ask me to analyze your agents.md, I receive the analysis prompt and provide the JSON response directly. No separate API key needed.
Standalone: If using god-mode outside OpenClaw, you can set ANTHROPIC_API_KEY or OPENAI_API_KEY for automated analysis.
How often does it sync data?
When you ask: I run
god sync when you ask about your projects. First sync fetches 90 days of history. Subsequent syncs are incremental (only new data).
Manual: You can run god sync anytime, or god sync --force for a full refresh.
What data gets stored?
Locally only: Commits, PRs, issues, and analysis results in
~/.god-mode/cache.db. Activity logs in
~/.god-mode/logs/activity.log. Nothing sent to external servers (except when calling LLM APIs if configured).
Does it work with private repos?
Yes! Uses your
gh CLI authentication, so it has access to whatever your GitHub account can access.
Troubleshooting
"gh: command not found"
Install GitHub CLI: https://cli.github.com/
"Not logged in to GitHub"
Run: INLINECODE52
"No projects configured"
Add a project: INLINECODE53
Stale data
Force refresh: INLINECODE54
Agent analysis returns empty {}
This is normal in OpenClaw mode - the prompt is displayed for the OpenClaw agent to analyze. The agent provides the JSON response in conversation, not as return value.
OpenClaw Community Skill
License: MIT
Repository: https://github.com/InfantLab/god-mode-skill
god-mode 技能
面向 OpenClaw 的对话式项目监督与 AI 智能体辅导
概述
god-mode 让用户能用自然语言询问项目情况。您负责执行命令,并以对话方式解释结果。
用户可以询问:
- - 为我的仓库设置 god-mode
- 我的项目整体情况如何?
- 哪些仓库需要关注?
- 分析我的 agents.md
- 我今天应该做什么?
您提供的内容:
- - 多项目状态摘要(GitHub + Azure DevOps)
- 对提交活动、PR、问题的通俗解释
- 基于 LLM 的智能体指令分析
- 改进 AGENTS.md 的建议
适用人群:
- - 管理多个仓库、希望获得对话式监督的开发者
- 使用 AI 编码助手(Claude、Copilot 等)的团队
- 希望通过数据驱动方式改进 AGENTS.md 的任何人
快速开始
面向 OpenClaw 用户(对话式)
直接告诉我您想要什么! 我会为您运行 god-mode 命令。
对话示例:
您: 为我的 tada 仓库设置 god-mode
我: 好的!我将设置 god-mode 并添加您的 tada 仓库。
[运行 god setup 和 god projects add github:YourUsername/tada]
完成!您的仓库已配置好。需要同步数据吗?
您: 是的,并显示当前情况
我: [运行 god sync 和 god status]
以下是您的概览:
- - tada:本周 30 次提交,最近活动在 3 天前
- 0 个开放 PR,0 个问题
这是您最活跃的项目!所有提交都是功能开发和错误修复。
您: 分析我的 tada 项目的 agents.md
我: [运行 god agents analyze github:YourUsername/tada]
我已针对 155 次提交分析了您的 AGENTS.md。以下是我的发现:
缺口:
- - 测试实践(高影响)- 68 次错误修复但无测试指导
- Voice API 调试 - 12 次提交提到voice但无故障排除指南
优势:
- - TypeScript 严格模式运行良好 - 零类型相关修复
需要我在您的 AGENTS.md 中添加测试指导吗?
您可以向我询问:
- - 为 [仓库] 设置 god-mode
- 显示我所有的项目
- 我的仓库整体情况如何?
- 分析我的 agents.md
- 哪些仓库需要关注?
- 我今天应该做什么?
我会处理所有命令,并用通俗语言解释结果。
面向 CLI 用户(直接命令)
如果您更喜欢自己运行命令:
bash
设置
god setup
添加项目
god projects add github:username/repo
同步和查看
god sync
god status
命令
god status [project]
显示所有项目的概览,或某个项目的详细信息:
bash
god status # 所有项目
god status myproject # 单个项目的详细信息
god sync [project] [--force]
获取/更新仓库数据:
bash
god sync # 增量同步所有项目
god sync myproject # 仅同步一个项目
god sync --force # 完全刷新(忽略缓存)
god projects
管理已配置的项目:
bash
god projects # 列出所有项目
god projects add github:user/repo # 添加项目
god projects remove myproject # 移除项目
god review [--month YYYY-MM]
生成月度活动回顾:
bash
god review # 上个月的活动
god review --month 2026-01 # 指定月份
god review --json # JSON 格式输出
显示内容:
- - 所有项目的总提交数
- 最活跃的仓库
- PR 活动(已合并、活跃中、已关闭)
- 按项目详细分解,含日期范围
- 非常适合月度回顾和规划
输出示例:
月度回顾:2026-01
📊 7 个项目共 286 次提交
👥 10 位贡献者
最活跃项目:
tada - 155 次提交
ContentEngine - 63 次提交
brain - 27 次提交
使用场景:
- - 月度团队站会
- 个人回顾(我实际上做了什么?)
- 季度规划(哪些项目得到了关注?)
- 通过 cron 自动生成月度摘要
god agents analyze
使用 LLM 分析 agents.md 与提交历史:
bash
god agents analyze myproject
功能说明:
- 1. 从仓库获取您的 AGENTS.md
- 分析提交模式(类型、痛点、频繁更改的文件)
- 调用 LLM(Claude/GPT)查找缺口并提出改进建议
- 交互式显示建议
- 可选择将更改应用到您的 AGENTS.md
LLM 配置:
god-mode 会自动检测并使用最佳可用的 LLM:
- 1. OpenClaw(作为技能运行时默认) - 使用您的 OpenClaw 智能体
- Anthropic - 设置 ANTHROPICAPIKEY=sk-ant-...
- OpenAI - 设置 OPENAIAPIKEY=sk-...
- OpenRouter - 设置 OPENROUTERAPIKEY=sk-or-...
- 手动 - 如果没有可用的 LLM,则输出提示
在 OpenClaw 中运行时:
- - 分析提示会显示给您的 OpenClaw 智能体
- 您(或您的智能体)直接在对话中提供 JSON 分析
- 比管理单独的 API 密钥简单得多!
OpenClaw 工作流程:
当您在 OpenClaw 中运行 god agents analyze 时:
- 1. 分析开始:
🔭 分析 github:InfantLab/tada
✅ 找到 AGENTS.md(远程)
✅ 分析了 155 次提交
🤖 使用 OpenClaw 的 LLM
- 2. 我(OpenClaw 智能体)收到分析提示,显示:
- 您完整的 AGENTS.md 内容
- 提交模式摘要(45 个功能、68 个错误修复等)
- 更改最多的文件/目录
- 痛点和提交示例
- 3. 我分析并提供 JSON 响应:
json
{
gaps: [
{
area: 测试,
observation: 68 次错误修复但 AGENTS.md 中无测试指导,
impact: high,
suggestion: 添加测试部分,包含覆盖率目标
}
],
strengths: [...],
recommendations: [...]
}
- 4. god-mode 显示结果并提供将更改应用到 AGENTS.md 的选项
- 5. 您选择要接受的建议,god-mode 更新文件
独立工作流程(在 OpenClaw 之外):
如果您设置了 ANTHROPICAPIKEY 或 OPENAIAPIKEY,god-mode 会直接调用 API:
bash
export ANTHROPICAPIKEY=sk-ant-...
god agents analyze myproject # 完全自动化
god agents generate (即将推出)
通过分析仓库结构为新项目引导创建 agents.md。
god logs [options]
查看活动日志:
bash
god logs # 最后 50 行
god logs -n 100 # 最后 100 行
god logs -f # 跟随日志输出
god logs --path # 显示日志文件位置
god logs --clear # 清除所有日志
所有 god-mode 活动都会记录到 ~/.god-mode/logs/activity.log,带时间戳,便于透明度和调试。
配置
配置文件:~/.config/god-mode/config.yaml
yaml
projects:
- id: github:user/repo
name: My Project # 显示名称
priority: high # high/medium/low
tags: [work, api]
local: ~/code/myrepo # 本地克隆路径
sync:
initialDays: 90 # 首次同步回溯天数
commitsCacheMinutes: 60
analysis:
agentFiles: # 要搜索的文件
- agents.md
- AGENTS.md
- CLAUDE.md
- .github/copilot-instructions.md
数据存储
所有数据本地存储在 ~/.god-mode/:
- - cache.db - SQLite 数据库(提交、PR、问题、分析结果)
- contexts/ - 保存的工作