origin-trouble-log

Records agent workflow troubles as structured entries and triages them into formalization candidates.

Updated Dec 9, 2025
One-click install
npx skills add https://github.com/Aki2022/skills --skill origin-trouble-log-aki2022
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: origin-trouble-log
Source: https://github.com/Aki2022/skills/tree/main/origin-trouble-log
Command: npx skills add https://github.com/Aki2022/skills --skill origin-trouble-log-aki2022

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve? AI agent work sessions produce recurring friction—silent no-ops, false completion reports, unnecessary questions—that goes unrecorded and therefore never gets fixed systematically. This Skill captures each trouble as a structured, append-only evidence entry, then supports human-triggered triage that clusters entries by failure shape and proposes hooks, skills, or permission rules as countermeasures. ## Core Features & Use Cases - Structured trouble recording: Writes one Markdown entry per incident using a fixed 7-section template with machine-readable frontmatter (date, summary, skills, repo, canon, paths), validated deterministically by a shell script. - Status ledger management: Tracks triage_status and response_status per entry in TSV ledgers via a Python CLI (sync, summary, validate, update), keeping entry bodies append-only while statuses evolve. - Triage and effectiveness measurement: Clusters untriaged entries by failure shape, proposes warn-only hooks or skill/doc fixes, and measures hook effectiveness from Claude Code and Codex transcripts (correction rate, recurrence, false alarms). - Use Case: After a user points out "why did you ask that when it's already automated?", the agent immediately records the incident with verbatim commands and observed breakage; at the weekly triage, accumulated entries are clustered and matching shapes become hook proposals. ## Quick Start Tell the agent "record that trouble" right after pointing out a workflow mistake, and it will write a structured entry to the configured storage root.

Frequently Asked Questions about origin-trouble-log

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I record an AI agent workflow trouble for later analysis?

Invoke the skill immediately after a user correction or a noticed failure. It writes one Markdown entry under entries/YYYY-MM/ using a fixed 7-section template with verbatim commands and errors, plus frontmatter fields like date, summary, skills, canon, and paths.

How do I triage accumulated trouble entries into hook proposals?

Run triage on explicit human instruction only. The skill snapshots untriaged entries, clusters them by failure shape rather than count thresholds, and proposes warn-only hooks for syntactically detectable patterns or skill/doc fixes for knowledge gaps.

Where are the trouble log entries stored?

The storage root resolves from the ORIGIN_TROUBLE_LOG_ROOT environment variable or a pointer file at ~/.config/origin-trouble-log/root. The root must live outside any git working tree and relies on a cloud sync client for backup.

Does the skill automatically create hooks or modify settings.json?

No. It owns recording, triage, and status tracking only. Formalization is delegated: skill revisions go to origin-skill-commonize, hooks and permission lists go to the settings.json-owning skill, and all formalization requires human approval.

How is hook effectiveness measured after implementation?

The measure_hook_firings.py script parses Claude Code transcripts and Codex session logs to compute firing rate, correction rate, and recurrence per guard tag. False alarms are adjudicated from stratified random samples, and results feed the triage report's response evaluation section.

When should I not use this trouble logging skill?

Do not use it for repository-specific technical bugs, which belong in that repository's issue tracker, or for revising skill bodies directly, which origin-skill-commonize owns. It targets cross-cutting agent behavior friction, not code defects.