Skip to content
Back to skills

Analyze

ASecurity

Analyse indexed agent history with Mash Insights SQL, themes, related-chat groups, evidence and charts. Use /mash:analyze or ask for activity trends, counts by agent or project, recurring subjects, groups of similar chats or turns, repeated instructions, or a reproducible analysis of past chats.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 4, 2026
ai-agentspythongosqlapi

Works with

  • api

Security analysis

A100/100

Scanned December 5, 2026

npx -y skills add mashhq/mash --skill analyze --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Analyze?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Analyze
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mashhq-analyze/badge)](https://www.skillsdirectory.com/skills/mashhq-analyze)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: analyze
description: Analyse indexed agent history with Mash Insights SQL, themes, related-chat groups, evidence and charts. Use /mash:analyze or ask for activity trends, counts by agent or project, recurring subjects, groups of similar chats or turns, repeated instructions, or a reproducible analysis of past chats.
---

# Analyze indexed agent history

Use Mash's `describe_analytics`, `query_analytics` and `analyze_history` tools
when available.
Hosts may prefix tool names. Read live tool help and the analytical schema
before composing a query. Physical SQLite tables and provider files are outside
this analytical contract.

Turn the question into a measure, grouping, period and local or shared scope.
Use the requested time zone and make date bounds explicit. Choose a reasonable
period from context when omitted and state it with the result. Shared scope
covers published history in the configured group. Local and shared copies of
the same history must not be added together.

## Query and verify

Write one read-only SQL query over the documented views. Bind values through
parameters. Join identities using both `source_id` and the relevant chat,
message, turn or record ID. Inspect null dates and missing source coverage
before making claims about totals. Keep the query and its parameters so the
person can reproduce it.

Read `truncated`, warnings and provenance on every response. Increase a bounded
limit or aggregate in SQL if truncation prevents answering the question. Never
present returned-row counts as complete totals when rows were truncated.
Source coverage describes the indexed material available to this query.

For interpretations, inspect supporting canonical messages with `view` and
retain their machine and message identity. Exact repeated text is one explicit
method for finding repeated instructions. Optional model-assisted interpretation
requires permission to send selected excerpts to the person's configured model
service. Show which excerpts will be sent before running that analysis.

## Find themes and related conversations

Use `analyze_history` for local topic modelling and clustering. Preview the
selection, then request `topics` for overlapping recurring subjects or `clusters`
for groups of related items. Use chats as the unit across conversations and
turns to examine a conversation in detail. Keep source-qualified identities
when narrowing to selected chats or turns. Date filters apply to messages.
Use the person's messages by default and include assistant dialogue when the
question calls for it. Tool payloads are excluded.

Choose a fixed topic count and seed, record them with the answer, and check
the returned labels against supporting chats. Automatic clustering may leave
items ungrouped. Fixed-count clustering assigns every usable item. Both run
locally without an API key. Clustering, semantic focus and supplied categories
require the installed embedding model.
Keep missing-model installation behind an explicit setup request.

Use typed `controls` from live tool help to refine the analysis. Keep input
exclusions and label-only exclusions explicit. Canonical subagent exclusion uses
provider markers. Repeated-passage cleanup can remove text inherited by chat
forks as well as instructions. Inspect the reported changes and supporting
messages before attributing a theme to the person's own requests.

Use qualification controls for minimum distinct supporting chats, UTC days or
projects. State the association threshold used to count support. A semantic
focus compares selected units with a description using local embeddings.
Supplied categories use named descriptions and optional examples, allow multiple
matches and preserve unmatched items as unclassified. Category scores are cosine
similarities. Report counts of matching items and inspect their evidence.

Report sampled, empty, unusable, focus-excluded, unclassified and unknown-time
coverage. Request a smaller
scope or an explicit seeded sample when a budget is exceeded. Theme weights
from discovery are mixtures of subjects. Describe their meaning when showing percentages.
Two-dimensional cluster maps use a projection, so proximity is approximate.
Inspect supporting members before naming a group or explaining a trend.
Retain the algorithm, selection, seed and provenance for reproduction.
Compare reruns only against identical source identities and revisions, including
memory revisions. Preserve weak results and exclusion reasons in the account.

## Present the result

For project phases over time, request topic analysis with the optional
`timeline` controls from live help. Prefer turns so changes within long chats
can appear on the timeline. Scope the request to the project and period, then
inspect the returned phase bands and their source unit indices. The same theme
can recur and phases can overlap. Change markers show shifts in the leading
theme. Read the supporting messages before attributing a decision, release or
completed milestone to a marker. Explain exclusions and periods with no
analysed conversations. Keep edited labels with the saved presentation.

The Python SDK also supports `mash.project_timeline(...)` and
`themes.project_timeline(...)`, with source-linked evidence and an exportable
chart. Include the interval and support thresholds with reproducible results.

Use a chart when it makes the answer easier to understand. Specify the chart's
type and result-column names through `query_analytics`; the dashboard renders
that specification. For requested standalone files, the optional Mash Insights
Python SDK can export SVG, PNG, offline HTML and CSV from the same query.
Say when the host only exposes the chart specification and data.

Give a concise answer, the period and scope, and links to supporting messages
when reporting an interpretation. Counts measure recorded activity. Claims
about hours worked, productivity, successful fixes or benchmark improvements
need their own evidence. Keep unknown measurements unknown and compare only
compatible experiment conditions.

If the runtime is unavailable, report the tool's installation guidance. Leave
installation to an explicit setup request. The ordinary history tools can still
help with qualitative questions.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.