Working in a repo with agentacct MCP configured

Agentacct workflow

by mikehasa · MIT license · ★ 759 on GitHub · v1.0.0

Agentacct workflow cover

Use when working in a repo with agentacct MCP configured, or when asked to track coding-agent work, smoke-test agentacct integrations, or report objective AI-agent task evidence.

---
name: agentacct-workflow
description: Use when working in a repo with agentacct MCP configured, or when asked to track coding-agent work, smoke-test agentacct integrations, or report objective AI-agent task evidence.
version: 1.0.0
author: agentacct
license: MIT
metadata:
  hermes:
    tags: [agentacct, coding-agent, mcp, workflow, finops]
    related_skills: [hermes-agent, opencode, github-pr-workflow]
---

# agentacct Workflow

## Overview

Use agentacct as a lightweight workflow ledger for AI-agent work. When the agentacct MCP tools are available, record a compact timeline of meaningful work rather than relying only on final chat summaries.

Overview

Use agentacct as a lightweight workflow ledger for AI-agent work. When the agentacct MCP tools are available, record a compact timeline of meaningful work rather than relying only on final chat summaries.

Manual install (npx, ZIP)
Claude Codenpx skills add mikehasa/agentacct --skill agentacct-workflow -g -a claude-code
Claude Code (degit)npx degit mikehasa/agentacct/integrations/hermes/agentacct-workflow#main ~/.claude/skills/agentacct-workflow
Claude.ai / desktopZip the folder and upload it under Settings → Capabilities → Skills.
Codex, Cursor, other agentsPoint them at SKILL.md. The other files are plain text.

Connects with Agent Alley MCP · agentalley.io/mcp

Files included

  • SKILL.md6.4 KB
Read SKILL.md here
mikehasa/main1 file shown
SKILL.md
Show the full text161 lines

agentacct Workflow

Overview

Use agentacct as a lightweight workflow ledger for AI-agent work. When the agentacct MCP tools are available, record a compact timeline of meaningful work rather than relying only on final chat summaries.

This skill does not mean agentacct automatically sees every token or exact provider bill. MCP events, local usage imports, and provider/proxy cost enforcement are separate capabilities.

When to Use

Use this skill when:

  • Working in a repository that has agentacct initialized.
  • agentacct MCP tools such as agentacct_record_event are available.
  • Running Hermes, OpenCode, OpenClaw, Claude Code, Codex, or another coding agent with agentacct integration.
  • The user asks for evidence of AI-agent work, token/cost tracking, MCP smoke tests, or Agent FinOps workflow validation.

Do not use this skill to claim exact billing unless the run used a supported usage importer or provider/proxy path.

Workflow

  1. If local client identifiers are available, call agentacct_attach_client_context:
source: hermes or the active coding-agent name
client: hermes, claude-code, codex, opencode, openclaw, or other
client_session_id: local session/thread id
client_transcript_id: local transcript/log id if known
parent_client_session_id: parent/root session id if this is a child agent
turn_id/message_id/request_id: current ids if known
client_event_timestamp: client timestamp if known
  1. Before meaningful work, open a section with agentacct_record_section:
section_id: short stable id for this piece of work
section_status: started
section_title: concise task description
source: hermes or the active coding-agent name
run_id: stable task/session id if known
  1. During work, record important checkpoints (agentacct_record_section with the same section_id and section_status=checkpoint):
  • major decisions
  • scope changes
  • repeated errors
  • blockers

Sections are the work contract. Use section_status=started, checkpoint, completed, blocked, or handed_off, and include client/session/turn identifiers when known. started and checkpoint are in-progress states; completed, blocked, and handed_off are terminal.

  1. If visible token/cost usage is available, call agentacct_record_agent_usage_debug:
reporting_basis: visible_client_usage
source/client/client_session_id: same values used for context when known
provider/model: visible provider and model if known
input_tokens/output_tokens/cache_read_input_tokens/reasoning_output_tokens/cost_usd: only fields actually visible

If the client does not expose token/cost usage, call the same tool with reporting_basis: unavailable and a short summary. Do not guess.

  1. After tests/builds/smokes, record machine-check evidence:
  • Prefer agentacct_record_machine_check when available.
  • Otherwise call agentacct_record_event with a compact test/build result.
  1. At completion, close the section with agentacct_record_section:
