[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7D7Y44MWZX3DS1DJPCNYTAH":3,"skill-same:01M7D7Y44MWZX3DS1DJPCNYTAH":70},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":23,"frontMatter":24,"refName":25,"commitSha":26,"skillDirectory":5,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M7D7Y44MWZX3DS1DJPCNYTAH","lesson-learned",null,"Analyze recent code changes via git history and extract software engineering lessons. Use when the user asks 'what is the lesson here?', 'what can I learn from this?', 'engineering takeaway', 'what did I just learn?', 'reflect on this code', or wants to extract principles from recent work.","tangyixiao\u002Ftangyixiao-skills","tangyixiao","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F115929632?v=4","01M7D582YK6A4M63CAK4CSY4EW","Tang Yixiao","01M7D582Z64DMRSYR872SR34SA",2,"MIT","https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Flesson-learned\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Flesson-learned\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: lesson-learned\ndescription: \"Analyze recent code changes via git history and extract software engineering lessons. Use when the user asks 'what is the lesson here?', 'what can I learn from this?', 'engineering takeaway', 'what did I just learn?', 'reflect on this code', or wants to extract principles from recent work.\"\n---\n\n# 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","# 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",{"name":5,"description":7},"main","2a870f189175a48c39f5f7e26a6d93b0be9cd13b",0,"https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills","https:\u002F\u002Ftangyixiao.github.io\u002Ftangyixiao-skills\u002F","https:\u002F\u002Fgithub.com\u002Ftangyixiao","http:\u002F\u002Fwww.sxyz.net\u002F","I am Tang Yixiao, a student in Shaoxing No.1 High School. I am eager to learn on GitHub and contribute my part to this community.","2026-11-11 15:45:59",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add tangyixiao\u002Ftangyixiao-skills --skill lesson-learned",{"tool":40,"command":41},"bunx","bunx skills add tangyixiao\u002Ftangyixiao-skills --skill lesson-learned",{"tool":43,"command":44},"pnpm","pnpm dlx skills add tangyixiao\u002Ftangyixiao-skills --skill lesson-learned","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Flesson-learned\u002FSKILL.md",true,[48,54,58,62,66],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"INSTALL-SOURCE.json","REFERENCE","参考文档",224,"https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Flesson-learned\u002FINSTALL-SOURCE.json",{"path":55,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":57,"sourceHtmlUrl":16},"LICENSE","许可证",1072,{"path":59,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":60,"sourceHtmlUrl":61},"README.md",2767,"https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Flesson-learned\u002FREADME.md",{"path":63,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":64,"sourceHtmlUrl":65},"references\u002Fanti-patterns.md",2826,"https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Flesson-learned\u002Freferences\u002Fanti-patterns.md",{"path":67,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":68,"sourceHtmlUrl":69},"references\u002Fse-principles.md",5865,"https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Flesson-learned\u002Freferences\u002Fse-principles.md",[71,80,88,96,104,112],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":75,"licenseFileUrl":76,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":20},"01M7D8JK8FYBFNNAJXWD89CFH7","xlsx","Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like \"the xlsx in my downloads\") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fxlsx\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fxlsx\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":84,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":20},"01M7D8JG8ERGGQQAMX0DWCG9GR","writing-shape","Writing, exploit: shape raw material into an article, paragraph by paragraph.","https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fwriting-shape\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fwriting-shape\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":92,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":20},"01M7D8JE672GW3EHSE8EF185M4","writing-fragments","Writing, explore: mine raw fragments, no structure yet.","https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fwriting-fragments\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fwriting-fragments\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":100,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":20},"01M7D8JBK572YDFMND8Q6CEYJW","writing-for-agents","Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.","https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fwriting-for-agents\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fwriting-for-agents\u002FSKILL.md",[],[],{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":108,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":20},"01M7D8J5QPWEXX61EGBKYH73R8","writing-clearly-and-concisely","Use when writing prose humans will read—documentation, commit messages, error messages, explanations, reports, or UI text. Applies Strunk's timeless rules for clearer, stronger, more professional writing.","https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fwriting-clearly-and-concisely\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fwriting-clearly-and-concisely\u002FSKILL.md",[],[],{"skillNo":113,"name":114,"nameZh":6,"description":115,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":116,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":20},"01M7D8J36YWC8WZS5DK5AH03CD","writing-beats","Writing, exploit; assemble raw material into a journey of beats, grounding each term before a beat leans on it.","https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fwriting-beats\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fwriting-beats\u002FSKILL.md",[],[]]