history-hygiene

Log final decisions to history.md and update entries on reversals.

9|1|Updated Jul 21, 2025
One-click install
npx skills add https://github.com/usepowershell/PoshMcp --skill history-hygiene-usepowershell
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: history-hygiene
Source: https://github.com/usepowershell/PoshMcp/tree/main/.copilot/skills/history-hygiene
Command: npx skills add https://github.com/usepowershell/PoshMcp --skill history-hygiene-usepowershell

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

History files track decisions, spawns, and outcomes and are read cold by future agents. Stale or incorrect entries poison decision-making downstream. The Kobayashi incident proved this: history said "Brady decided v0.6.0" when Brady had reversed that to v0.8.17. Future spawns read the wrong truth and repeated the mistake.

Core Features & Use Cases

  • Final-outcome logging: Only final decisions are logged, not intermediate requests or reversals.
  • Immediate updates on reversals: When a decision reverses, history is updated to reflect the final outcome.
  • Single source of truth: Maintains a canonical timeline of decisions accessible to all agents.

Quick Start

Log the final outcome to history.md immediately after confirmation and avoid writing intermediate states.

Frequently Asked Questions about history-hygiene

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

FAQPage Schema
How do I maintain a single source of truth in team decision tracking?

Maintaining a single source of truth in decision tracking requires logging only final outcomes to history.md, not intermediate requests or reversed decisions. This prevents stale or conflicting records from poisoning downstream automated agents.

What is the best way to log audit trails for automated agents?

Logging audit trails for automated agents involves recording final decisions to history.md immediately after confirmation. This approach avoids writing intermediate states, ensuring future spawns read a clean, canonical timeline of actual outcomes.

Why does stale history cause incorrect decisions in team collaboration workflows?

Stale history causes incorrect decisions because future agents read outdated entries cold, assuming they represent current truth. If a reversed decision is not updated, downstream spawns repeat mistakes based on the wrong version of events.

How do I update history.md when a decision is reversed?

Updating history.md when a decision is reversed requires immediately replacing the original entry with the final outcome. This ensures the canonical timeline reflects the latest confirmed state rather than leaving conflicting or incorrect intermediate records.

When should I not use intermediate states for documentation logging?

You should not use intermediate states for documentation logging when building workflows for future agents. Writing unconfirmed requests or temporary states creates stale entries that can mislead downstream decision-making processes and break the audit trail.

Can I use history.md for project decision tracking across multiple teams?

Yes, you can use history.md for project decision tracking across multiple teams by applying the final-outcome logging approach. It enforces clear guidelines on when to log and how to handle reversals, maintaining a trustworthy shared timeline.