section_id: same section id
section_status: completed
summary: what changed, with tests, builds, diffs, tool calls, token/cost evidence actually observed
  1. If blocked, call agentacct_record_section with section_status=blocked:
section_id: same section id
section_status: blocked
blocker: concrete blocker
next_step: what would unblock it
  1. If handing work to another agent/session, or stopping cleanly so the user can continue elsewhere, close the section with section_status=handed_off:
section_id: same section id
section_status: handed_off
summary: what is complete and what remains
next_step: the concrete continuation point
  1. In the final response, report:
  • what was changed or tested
  • exact validation command/result
  • agentacct event summary if checked
  • token/cost data only if actually observed
  • unsupported claims or blockers clearly labeled

Claim Boundaries

Keep these separate:

  • MCP events prove that the agent recorded work.
  • MCP client context and section events prove the agent reported semantic workflow anchors and local join keys.
  • MCP usage debug events prove only what the agent reported seeing about its own token/cost usage. They are comparison evidence and are not agentacct usage/cost totals.
  • Local usage import proves agentacct parsed supported client-reported token data.
  • Provider/API proxy data proves only traffic that actually flowed through agentacct or returned provider usage/cost fields.

Do not say agentacct hard-stopped, billed exactly, or tracked all sessions unless the relevant enforcement/import/proxy path was actually used.

Client Notes

Hermes

If agentacct MCP is configured, call agentacct tools directly. For one-shot work, load this skill explicitly:

hermes chat -s agentacct-workflow -q "..."
OpenCode

OpenCode should receive equivalent instructions through repo AGENTS.md or a custom OpenCode agent. For smoke tests, use --format json when token/cost fields are needed.

OpenClaw

Confirm the actual workspace path before reading repo files. If OpenClaw is running from an isolated workspace that does not contain the repo, record a blocker/workspace mismatch instead of pretending file inspection succeeded.

Minimal Smoke Prompt

Use agentacct MCP to record a section with agentacct_record_section (section_status=started). Inspect the integration docs if available. Record the same section with section_status=completed and one objective finding in the summary. Reply exactly SENTINEL_WORKFLOW_OK.

Verification Checklist

  • agentacct_record_section was called with section_status=started.
  • agentacct_attach_client_context was used when local ids were available.
  • agentacct_record_agent_usage_debug was called with visible usage or reporting_basis=unavailable.
  • Meaningful checkpoints or machine checks were recorded when applicable.
  • Completion, blocker, or clean handoff was recorded.
  • Final response separates MCP evidence from token/cost/billing evidence.
  • No secrets or raw provider bodies were printed.
