InfantLab

god-mode

0
0
# Install this skill:
npx skills add InfantLab/god-mode-skill

Or install specific skill: npx add-skill https://github.com/InfantLab/god-mode-skill

# Description

Developer oversight and AI agent coaching. Use when viewing project status across repos, syncing GitHub data, or analyzing agents.md against commit patterns.

# SKILL.md


name: god-mode
description: Developer oversight and AI agent coaching. Use when viewing project status across repos, syncing GitHub data, or analyzing agents.md against commit patterns.
metadata: {"openclaw": {"requires": {"bins": ["gh", "sqlite3", "jq"]}}}
user-invocable: true


god-mode Skill

Developer oversight and AI agent coaching for OpenClaw.

Overview

god-mode gives you a bird's-eye view of all your coding projects and coaches you to write better AI agent instructions.

Key features:
- Multi-project status dashboard
- Incremental sync from GitHub (Azure/GitLab coming)
- Agent instruction analysis based on commit patterns
- Local SQLite cache for fast queries

Quick Start

# 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

Commands

god status [project]

Show overview of all projects, or details for one:

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

god sync [project] [--force]

Fetch/update data from repositories:

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

god projects

Manage configured projects:

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

god agents analyze <project>

Analyze agents.md against commit history:

god agents analyze myproject

Finds gaps between your agent instructions and actual work patterns, suggests improvements.

god agents generate <project> (Coming Soon)

Bootstrap agents.md for a new project by analyzing repo structure.

Configuration

Config file: ~/.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

Data Storage

All data stored locally in ~/.god-mode/:
- cache.db - SQLite database (commits, PRs, issues, analyses)
- contexts/ - Saved workspace contexts (v0.2)

Authentication

god-mode uses your existing CLI authentication:

Provider CLI Setup
GitHub gh gh auth login
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)
  • sqlite3 - Database
  • jq - JSON processing

Examples

Morning Check-In

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

Before Switching Projects

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

Improving Your AI Assistant

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

Weekly Review

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

Agent Workflows

Daily Briefing (Heartbeat)

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

Agent Analysis (Cron)

# 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.

Troubleshooting

"gh: command not found"

Install GitHub CLI: https://cli.github.com/

"Not logged in to GitHub"

Run: gh auth login

"No projects configured"

Add a project: god projects add github:user/repo

Stale data

Force refresh: god sync --force


OpenClaw Community Skill
License: MIT
Repository: https://github.com/InfantLab/god-mode-skill

# README.md

god-mode

🔭 Bird's-eye view of your coding projects. 🧠 AI agent coaching based on your actual work.

OpenClaw Skill
License: MIT

What is this?

god-mode is an OpenClaw skill that gives you:

  1. Project Overview - See all your repos at a glance (commits, PRs, issues)
  2. Agent Coaching - Automatically improve your agents.md based on commit patterns

The Problem

You're juggling multiple projects. You use AI coding assistants but your agents.md instructions are generic or outdated. You lose context when switching between repos.

The Solution

# See everything at once
$ god status

🔭 god-mode

tandem-evaluator
  Last: 2h ago • fix: evaluation metrics
  PRs: 2 open (1 needs review) • Issues: 5

tada  
  Last: 1d ago • feat: API endpoints
  PRs: 0 • Issues: 3

This week: 23 commits • 3 PRs merged

# Make your AI assistant smarter
$ god agents analyze tandem-evaluator

🧠 Analyzing tandem-evaluator...

⚠️ GAPS FOUND

Testing (not mentioned)
  But 31% of your commits touch tests
  → Add: "Write tests for new code"

📝 SUGGESTED ADDITIONS

## Testing
- Unit tests for all new functions
- Run `npm test` before commits

Installation

Prerequisites

  • gh - GitHub CLI (authenticated)
  • sqlite3 - Usually pre-installed
  • jq - brew install jq or apt install jq

Install

# Clone
git clone https://github.com/InfantLab/god-mode-skill
cd god-mode-skill

# Add to PATH
echo 'export PATH="$PATH:'$(pwd)'/scripts"' >> ~/.bashrc
source ~/.bashrc

# Setup
god setup

Or for OpenClaw:

openclaw skills add god-mode

Quick Start

# 1. Add your first project
god projects add github:yourname/yourrepo

# 2. Sync data
god sync

# 3. See the overview
god status

# 4. Analyze your agents.md
god agents analyze yourrepo

Commands

Command Description
god status Overview of all projects
god status <project> Details for one project
god sync Fetch latest data from repos
god sync --force Full refresh (ignore cache)
god projects List configured projects
god projects add <uri> Add a project
god agents analyze <project> Improve your agents.md

Configuration

~/.config/god-mode/config.yaml:

projects:
  - id: github:myuser/myrepo
    name: My Project
    priority: high
    tags: [work, api]
    local: ~/code/myrepo

sync:
  initialDays: 90
  commitsCacheMinutes: 60

See config.example.yaml for all options.

How Agent Analysis Works

  1. Reads your agents.md (or similar file)
  2. Analyzes your commit history (types, patterns, pain points)
  3. Finds gaps between instructions and actual work
  4. Suggests improvements based on your patterns

Example insights:
- "You write lots of tests but don't mention testing in agents.md"
- "40% of commits are error-handling fixes - add error handling guidance"
- "Your 'use TypeScript strict' instruction is working - 0 type errors"

Data & Privacy

  • All data stored locally in ~/.god-mode/
  • No tokens stored - uses your existing gh auth
  • No telemetry - nothing phones home
  • Open source - audit the code yourself

Roadmap

v0.1.0 (Current)

  • [x] Project status overview
  • [x] GitHub integration via gh CLI
  • [x] Incremental sync with SQLite cache
  • [x] Agent instruction analysis

v0.2.0

  • [ ] Context save/restore
  • [ ] Activity summaries (god today, god week)
  • [ ] god agents generate for new projects

v0.3.0

  • [ ] Azure DevOps support
  • [ ] GitLab support
  • [ ] Proactive alerts via OpenClaw heartbeat

v1.0.0

  • [ ] Cross-project intelligence
  • [ ] Integration ecosystem (Obsidian, etc.)

Contributing

Contributions welcome! Each command is a standalone script - easy to add features.

# Structure
scripts/
├── god                 # Entry point
├── commands/
│   ├── status.sh       # god status
│   ├── sync.sh         # god sync
│   ├── projects.sh     # god projects
│   └── agents.sh       # god agents
└── lib/
    ├── providers/      # GitHub, Azure, GitLab
    └── analysis/       # Commit patterns, agent analysis

See HANDOVER.md for architecture details.

License

MIT - see LICENSE

Credits

Created by InfantLab for the OpenClaw community.


"Know what's happening. Make your AI smarter."

# Supported AI Coding Agents

This skill is compatible with the SKILL.md standard and works with all major AI coding agents:

Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.