ops
Cross-project ops command center for in-flight work, blockers, project roster, and brain health
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Cross-project ops command center for in-flight work, blockers, project roster, and brain health
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Start or resume session - loads state and continues work
First-run guided onboarding (teach the register → hunt → rest loop + a consented first hunt) OR reconfigure an existing install (shells `igris configure`). Branches on `igris onboarding status`. Usage: /setup
Guided project handoff — export a project's brain slice to a portable bundle, or import one with a preview/confirm ceremony. Usage: /handoff export <project> | /handoff import <bundle>
Release preparation - changelog generation, version bumps, release notes
Show system status report - briefs, session, blockers, git status
Search the brain's learnings with hybrid BM25+vector recall - filter by project or global, show ranked results (ID/title/snippet/score), and pull a learning into context. Usage: /search <query> [--project <slug> | --global] [--pull <id>] [--limit <N>]
| name | ops |
| tier | essential |
| description | Cross-project ops command center for in-flight work, blockers, project roster, and brain health |
| disable-model-invocation | false |
| allowed-tools | ["Bash","Read","Grep","Glob","mcp__igris-brain__igris_session_recall","mcp__igris-brain__igris_brief_dashboard","mcp__igris-brain__igris_instance_list"] |
| triggers | ["ops","operations","cross-project","brain status","what needs me","what is in flight","list projects","show projects","managed projects"] |
Answer the operator's real cross-project question:
Across all projects and machines, what is in flight, what is blocked, what needs me, and is the brain healthy?
/ops is the single cross-project OS surface. It replaces the retired /dashboard, /projects, and interim /portfolio command names by folding their useful brief/session/project views into one coherent command.
/ops
/ops active
/ops archived
$ARGUMENTS is optional:
active: limit the project roster to active projects.archived: limit the project roster to archived projects.Check ~/.igris/memory/knowledge.db. If it is missing, display:
Brain not installed. Run: igris init
Then stop.
Run:
sqlite3 ~/.igris/memory/knowledge.db "PRAGMA integrity_check;"
sqlite3 ~/.igris/memory/knowledge.db "PRAGMA journal_mode;"
Also capture DB size:
du -k ~/.igris/memory/knowledge.db
If the igris-brain MCP server is available:
igris_brief_dashboard with no filters.igris_instance_list with status='all' when available.If MCP is not available, use sqlite3 fallback:
sqlite3 ~/.igris/memory/knowledge.db "
PRAGMA trusted_schema=ON;
SELECT bs.project, bs.brief_id, bs.brief_type, bs.title, bs.status,
bs.priority, bs.effort, bs.phase, bs.updated_at, bs.claimed_by,
p.name as project_name
FROM brief_status bs
LEFT JOIN projects p ON p.slug = bs.project
WHERE bs.status IN ('In Progress', 'Blocked')
ORDER BY
CASE bs.status WHEN 'Blocked' THEN 0 WHEN 'In Progress' THEN 1 ELSE 2 END,
bs.updated_at DESC;
"
For active instances:
sqlite3 ~/.igris/memory/knowledge.db "
PRAGMA trusted_schema=ON;
SELECT id, machine_hostname, project_slug, current_brief, current_phase,
current_task, status, lease_expires_at, state_updated_at,
last_activity_at
FROM instances
ORDER BY COALESCE(state_updated_at, last_activity_at) DESC;
"
Treat liveness as advisory:
igris instance list, which classifies alive, dead, and dead_pid_reused using PID/start-time metadata.If the igris-brain MCP server is available:
igris_session_recall with days=7.If MCP is not available, use sqlite3 fallback:
sqlite3 ~/.igris/memory/knowledge.db "
PRAGMA trusted_schema=ON;
SELECT s.project, s.brief_id, s.phase, s.mode, s.summary,
s.started_at, s.ended_at, p.name as project_name
FROM sessions s
LEFT JOIN projects p ON p.slug = s.project
WHERE s.started_at >= datetime('now', '-7 days')
ORDER BY s.started_at DESC;
"
Apply the optional status filter from $ARGUMENTS only to this section.
sqlite3 ~/.igris/memory/knowledge.db "
PRAGMA trusted_schema=ON;
SELECT slug, name, path, status, archetype, tech_stack,
registered_at, last_session_at
FROM projects
/* optional: WHERE status = 'active' or status = 'archived' */
ORDER BY last_session_at DESC NULLS LAST, slug ASC;
"
Run the statistics that are cheap and useful for a command-center view:
sqlite3 ~/.igris/memory/knowledge.db "SELECT COUNT(*) FROM projects WHERE status='active';"
sqlite3 ~/.igris/memory/knowledge.db "SELECT COUNT(*) FROM projects WHERE status='archived';"
sqlite3 ~/.igris/memory/knowledge.db "SELECT COUNT(*) FROM learnings;"
sqlite3 ~/.igris/memory/knowledge.db "SELECT COUNT(*) FROM learnings WHERE scope='global';"
sqlite3 ~/.igris/memory/knowledge.db "SELECT COUNT(*) FROM errors;"
sqlite3 ~/.igris/memory/knowledge.db "SELECT COUNT(*) FROM errors WHERE COALESCE(solution, '') != '';"
Agent metrics, if the table exists:
sqlite3 ~/.igris/memory/knowledge.db "
PRAGMA trusted_schema=ON;
SELECT agent,
COUNT(*) as total,
SUM(CASE WHEN result='success' THEN 1 ELSE 0 END) as successes,
ROUND(AVG(duration_ms), 0) as avg_ms
FROM agent_metrics
GROUP BY agent
ORDER BY total DESC
LIMIT 8;
"
Format as:
## Igris Ops
### Needs Me
1. [Blocked or claimed work that needs operator decision]
2. [Remote/unknown leases nearing expiry]
3. [Projects with no recent session, if relevant]
### In Flight
| Project | Brief | Title | Status | Priority | Phase | Owner | Updated |
|---------|-------|-------|--------|----------|-------|-------|---------|
### Active Instances
| Instance | Machine | Project | Brief | Phase | Task | Liveness/Lease |
|----------|---------|---------|-------|-------|------|----------------|
### Recent Sessions (7 days)
| Date | Project | Brief | Phase | Summary |
|------|---------|-------|-------|---------|
### Brain Health
- Integrity: OK / issue
- Journal mode: WAL / other
- DB size: X KB
- Knowledge: X learnings (Y global), X errors (Y solved)
### Projects
| Project | Status | Archetype | Stack | Last Session | Path |
|---------|--------|-----------|-------|--------------|------|
### Recommendations
1. [Start or unblock the highest-priority blocked item]
2. [Archive or revisit stale projects]
3. [Promote recurring learnings or fix recurring errors]
/scan.