1---
2name: agentacct-workflow
3description: Use when working in a repo with agentacct MCP configured, or when asked to track coding-agent work, smoke-test agentacct integrations, or report objective AI-agent task evidence.
4version: 1.0.0
5author: agentacct
6license: MIT
7metadata:
8 hermes:
9 tags: [agentacct, coding-agent, mcp, workflow, finops]
10 related_skills: [hermes-agent, opencode, github-pr-workflow]
11---
12 
13# agentacct Workflow
14 
15## Overview
16 
17Use agentacct as a lightweight workflow ledger for AI-agent work. When the agentacct MCP tools are available, record a compact timeline of meaningful work rather than relying only on final chat summaries.
18 
19This skill does not mean agentacct automatically sees every token or exact provider bill. MCP events, local usage imports, and provider/proxy cost enforcement are separate capabilities.
20 
21## When to Use
22 
23Use this skill when:
24 
25- Working in a repository that has agentacct initialized.
26- agentacct MCP tools such as `agentacct_record_event` are available.
27- Running Hermes, OpenCode, OpenClaw, Claude Code, Codex, or another coding agent with agentacct integration.
28- The user asks for evidence of AI-agent work, token/cost tracking, MCP smoke tests, or Agent FinOps workflow validation.
29 
30Do not use this skill to claim exact billing unless the run used a supported usage importer or provider/proxy path.
31 
32## Workflow
33 
341. If local client identifiers are available, call `agentacct_attach_client_context`:
35 
36```text
37source: hermes or the active coding-agent name
38client: hermes, claude-code, codex, opencode, openclaw, or other
39client_session_id: local session/thread id
40client_transcript_id: local transcript/log id if known
41parent_client_session_id: parent/root session id if this is a child agent
42turn_id/message_id/request_id: current ids if known
43client_event_timestamp: client timestamp if known
44```
45 
462. Before meaningful work, open a section with `agentacct_record_section`:
47 
48```text
49section_id: short stable id for this piece of work
50section_status: started
51section_title: concise task description
52source: hermes or the active coding-agent name
53run_id: stable task/session id if known
54```
55 
563. During work, record important checkpoints (`agentacct_record_section` with the same `section_id` and `section_status=checkpoint`):
57 
58- major decisions
59- scope changes
60- repeated errors
61- blockers
62 
63Sections are the work contract. Use `section_status=started`, `checkpoint`, `completed`, `blocked`, or `handed_off`, and include client/session/turn identifiers when known. `started` and `checkpoint` are in-progress states; `completed`, `blocked`, and `handed_off` are terminal.
64 
654. If visible token/cost usage is available, call `agentacct_record_agent_usage_debug`:
66 
67```text
68reporting_basis: visible_client_usage
69source/client/client_session_id: same values used for context when known
70provider/model: visible provider and model if known
71input_tokens/output_tokens/cache_read_input_tokens/reasoning_output_tokens/cost_usd: only fields actually visible
72```
73 
74If the client does not expose token/cost usage, call the same tool with `reporting_basis: unavailable` and a short summary. Do not guess.
75 
765. After tests/builds/smokes, record machine-check evidence:
77 
78- Prefer `agentacct_record_machine_check` when available.
79- Otherwise call `agentacct_record_event` with a compact test/build result.
80 
816. At completion, close the section with `agentacct_record_section`:
82 
83```text
84section_id: same section id
85section_status: completed
86summary: what changed, with tests, builds, diffs, tool calls, token/cost evidence actually observed
87```
88 
897. If blocked, call `agentacct_record_section` with `section_status=blocked`:
90 
91```text
92section_id: same section id
93section_status: blocked
94blocker: concrete blocker
95next_step: what would unblock it
96```
97 
988. If handing work to another agent/session, or stopping cleanly so the user can
99continue elsewhere, close the section with `section_status=handed_off`:
100 
101```text
102section_id: same section id
103section_status: handed_off
104summary: what is complete and what remains
105next_step: the concrete continuation point
106```
107 
1089. In the final response, report:
109 
110- what was changed or tested
111- exact validation command/result
112- agentacct event summary if checked
113- token/cost data only if actually observed
114- unsupported claims or blockers clearly labeled
115 
116## Claim Boundaries
117 
118Keep these separate:
119 
120- MCP events prove that the agent recorded work.
121- MCP client context and section events prove the agent reported semantic workflow anchors and local join keys.
122- MCP usage debug events prove only what the agent reported seeing about its own token/cost usage. They are comparison evidence and are not agentacct usage/cost totals.
123- Local usage import proves agentacct parsed supported client-reported token data.
124- Provider/API proxy data proves only traffic that actually flowed through agentacct or returned provider usage/cost fields.
125 
126Do not say agentacct hard-stopped, billed exactly, or tracked all sessions unless the relevant enforcement/import/proxy path was actually used.
127 
128## Client Notes
129 
130### Hermes
131 
132If agentacct MCP is configured, call agentacct tools directly. For one-shot work, load this skill explicitly:
133 
134```bash
135hermes chat -s agentacct-workflow -q "..."
136```
137 
138### OpenCode
139 
140OpenCode should receive equivalent instructions through repo `AGENTS.md` or a custom OpenCode agent. For smoke tests, use `--format json` when token/cost fields are needed.
141 
142### OpenClaw
143 
144Confirm the actual workspace path before reading repo files. If OpenClaw is running from an isolated workspace that does not contain the repo, record a blocker/workspace mismatch instead of pretending file inspection succeeded.
145 
146## Minimal Smoke Prompt
147 
148```text
149Use agentacct MCP to record a section with agentacct_record_section (section_status=started). Inspect the integration docs if available. Record the same section with section_status=completed and one objective finding in the summary. Reply exactly SENTINEL_WORKFLOW_OK.
150```
151 
152## Verification Checklist
153 
154- [ ] `agentacct_record_section` was called with `section_status=started`.
155- [ ] `agentacct_attach_client_context` was used when local ids were available.
156- [ ] `agentacct_record_agent_usage_debug` was called with visible usage or `reporting_basis=unavailable`.
157- [ ] Meaningful checkpoints or machine checks were recorded when applicable.
158- [ ] Completion, blocker, or clean handoff was recorded.
159- [ ] Final response separates MCP evidence from token/cost/billing evidence.
160- [ ] No secrets or raw provider bodies were printed.
161 
View all files on GitHub →

