plugins/kronen/skills/reasoning-trace-optimizer/SKILL.md
Analyzes agent reasoning patterns in trace-light.log to detect context degradation, tool confusion, instruction drift, goal abandonment, circular reasoning, and premature conclusions. Produces a diagnosis with specific patterns found and a fix recommendation. Use when an agent session is underperforming, when repeated tool calls aren't making progress, when an agent seems to have lost track of its goal, when debugging why a plan stalled or looped, or when reviewing a completed session for quality issues.
npx skillsauth add hjemmesidekongen/ai reasoning-trace-optimizerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Diagnoses agent reasoning quality by scanning trace-light.log for structural failure patterns. Surfaces what went wrong and how to fix it.
See references/process.md for full detection criteria and fix recommendations.
| Pattern | Signal | Severity | |---------|--------|---------| | Context degradation | Repeated reads of same files, increasing error rate | high | | Tool confusion | Wrong tool for task, tool retries without adaptation | medium | | Instruction drift | Actions diverging from original task description | high | | Goal abandonment | Task incomplete, agent stops without explicit block | critical | | Circular reasoning | Same investigation steps repeated 2+ times | medium | | Premature conclusion | Claimed done before verification-gate ran | high |
Writes references/process.md-defined diagnosis to .ai/traces/reasoning-diagnosis.md.
development
Creates a brand from scratch through market research and interactive sparring. Runs competitive research via Perplexity, then guides the user through positioning, audience, voice, values, and content pillars. Produces the full brand guideline set at .ai/brand/{name}/. Use when building a new brand, defining brand strategy for a product, or when /våbenskjold:create is invoked.
testing
Loads brand guidelines from .ai/brand/{name}/ and makes them available to the current context. Progressive disclosure: L1 confirms brand exists, L2 loads summary, L3 loads specific files on demand. Use when a downstream skill or user needs brand context, or when /våbenskjold:apply is invoked.
documentation
Guided reinvention of an existing brand guideline. Loads current brand from .ai/brand/{name}/, identifies what to keep vs change, and walks the user through targeted evolution. Preserves brand equity while updating positioning, voice, or values. Use when refreshing a brand or when /våbenskjold:evolve is invoked.
development
Codifies an existing brand from materials, samples, and references. Analyzes provided content to extract voice patterns, values, and positioning. Produces the same guideline format as brand-strategy. Use when a brand already exists but isn't documented, or when /våbenskjold:audit is invoked.