analyse-trajectory — AI Agent trajectory analysis analyse-trajectory, varro, josca42, community, AI Agent trajectory analysis, ai agent skill, ide skills, agent automation, Trajectory file generation, Python script integration, CLI command support, Multi-language support

v1.0.0
GitHub

About this Skill

Perfect for Python Analysis Agents needing advanced trajectory file generation and analysis capabilities. Analyse Trajectory is a technique used by AI Agents to generate and analyze trajectory files

Features

Trajectory file generation
Multi-language support
Idempotent feature
Python script integration
CLI command support

# Core Topics

josca42 josca42
[1]
[0]
Updated: 3/17/2026

Quality Score

Top 5%
60
Excellent
Based on code quality & docs
Installation
SYS Universal Install (Auto-Detect)
> npx killer-skills add josca42/varro/analyse-trajectory
Supports 19+ Platforms
Cursor
Windsurf
VS Code
Trae
Claude
OpenClaw
+12 more

Agent Capability Analysis

The analyse-trajectory skill by josca42 is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance. Optimized for AI Agent trajectory analysis, Trajectory file generation, Python script integration.

Ideal Agent Persona

Perfect for Python Analysis Agents needing advanced trajectory file generation and analysis capabilities.

Core Value

Empowers agents to generate and analyze trajectory files using Python, supporting multiple languages and idempotent features, with capabilities including generating chat trajectories and analyzing turn-level data stored in `.md` files.

Capabilities Granted for analyse-trajectory

Generating trajectory files for chat analysis
Analyzing turn-level data in chat trajectories
Regenerating trajectory files when `turn.md` is missing or `.trajectory_version` is outdated

! Prerequisites & Limits

  • Requires Python environment
  • Idempotent feature may cause delays in regeneration if `turn.md` or `.trajectory_version` is not updated
Project
SKILL.md
4.9 KB
.cursorrules
1.2 KB
package.json
240 B
Ready
UTF-8

# Tags

[No tags]
SKILL.md
Readonly

Analyse Trajectory

Generate trajectory files

bash
1uv run python -c "from varro.playground.trajectory import generate_chat_trajectory; print(generate_chat_trajectory(user_id=USER_ID, chat_id=CHAT_ID))"

Idempotent: turns regenerate only when turn.md is missing or .trajectory_version is outdated.

Trajectory file structure

Output at data/trajectory/{user_id}/{chat_id}/:

chat.md                    # one-line summary per turn: user input, tools, final excerpt
system_instructions.md     # full system prompt given to the agent
tool_instructions.md       # all tools with descriptions and parameter schemas
{turn_idx}/
  turn.md                  # trajectory: User → Steps (Thinking/Actions/Observations) → Final response → Usage
  tool_calls/              # extracted .sql, .py, large .txt results
  images/                  # extracted plots and images

Review process

  1. Read chat.md for the overview
  2. Read system_instructions.md and tool_instructions.md once to understand what the agent was given
  3. For each turn, read turn.md and inspect extracted artifacts in tool_calls/
  4. Evaluate each turn against the framework below
  5. Write findings to data/trajectory/{user_id}/{chat_id}/findings.md

Evaluation framework

Focus on what system builders can change (instructions, tools, documentation), not on what the model should have known.

Instructions quality

Does the system prompt give the agent precise enough guidance?

  • Agent guessing at workflow steps that instructions could have specified
  • Agent ignoring instructions that exist (too buried or unclear)
  • Missing guidance for a common question pattern
  • Ambiguity that caused the agent to pick a suboptimal path

Tool adequacy

Do tools return clear, actionable output that makes the next decision obvious?

  • Tool output missing information the agent needed next (row count, available levels, column names)
  • Agent calling the same tool repeatedly to get information one call could have returned
  • Agent working around a tool limitation using Bash/SQL when a dedicated tool or a small tool change would be cleaner
  • Tool descriptions that are misleading or incomplete
  • Fuzzy matching returning unhelpful results

Trajectory efficiency

Did the agent take unnecessary steps because of instruction or tool gaps?

  • Steps that only exist because prior tool output was incomplete
  • Exploratory steps that instructions could have eliminated
  • Repeated queries that differ only in filter values the agent was searching for
  • Trial-and-error discovery of something documentation could have stated
  • NameError on a prior-turn dataframe may indicate shell state was lost (CLI restart, idle eviction) rather than agent misuse — don't count it as a tool error

Relevance

Is the user question within scope for the state statistician?

  • Questions the agent shouldn't need to handle (general chat, non-data questions)
  • Questions that are borderline — note whether the agent should redirect or attempt

Output format

Write findings to data/trajectory/{user_id}/{chat_id}/findings.md:

markdown
1# Review: Chat {chat_id} 2 3## Summary 4{1-3 sentences: what the user asked, overall assessment of how the system supported the agent} 5 6## Findings 7 8### {short title} 9**Dimension**: {Instructions | Tool | Trajectory | Documentation} 10**Turn**: {turn_idx}, Step {step_idx} 11**Observation**: {What happened — reference actual tool calls and results} 12**Suggestion**: {Concrete change to instructions, tool output, or documentation} 13**Impact**: {Steps saved, or what class of questions this helps} 14 15... 16 17## Verdict 18{The single most impactful improvement from this review}

Guidelines:

  • Be concrete. Reference actual step numbers, tool calls, and results.
  • Suggest specific changes. "Add row count to Sql tool output" not "improve tool output."
  • Estimate impact. "Would save 2-3 steps for geographical queries" is useful.
  • One finding per root cause. Group repeated issues across turns.
  • Skip clean turns — only note what can be improved.

Agent environment (reference)

The reviewed agent (Rigsstatistikeren) operates in a sandboxed filesystem:

/subjects/{root}/{mid}/{leaf}.md   — subject overviews listing available tables
/fact/{root}/{mid}/{leaf}/{id}.md  — per-table docs: columns, joins, value ranges
/dim/                              — dimension table docs
/dashboard/                        — saved dashboard definitions
/skills/                           — guides for complex tasks (e.g., dashboard creation)

Tools: ColumnValues, Sql, Jupyter, Read, Write, Edit, Bash, UpdateUrl, Snapshot, WebSearch

Typical efficient trajectory for data analysis:

  1. Identify subject area → Bash ls
  2. Read subject overview → Read
  3. Read table docs → Read
  4. Check column values → ColumnValues
  5. Query data → Sql with df_name
  6. Visualize → Jupyter with show
  7. Explain → final response

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is analyse-trajectory?

Perfect for Python Analysis Agents needing advanced trajectory file generation and analysis capabilities. Analyse Trajectory is a technique used by AI Agents to generate and analyze trajectory files

How do I install analyse-trajectory?

Run the command: npx killer-skills add josca42/varro/analyse-trajectory. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for analyse-trajectory?

Key use cases include: Generating trajectory files for chat analysis, Analyzing turn-level data in chat trajectories, Regenerating trajectory files when `turn.md` is missing or `.trajectory_version` is outdated.

Which IDEs are compatible with analyse-trajectory?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for analyse-trajectory?

Requires Python environment. Idempotent feature may cause delays in regeneration if `turn.md` or `.trajectory_version` is not updated.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add josca42/varro/analyse-trajectory. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use analyse-trajectory immediately in the current project.

Related Skills

Looking for an alternative to analyse-trajectory or another community skill for your workflow? Explore these related open-source skills.

View All

openclaw-release-maintainer

Logo of openclaw