Details

Version
1.0.0
License
MIT
Stars on the repo
★ 759
Checked
Source
mikehasa/agentacct ↗
Creator
mikehasa · 2 listings
View creator

Similar skills

See all →
SkillWeb browser automation with AI-optimized snapshotsBrowser Automation Skillruvnet/RuView · by ruvnetWeb browser automation with AI-optimized snapshots for claude-flow agents★ 94.7k GitHub starsSkillDeepEval evaluation workflow for AI agentsconfident-ai/deepeval · by confident-aiDeepEval evaluation workflow for AI agents and LLM applications. TRIGGER when the user wants to evaluate or improve an AI agent, tool-using workflow, multi-turn chatbot, RAG pipeline, or LLM app; add evals; generate datasets or goldens; use deepeval generate; use deepeval test run; send results to Confident AI; monitor production; run online evals; inspect traces; or iterate on prompts, tools, retrieval, or agent behavior from eval failures. AI agents are the primary use case. Covers Python SDK, pytest eval suites, CLI generation, traced evals, Confident AI reporting, and agent-driven improvement loops. DO NOT TRIGGER for unrelated generic pytest, non-AI test setup, or non-DeepEval observability work unless the user asks to compare or migrate to DeepEval; for instrumenting an app with DeepEval tracing, @observe, or framework integrations (use the `deepeval-tracing` skill); or for raw OpenTelemetry / OTLP export without the deepeval package (use the `deepeval-otel` skill).★ 18.7k GitHub starsSkillBrowser automation with persistent named pagesDev browserSawyerHood/dev-browser · by SawyerHoodBrowser automation with persistent named pages via the dev-browser CLI. Use when users ask to navigate websites, fill forms, take screenshots, extract web data, test web apps, log into sites, or automate browser workflows. Trigger phrases include "go to [url]", "click on", "fill out the form", "take a screenshot", "scrape", "automate", "test the website", "log into", "open the browser", or any browser interaction request.★ 6.7k GitHub starsSkillTurn visible project context, a proven thread, skillTurn into appBuilderIO/skills · by BuilderIOTurn visible project context, a proven thread, skill, or workflow into a runnable Agent-Native app with simple buttons, visible agent steps, preview, and deployment handoff. Use when a user invokes `/turn-into-app` or asks to make a workflow into an app, including from Claude or ChatGPT on the web, including when the source is a spreadsheet link or upload.★ 4.5k GitHub starsSkillComplete browser automation with PlaywrightPlaywright Browser Automationlackeyjb/playwright-skill · by lackeyjbComplete browser automation with Playwright. Auto-detects dev servers, writes reusable test scripts, and supports screenshots, responsive checks, UX validation, login flows, link checks, and arbitrary browser automation. Use when the user wants to test a website, automate browser interactions, validate web functionality, or perform browser-based testing.★ 3.2k GitHub starsSkillUse TinyFish for web search, fetching URLs, reading pagesTinyFish CLItinyfish-io/tinyfish-cookbook · by tinyfish-ioUse TinyFish for web search, fetching URLs, reading pages, current information, source-backed answers, research, docs, pricing/product pages, extraction, scraping, and browser automation. Use whenever the user asks to search, find, look up, research, compare, get information from the web, summarize a URL, fetch page content, or automate a website.★ 2.2k GitHub stars

More from mikehasa