akiiwa-games/AgentCompass / skills/agent-compass
agent-compass
FlaggedChoose owner, model and effort, outbound authorization, advisor use, and continuation for delegated work. Reads local usage and effective account policy, profiles the task with the configured System-One scorer, then allocates a compatible worker. Use for independent worker or advisor work; ordinary local execution needs no routing.
scripts/test_venice_usage.py
View on GitHubimport json
from unittest.mock import MagicMock, patch
import venice_usage
def test_balance_probe_uses_only_read_only_endpoint_and_stores_no_key(tmp_path):
response = MagicMock()
response.__enter__.return_value.read.return_value = json.dumps({'data': {
'accessPermitted': True, 'balances': {'USD': 12.5, 'DIEM': 4}, 'nextEpochBegins': 'later'}}).encode()
with patch.object(venice_usage, 'key', return_value='fixture-secret'), \
patch.object(venice_usage.urllib.request, 'build_opener') as opener:
opener.return_value.open.return_value = response
result = venice_usage.refresh(tmp_path)
req = opener.return_value.open.call_args.args[0]
assert req.get_method() == 'GET'
assert req.full_url.endswith('/api_keys/rate_limits')
assert result['balances']['USD'] == 12.5
assert 'fixture-secret' not in (tmp_path / 'venice-usage.json').read_text()
assert 'USD 12.5' in venice_usage.note(result)
def test_failure_is_unknown_not_zero_or_unlimited(tmp_path):
with patch.object(venice_usage, 'key', return_value='fixture-secret'), \
patch.object(venice_usage.urllib.request, 'build_opener', side_effect=OSError):
result = venice_usage.refresh(tmp_path)
assert result['available'] is False
assert 'balances' not in result
assert '失败' in venice_usage.note(result)
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |