[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6KMC5JZQJRS7VX4HWH74775":3,"skill-same:01M6KMC5JZQJRS7VX4HWH74775":88},{"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":22,"publishedAt":29,"linkOnly":30,"markdownContent":31,"markdownBody":32,"frontMatter":33,"refName":42,"commitSha":43,"skillDirectory":44,"forksCount":13,"repositoryHtmlUrl":45,"repositoryHomepageUrl":6,"ownerHtmlUrl":46,"ownerBlogUrl":6,"ownerDescription":47,"updatedAt":48,"install":49,"resources":61},"01M6KMC5JZQJRS7VX4HWH74775","code-analysis",null,"ahvcxa\u002Fagents-runtime","ahvcxa","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F66177097?v=4","01M6KMC1M42AY53F851R4PYQ86","BATUHAN INAN","01M6KMC1QYQESNZDK2PP0J9FJG",0,"MIT","https:\u002F\u002Fgithub.com\u002Fahvcxa\u002Fagents-runtime\u002Fblob\u002Fmain\u002Ftemplate\u002F.agents\u002Fcode-analysis\u002FSKILL.md",[17],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",[23,24,25,26,5,27,28],"code","analysis","code analysis","js","true","handler","2026-11-10 10:12:30",false,"---\nid: code-analysis\nversion: 1.2.0\nauthorization_required_level: 1\nbounded_context: Analysis\naggregate_root: CodeUnit\noutput_event: AnalysisCompleted\noutput_schema: Finding[]\nread_only: true\nhandler: .agents\u002Fcode-analysis\u002Fhandler.js\n---\n\n\n# SKILL: Code Analysis\n\nThis skill performs static, structural, and semantic analysis of source code.\nIt produces machine-readable `Finding` objects emitted as domain events into\nthe shared memory bus.\n\nThis skill is **read-only**. It MUST NOT modify any source file.\n\n---\n\n## Activation\n\n```yaml\nagent:\n  id: \"static-analyzer-01\"\n  skill_set:\n    - \"code-analysis\"\n  authorization_level: 1\n  read_only: true\n```\n\n---\n\n## Analytical Principles\n\n### Principle 1 — Cyclomatic Complexity (CC)\n\n**Thresholds:**\n\n| CC Score | Classification | Required Action |\n|----------|---------------|-----------------|\n| 1 – 5    | Simple        | No action required |\n| 6 – 10   | Moderate      | Document with `@complexity` annotation |\n| 11 – 20  | Complex       | Emit `Finding(severity=HIGH)`, suggest decomposition |\n| > 20     | Unmaintainable| Emit `Finding(severity=CRITICAL)` |\n\n```\nCC = 1 + (number of decision points: if \u002F else if \u002F for \u002F while \u002F do \u002F case \u002F catch \u002F && \u002F || \u002F ternary)\n```\n\n---\n\n### Principle 2 — DRY (Don't Repeat Yourself)\n\n| Duplication Type | Severity | Recommended Refactoring |\n|------------------|----------|-------------------------|\n| Structural clone (> 10 lines) | HIGH | Extract shared function |\n| Structural clone (5–10 lines) | MEDIUM | Extract or parameterize |\n| Magic string\u002Fnumber (> 2 uses) | MEDIUM | Extract to named constant |\n| Semantic clone | LOW | Document relationship |\n| Interface overlap > 80% | MEDIUM | Evaluate extension or composition |\n\n---\n\n### Principle 3 — Security-First Auditing\n\n**Mandatory checks in every run:**\n\n- **3a. Injection:** SQL, shell, template, path traversal, XSS vectors → `CRITICAL`\n- **3b. Insecure Deserialization:** `eval()`, `pickle.loads()`, `YAML.load()` without safe loader → `CRITICAL`\n- **3c. Hardcoded Secrets:**\n  ```regex\n  (api[_-]?key|secret|password|token|bearer|auth)[\"\\\\s]*[:=][\"\\\\s]*[A-Za-z0-9+\u002F=_\\\\-]{8,}\n  ```\n  → `CRITICAL`, also emit `SECURITY_VIOLATION` audit event\n- **3d. Broken Access Control:** Auth checks missing or performed after operation → `HIGH`\n- **3e. Cryptographic Weakness:** MD5\u002FSHA1 for passwords, DES\u002FECB, `Math.random()` in security contexts → `HIGH`\n- **3f. Vulnerable Dependencies:** CVEs in last 12 months, EOL versions → `MEDIUM`–`CRITICAL`\n\n---\n\n### Principle 4 — SOLID Adherence\n\n| Principle | Violation Signal | Severity |\n|-----------|-----------------|----------|\n| Single Responsibility | Class > 2 responsibilities OR > 500 LoC | MEDIUM |\n| Open\u002FClosed | `switch`\u002F`if-else` type dispatch with > 4 branches | MEDIUM |\n| Liskov Substitution | Override throws `NotImplementedException` | HIGH |\n| Interface Segregation | Interface > 7 methods, implementors stub > 30% | MEDIUM |\n| Dependency Inversion | Direct `new ConcreteClass()` in business logic | LOW |\n\n---\n\n### Principle 5 — Cognitive Complexity\n\n**Threshold:** > 15 → emit `Finding(severity=MEDIUM)`.\n\n---\n\n## Output Contract\n\n```typescript\ninterface Finding {\n  id: string;                    \u002F\u002F uuid-v4\n  skill: \"code-analysis\";\n  principle: string;\n  severity: \"CRITICAL\" | \"HIGH\" | \"MEDIUM\" | \"LOW\" | \"INFO\";\n  file: string;                  \u002F\u002F Relative path from project root\n  line_start: number;\n  line_end: number;\n  symbol?: string;\n  message: string;\n  recommendation: string;\n  cwe_id?: string;\n  owasp_category?: string;\n  auto_fixable: boolean;\n  suppression_key?: string;\n}\n```\n\n## Suppression\n\n```\n\u002F\u002F agent-suppress: \u003Csuppression_key> reason=\"\u003Cjustification>\"\n```\n\nSuppressed findings MUST be logged at `INFO` level. Never silently dropped.\n\n---\n\n*Schema version: 1.2.0 · Vendor-neutral*\n","# SKILL: Code Analysis\n\nThis skill performs static, structural, and semantic analysis of source code.\nIt produces machine-readable `Finding` objects emitted as domain events into\nthe shared memory bus.\n\nThis skill is **read-only**. It MUST NOT modify any source file.\n\n---\n\n## Activation\n\n```yaml\nagent:\n  id: \"static-analyzer-01\"\n  skill_set:\n    - \"code-analysis\"\n  authorization_level: 1\n  read_only: true\n```\n\n---\n\n## Analytical Principles\n\n### Principle 1 — Cyclomatic Complexity (CC)\n\n**Thresholds:**\n\n| CC Score | Classification | Required Action |\n|----------|---------------|-----------------|\n| 1 – 5    | Simple        | No action required |\n| 6 – 10   | Moderate      | Document with `@complexity` annotation |\n| 11 – 20  | Complex       | Emit `Finding(severity=HIGH)`, suggest decomposition |\n| > 20     | Unmaintainable| Emit `Finding(severity=CRITICAL)` |\n\n```\nCC = 1 + (number of decision points: if \u002F else if \u002F for \u002F while \u002F do \u002F case \u002F catch \u002F && \u002F || \u002F ternary)\n```\n\n---\n\n### Principle 2 — DRY (Don't Repeat Yourself)\n\n| Duplication Type | Severity | Recommended Refactoring |\n|------------------|----------|-------------------------|\n| Structural clone (> 10 lines) | HIGH | Extract shared function |\n| Structural clone (5–10 lines) | MEDIUM | Extract or parameterize |\n| Magic string\u002Fnumber (> 2 uses) | MEDIUM | Extract to named constant |\n| Semantic clone | LOW | Document relationship |\n| Interface overlap > 80% | MEDIUM | Evaluate extension or composition |\n\n---\n\n### Principle 3 — Security-First Auditing\n\n**Mandatory checks in every run:**\n\n- **3a. Injection:** SQL, shell, template, path traversal, XSS vectors → `CRITICAL`\n- **3b. Insecure Deserialization:** `eval()`, `pickle.loads()`, `YAML.load()` without safe loader → `CRITICAL`\n- **3c. Hardcoded Secrets:**\n  ```regex\n  (api[_-]?key|secret|password|token|bearer|auth)[\"\\\\s]*[:=][\"\\\\s]*[A-Za-z0-9+\u002F=_\\\\-]{8,}\n  ```\n  → `CRITICAL`, also emit `SECURITY_VIOLATION` audit event\n- **3d. Broken Access Control:** Auth checks missing or performed after operation → `HIGH`\n- **3e. Cryptographic Weakness:** MD5\u002FSHA1 for passwords, DES\u002FECB, `Math.random()` in security contexts → `HIGH`\n- **3f. Vulnerable Dependencies:** CVEs in last 12 months, EOL versions → `MEDIUM`–`CRITICAL`\n\n---\n\n### Principle 4 — SOLID Adherence\n\n| Principle | Violation Signal | Severity |\n|-----------|-----------------|----------|\n| Single Responsibility | Class > 2 responsibilities OR > 500 LoC | MEDIUM |\n| Open\u002FClosed | `switch`\u002F`if-else` type dispatch with > 4 branches | MEDIUM |\n| Liskov Substitution | Override throws `NotImplementedException` | HIGH |\n| Interface Segregation | Interface > 7 methods, implementors stub > 30% | MEDIUM |\n| Dependency Inversion | Direct `new ConcreteClass()` in business logic | LOW |\n\n---\n\n### Principle 5 — Cognitive Complexity\n\n**Threshold:** > 15 → emit `Finding(severity=MEDIUM)`.\n\n---\n\n## Output Contract\n\n```typescript\ninterface Finding {\n  id: string;                    \u002F\u002F uuid-v4\n  skill: \"code-analysis\";\n  principle: string;\n  severity: \"CRITICAL\" | \"HIGH\" | \"MEDIUM\" | \"LOW\" | \"INFO\";\n  file: string;                  \u002F\u002F Relative path from project root\n  line_start: number;\n  line_end: number;\n  symbol?: string;\n  message: string;\n  recommendation: string;\n  cwe_id?: string;\n  owasp_category?: string;\n  auto_fixable: boolean;\n  suppression_key?: string;\n}\n```\n\n## Suppression\n\n```\n\u002F\u002F agent-suppress: \u003Csuppression_key> reason=\"\u003Cjustification>\"\n```\n\nSuppressed findings MUST be logged at `INFO` level. Never silently dropped.\n\n---\n\n*Schema version: 1.2.0 · Vendor-neutral*\n",{"id":5,"handler":34,"version":35,"read_only":36,"output_event":37,"output_schema":38,"aggregate_root":39,"bounded_context":40,"authorization_required_level":41},".agents\u002Fcode-analysis\u002Fhandler.js","1.2.0",true,"AnalysisCompleted","Finding[]","CodeUnit","Analysis",1,"main","f660bfb38f1f58be7aa35b3e67f77b2add4b048a","template\u002F.agents\u002Fcode-analysis","https:\u002F\u002Fgithub.com\u002Fahvcxa\u002Fagents-runtime","https:\u002F\u002Fgithub.com\u002Fahvcxa","🍀 Data Scientist 🍀","2026-04-13 01:43:13",{"source":7,"skillName":5,"commands":50,"prompt":60,"zipAvailable":36},[51,54,57],{"tool":52,"command":53},"npx","npx skills add ahvcxa\u002Fagents-runtime --skill code-analysis",{"tool":55,"command":56},"bunx","bunx skills add ahvcxa\u002Fagents-runtime --skill code-analysis",{"tool":58,"command":59},"pnpm","pnpm dlx skills add ahvcxa\u002Fagents-runtime --skill code-analysis","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fahvcxa\u002Fagents-runtime\u002Fblob\u002Fmain\u002Ftemplate\u002F.agents\u002Fcode-analysis\u002FSKILL.md",[62,68,72,76,80,84],{"path":63,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":66,"sourceHtmlUrl":67},"handler.js","SCRIPT","脚本",6170,"https:\u002F\u002Fgithub.com\u002Fahvcxa\u002Fagents-runtime\u002Fblob\u002Fmain\u002Ftemplate\u002F.agents\u002Fcode-analysis\u002Fhandler.js",{"path":69,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":70,"sourceHtmlUrl":71},"lib\u002Fcognitive-complexity.js",2354,"https:\u002F\u002Fgithub.com\u002Fahvcxa\u002Fagents-runtime\u002Fblob\u002Fmain\u002Ftemplate\u002F.agents\u002Fcode-analysis\u002Flib\u002Fcognitive-complexity.js",{"path":73,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":74,"sourceHtmlUrl":75},"lib\u002Fcyclomatic-complexity.js",2663,"https:\u002F\u002Fgithub.com\u002Fahvcxa\u002Fagents-runtime\u002Fblob\u002Fmain\u002Ftemplate\u002F.agents\u002Fcode-analysis\u002Flib\u002Fcyclomatic-complexity.js",{"path":77,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":78,"sourceHtmlUrl":79},"lib\u002Fdry.js",3503,"https:\u002F\u002Fgithub.com\u002Fahvcxa\u002Fagents-runtime\u002Fblob\u002Fmain\u002Ftemplate\u002F.agents\u002Fcode-analysis\u002Flib\u002Fdry.js",{"path":81,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":82,"sourceHtmlUrl":83},"lib\u002Fsecurity.js",4037,"https:\u002F\u002Fgithub.com\u002Fahvcxa\u002Fagents-runtime\u002Fblob\u002Fmain\u002Ftemplate\u002F.agents\u002Fcode-analysis\u002Flib\u002Fsecurity.js",{"path":85,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":86,"sourceHtmlUrl":87},"lib\u002Fsolid.js",2627,"https:\u002F\u002Fgithub.com\u002Fahvcxa\u002Fagents-runtime\u002Fblob\u002Fmain\u002Ftemplate\u002F.agents\u002Fcode-analysis\u002Flib\u002Fsolid.js",[89,98,111,117,129,134],{"skillNo":90,"name":91,"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":92,"categories":93,"keywords":94,"publishedAt":29},"01M6KMDCFV4G3TY0VCFA65NVA4","security-audit","https:\u002F\u002Fgithub.com\u002Fahvcxa\u002Fagents-runtime\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fproject\u002F.agents\u002Fskills\u002Fsecurity-audit\u002FSKILL.md",[],[95,96,97,24,91,27],"security","audit","security audit",{"skillNo":99,"name":100,"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":101,"categories":102,"keywords":108,"publishedAt":29},"01M6KMD96V3XP64WZR6MJQQZ8M","refactor","https:\u002F\u002Fgithub.com\u002Fahvcxa\u002Fagents-runtime\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fproject\u002F.agents\u002Fskills\u002Frefactor\u002FSKILL.md",[103],{"categoryNo":104,"categoryName":105,"taxonomyType":106,"taxonomyTypeDesc":107},"01JBSEEDCAT000000000000007","代码审查","SCENARIO","使用场景",[100,109,110],"false","transformation",{"skillNo":112,"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":113,"categories":114,"keywords":116,"publishedAt":29},"01M6KMD7A4W1DAJPQBAHVXCNBR","https:\u002F\u002Fgithub.com\u002Fahvcxa\u002Fagents-runtime\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fproject\u002F.agents\u002Fskills\u002Fcode-analysis\u002FSKILL.md",[115],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},[24,23,25,27,5],{"skillNo":118,"name":119,"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":120,"categories":121,"keywords":125,"publishedAt":29},"01M6KMD5AF1W8X1EFVZB0HS0JP","test-generator","https:\u002F\u002Fgithub.com\u002Fahvcxa\u002Fagents-runtime\u002Fblob\u002Fmain\u002Ftemplate\u002F.agents\u002Ftest-generator\u002FSKILL.md",[122],{"categoryNo":123,"categoryName":124,"taxonomyType":106,"taxonomyTypeDesc":107},"01JBSEEDCAT000000000000008","测试与质量",[126,127,128],"generator","test generator","test",{"skillNo":130,"name":91,"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":131,"categories":132,"keywords":133,"publishedAt":29},"01M6KMD1Q19ES77DCKNZXCRTQA","https:\u002F\u002Fgithub.com\u002Fahvcxa\u002Fagents-runtime\u002Fblob\u002Fmain\u002Ftemplate\u002F.agents\u002Fsecurity-audit\u002FSKILL.md",[],[97,96,95,28,27,26,91,24],{"skillNo":135,"name":100,"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":136,"categories":137,"keywords":139,"publishedAt":29},"01M6KMCYTX2FXC810HE6RXTYTH","https:\u002F\u002Fgithub.com\u002Fahvcxa\u002Fagents-runtime\u002Fblob\u002Fmain\u002Ftemplate\u002F.agents\u002Frefactor\u002FSKILL.md",[138],{"categoryNo":104,"categoryName":105,"taxonomyType":106,"taxonomyTypeDesc":107},[100,28,109,110,140,26,141],"patch","refactoring"]