Trace manager

From LowyShin/giip-dev-agent · View interactive version

Trace manager is an AI agent skill from the GitHub repository LowyShin/giip-dev-agent. Record, read, and manage execution traces for agent optimization. Use this skill whenever a task is explicitly marked as "traced" or when you want to collect performance data for later prompt optimization (APO).

How to use this skill

Skill file

Trace Manager

A skill for recording agent execution steps (traces) to support "Native Agent Optimization".

Tracing Process

1. Initialize Trace

At the beginning of a traced task, create a new trace ID: YYYYMMDDHHMMSS_task_name.

2. Record Step

For each significant tool call or decision point, record a "step" in the trace JSON:

3. Collect Reward

When the task is complete, request a "Reward Score" (0.0 to 1.0) from the user or evaluate it based on the success criteria.

4. Save Trace

Save the final trace to .agent/traces/<trace_id>.json.

Trace Format (JSON)

{
  "trace_id": "20260403233435_example_task",
  "skill_used": "skill-name",
  "task": "Task description from user",
  "steps": [
    {
      "timestamp": "2026-04-03T23:34:40",
      "action": "run_command",
      "input": "ls -la",
      "output": "file1, file2...",
      "reasoning": "Checking directory content to identify target files."
    }
  ],
  "reward": 0.9,
  "feedback": "User feedback if any"
}

When to use this skill

⚡ Optimization Integration

When using this skill for critical tasks, please run it within a /native-trace context to capture performance data for self-improvement via /aioptimize.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.