[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6C0T3YCKZ0RQS8XGCP7PNF7":3,"skill-same:01M6C0T3YCKZ0RQS8XGCP7PNF7":89},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":53,"linkOnly":54,"markdownContent":55,"markdownBody":56,"frontMatter":57,"refName":58,"commitSha":59,"skillDirectory":60,"forksCount":15,"repositoryHtmlUrl":61,"repositoryHomepageUrl":17,"ownerHtmlUrl":62,"ownerBlogUrl":17,"ownerDescription":63,"updatedAt":64,"install":65,"resources":78},"01M6C0T3YCKZ0RQS8XGCP7PNF7","performance-optimization","Django\u002FReact 性能剖析与优化","Profile and optimize AS v2 performance (Django backend + React frontend). Use when an endpoint is slow, a request fires N+1 queries, the bundle grows, or Core Web Vitals miss target.","剖析并优化 AS v2 的性能（Django 后端 + React 前端）。适用于接口响应缓慢、请求触发 N+1 查询、打包体积增大，或 Core Web Vitals 未达标时。","matheusnorjosa\u002Faprender_sistema","matheusnorjosa","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F117673804?v=4","01M6C0S19FG12BDFBTRWY9TTEQ","Matheus Norjosa","01M6C0S1DF0YB17TKGEYC70GSP",0,"Apache-2.0",null,"https:\u002F\u002Fgithub.com\u002Fmatheusnorjosa\u002Faprender_sistema\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fperformance-optimization\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C796JZ1YCTM2B2X7TKEWZZ","性能剖析与优化","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],"performance","Optimization","performance optimization","when","frontend","request","vitals","react frontend","web vitals","bundle","as","optimize","queries","backend","use","profile","django","core web vitals","endpoint","core","react","web","2026-11-10 10:12:30",false,"---\nname: performance-optimization\ndescription: Profile and optimize AS v2 performance (Django backend + React frontend). Use when an endpoint is slow, a request fires N+1 queries, the bundle grows, or Core Web Vitals miss target.\n---\n\n# Performance Optimization — Aprender Sistema\n\n**Measure before optimizing.** Profile first, identify the actual bottleneck, fix it, measure again. Don't scatter `React.memo` or `select_related` on a hunch.\n\nAS v2 has active perf epics: **#777 (grid phases)**, **#866 (ACID)**. PR #1160 cut monthly grid p95 by -69% (phase 2).\n\n## Workflow\n\n```\n1. MEASURE  → Establish baseline (numbers, not feelings)\n2. IDENTIFY → Find the actual bottleneck (profile, don't guess)\n3. FIX      → Address that specific bottleneck\n4. VERIFY   → Measure again, confirm improvement vs baseline\n5. GUARD    → Add a test\u002Fmonitor to prevent regression\n```\n\nDone when: before\u002Fafter numbers are recorded, the targets below are met, and a guard exists.\n\n## Where to look\n\n- Backend (query profiling, N+1, indexes, aggregations, Celery, Redis cache): [reference\u002Fbackend.md](reference\u002Fbackend.md)\n- Frontend (Lighthouse, bundle analysis, re-renders, Antd, code splitting, images, caching): [reference\u002Ffrontend.md](reference\u002Ffrontend.md)\n\n## Targets (CI enforced)\n\n### Backend (Django\u002FDRF)\n\n| Metric | Target | Where |\n|--------|--------|-------|\n| API p95 latency | ≤ 200ms | gunicorn logs |\n| DB queries per request | ≤ 10 | `django-debug-toolbar` (dev) |\n| Cache hit rate (Redis) | ≥ 70% | availability queries |\n| Monthly grid p95 | ≤ baseline −69% | after #777 phase 2 |\n\n### Frontend (React\u002FVite), from `v2\u002Ffrontend\u002Flighthouserc.cjs`\n\n| Metric | Target | Severity |\n|--------|--------|----------|\n| Lighthouse Performance | ≥ 70 | error (fails CI) |\n| Lighthouse Accessibility | ≥ 90 | error (fails CI) |\n| LCP | ≤ 2.5s | error |\n| CLS | ≤ 0.1 | error |\n| Total Blocking Time | ≤ 300ms | error |\n| Initial JS bundle (gzipped) | ≤ 250KB | Antd is the main weight |\n| `manualChunks` in vite.config | none | breaks dep ordering (prod crash) |\n\nCurrent Lighthouse: Desktop 95, Mobile 79 (mobile bottleneck = antd bundle).\n\n## Common Rationalizations\n\n| Rationalization | Reality |\n|---|---|\n| \"It's fast on my machine\" | Profile on prod-like conditions (docker + realistic data volume) |\n| \"Users won't notice\" | RUM from real users. 100ms matters. |\n| \"Framework handles perf\" | Django\u002FReact prevent some issues, not N+1 or bundle bloat |\n| \"We'll optimize later\" | Perf debt compounds. Fix N+1 and bundle issues now. |\n| \"The DB is fast enough\" | Check query count and duration per request |\n\n## Verification\n\nAfter a perf change:\n\n- [ ] Before\u002Fafter measurements with specific numbers\n- [ ] Bottleneck identified (not guessed)\n- [ ] Core Web Vitals in target range\n- [ ] Bundle size change reviewed\n- [ ] No new N+1 queries\n- [ ] Lighthouse CI passes\n- [ ] Existing tests still pass\n\n## References\n\n- Epic #777: Monthly grid optimization · Epic #866: ACID\u002Fdeadlock handling\n- PR #1160: Phase 2 grid p95 -69%\n- Memory: Lighthouse scores · `feedback_no_manual_chunks.md` · `feedback_react18_fetchpriority.md`\n","# Performance Optimization — Aprender Sistema\n\n**Measure before optimizing.** Profile first, identify the actual bottleneck, fix it, measure again. Don't scatter `React.memo` or `select_related` on a hunch.\n\nAS v2 has active perf epics: **#777 (grid phases)**, **#866 (ACID)**. PR #1160 cut monthly grid p95 by -69% (phase 2).\n\n## Workflow\n\n```\n1. MEASURE  → Establish baseline (numbers, not feelings)\n2. IDENTIFY → Find the actual bottleneck (profile, don't guess)\n3. FIX      → Address that specific bottleneck\n4. VERIFY   → Measure again, confirm improvement vs baseline\n5. GUARD    → Add a test\u002Fmonitor to prevent regression\n```\n\nDone when: before\u002Fafter numbers are recorded, the targets below are met, and a guard exists.\n\n## Where to look\n\n- Backend (query profiling, N+1, indexes, aggregations, Celery, Redis cache): [reference\u002Fbackend.md](reference\u002Fbackend.md)\n- Frontend (Lighthouse, bundle analysis, re-renders, Antd, code splitting, images, caching): [reference\u002Ffrontend.md](reference\u002Ffrontend.md)\n\n## Targets (CI enforced)\n\n### Backend (Django\u002FDRF)\n\n| Metric | Target | Where |\n|--------|--------|-------|\n| API p95 latency | ≤ 200ms | gunicorn logs |\n| DB queries per request | ≤ 10 | `django-debug-toolbar` (dev) |\n| Cache hit rate (Redis) | ≥ 70% | availability queries |\n| Monthly grid p95 | ≤ baseline −69% | after #777 phase 2 |\n\n### Frontend (React\u002FVite), from `v2\u002Ffrontend\u002Flighthouserc.cjs`\n\n| Metric | Target | Severity |\n|--------|--------|----------|\n| Lighthouse Performance | ≥ 70 | error (fails CI) |\n| Lighthouse Accessibility | ≥ 90 | error (fails CI) |\n| LCP | ≤ 2.5s | error |\n| CLS | ≤ 0.1 | error |\n| Total Blocking Time | ≤ 300ms | error |\n| Initial JS bundle (gzipped) | ≤ 250KB | Antd is the main weight |\n| `manualChunks` in vite.config | none | breaks dep ordering (prod crash) |\n\nCurrent Lighthouse: Desktop 95, Mobile 79 (mobile bottleneck = antd bundle).\n\n## Common Rationalizations\n\n| Rationalization | Reality |\n|---|---|\n| \"It's fast on my machine\" | Profile on prod-like conditions (docker + realistic data volume) |\n| \"Users won't notice\" | RUM from real users. 100ms matters. |\n| \"Framework handles perf\" | Django\u002FReact prevent some issues, not N+1 or bundle bloat |\n| \"We'll optimize later\" | Perf debt compounds. Fix N+1 and bundle issues now. |\n| \"The DB is fast enough\" | Check query count and duration per request |\n\n## Verification\n\nAfter a perf change:\n\n- [ ] Before\u002Fafter measurements with specific numbers\n- [ ] Bottleneck identified (not guessed)\n- [ ] Core Web Vitals in target range\n- [ ] Bundle size change reviewed\n- [ ] No new N+1 queries\n- [ ] Lighthouse CI passes\n- [ ] Existing tests still pass\n\n## References\n\n- Epic #777: Monthly grid optimization · Epic #866: ACID\u002Fdeadlock handling\n- PR #1160: Phase 2 grid p95 -69%\n- Memory: Lighthouse scores · `feedback_no_manual_chunks.md` · `feedback_react18_fetchpriority.md`\n",{"name":5,"description":7},"main","9e3a882d83e0853bdc570ae9d89c02d2a53bed82",".agents\u002Fskills\u002Fperformance-optimization","https:\u002F\u002Fgithub.com\u002Fmatheusnorjosa\u002Faprender_sistema","https:\u002F\u002Fgithub.com\u002Fmatheusnorjosa","Dev Python | IA | Automation | HTML | CSS | Data | Process | Projects","2026-11-14 04:59:13",{"source":9,"skillName":5,"commands":66,"prompt":76,"zipAvailable":77},[67,70,73],{"tool":68,"command":69},"npx","npx skills add matheusnorjosa\u002Faprender_sistema --skill performance-optimization",{"tool":71,"command":72},"bunx","bunx skills add matheusnorjosa\u002Faprender_sistema --skill performance-optimization",{"tool":74,"command":75},"pnpm","pnpm dlx skills add matheusnorjosa\u002Faprender_sistema --skill performance-optimization","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmatheusnorjosa\u002Faprender_sistema\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fperformance-optimization\u002FSKILL.md",true,[79,85],{"path":80,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":83,"sourceHtmlUrl":84},"reference\u002Fbackend.md","REFERENCE","参考文档",3248,"https:\u002F\u002Fgithub.com\u002Fmatheusnorjosa\u002Faprender_sistema\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fperformance-optimization\u002Freference\u002Fbackend.md",{"path":86,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":87,"sourceHtmlUrl":88},"reference\u002Ffrontend.md",2801,"https:\u002F\u002Fgithub.com\u002Fmatheusnorjosa\u002Faprender_sistema\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fperformance-optimization\u002Freference\u002Ffrontend.md",[90,124,155,180,200,240],{"skillNo":91,"name":92,"nameZh":93,"description":94,"descriptionZh":95,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":96,"categories":97,"keywords":104,"publishedAt":53},"01M6C0WHSP7S2QMJGGMQRXJ6PD","writing-standards","技术文档写作规范","Apply AS v2 technical-writing standards (clarity, brevity, active voice, Python\u002FDjango conventions). Use when writing a README, a docstring (PEP 257), a commit message, a PR description, an error message, or any technical doc.","遵循 AS v2 技术写作规范（清晰、简洁、主动语态、Python\u002FDjango 惯例）。适用于撰写 README、文档字符串（PEP 257）、提交信息、PR 描述、错误信息或任何技术文档。","https:\u002F\u002Fgithub.com\u002Fmatheusnorjosa\u002Faprender_sistema\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fwriting-standards\u002FSKILL.md",[98,101],{"categoryNo":99,"categoryName":100,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BVB0FJ0RR8KXYVFTKEA3XX","技术文档工程师",{"categoryNo":102,"categoryName":103,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C5C7NGT4DWWBE15R6QGEX5","技术文档编写",[105,106,107,108,109,110,111,112,113,114,115,47,116,117,118,119,41,120,121,122,123,34],"writing","writing standards","standards","python","commit","pr","pr description","commit message","doc","voice","clarity","technical","README","message","active","error","technical-writing","brevity","docstring",{"skillNo":125,"name":126,"nameZh":127,"description":128,"descriptionZh":129,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":130,"categories":131,"keywords":138,"publishedAt":53},"01M6C0WG2SBP9PJG1YQFGGVJAR","verification-gate","成果验证关卡","Verify before claiming success. Use when about to say something works\u002Fis done, after implementing a feature, after a bugfix, or before pushing — run the proof command and confirm output first.","在宣称成功之前先进行验证。适用于准备表示某功能可用\u002F已完成、实现功能后、修复缺陷后，或推送代码前——先运行验证命令并确认输出。","https:\u002F\u002Fgithub.com\u002Fmatheusnorjosa\u002Faprender_sistema\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fverification-gate\u002FSKILL.md",[132,135],{"categoryNo":133,"categoryName":134,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD5WG86P4AQ5GPSSKBFR","测试工程师",{"categoryNo":136,"categoryName":137,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C48JNVH0P83Z0KVKAQ4819","成果验证与价值评估",[139,140,141,142,143,144,145,45,146,147,148,149,150,151,152,153,154,34],"verification","verification gate","gate","run","first","verify","command","verify before claiming","say","done","feature","proof","bugfix","output","about","implementing",{"skillNo":156,"name":157,"nameZh":158,"description":159,"descriptionZh":160,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":161,"categories":162,"keywords":167,"publishedAt":53},"01M6C0WE010G12KH45YZW6M7K5","test-driven-development","测试驱动开发","Write the failing test before the implementation in AS v2 (pytest + Django\u002FDRF). Use when implementing a feature or fixing a bug, before any production code is written.","在 AS v2（pytest + Django\u002FDRF）中先编写失败的测试，再进行实现。适用于实现功能或修复缺陷时，在编写任何生产代码之前使用。","https:\u002F\u002Fgithub.com\u002Fmatheusnorjosa\u002Faprender_sistema\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[163,164],{"categoryNo":133,"categoryName":134,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":165,"categoryName":166,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障",[168,169,170,171,172,173,47,174,45,175,176,177,149,41,178,154,34,179],"test","test driven development","development","driven","code","Production","write","bug","implementation","pytest","drf","failing",{"skillNo":181,"name":182,"nameZh":183,"description":184,"descriptionZh":185,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":186,"categories":187,"keywords":194,"publishedAt":53},"01M6C0WC6Y81XRVBJQSTKA96XQ","subagent-development","子智能体编排开发","Orquestra subagents no AS v2 — decompõe a tarefa em domínios independentes, paraleliza e revisa em 2 estágios. Use ao delegar exploração, implementação ou validação cross-arquivo para acelerar o trabalho e poupar o contexto principal.","在 AS v2 中编排子智能体——将任务拆解为相互独立的领域，并行处理并进行两阶段审查。适用于委派探索、实现或跨文件验证，以加快工作进度并节省主上下文。","https:\u002F\u002Fgithub.com\u002Fmatheusnorjosa\u002Faprender_sistema\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fsubagent-development\u002FSKILL.md",[188,191],{"categoryNo":189,"categoryName":190,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRN0DBCRG4XGJMB6QQEP11","编码任务委派",{"categoryNo":192,"categoryName":193,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BRZZF9D7PVFN5MXSPWWD61","AI 工程师",[170,195,196,197,198,45,199,41],"subagent","subagent development","para","subagents","ao",{"skillNo":201,"name":202,"nameZh":203,"description":204,"descriptionZh":205,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":206,"categories":207,"keywords":214,"publishedAt":53},"01M6C0W9W8D6JJWXW28Q7ZHAC9","security-scan","自动化安全扫描","Automated security scanning for AS v2. Use before commits or when reviewing changes for vulnerabilities. Runs dependency audit (pip-audit, npm audit), secret detection (grep patterns), and code pattern scanning (SQL injection, XSS, eval, pickle, hardcoded secrets). Integrates with project hooks system.","为 AS v2 提供自动化安全扫描。在提交前或审查变更中的漏洞时使用。执行依赖审计（pip-audit、npm audit）、密钥检测（grep 模式）和代码模式扫描（SQL 注入、XSS、eval、pickle、硬编码密钥）。与项目 hooks 系统集成。","https:\u002F\u002Fgithub.com\u002Fmatheusnorjosa\u002Faprender_sistema\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fsecurity-scan\u002FSKILL.md",[208,211],{"categoryNo":209,"categoryName":210,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BR4MYFKGCC4WCWVJ50KJ2C","安全工程师",{"categoryNo":212,"categoryName":213,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSJ8FPTACYEEYRWQRNFXKY","安全检测工程",[215,216,217,218,219,172,220,221,222,223,224,225,226,227,228,229,230,231,45,232,233,234,41,235,236,237,238,239,34],"security","security scan","scan","vulnerabilities","sql","npm","audit","dependency audit","detection","injection","xss","secrets","pip-audit","commits","system","grep","eval","hooks","security scanning","project","with","true","pip","for","changes",{"skillNo":241,"name":242,"nameZh":243,"description":244,"descriptionZh":245,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":246,"categories":247,"keywords":252,"publishedAt":53},"01M6C0W7RE3G3C2852YXQKR5J9","resume-handoff","交接文档恢复工作","Resume work from a saved handoff document, validating its state against the current codebase before continuing. Use when resuming work from a saved handoff after a context clear or in a new session (path, session name, or GitHub issue).","从保存的交接文档恢复工作，在继续之前先根据当前代码库验证其状态。适用于上下文清空后或在新会话中（通过路径、会话名称或 GitHub issue）从保存的交接文档恢复工作。","https:\u002F\u002Fgithub.com\u002Fmatheusnorjosa\u002Faprender_sistema\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fresume-handoff\u002FSKILL.md",[248,249],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":250,"categoryName":251,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BTBRVQZ06FQWD8P64214B2","会话上下文交接",[253,254,255,256,257,258,259,260,261,45,262,263,264,265,266,267,268,269,34,270],"handoff","resume handoff","resume","github","state","new session","work","context","session","github issue","issue","document","clear","name","saved","codebase","resuming","new"]