Repository navigation
feat(skills): trail learn turns corrections into skills - #557
anirudhkumar-nanonets wants to merge 2 commits into
Conversation
🌱 graft blast radius4 areas changed → 5 areas can be affected. 14 dependent symbols, depth 2. flowchart TB
A0(("Session Metrics<br/>6 symbols"))
A1(("Data Synchronization<br/>3 symbols"))
A2(("Skill Registry<br/>2 symbols"))
A3(("Telemetry Tracking<br/>2 symbols"))
A4(("Tooling<br/>1 symbol"))
classDef reached fill:#D9EDF3,stroke:#3AA7C9,stroke-width:1.5px,color:#0E313C;
class A0,A1,A2,A3,A4 reached;
Who knows this code — 1 person across 9 areas
Ownership is git history over each area's own files, weighted towards recent work (120-day half-life). Merge commits and bots are dropped, and you are dropped from your own PR. A name with no All 14 dependent symbols, grouped by areaSession Metrics — 6 symbols in 6 files
Data Synchronization — 3 symbols in 3 files
Skill Registry — 2 symbols in 2 files
Telemetry Tracking — 2 symbols in 2 files
Tooling — 1 symbol in 1 file
Test signal per changed area — 2 ✓ · 1 ✗ · 1 –Reached = a node under a test path has a resolved edge into the changed symbol. It undercounts anything called indirectly — through a CLI, a spawned process or a dynamic import — so read a low ratio as “look here”, never as a coverage gate.
14 test suites also reference this code14 symbols, kept out of the diagram and the table so they cannot crowd out the areas a reviewer has to look at.
Open the interactive graph → — click an area to see the code that changed, and the line that reaches it. |
… folds and publishes them
…orrects or sets a rule
90c25be to
229856b
Compare
|
Folded into #558, which now carries this change along with the rest of trail. |
Moves:
takeaway_savedandskills_folded(PostHog DB 11), both 0 on 2026-10-07 because they're new.When the user corrects how something is done, the agent saves the correction, and the agent follows it from then on.
trail learn <skill>saves the correction as a takeaway in~/.trail/repos/<key>/skills/<skill>/takeaways/, with the text on stdin..claude/skills/takes the takeaway as is.~/.trail.trail skillslists the skills. Its subcommands:show <skill>prints the skill and the corrections not yet folded in, newest first.foldwrites the waiting takeaways into SKILL.md and bumps the version. It edits only theversion:line, so a team's own frontmatter keeps its exact formatting.--confirmedfolds only the ones a second person confirmed.publishmoves a skill from~/.trailinto the repo's.claude/skills/, to commit for the team.confirmrecords that a second person confirmed a takeaway.trail learnwhen the user corrects how something is done or states a rule for it.Tests:
npm test, 1,424 pass.