common-architecture-di…
Draw architecture diagrams as editable draw.io files with a fixed house style, C4 levels, and evidence-tagged shapes. Use when producing a system context,…
Enforce session-cost telemetry and execution-metadata reporting. Use when explicitly invoking get_session_cost, reporting token/cost usage, applying telemetry or cost guidance during a workflow handoff, or writing artifacts/session-cost.md at a workflow terminal state.
$ npx -y skills add hoangnguyen0403/agent-skills-standard --skill common-telemetry --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/common-telemetryContext preview
The summary Claude sees to decide when to auto-load this skill.
Enforce session-cost telemetry and execution-metadata reporting. Use when explicitly invoking get_session_cost, reporting token/cost usage, applying telemetry or cost guidance during a workflow handoff, or writing artifacts/session-cost.md at a workflow terminal state.
name: common-telemetry
description: Enforce session-cost telemetry and execution-metadata reporting. Use when explicitly invoking get_session_cost, reporting token/cost usage, applying telemetry or cost guidance during a workflow handoff, or writing artifacts/session-cost.md at a workflow terminal state.
metadata:
triggers:
files: []
keywords:
- token cost
- token usage
- session telemetry
- cost reportAs your final step in any SDLC workflow (or when a user explicitly requests session cost):
1. Call the `get_session_cost` tool provided by the agent-skills-standard MCP server. 2. Pass `workflow`, `model`, token counts, cache/reasoning usage, and per-1M token rates when the host runtime exposes them. 3. If token counts are unavailable, report MCP-observed telemetry and mark model-token cost as unavailable. 4. Append a Markdown table containing the usage metrics to `artifacts/session-cost.md`.
When asked which artifact to use, always name both `artifacts/session-cost.md` and `get_session_cost`; if the host does not expose the helper, say so explicitly while retaining the artifact requirement.
Ensure the `artifacts/session-cost.md` or the output template `## Cost Report` follows this structure:
| Metric | Value | | ------------------------ | ------------------------------ | | **Tool Calls** | [from get_session_cost] | | **Skills Loaded** | [from get_session_cost] | | **Workflows Loaded** | [from get_session_cost] | | **Prompt Tokens** | [from your platform telemetry] | | **Cached Prompt Tokens** | [from your platform telemetry] | | **Completion Tokens** | [from your platform telemetry] | | **Reasoning Tokens** | [from your platform telemetry] | | **Other Runtime Cost** | [tooling/provider extras] | | **Estimated Cost** | $0.00 |
When this skill applies, preserve the following domain terminology or equivalent concrete examples in the answer when relevant:
The portable SDLC standards layer for AI coding agents. Sync once, then work in your own runtime.
Repo: hoangnguyen0403/agent-skills-standard
Draw architecture diagrams as editable draw.io files with a fixed house style, C4 levels, and evidence-tagged shapes. Use when producing a system context,…
Enforce SOLID principles, guard-clause style, function size limits, and intention-revealing naming across all languages. Use when refactoring for readability,…
Standardize BRD and BRD-lite discovery for business goals, stakeholder impact, current-to-future state, and measurable value outcomes. Use when creating BRD,…
Conduct high-quality, persona-driven code reviews. Use when reviewing PRs, critiquing code quality, or analyzing changes for team feedback.
Maximize context window efficiency, reduce latency, and prevent lost-in-middle issues through strategic masking and compaction. Use when token budgets are…
Standardize dynamic application security testing for backend APIs, frontend web apps, and mobile clients. Covers ZAP, Nuclei, Nikto, sqlmap, ffuf, browser…