[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6FHVAFGKR4XHTA2FBX9FSG4":3,"skill-same:01M6FHVAFGKR4XHTA2FBX9FSG4":48},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":21,"linkOnly":22,"markdownContent":23,"markdownBody":23,"frontMatter":24,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":30,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M6FHVAFGKR4XHTA2FBX9FSG4","lesson-learned",null,"ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fsoftaworks\u002Fagent-toolkit\u002Flesson-learned\u002FSKILL.md",[],[18,19,20],"lesson","lesson learned","learned","2026-11-10 10:12:30",false,"# Lesson Learned\n\nExtract specific, grounded software engineering lessons from actual code changes. Not a lecture -- a mirror. Show the user what their code already demonstrates.\n\n## Before You Begin\n\n**Load the principles reference first.**\n\n1. Read `references\u002Fse-principles.md` to have the principle catalog available\n2. Optionally read `references\u002Fanti-patterns.md` if you suspect the changes include areas for improvement\n3. Determine the scope of analysis (see Phase 1)\n\n**Do not proceed until you've loaded at least `se-principles.md`.**\n\n## Phase 1: Determine Scope\n\nAsk the user or infer from context what to analyze.\n\n| Scope | Git Commands | When to Use |\n|-------|-------------|-------------|\n| Feature branch | `git log main..HEAD --oneline` + `git diff main...HEAD` | User is on a non-main branch (default) |\n| Last N commits | `git log --oneline -N` + `git diff HEAD~N..HEAD` | User specifies a range, or on main (default N=5) |\n| Specific commit | `git show \u003Csha>` | User references a specific commit |\n| Working changes | `git diff` + `git diff --cached` | User says \"what about these changes?\" before committing |\n\n**Default behavior:**\n- If on a feature branch: analyze branch commits vs main\n- If on main: analyze the last 5 commits\n- If the user provides a different scope, use that\n\n## Phase 2: Gather Changes\n\n1. Run `git log` with the determined scope to get the commit list and messages\n2. Run `git diff` for the full diff of the scope\n3. If the diff is large (>500 lines), use `git diff --stat` first, then selectively read the top 3-5 most-changed files\n4. **Read commit messages carefully** -- they contain intent that raw diffs miss\n5. Only read changed files. Do not read the entire repo.\n\n## Phase 3: Analyze\n\nIdentify the **dominant pattern** -- the single most instructive thing about these changes.\n\nLook for:\n- **Structural decisions** -- How was the code organized? Why those boundaries?\n- **Trade-offs made** -- What was gained vs. sacrificed? (readability vs. performance, DRY vs. clarity, speed vs. correctness)\n- **Problems solved** -- What was the before\u002Fafter? What made the \"after\" better?\n- **Missed opportunities** -- Where could the code improve? (present gently as \"next time, consider...\")\n\nMap findings to specific principles from `references\u002Fse-principles.md`. Be specific -- quote actual code, reference actual file names and line changes.\n\n## Phase 4: Present the Lesson\n\nUse this template:\n\n```markdown\n## Lesson: [Principle Name]\n\n**What happened in the code:**\n[2-3 sentences describing the specific change, referencing files and commits]\n\n**The principle at work:**\n[1-2 sentences explaining the SE principle]\n\n**Why it matters:**\n[1-2 sentences on the practical consequence -- what would go wrong without this, or what goes right because of it]\n\n**Takeaway for next time:**\n[One concrete, actionable sentence the user can apply to future work]\n```\n\nIf there is a second lesson worth noting (maximum 2 additional):\n\n```markdown\n---\n\n### Also worth noting: [Principle Name]\n\n**In the code:** [1 sentence]\n**The principle:** [1 sentence]\n**Takeaway:** [1 sentence]\n```\n\n## What NOT to Do\n\n| Avoid | Why | Instead |\n|-------|-----|---------|\n| Listing every principle that vaguely applies | Overwhelming and generic | Pick the 1-2 most relevant |\n| Analyzing files that were not changed | Scope creep | Stick to the diff |\n| Ignoring commit messages | They contain intent that diffs miss | Read them as primary context |\n| Abstract advice disconnected from the code | Not actionable | Always reference specific files\u002Flines |\n| Negative-only feedback | Demoralizing | Lead with what works, then suggest improvements |\n| More than 3 lessons | Dilutes the insight | One well-grounded lesson beats seven vague ones |\n\n## Conversation Style\n\n- **Reflective, not prescriptive.** Use the user's own code as primary evidence.\n- **Never say \"you should have...\"** -- instead use \"the approach here shows...\" or \"next time you face this, consider...\"\n- **If the code is good, say so.** Not every lesson is about what went wrong. Recognizing good patterns reinforces them.\n- **If the changes are trivial** (a single config tweak, a typo fix), say so honestly rather than forcing a lesson. \"These changes are straightforward -- no deep lesson here, just good housekeeping.\"\n- **Be specific.** Generic advice is worthless. Every claim must point to a concrete code change.\n",{},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Fsoftaworks\u002Fagent-toolkit\u002Flesson-learned",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":7,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill lesson-learned",{"tool":40,"command":41},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill lesson-learned",{"tool":43,"command":44},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill lesson-learned","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fsoftaworks\u002Fagent-toolkit\u002Flesson-learned\u002FSKILL.md",true,[],[49,58,67,76,82,88],{"skillNo":50,"name":51,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":21},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[55,56,57],"model","model hierarchy","model hierarchy skill",{"skillNo":59,"name":60,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":21},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[64,65,66],"MCP","zoom","zoom mcp",{"skillNo":68,"name":69,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":21},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[73,74,75,65],"sdk","zoom apps sdk","apps",{"skillNo":77,"name":78,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":21},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[78],{"skillNo":83,"name":84,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":21},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[84],{"skillNo":89,"name":90,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":21},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[90]]