Captures knowledge you want to persist across sessions without running a full retrospective. By default it writes to your local project's pending knowledge folder, but the global flag sends it to your home directory for patterns that apply everywhere. The promote flag is smart: it takes a local learning that turned out to be broadly useful, strips the repo-specific context, and moves it to your global learnings while marking the original so it doesn't get injected twice. Think of it as a fast path to feed your agent's memory when you notice something worth remembering but don't want to stop and formalize it yet.
npx skills add https://github.com/boshu2/agentops --skill learn