网淘吧来吧,欢迎您!

God's eye view of your dev repos. Multi-project tracking across GitHub/Azure DevOps. AI learns from your commits to upgrade your agents.md.技能使用说明

2026-03-29 新闻来源:网淘吧 围观:5
电脑广告
手机广告

上帝模式技能

针对OpenClaw的开发者监督与AI代理指导

概述

上帝模式为您提供所有编码项目的全景视图,并指导您编写更优质的AI代理指令。

God's eye view of your dev repos. Multi-project tracking across  GitHub/Azure DevOps. AI learns from your commits to upgrade your agents.md.

核心功能:

  • 多项目状态仪表板
  • 从GitHub增量同步(即将支持Azure/GitLab)
  • 基于提交模式的代理指令分析
  • 本地SQLite缓存实现快速查询

快速开始

# First-run setup
god setup

# Add a project
god projects add github:myuser/myrepo

# Sync data
god sync

# See overview
god status

# Analyze your agents.md
god agents analyze myrepo

命令列表

god status [项目名称]

显示所有项目概览,或指定项目的详细信息:

god status              # All projects
god status myproject    # One project in detail

god sync [项目名称] [--force]

从代码仓库获取/更新数据:

god sync                # Incremental sync all
god sync myproject      # Just one project
god sync --force        # Full refresh (ignore cache)

god projects

管理已配置的项目:

god projects                        # List all
god projects add github:user/repo   # Add project
god projects remove myproject       # Remove project

god agents analyze <项目名称>

根据提交历史分析agents.md文件:

god agents analyze myproject

发现您的代理指令与实际工作模式之间的差距,并提供改进建议。

god agents 生成 <项目>(即将推出)

通过分析仓库结构,为新项目初始化 agents.md 文件。

配置

配置文件:~/.config/god-mode/config.yaml

projects:
  - id: github:user/repo
    name: My Project      # Display name
    priority: high        # high/medium/low
    tags: [work, api]
    local: ~/code/myrepo  # Local clone path

sync:
  initialDays: 90         # First sync lookback
  commitsCacheMinutes: 60

analysis:
  agentFiles:             # Files to search for
    - agents.md
    - AGENTS.md
    - CLAUDE.md
    - .github/copilot-instructions.md

数据存储

所有数据均本地存储在~/.god-mode/目录下:

  • cache.db- SQLite 数据库(提交记录、PR、问题、分析)
  • contexts/- 已保存的工作区上下文(v0.2)

身份验证

god-mode 使用您现有的 CLI 身份验证:

提供商CLI设置
GitHubghgh auth login
Azureazaz login
GitLabglabglab auth login

无令牌由 god-mode 存储。我们委托给您已信任的命令行界面(CLI)。

要求

  • gh- GitHub CLI(用于 GitHub 仓库)
  • sqlite3- 数据库
  • jq- JSON 处理

示例

早间签到

god status
# See all projects at a glance
# Notice any stale PRs or quiet projects

切换项目前

god status myproject
# See recent activity, open PRs, issues
# Remember where you left off

改进您的 AI 助手

god agents analyze myproject
# Get suggestions based on your actual commit patterns
# Apply recommendations to your agents.md

每周回顾

god status
# Review activity across all projects
# Identify projects needing attention

代理工作流

每日简报(心跳)

# HEARTBEAT.md
- Run `god status` and summarize:
  - Projects with stale PRs (>3 days)
  - Projects with no activity (>5 days)
  - Open PRs needing review

代理分析(定时任务)

# Weekly agent instruction review
schedule: "0 9 * * 1"  # Monday 9am
task: |
  Run `god agents analyze` on high-priority projects.
  If gaps found, notify with suggestions.

故障排除

"gh: 未找到命令"

安装GitHub CLI:https://cli.github.com/

"未登录GitHub"

运行:gh auth login

"未配置项目"

添加项目:god projects add github:user/repo

数据陈旧

强制刷新:god sync --force


OpenClaw社区技能
许可证: MIT
仓库:https://github.com/InfantLab/god-mode-skill

免责申明
部分文章来自各大搜索引擎,如有侵权,请与我联系删除。
打赏
文章底部电脑广告
手机广告位-内容正文底部

相关文章

您是本站第326242名访客 今日有220篇新文章/评论