[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M73CQ8QSNDPCP0R2DWJS10F1":3,"skill-same:01M73CQ8QSNDPCP0R2DWJS10F1":58},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":36,"commitSha":37,"skillDirectory":38,"forksCount":39,"repositoryHtmlUrl":40,"repositoryHomepageUrl":6,"ownerHtmlUrl":41,"ownerBlogUrl":6,"ownerDescription":42,"updatedAt":43,"install":44,"resources":57},"01M73CQ8QSNDPCP0R2DWJS10F1","performance-tuning",null,"Use when investigating slow ABAP programs, expensive SQL statements, or reviewing performance risk on large tables (VBAK, BSEG, ACDOCA, etc.). Provides a standardized workflow using TraceExecution, ListSQLTraces, and GetCallGraph to diagnose and document performance issues before they reach production.","5throck\u002Fai-workspace-standards","5throck","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F10958964?v=4","01M73BFEH0V0VS483TW4JD49JW","01M73BFEJ5VQZJHJSFTVPAZGDM",25,"AGPL-3.0","https:\u002F\u002Fgithub.com\u002F5throck\u002Fai-workspace-standards\u002Fblob\u002Fmain\u002Ftemplates\u002Fco-abap\u002F.hermes\u002Fskills\u002Fperformance-tuning\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: performance-tuning\ndescription: Use when investigating slow ABAP programs, expensive SQL statements, or reviewing performance risk on large tables (VBAK, BSEG, ACDOCA, etc.). Provides a standardized workflow using TraceExecution, ListSQLTraces, and GetCallGraph to diagnose and document performance issues before they reach production.\nversion: 1.0.0\nlast_reviewed: 2026-08-15\nstatus: active\nscope: co-abap\nowner: dba\nprerequisites: vsp MCP server\nmetadata:\n  type: core\n  triggers:\n    - performance-tuning\n    - TraceExecution\n    - ListSQLTraces\n    - GetCallGraph\n    - slow program\n---\n\n# Performance Tuning Workflow\n\nStandardizes performance analysis so findings are reproducible and comparable across sessions,\ninstead of ad-hoc `RunQuery` sampling. Owned by the **DBA** agent (`agents\u002Fdba.md`); the\n**Architect** and **QA Engineer** may trigger it during technical design or QA review.\n\n> Origin: raised by the DBA agent in the 2026-07-05 project review meeting — large-table access\n> paths (`VBAK`, `BSEG`) need a standard procedure, not one-off spot checks.\n\n## When to Use\n\n- A custom program or CDS view queries a large\u002Fhigh-traffic table (`VBAK`, `VBAP`, `BSEG`, `ACDOCA`, `MSEG`, `EKPO`)\n- QA or the user reports a slow transaction, report, or OData service\n- Technical Design (Stage 2) for any object expected to run against high-volume tables\n- Before releasing a transport that touches performance-sensitive objects\n\n## Workflow\n\n```\n1. Baseline trace\n   TraceExecution(object) → capture runtime, DB time %, top statements\n\n2. SQL statement analysis\n   ListSQLTraces() → GetSQLTraceState() → identify statements with high execution count\n   or full table scans (missing index usage)\n\n3. Call graph \u002F dependency check\n   GetCallGraph(object) or AnalyzeCallGraph(object) → confirm no redundant nested SELECTs\n   inside loops (SELECT-in-LOOP anti-pattern)\n\n4. Index verification (hand off to DBA table-design duties)\n   GetTable(table) → check existing secondary indexes cover the WHERE\u002FJOIN predicates\n   used by the traced statements\n\n5. Report\n   Document findings using the Performance Report format below\n```\n\n## Performance Report Format\n\n```markdown\n### Performance Analysis — \u003Cobject name>\n\n**Trigger**: \u003Cwhy this was analyzed — slow report \u002F pre-release check \u002F QA escalation>\n**Trace summary**: \u003Ctotal runtime, DB time %, top 3 statements by execution count>\n\n#### Findings\n| # | Statement \u002F Pattern | Table(s) | Issue | Severity |\n|---|---------------------|----------|-------|----------|\n| 1 | ... | VBAK | Full table scan (missing index on ERDAT) | High |\n\n#### Recommendations\n- \u003Cindex addition \u002F query rewrite \u002F SELECT-in-LOOP fix, one per finding>\n\n**Verdict**: \u003CPass \u002F Needs optimization before transport release>\n```\n\n## Anti-Patterns to Flag\n\n- `SELECT` inside a `LOOP` over another internal table (N+1 pattern) — rewrite as a single\n  `SELECT ... FOR ALL ENTRIES` or JOIN.\n- Missing `WHERE` clause filtering on large tables before `RunQuery`\u002F`SELECT`.\n- Full table scans on `VBAK`, `VBAP`, `BSEG`, `ACDOCA` without a covering secondary index.\n- Nested CDS view associations that re-resolve the same large table per row.\n\n## Severity → Disposition\n\n| Severity | Disposition |\n|----------|-------------|\n| High (full scan \u002F N+1 on a large table) | Block transport release until fixed |\n| Medium (missing index, acceptable volume today) | PM disposition — fix now or track as follow-up task |\n| Low (style-only inefficiency, negligible volume) | Note in QA report, no gate |\n\n## Related\n\n- [agents\u002Fdba.md](..\u002F..\u002Fagents\u002Fdba.md) — primary owner of this workflow\n- [skills\u002Fpost-write-chain\u002FSKILL.md](..\u002Fpost-write-chain\u002FSKILL.md) — run after functional QA passes, before transport release\n- [docs\u002Fcontext.md § ABAP SQL Reference](..\u002F..\u002Fdocs\u002Fcontext.md) — baseline SQL syntax rules (max_rows, tilde notation, DESCENDING)\n\n## Context\n\nThis skill standardizes performance analysis for ABAP programs and SQL queries so findings are reproducible and comparable across sessions. It replaces ad-hoc `RunQuery` sampling with a structured workflow using `TraceExecution`, `ListSQLTraces`, and `GetCallGraph` to diagnose bottlenecks and document recommendations before they reach production. It is owned by the DBA agent but may be triggered by Architect or QA Engineer during design or review.\n\n## Execution Steps\n\n1. **Baseline trace** — Use `TraceExecution` on the target object to capture runtime, DB time percentage, and top statements.\n2. **SQL statement analysis** — Use `ListSQLTraces` and `GetSQLTraceState` to identify high-execution-count statements or full table scans.\n3. **Call graph check** — Use `GetCallGraph` or `AnalyzeCallGraph` to detect redundant nested SELECTs inside loops (N+1 anti-pattern).\n4. **Index verification** — Use `GetTable` to check whether existing secondary indexes cover the WHERE\u002FJOIN predicates in traced statements.\n5. **Report** — Document findings using the standardized Performance Report format with findings table and recommendations.\n\n## Output Format\n\nA structured Performance Analysis Report containing:\n- Trigger reason (slow report, pre-release check, QA escalation)\n- Trace summary with total runtime, DB time percentage, and top statements\n- Findings table with statement\u002Fpattern, tables affected, issue description, and severity\n- Recommendations for each finding (index addition, query rewrite, or code fix)\n- Verdict (Pass or Needs optimization before transport release)\n\n## Related Skills\n\n- [abap-dev](..\u002Fabap-dev\u002FSKILL.md) — Core ABAP development workflows including the performance-analyzer sub-section\n- [post-write-chain](..\u002Fpost-write-chain\u002FSKILL.md) — Run after performance fixes pass to validate no regressions\n- [dump-monitor](..\u002Fdump-monitor\u002FSKILL.md) — Use together when a dump indicates a performance-related timeout\n","# Performance Tuning Workflow\n\nStandardizes performance analysis so findings are reproducible and comparable across sessions,\ninstead of ad-hoc `RunQuery` sampling. Owned by the **DBA** agent (`agents\u002Fdba.md`); the\n**Architect** and **QA Engineer** may trigger it during technical design or QA review.\n\n> Origin: raised by the DBA agent in the 2026-07-05 project review meeting — large-table access\n> paths (`VBAK`, `BSEG`) need a standard procedure, not one-off spot checks.\n\n## When to Use\n\n- A custom program or CDS view queries a large\u002Fhigh-traffic table (`VBAK`, `VBAP`, `BSEG`, `ACDOCA`, `MSEG`, `EKPO`)\n- QA or the user reports a slow transaction, report, or OData service\n- Technical Design (Stage 2) for any object expected to run against high-volume tables\n- Before releasing a transport that touches performance-sensitive objects\n\n## Workflow\n\n```\n1. Baseline trace\n   TraceExecution(object) → capture runtime, DB time %, top statements\n\n2. SQL statement analysis\n   ListSQLTraces() → GetSQLTraceState() → identify statements with high execution count\n   or full table scans (missing index usage)\n\n3. Call graph \u002F dependency check\n   GetCallGraph(object) or AnalyzeCallGraph(object) → confirm no redundant nested SELECTs\n   inside loops (SELECT-in-LOOP anti-pattern)\n\n4. Index verification (hand off to DBA table-design duties)\n   GetTable(table) → check existing secondary indexes cover the WHERE\u002FJOIN predicates\n   used by the traced statements\n\n5. Report\n   Document findings using the Performance Report format below\n```\n\n## Performance Report Format\n\n```markdown\n### Performance Analysis — \u003Cobject name>\n\n**Trigger**: \u003Cwhy this was analyzed — slow report \u002F pre-release check \u002F QA escalation>\n**Trace summary**: \u003Ctotal runtime, DB time %, top 3 statements by execution count>\n\n#### Findings\n| # | Statement \u002F Pattern | Table(s) | Issue | Severity |\n|---|---------------------|----------|-------|----------|\n| 1 | ... | VBAK | Full table scan (missing index on ERDAT) | High |\n\n#### Recommendations\n- \u003Cindex addition \u002F query rewrite \u002F SELECT-in-LOOP fix, one per finding>\n\n**Verdict**: \u003CPass \u002F Needs optimization before transport release>\n```\n\n## Anti-Patterns to Flag\n\n- `SELECT` inside a `LOOP` over another internal table (N+1 pattern) — rewrite as a single\n  `SELECT ... FOR ALL ENTRIES` or JOIN.\n- Missing `WHERE` clause filtering on large tables before `RunQuery`\u002F`SELECT`.\n- Full table scans on `VBAK`, `VBAP`, `BSEG`, `ACDOCA` without a covering secondary index.\n- Nested CDS view associations that re-resolve the same large table per row.\n\n## Severity → Disposition\n\n| Severity | Disposition |\n|----------|-------------|\n| High (full scan \u002F N+1 on a large table) | Block transport release until fixed |\n| Medium (missing index, acceptable volume today) | PM disposition — fix now or track as follow-up task |\n| Low (style-only inefficiency, negligible volume) | Note in QA report, no gate |\n\n## Related\n\n- [agents\u002Fdba.md](..\u002F..\u002Fagents\u002Fdba.md) — primary owner of this workflow\n- [skills\u002Fpost-write-chain\u002FSKILL.md](..\u002Fpost-write-chain\u002FSKILL.md) — run after functional QA passes, before transport release\n- [docs\u002Fcontext.md § ABAP SQL Reference](..\u002F..\u002Fdocs\u002Fcontext.md) — baseline SQL syntax rules (max_rows, tilde notation, DESCENDING)\n\n## Context\n\nThis skill standardizes performance analysis for ABAP programs and SQL queries so findings are reproducible and comparable across sessions. It replaces ad-hoc `RunQuery` sampling with a structured workflow using `TraceExecution`, `ListSQLTraces`, and `GetCallGraph` to diagnose bottlenecks and document recommendations before they reach production. It is owned by the DBA agent but may be triggered by Architect or QA Engineer during design or review.\n\n## Execution Steps\n\n1. **Baseline trace** — Use `TraceExecution` on the target object to capture runtime, DB time percentage, and top statements.\n2. **SQL statement analysis** — Use `ListSQLTraces` and `GetSQLTraceState` to identify high-execution-count statements or full table scans.\n3. **Call graph check** — Use `GetCallGraph` or `AnalyzeCallGraph` to detect redundant nested SELECTs inside loops (N+1 anti-pattern).\n4. **Index verification** — Use `GetTable` to check whether existing secondary indexes cover the WHERE\u002FJOIN predicates in traced statements.\n5. **Report** — Document findings using the standardized Performance Report format with findings table and recommendations.\n\n## Output Format\n\nA structured Performance Analysis Report containing:\n- Trigger reason (slow report, pre-release check, QA escalation)\n- Trace summary with total runtime, DB time percentage, and top statements\n- Findings table with statement\u002Fpattern, tables affected, issue description, and severity\n- Recommendations for each finding (index addition, query rewrite, or code fix)\n- Verdict (Pass or Needs optimization before transport release)\n\n## Related Skills\n\n- [abap-dev](..\u002Fabap-dev\u002FSKILL.md) — Core ABAP development workflows including the performance-analyzer sub-section\n- [post-write-chain](..\u002Fpost-write-chain\u002FSKILL.md) — Run after performance fixes pass to validate no regressions\n- [dump-monitor](..\u002Fdump-monitor\u002FSKILL.md) — Use together when a dump indicates a performance-related timeout\n",{"name":5,"owner":23,"scope":24,"status":25,"version":26,"metadata":27,"description":7,"last_reviewed":34,"prerequisites":35},"dba","co-abap","active","1.0.0",{"type":28,"triggers":29},"core",[5,30,31,32,33],"TraceExecution","ListSQLTraces","GetCallGraph","slow program",1786752000000,"vsp MCP server","main","1162ccc568cf90c01b3886d6143cbfd851a37883","templates\u002Fco-abap\u002F.hermes\u002Fskills\u002Fperformance-tuning",9,"https:\u002F\u002Fgithub.com\u002F5throck\u002Fai-workspace-standards","https:\u002F\u002Fgithub.com\u002F5throck","Experienced in digital transformation, enterprise IT, startup acceleration, and business strategy. Focused on building practical systems that connect technolo","2026-11-14 21:22:34",{"source":8,"skillName":5,"commands":45,"prompt":55,"zipAvailable":56},[46,49,52],{"tool":47,"command":48},"npx","npx skills add 5throck\u002Fai-workspace-standards --skill performance-tuning",{"tool":50,"command":51},"bunx","bunx skills add 5throck\u002Fai-workspace-standards --skill performance-tuning",{"tool":53,"command":54},"pnpm","pnpm dlx skills add 5throck\u002Fai-workspace-standards --skill performance-tuning","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002F5throck\u002Fai-workspace-standards\u002Fblob\u002Fmain\u002Ftemplates\u002Fco-abap\u002F.hermes\u002Fskills\u002Fperformance-tuning\u002FSKILL.md",true,[],[59,67,72,77,82,87],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":66},"01M7BBJDYHJMGTJYSC37JVWY8S","i18n-layout","Text layout and encoding guidance: character encoding (UTF-8, legacy Korean code pages, BOM hazards), line endings, RTL\u002Fbidi handling, and script-specific font selection (Hangul focus). Use when: encoding is corrupted or mojibake appears, an RTL locale must render correctly, fonts must be chosen for a script, or CRLF\u002FBOM issues surface.","https:\u002F\u002Fgithub.com\u002F5throck\u002Fai-workspace-standards\u002Fblob\u002Fmain\u002Ftemplates\u002Fco-work\u002Fskills\u002Fi18n-layout\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":68,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":66},"01M7BBJ9XHAAS1AVGKZZ841VBZ","https:\u002F\u002Fgithub.com\u002F5throck\u002Fai-workspace-standards\u002Fblob\u002Fmain\u002Ftemplates\u002Fco-work\u002F.hermes\u002Fskills\u002Fi18n-layout\u002FSKILL.md",[],[],{"skillNo":73,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":66},"01M7BBJ5C3X8TKFKG5R9P9P49W","https:\u002F\u002Fgithub.com\u002F5throck\u002Fai-workspace-standards\u002Fblob\u002Fmain\u002Ftemplates\u002Fco-work\u002F.gemini\u002Fskills\u002Fi18n-layout\u002FSKILL.md",[],[],{"skillNo":78,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":66},"01M7BBJ1B52X0QMJ2QVBMPJB37","https:\u002F\u002Fgithub.com\u002F5throck\u002Fai-workspace-standards\u002Fblob\u002Fmain\u002Ftemplates\u002Fco-work\u002F.codex\u002Fskills\u002Fi18n-layout\u002FSKILL.md",[],[],{"skillNo":83,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":66},"01M7BBHX91BW2Q2R276MRX5AW3","https:\u002F\u002Fgithub.com\u002F5throck\u002Fai-workspace-standards\u002Fblob\u002Fmain\u002Ftemplates\u002Fco-work\u002F.claude\u002Fskills\u002Fi18n-layout\u002FSKILL.md",[],[],{"skillNo":88,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":66},"01M7BBHQWGXPSFRWN1PRC2NMMV","https:\u002F\u002Fgithub.com\u002F5throck\u002Fai-workspace-standards\u002Fblob\u002Fmain\u002Ftemplates\u002Fco-work\u002F.agents\u002Fskills\u002Fi18n-layout\u002FSKILL.md",[],[]]