learnings_skill

This skill captures evidence-backed execution learnings and persists them as JSONL in .learnings.jsonl for reuse in future turns.
  • Python

42

GitHub Stars

1

Bundled Files

2 months ago

Catalog Refreshed

4 months ago

First Indexed

Readme & install

Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.

Installation

Preview and clipboard use veilstrat where the catalogue uses aiagentskills.

npx veilstrat add skill tkersey/dotfiles --skill learnings

  • SKILL.md10.5 KB

Overview

This skill captures and persists short, evidence-backed execution learnings into a machine-readable .learnings.jsonl file. It runs at natural delivery boundaries or on explicit cues and writes decision-shaping rules so future agents and contributors can reuse successful patterns and avoid footguns. The output is optimized for automated recall, deduplication, and later codification.

How this skill works

The skill inspects recent changes, validation signals, and command outputs (git status/diff, test results, logs) to gather concrete evidence. It distills candidate lessons into compact rules of the form "When X, prefer Y because Z", assigns an actionable snake_case status, and appends one JSON object per learning using a helper script that computes fingerprints and captures repo/branch context. It prefers 0–3 records per turn, defaults to review_later when evidence is thin, and never blocks the workflow.

When to use it

  • At commit/PR/handoff boundaries to record decisions before shipping
  • When a validation transition occurs (fail->pass, pass->fail, timeout->stable)
  • After a strategy pivot or simplifying refactor
  • On discovery of a footgun, brittle assumption, or recurring trap
  • When a pattern repeatedly accelerates progress or debugging

Best practices

  • Capture only lessons that will change future decisions—keep each learning actionable
  • Ground every learning in observed evidence; include concrete commands, tests, or diffs
  • Prefer concise statuses like do_more or do_less; use investigate_more/codify_now when needed
  • Append immediately with the provided append script to avoid manual JSON edits
  • Keep noise low: write nothing if no checkpoint occurred or evidence is absent

Example use cases

  • After a flaky test turned green: append a learning with the failing test command and the fix that stabilized it
  • When abandoning an approach: record a strategy pivot learning that explains why the new approach was chosen
  • On discovering a recurring setup pitfall: add a footgun learning with reproduction steps and an avoidance rule
  • Before opening a PR: run the skill to persist any last-minute delivery-boundary learnings
  • When a quick pattern accelerates debugging: log a momentum discovery so others can reuse it

FAQ

Persist with status review_later and placeholder evidence; enrich the record later when stronger data exists.

How many records should be appended per turn?

Prefer 1 high-leverage record, allow 0 when nothing qualifies, and cap at 3 to control noise.

How are duplicates handled?

The helper script computes a fingerprint and skips exact duplicates; provide --allow-duplicate to force another record.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational