一键导入
ijfw-metrics
Internal session metrics tracking. Auto-triggered at session boundaries. Tracks tokens, agent usage, efficiency gains. View with /ijfw-status.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Internal session metrics tracking. Auto-triggered at session boundaries. Tracks tokens, agent usage, efficiency gains. View with /ijfw-status.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Maintain canonical AGENTS.md (open spec). Trigger: 'agents.md', 'update AGENTS.md', or auto-fired by ijfw-team after agent generation.
First-class design intelligence. Dispatches to the best available design skill (ui-ux-pro-max, frontend-design, superpowers), then layers IJFW constraints on top. Triggers: 'design', 'redesign', 'UI', 'UX', 'dashboard', 'page', 'component', 'make it look better', 'polish', 'pretty', 'professional', 'user experience', 'layout', 'visual', 'mobile-first', 'dark mode', 'accessibility', 'colors', 'typography', 'brand'.
Check for and apply IJFW updates safely. Trigger: 'update ijfw', 'upgrade', 'latest version', 'is there a new version', /update
Use when the user says: 'build', 'create', 'plan', 'new project', 'brainstorm', 'design', 'UI', 'website', 'dashboard', 'app', 'help me build', 'launch', 'book', 'campaign', or anything project-level. Skill body decides Quick vs Deep path.
Check for and apply IJFW updates safely. Trigger: 'update ijfw', 'upgrade', 'latest version', 'is there a new version', /update
Compress memory/context files into terse form. Trigger: /compress, compress file
| name | ijfw-metrics |
| description | Internal session metrics tracking. Auto-triggered at session boundaries. Tracks tokens, agent usage, efficiency gains. View with /ijfw-status. |
Lightweight metrics captured at session boundaries via hooks. Zero per-turn cost. All tracking happens in the Stop hook.
At each session end, append to .ijfw/metrics/sessions.jsonl:
{
"timestamp": "2026-04-13T14:30:00Z",
"session_id": "<session-id>",
"duration_minutes": 45,
"turns": 23,
"mode": "smart",
"effort": "high",
"agents_dispatched": {
"scout": 8,
"builder": 12,
"architect": 3
},
"memory_ops": {
"stores": 5,
"recalls": 2,
"searches": 1
},
"skills_loaded": ["ijfw-core", "ijfw-commit", "ijfw-review"],
"compactions": 1,
"handoff_generated": true,
"routing": "OpenRouter + local model"
}
From the JSONL log, compute:
Efficiency:
Quality:
Cost Projection: Using Anthropic pricing (per 1M tokens):
If smart routing sent 40% of turns to Haiku instead of Opus:
When user runs /ijfw-status or asks about performance:
IJFW Status
Mode: smart | Effort: high | OpenRouter
This Session:
12 turns | 3 agents dispatched | 2 decisions stored
All Time (47 sessions):
Smart routing: 340 turns -> scout, 580 -> builder, 127 -> architect
Estimated savings: ~$43 in model routing
Memory: 89 decisions, 12 patterns, 4 consolidations
Continuity: 94% sessions with handoff
Context health: 34% used | Next compact: ~66% threshold
---------------------------------------
Positive framing. Show what IJFW has done for you. Never show negatives or waste metrics.