@agentskillkit/agent-skills 1.0.1 → 3.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (801) hide show
  1. package/.agent/ARCHITECTURE.md +406 -149
  2. package/.agent/CONTINUOUS_EXECUTION_POLICY.md +623 -0
  3. package/.agent/GEMINI.md +935 -67
  4. package/.agent/WORKFLOW_CHAINS.md +683 -0
  5. package/.agent/agents/{code-archaeologist.md → analyst.md} +37 -25
  6. package/.agent/agents/assessor.md +186 -0
  7. package/.agent/agents/{backend-specialist.md → backend.md} +44 -30
  8. package/.agent/agents/critic.md +164 -0
  9. package/.agent/agents/{database-architect.md → database.md} +36 -24
  10. package/.agent/agents/{debugger.md → debug.md} +49 -43
  11. package/.agent/agents/{devops-engineer.md → devops.md} +50 -50
  12. package/.agent/agents/{documentation-writer.md → docs.md} +13 -13
  13. package/.agent/agents/{explorer-agent.md → explorer.md} +12 -6
  14. package/.agent/agents/{frontend-specialist.md → frontend.md} +79 -33
  15. package/.agent/agents/{game-developer.md → gamedev.md} +30 -30
  16. package/.agent/agents/lead.md +447 -0
  17. package/.agent/agents/learner.md +143 -0
  18. package/.agent/agents/mobile.md +383 -0
  19. package/.agent/agents/orchestrator.md +122 -339
  20. package/.agent/agents/pentest.md +188 -0
  21. package/.agent/agents/{performance-optimizer.md → perf.md} +44 -40
  22. package/.agent/agents/planner.md +413 -0
  23. package/.agent/agents/{product-manager.md → pm.md} +38 -23
  24. package/.agent/agents/po.md +106 -0
  25. package/.agent/agents/qa.md +109 -0
  26. package/.agent/agents/recovery.md +168 -0
  27. package/.agent/agents/security.md +171 -0
  28. package/.agent/agents/{seo-specialist.md → seo.md} +24 -24
  29. package/.agent/agents/{test-engineer.md → testing.md} +39 -39
  30. package/.agent/archive/registry.json.v1-backup +514 -0
  31. package/.agent/config/execution-policy.json +90 -0
  32. package/.agent/config/metrics-config.json +109 -0
  33. package/.agent/config/notification-config.json +43 -0
  34. package/.agent/knowledge/README.md +95 -0
  35. package/.agent/knowledge/_migration_backup/lessons-learned_2026-01-27T07-45-58.862Z.yaml +55 -0
  36. package/.agent/knowledge/_needs_review.yaml +24 -0
  37. package/.agent/knowledge/autopilot-metrics.json +93 -0
  38. package/.agent/knowledge/autopilot-runs.json +11 -0
  39. package/.agent/knowledge/backups/2026-01-25T17-08-04-097Z/lessons-learned.yaml +12 -0
  40. package/.agent/knowledge/backups/2026-01-25T17-08-04-097Z/settings.yaml +5 -0
  41. package/.agent/knowledge/backups/2026-01-25T17-08-08-345Z/lessons-learned.yaml +12 -0
  42. package/.agent/knowledge/backups/2026-01-25T17-08-08-345Z/settings.yaml +5 -0
  43. package/.agent/knowledge/backups/2026-01-25T17-08-09-232Z/lessons-learned.yaml +12 -0
  44. package/.agent/knowledge/backups/2026-01-25T17-08-09-232Z/settings.yaml +5 -0
  45. package/.agent/knowledge/backups/2026-01-29T15-15-32-715Z/lessons-learned.yaml +37 -0
  46. package/.agent/knowledge/backups/2026-01-29T15-15-32-715Z/settings.yaml +24 -0
  47. package/.agent/knowledge/backups/lessons-learned.yaml.archived +58 -0
  48. package/.agent/knowledge/backups/lessons-learned.yaml.bak-20260128-180048 +58 -0
  49. package/.agent/knowledge/backups/lessons.yaml.archived +2 -0
  50. package/.agent/knowledge/detected-errors.json +5 -0
  51. package/.agent/knowledge/evolution-signals.json +95 -0
  52. package/.agent/knowledge/improvements.yaml +68 -0
  53. package/.agent/knowledge/index.json +133 -0
  54. package/.agent/knowledge/lessons-learned.json +15 -0
  55. package/.agent/knowledge/lessons-learned.yaml +10 -15
  56. package/.agent/knowledge/metrics.json +66 -0
  57. package/.agent/knowledge/mistakes.yaml +74 -0
  58. package/.agent/knowledge/retention.yaml +165 -0
  59. package/.agent/knowledge/scans/scan_1769543882183.json +13 -0
  60. package/.agent/knowledge/scans/scan_1769543882322.json +13 -0
  61. package/.agent/knowledge/scans/scan_1769543882443.json +13 -0
  62. package/.agent/knowledge/scans/scan_1769543889157.json +13 -0
  63. package/.agent/knowledge/scans/scan_1769543950029.json +13 -0
  64. package/.agent/knowledge/scans/scan_1769696246716.json +13 -0
  65. package/.agent/knowledge/scans/scan_1769696247452.json +13 -0
  66. package/.agent/knowledge/scans/scan_1769698907767.json +13 -0
  67. package/.agent/knowledge/scans/scan_1769698934018.json +13 -0
  68. package/.agent/knowledge/scans/scan_1769699718013.json +13 -0
  69. package/.agent/knowledge/schema/common.schema.json +140 -0
  70. package/.agent/knowledge/schema/evolution-signals.schema.json +93 -0
  71. package/.agent/knowledge/schema/improvements.schema.json +132 -0
  72. package/.agent/knowledge/schema/mistakes.schema.json +138 -0
  73. package/.agent/knowledge/schema/settings.schema.json +102 -0
  74. package/.agent/knowledge/settings.yaml +5 -0
  75. package/.agent/knowledge/taxonomy.yaml +218 -0
  76. package/.agent/metrics/autopilot-metrics-schema.yaml +183 -0
  77. package/.agent/scripts-js/adaptive-workflow.js +504 -0
  78. package/.agent/scripts-js/auto_preview.js +166 -0
  79. package/.agent/scripts-js/autopilot-metrics.js +567 -0
  80. package/.agent/scripts-js/autopilot-runner.js +455 -0
  81. package/.agent/scripts-js/batch-skill-update.cjs +248 -0
  82. package/.agent/scripts-js/benchmark.cjs +147 -0
  83. package/.agent/scripts-js/checklist.js +174 -0
  84. package/.agent/scripts-js/compact-registry.cjs +79 -0
  85. package/.agent/scripts-js/execution-history.js +119 -0
  86. package/.agent/scripts-js/execution-policy.js +339 -0
  87. package/.agent/scripts-js/health-check.js +192 -0
  88. package/.agent/scripts-js/metrics-collector.js +364 -0
  89. package/.agent/scripts-js/metrics-dashboard.js +372 -0
  90. package/.agent/scripts-js/preflight-assessment.js +347 -0
  91. package/.agent/scripts-js/scaffold-nextjs.js +197 -0
  92. package/.agent/scripts-js/session_manager.js +200 -0
  93. package/.agent/scripts-js/skill-validator.js +318 -0
  94. package/.agent/scripts-js/utils/colors.js +56 -0
  95. package/.agent/scripts-js/utils/process-manager.js +148 -0
  96. package/.agent/scripts-js/utils/reporter.js +168 -0
  97. package/.agent/scripts-js/utils/runner.js +117 -0
  98. package/.agent/scripts-js/verify-skills.js +252 -0
  99. package/.agent/scripts-js/verify_all.js +242 -0
  100. package/.agent/scripts-js/workflow-engine.js +545 -0
  101. package/.agent/scripts-js/workflow-validator.js +417 -0
  102. package/.agent/skill-lock.json +343 -0
  103. package/.agent/skills/agent-patterns/SKILL.md +761 -0
  104. package/.agent/skills/auto-learner/SKILL.md +280 -0
  105. package/.agent/skills/auto-learner/dashboard/index.html +494 -0
  106. package/.agent/skills/auto-learner/references/learned-imports.md +50 -0
  107. package/.agent/skills/auto-learner/scripts/dashboard_server.js +224 -0
  108. package/.agent/skills/auto-learner/scripts/error_sensor.js +460 -0
  109. package/.agent/skills/auto-learner/scripts/learn_from_failure.js +225 -0
  110. package/.agent/skills/auto-learner/scripts/pattern_analyzer.js +594 -0
  111. package/.agent/skills/auto-learner/scripts/pre_execution_check.js +464 -0
  112. package/.agent/skills/auto-learner/scripts/user_correction_sensor.js +426 -0
  113. package/.agent/skills/debug-pro/SKILL.md +354 -0
  114. package/.agent/skills/execution-reporter/SKILL.md +195 -0
  115. package/.agent/skills/gitops/SKILL.md +303 -0
  116. package/.agent/skills/gitops/references/argocd-setup.md +134 -0
  117. package/.agent/skills/gitops/references/sync-policies.md +131 -0
  118. package/.agent/skills/lifecycle-orchestrator/SKILL.md +83 -0
  119. package/.agent/skills/mobile-design/SKILL.md +258 -50
  120. package/.agent/skills/mobile-developer/SKILL.md +205 -0
  121. package/.agent/skills/mobile-security-coder/SKILL.md +184 -0
  122. package/.agent/skills/observability/SKILL.md +397 -0
  123. package/.agent/skills/problem-checker/SKILL.md +195 -0
  124. package/.agent/skills/problem-checker/scripts/check_problems.js +261 -0
  125. package/.agent/skills/registry.backup.json +2251 -0
  126. package/.agent/skills/registry.json +940 -366
  127. package/.agent/skills/registry.phase1.backup.json +1278 -0
  128. package/.agent/skills/requirements-python.txt +25 -0
  129. package/.agent/skills/requirements.txt +96 -0
  130. package/.agent/skills/state-rollback/SKILL.md +240 -0
  131. package/.agent/skills/state-rollback/scripts/state_manager.js +282 -0
  132. package/.agent/skills/studio/SKILL.md +107 -0
  133. package/.agent/{.shared/ui-ux-pro-max → skills/studio}/data/styles.csv +16 -16
  134. package/.agent/skills/studio/scripts-js/core.js +344 -0
  135. package/.agent/skills/studio/scripts-js/design_system.js +952 -0
  136. package/.agent/skills/studio/scripts-js/jsconfig.json +27 -0
  137. package/.agent/skills/studio/scripts-js/search.js +191 -0
  138. package/.agent/skills/studio/scripts-js/types.d.ts +276 -0
  139. package/.agent/skills/studio/scripts-js/utils/component-specs.js +153 -0
  140. package/.agent/skills/studio/scripts-js/utils/config-loader.js +164 -0
  141. package/.agent/skills/studio/scripts-js/utils/css-templates.js +168 -0
  142. package/.agent/skills/studio/scripts-js/utils/css-validator.js +94 -0
  143. package/.agent/skills/studio/scripts-js/utils/csv-loader.js +55 -0
  144. package/.agent/skills/studio/scripts-js/utils/intelligent-overrides.js +128 -0
  145. package/.agent/skills/studio/scripts-js/utils/page-override-formatter.js +142 -0
  146. package/.agent/skills/studio/scripts-js/utils/page-type-detector.js +123 -0
  147. package/.agent/skills/studio/scripts-js/utils/search-cache.js +190 -0
  148. package/.agent/skills/studio/scripts-js/utils/text-utils.js +54 -0
  149. package/.agent/skills/typescript-expert/SKILL.md +429 -0
  150. package/.agent/skills/typescript-expert/references/tsconfig-strict.json +92 -0
  151. package/.agent/skills/typescript-expert/references/typescript-cheatsheet.md +383 -0
  152. package/.agent/skills/typescript-expert/references/utility-types.ts +335 -0
  153. package/.agent/skills/typescript-expert/scripts/ts_diagnostic.py +203 -0
  154. package/.agent/skills-audit-report.md +114 -0
  155. package/.agent/workflows/README.md +707 -0
  156. package/.agent/workflows/agent.md +77 -0
  157. package/.agent/workflows/alert.md +333 -0
  158. package/.agent/workflows/api.md +209 -0
  159. package/.agent/workflows/architect.md +148 -42
  160. package/.agent/workflows/auto-accept-process.md +275 -0
  161. package/.agent/workflows/autopilot.md +755 -92
  162. package/.agent/workflows/benchmark.md +221 -0
  163. package/.agent/workflows/boost.md +61 -26
  164. package/.agent/workflows/build.md +114 -54
  165. package/.agent/workflows/chronicle.md +19 -0
  166. package/.agent/workflows/diagnose.md +72 -30
  167. package/.agent/workflows/diagram.md +121 -0
  168. package/.agent/workflows/flags.md +149 -0
  169. package/.agent/workflows/forge.md +15 -5
  170. package/.agent/workflows/game.md +142 -0
  171. package/.agent/workflows/inspect.md +76 -40
  172. package/.agent/workflows/launch.md +183 -40
  173. package/.agent/workflows/mobile.md +106 -0
  174. package/.agent/workflows/monitor.md +283 -0
  175. package/.agent/workflows/optimize.md +220 -0
  176. package/.agent/workflows/pulse.md +113 -43
  177. package/.agent/workflows/stage.md +37 -10
  178. package/.agent/workflows/studio.md +35 -13
  179. package/.agent/workflows/think.md +19 -0
  180. package/.agent/workflows/validate.md +21 -1
  181. package/CHANGELOG.md +448 -24
  182. package/LICENSE +29 -7
  183. package/README.backup.md +540 -0
  184. package/README.md +870 -203
  185. package/docs/README.md +62 -0
  186. package/docs/archive/plan-v21.md +170 -0
  187. package/docs/getting-started.md +337 -0
  188. package/docs/guides/migration.md +70 -0
  189. package/docs/guides/publishing.md +88 -0
  190. package/docs/reference/python-strategy.md +393 -0
  191. package/docs/reference/scripts.md +56 -0
  192. package/docs/reference/skill-standard.md +457 -0
  193. package/package.json +51 -7
  194. package/packages/cli/.agent/knowledge/evolution-signals.json +51 -0
  195. package/packages/cli/.agent/knowledge/lessons-learned.yaml +25 -15
  196. package/packages/cli/.agent/knowledge/scans/scan_demo.json +58 -0
  197. package/packages/cli/README.md +21 -0
  198. package/packages/cli/bin/{ag-smart.js → agent.js} +37 -5
  199. package/packages/cli/examples/demo-violations.js +27 -0
  200. package/packages/cli/lib/audit.js +134 -49
  201. package/packages/cli/lib/audit.test.js +100 -0
  202. package/packages/cli/lib/auto-learn.js +1 -1
  203. package/packages/cli/lib/backup.js +138 -0
  204. package/packages/cli/lib/backup.test.js +78 -0
  205. package/packages/cli/lib/cognitive-lesson.js +476 -0
  206. package/packages/cli/lib/completion.js +149 -0
  207. package/packages/cli/lib/config.js +8 -2
  208. package/packages/cli/lib/eslint-fix.js +1 -1
  209. package/packages/cli/lib/evolution-signal.js +215 -0
  210. package/packages/cli/lib/export.js +86 -0
  211. package/packages/cli/lib/export.test.js +65 -0
  212. package/packages/cli/lib/fix.js +61 -2
  213. package/packages/cli/lib/fix.test.js +80 -0
  214. package/packages/cli/lib/gemini-export.js +83 -0
  215. package/packages/cli/lib/hooks/install-hooks.js +8 -32
  216. package/packages/cli/lib/hooks/lint-learn.js +2 -2
  217. package/packages/cli/lib/icons.js +93 -0
  218. package/packages/cli/lib/ignore.js +116 -0
  219. package/packages/cli/lib/ignore.test.js +58 -0
  220. package/packages/cli/lib/init.js +124 -0
  221. package/packages/cli/lib/knowledge-index.js +326 -0
  222. package/packages/cli/lib/knowledge-metrics.js +335 -0
  223. package/packages/cli/lib/knowledge-retention.js +398 -0
  224. package/packages/cli/lib/knowledge-validator.js +312 -0
  225. package/packages/cli/lib/learn.js +115 -33
  226. package/packages/cli/lib/migrate-to-v4.js +322 -0
  227. package/packages/cli/lib/proposals.js +199 -0
  228. package/packages/cli/lib/proposals.test.js +56 -0
  229. package/packages/cli/lib/recall.js +792 -41
  230. package/packages/cli/lib/recall.test.js +107 -0
  231. package/packages/cli/lib/selfevolution-bridge.js +167 -0
  232. package/packages/cli/lib/settings.js +203 -0
  233. package/packages/cli/lib/skill-learn.js +1 -1
  234. package/packages/cli/lib/stats.js +31 -42
  235. package/packages/cli/lib/stats.test.js +94 -0
  236. package/packages/cli/lib/ui/audit-ui.js +146 -0
  237. package/packages/cli/lib/ui/backup-ui.js +107 -0
  238. package/packages/cli/lib/ui/clack-helpers.js +317 -0
  239. package/packages/cli/lib/ui/common.js +83 -0
  240. package/packages/cli/lib/ui/completion-ui.js +126 -0
  241. package/packages/cli/lib/ui/custom-select.js +69 -0
  242. package/packages/cli/lib/ui/evolution-signals-ui.js +107 -0
  243. package/packages/cli/lib/ui/export-ui.js +94 -0
  244. package/packages/cli/lib/ui/fix-all-ui.js +191 -0
  245. package/packages/cli/lib/ui/help-ui.js +26 -0
  246. package/packages/cli/lib/ui/index.js +147 -0
  247. package/packages/cli/lib/ui/init-ui.js +56 -0
  248. package/packages/cli/lib/ui/knowledge-ui.js +55 -0
  249. package/packages/cli/lib/ui/learn-ui.js +706 -0
  250. package/packages/cli/lib/ui/lessons-ui.js +148 -0
  251. package/packages/cli/lib/ui/pretty.js +145 -0
  252. package/packages/cli/lib/ui/proposals-ui.js +99 -0
  253. package/packages/cli/lib/ui/recall-ui.js +342 -0
  254. package/packages/cli/lib/ui/routing-demo.js +79 -0
  255. package/packages/cli/lib/ui/routing-ui.js +325 -0
  256. package/packages/cli/lib/ui/settings-ui.js +103 -0
  257. package/packages/cli/lib/ui/stats-ui.js +73 -0
  258. package/packages/cli/lib/ui/watch-ui.js +236 -0
  259. package/packages/cli/lib/watcher.js +1 -1
  260. package/packages/cli/lib/watcher.test.js +85 -0
  261. package/packages/cli/node_modules/.package-lock.json +1529 -0
  262. package/packages/cli/node_modules/.vite/vitest/results.json +1 -0
  263. package/packages/cli/package-lock.json +1164 -688
  264. package/packages/cli/package.json +39 -10
  265. package/packages/cli/scripts/export-key.js +80 -0
  266. package/packages/cli/src/MIGRATION.md +418 -0
  267. package/packages/cli/src/README.md +367 -0
  268. package/packages/cli/src/core/evolution/evolution-signal.js +42 -0
  269. package/packages/cli/src/core/evolution/index.js +17 -0
  270. package/packages/cli/src/core/evolution/review-gate.js +40 -0
  271. package/packages/cli/src/core/evolution/signal-detector.js +137 -0
  272. package/packages/cli/src/core/evolution/signal-queue.js +79 -0
  273. package/packages/cli/src/core/evolution/threshold-checker.js +79 -0
  274. package/packages/cli/src/core/index.js +15 -0
  275. package/packages/cli/src/core/learning/cognitive-enhancer.js +282 -0
  276. package/packages/cli/src/core/learning/index.js +12 -0
  277. package/packages/cli/src/core/learning/lesson-synthesizer.js +83 -0
  278. package/packages/cli/src/core/scanning/index.js +14 -0
  279. package/packages/cli/src/data/index.js +13 -0
  280. package/packages/cli/src/data/repositories/index.js +8 -0
  281. package/packages/cli/src/data/repositories/lesson-repository.js +130 -0
  282. package/packages/cli/src/data/repositories/signal-repository.js +119 -0
  283. package/packages/cli/src/data/storage/index.js +8 -0
  284. package/packages/cli/src/data/storage/json-storage.js +64 -0
  285. package/packages/cli/src/data/storage/yaml-storage.js +66 -0
  286. package/packages/cli/src/infrastructure/index.js +13 -0
  287. package/packages/cli/src/presentation/formatters/skill-formatter.js +232 -0
  288. package/packages/cli/src/services/export-service.js +162 -0
  289. package/packages/cli/src/services/index.js +13 -0
  290. package/packages/cli/src/services/learning-service.js +99 -0
  291. package/packages/cli/tests/integration/evolution-signals.test.js +46 -0
  292. package/packages/cli/tests/integration/gemini-export.test.js +53 -0
  293. package/packages/cli/tests/integration/learning-service.test.js +33 -0
  294. package/packages/cli/tests/integration/signal-detector.test.js +29 -0
  295. package/packages/cli/tests/unit/cognitive-enhancer.test.js +56 -0
  296. package/packages/cli/tests/unit/lesson-synthesizer.test.js +84 -0
  297. package/packages/cli/tests/unit/skill-formatter.test.js +106 -0
  298. package/packages/cli/vitest.config.js +28 -1
  299. package/scripts/rebrand/README.md +472 -0
  300. package/scripts/rebrand/index.mjs +449 -0
  301. package/scripts/rebrand/v4.mjs +800 -0
  302. package/tests/e2e/studio-workflow.test.js +100 -0
  303. package/tests/e2e/validate-workflow.test.js +71 -0
  304. package/tests/scripts/colors.test.js +75 -0
  305. package/tests/scripts/component-specs.test.js +157 -0
  306. package/tests/scripts/config-loader.test.js +204 -0
  307. package/tests/scripts/core-bm25.test.js +112 -0
  308. package/tests/scripts/css-templates.test.js +123 -0
  309. package/tests/scripts/css-validator.test.js +137 -0
  310. package/tests/scripts/format-master-md.test.js +232 -0
  311. package/tests/scripts/integration/studio-integration.test.js +183 -0
  312. package/tests/scripts/intelligent-overrides.test.js +181 -0
  313. package/tests/scripts/page-override-formatter.test.js +227 -0
  314. package/tests/scripts/page-type-detector.test.js +141 -0
  315. package/tests/scripts/process-manager.test.js +79 -0
  316. package/tests/scripts/reporter.test.js +96 -0
  317. package/tests/scripts/runner.test.js +82 -0
  318. package/tests/scripts/search-cache.test.js +210 -0
  319. package/tests/scripts/text-utils.test.js +63 -0
  320. package/.agent/.shared/ui-ux-pro-max/scripts/__pycache__/core.cpython-313.pyc +0 -0
  321. package/.agent/.shared/ui-ux-pro-max/scripts/__pycache__/design_system.cpython-313.pyc +0 -0
  322. package/.agent/.shared/ui-ux-pro-max/scripts/core.py +0 -258
  323. package/.agent/.shared/ui-ux-pro-max/scripts/design_system.py +0 -1067
  324. package/.agent/.shared/ui-ux-pro-max/scripts/search.py +0 -106
  325. package/.agent/agents/mobile-developer.md +0 -377
  326. package/.agent/agents/penetration-tester.md +0 -188
  327. package/.agent/agents/product-owner.md +0 -95
  328. package/.agent/agents/project-planner.md +0 -406
  329. package/.agent/agents/qa-automation-engineer.md +0 -103
  330. package/.agent/agents/security-auditor.md +0 -170
  331. package/.agent/rules/GEMINI.md +0 -253
  332. package/.agent/scripts/auto_preview.py +0 -148
  333. package/.agent/scripts/checklist.py +0 -217
  334. package/.agent/scripts/session_manager.py +0 -120
  335. package/.agent/scripts/verify_all.py +0 -327
  336. package/.agent/skills/aesthetic/SKILL.md +0 -121
  337. package/.agent/skills/aesthetic/assets/design-guideline-template.md +0 -163
  338. package/.agent/skills/aesthetic/assets/design-story-template.md +0 -135
  339. package/.agent/skills/aesthetic/references/design-principles.md +0 -62
  340. package/.agent/skills/aesthetic/references/design-resources.md +0 -75
  341. package/.agent/skills/aesthetic/references/micro-interactions.md +0 -53
  342. package/.agent/skills/aesthetic/references/storytelling-design.md +0 -50
  343. package/.agent/skills/api-patterns/SKILL.md +0 -81
  344. package/.agent/skills/api-patterns/rules/api-style.md +0 -42
  345. package/.agent/skills/api-patterns/rules/auth.md +0 -24
  346. package/.agent/skills/api-patterns/rules/documentation.md +0 -26
  347. package/.agent/skills/api-patterns/rules/graphql.md +0 -41
  348. package/.agent/skills/api-patterns/rules/rate-limiting.md +0 -31
  349. package/.agent/skills/api-patterns/rules/response.md +0 -37
  350. package/.agent/skills/api-patterns/rules/rest.md +0 -40
  351. package/.agent/skills/api-patterns/rules/security-testing.md +0 -122
  352. package/.agent/skills/api-patterns/rules/trpc.md +0 -41
  353. package/.agent/skills/api-patterns/rules/versioning.md +0 -22
  354. package/.agent/skills/api-patterns/scripts/api_validator.py +0 -211
  355. package/.agent/skills/app-builder/SKILL.md +0 -75
  356. package/.agent/skills/app-builder/agent-coordination.md +0 -71
  357. package/.agent/skills/app-builder/feature-building.md +0 -53
  358. package/.agent/skills/app-builder/project-detection.md +0 -34
  359. package/.agent/skills/app-builder/scaffolding.md +0 -118
  360. package/.agent/skills/app-builder/tech-stack.md +0 -40
  361. package/.agent/skills/app-builder/templates/SKILL.md +0 -39
  362. package/.agent/skills/app-builder/templates/astro-static/TEMPLATE.md +0 -76
  363. package/.agent/skills/app-builder/templates/chrome-extension/TEMPLATE.md +0 -92
  364. package/.agent/skills/app-builder/templates/cli-tool/TEMPLATE.md +0 -88
  365. package/.agent/skills/app-builder/templates/electron-desktop/TEMPLATE.md +0 -88
  366. package/.agent/skills/app-builder/templates/express-api/TEMPLATE.md +0 -83
  367. package/.agent/skills/app-builder/templates/flutter-app/TEMPLATE.md +0 -90
  368. package/.agent/skills/app-builder/templates/monorepo-turborepo/TEMPLATE.md +0 -90
  369. package/.agent/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +0 -82
  370. package/.agent/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +0 -100
  371. package/.agent/skills/app-builder/templates/nextjs-static/TEMPLATE.md +0 -106
  372. package/.agent/skills/app-builder/templates/nuxt-app/TEMPLATE.md +0 -101
  373. package/.agent/skills/app-builder/templates/python-fastapi/TEMPLATE.md +0 -83
  374. package/.agent/skills/app-builder/templates/react-native-app/TEMPLATE.md +0 -93
  375. package/.agent/skills/architecture/SKILL.md +0 -55
  376. package/.agent/skills/architecture/context-discovery.md +0 -43
  377. package/.agent/skills/architecture/examples.md +0 -94
  378. package/.agent/skills/architecture/pattern-selection.md +0 -68
  379. package/.agent/skills/architecture/patterns-reference.md +0 -50
  380. package/.agent/skills/architecture/trade-off-analysis.md +0 -77
  381. package/.agent/skills/bash-linux/SKILL.md +0 -199
  382. package/.agent/skills/behavioral-modes/SKILL.md +0 -242
  383. package/.agent/skills/brainstorming/SKILL.md +0 -163
  384. package/.agent/skills/brainstorming/dynamic-questioning.md +0 -350
  385. package/.agent/skills/clean-code/SKILL.md +0 -201
  386. package/.agent/skills/code-review-checklist/SKILL.md +0 -109
  387. package/.agent/skills/code-reviewer/.skill-source.json +0 -8
  388. package/.agent/skills/code-reviewer/SKILL.md +0 -32
  389. package/.agent/skills/code-reviewer/enforcement/checklists/backend-api-review-checklist.md +0 -5
  390. package/.agent/skills/code-reviewer/examples/approved-pr/review-output.md +0 -76
  391. package/.agent/skills/code-reviewer/examples/rejected-pr/review-output.md +0 -99
  392. package/.agent/skills/code-reviewer/examples/scenarios.md +0 -3
  393. package/.agent/skills/code-reviewer/metadata/doctrine-mapping.yaml +0 -167
  394. package/.agent/skills/code-reviewer/metadata/intent-triggers.yaml +0 -41
  395. package/.agent/skills/code-reviewer/resources/links.md +0 -59
  396. package/.agent/skills/code-reviewer/scripts/audit_pr.js +0 -8
  397. package/.agent/skills/code-reviewer/scripts/audit_pr.v2.js +0 -417
  398. package/.agent/skills/code-reviewer/scripts/validate_doctrine.js +0 -307
  399. package/.agent/skills/context-engineering/SKILL.md +0 -86
  400. package/.agent/skills/context-engineering/references/context-compression.md +0 -84
  401. package/.agent/skills/context-engineering/references/context-degradation.md +0 -93
  402. package/.agent/skills/context-engineering/references/context-fundamentals.md +0 -75
  403. package/.agent/skills/context-engineering/references/context-optimization.md +0 -82
  404. package/.agent/skills/context-engineering/references/evaluation.md +0 -89
  405. package/.agent/skills/context-engineering/references/memory-systems.md +0 -88
  406. package/.agent/skills/context-engineering/references/multi-agent-patterns.md +0 -90
  407. package/.agent/skills/context-engineering/references/project-development.md +0 -97
  408. package/.agent/skills/context-engineering/references/tool-design.md +0 -86
  409. package/.agent/skills/context-engineering/scripts/compression_evaluator.py +0 -329
  410. package/.agent/skills/context-engineering/scripts/context_analyzer.py +0 -294
  411. package/.agent/skills/database-design/SKILL.md +0 -52
  412. package/.agent/skills/database-design/database-selection.md +0 -43
  413. package/.agent/skills/database-design/indexing.md +0 -39
  414. package/.agent/skills/database-design/migrations.md +0 -48
  415. package/.agent/skills/database-design/optimization.md +0 -36
  416. package/.agent/skills/database-design/orm-selection.md +0 -30
  417. package/.agent/skills/database-design/schema-design.md +0 -56
  418. package/.agent/skills/database-design/scripts/schema_validator.py +0 -172
  419. package/.agent/skills/debugging/SKILL.md +0 -42
  420. package/.agent/skills/deployment-procedures/SKILL.md +0 -241
  421. package/.agent/skills/doc.md +0 -177
  422. package/.agent/skills/document-skills/SKILL.md +0 -49
  423. package/.agent/skills/document-skills/docx/LICENSE.txt +0 -30
  424. package/.agent/skills/document-skills/docx/SKILL.md +0 -197
  425. package/.agent/skills/document-skills/docx/docx-js.md +0 -350
  426. package/.agent/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +0 -1499
  427. package/.agent/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +0 -146
  428. package/.agent/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +0 -1085
  429. package/.agent/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +0 -11
  430. package/.agent/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-main.xsd +0 -3081
  431. package/.agent/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +0 -23
  432. package/.agent/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +0 -185
  433. package/.agent/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +0 -287
  434. package/.agent/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/pml.xsd +0 -1676
  435. package/.agent/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +0 -28
  436. package/.agent/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +0 -144
  437. package/.agent/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +0 -174
  438. package/.agent/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +0 -25
  439. package/.agent/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +0 -18
  440. package/.agent/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +0 -59
  441. package/.agent/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +0 -56
  442. package/.agent/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +0 -195
  443. package/.agent/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-math.xsd +0 -582
  444. package/.agent/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +0 -25
  445. package/.agent/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/sml.xsd +0 -4439
  446. package/.agent/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-main.xsd +0 -570
  447. package/.agent/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +0 -509
  448. package/.agent/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +0 -12
  449. package/.agent/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +0 -108
  450. package/.agent/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +0 -96
  451. package/.agent/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/wml.xsd +0 -3646
  452. package/.agent/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/xml.xsd +0 -116
  453. package/.agent/skills/document-skills/docx/ooxml/schemas/ecma/fouth-edition/opc-contentTypes.xsd +0 -42
  454. package/.agent/skills/document-skills/docx/ooxml/schemas/ecma/fouth-edition/opc-coreProperties.xsd +0 -50
  455. package/.agent/skills/document-skills/docx/ooxml/schemas/ecma/fouth-edition/opc-digSig.xsd +0 -49
  456. package/.agent/skills/document-skills/docx/ooxml/schemas/ecma/fouth-edition/opc-relationships.xsd +0 -33
  457. package/.agent/skills/document-skills/docx/ooxml/schemas/mce/mc.xsd +0 -75
  458. package/.agent/skills/document-skills/docx/ooxml/schemas/microsoft/wml-2010.xsd +0 -560
  459. package/.agent/skills/document-skills/docx/ooxml/schemas/microsoft/wml-2012.xsd +0 -67
  460. package/.agent/skills/document-skills/docx/ooxml/schemas/microsoft/wml-2018.xsd +0 -14
  461. package/.agent/skills/document-skills/docx/ooxml/schemas/microsoft/wml-cex-2018.xsd +0 -20
  462. package/.agent/skills/document-skills/docx/ooxml/schemas/microsoft/wml-cid-2016.xsd +0 -13
  463. package/.agent/skills/document-skills/docx/ooxml/schemas/microsoft/wml-sdtdatahash-2020.xsd +0 -4
  464. package/.agent/skills/document-skills/docx/ooxml/schemas/microsoft/wml-symex-2015.xsd +0 -8
  465. package/.agent/skills/document-skills/docx/ooxml/scripts/pack.py +0 -159
  466. package/.agent/skills/document-skills/docx/ooxml/scripts/unpack.py +0 -29
  467. package/.agent/skills/document-skills/docx/ooxml/scripts/validate.py +0 -69
  468. package/.agent/skills/document-skills/docx/ooxml/scripts/validation/__init__.py +0 -15
  469. package/.agent/skills/document-skills/docx/ooxml/scripts/validation/base.py +0 -951
  470. package/.agent/skills/document-skills/docx/ooxml/scripts/validation/docx.py +0 -274
  471. package/.agent/skills/document-skills/docx/ooxml/scripts/validation/pptx.py +0 -315
  472. package/.agent/skills/document-skills/docx/ooxml/scripts/validation/redlining.py +0 -279
  473. package/.agent/skills/document-skills/docx/ooxml.md +0 -610
  474. package/.agent/skills/document-skills/docx/scripts/__init__.py +0 -1
  475. package/.agent/skills/document-skills/docx/scripts/document.py +0 -1276
  476. package/.agent/skills/document-skills/docx/scripts/templates/comments.xml +0 -3
  477. package/.agent/skills/document-skills/docx/scripts/templates/commentsExtended.xml +0 -3
  478. package/.agent/skills/document-skills/docx/scripts/templates/commentsExtensible.xml +0 -3
  479. package/.agent/skills/document-skills/docx/scripts/templates/commentsIds.xml +0 -3
  480. package/.agent/skills/document-skills/docx/scripts/templates/people.xml +0 -3
  481. package/.agent/skills/document-skills/docx/scripts/utilities.py +0 -374
  482. package/.agent/skills/document-skills/pdf/LICENSE.txt +0 -30
  483. package/.agent/skills/document-skills/pdf/SKILL.md +0 -294
  484. package/.agent/skills/document-skills/pdf/forms.md +0 -205
  485. package/.agent/skills/document-skills/pdf/reference.md +0 -612
  486. package/.agent/skills/document-skills/pdf/scripts/check_bounding_boxes.py +0 -70
  487. package/.agent/skills/document-skills/pdf/scripts/check_bounding_boxes_test.py +0 -226
  488. package/.agent/skills/document-skills/pdf/scripts/check_fillable_fields.py +0 -12
  489. package/.agent/skills/document-skills/pdf/scripts/convert_pdf_to_images.py +0 -35
  490. package/.agent/skills/document-skills/pdf/scripts/create_validation_image.py +0 -41
  491. package/.agent/skills/document-skills/pdf/scripts/extract_form_field_info.py +0 -152
  492. package/.agent/skills/document-skills/pdf/scripts/fill_fillable_fields.py +0 -114
  493. package/.agent/skills/document-skills/pdf/scripts/fill_pdf_form_with_annotations.py +0 -108
  494. package/.agent/skills/document-skills/pptx/LICENSE.txt +0 -30
  495. package/.agent/skills/document-skills/pptx/SKILL.md +0 -484
  496. package/.agent/skills/document-skills/pptx/html2pptx.md +0 -625
  497. package/.agent/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +0 -1499
  498. package/.agent/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +0 -146
  499. package/.agent/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +0 -1085
  500. package/.agent/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +0 -11
  501. package/.agent/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-main.xsd +0 -3081
  502. package/.agent/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +0 -23
  503. package/.agent/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +0 -185
  504. package/.agent/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +0 -287
  505. package/.agent/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/pml.xsd +0 -1676
  506. package/.agent/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +0 -28
  507. package/.agent/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +0 -144
  508. package/.agent/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +0 -174
  509. package/.agent/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +0 -25
  510. package/.agent/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +0 -18
  511. package/.agent/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +0 -59
  512. package/.agent/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +0 -56
  513. package/.agent/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +0 -195
  514. package/.agent/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-math.xsd +0 -582
  515. package/.agent/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +0 -25
  516. package/.agent/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/sml.xsd +0 -4439
  517. package/.agent/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-main.xsd +0 -570
  518. package/.agent/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +0 -509
  519. package/.agent/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +0 -12
  520. package/.agent/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +0 -108
  521. package/.agent/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +0 -96
  522. package/.agent/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/wml.xsd +0 -3646
  523. package/.agent/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/xml.xsd +0 -116
  524. package/.agent/skills/document-skills/pptx/ooxml/schemas/ecma/fouth-edition/opc-contentTypes.xsd +0 -42
  525. package/.agent/skills/document-skills/pptx/ooxml/schemas/ecma/fouth-edition/opc-coreProperties.xsd +0 -50
  526. package/.agent/skills/document-skills/pptx/ooxml/schemas/ecma/fouth-edition/opc-digSig.xsd +0 -49
  527. package/.agent/skills/document-skills/pptx/ooxml/schemas/ecma/fouth-edition/opc-relationships.xsd +0 -33
  528. package/.agent/skills/document-skills/pptx/ooxml/schemas/mce/mc.xsd +0 -75
  529. package/.agent/skills/document-skills/pptx/ooxml/schemas/microsoft/wml-2010.xsd +0 -560
  530. package/.agent/skills/document-skills/pptx/ooxml/schemas/microsoft/wml-2012.xsd +0 -67
  531. package/.agent/skills/document-skills/pptx/ooxml/schemas/microsoft/wml-2018.xsd +0 -14
  532. package/.agent/skills/document-skills/pptx/ooxml/schemas/microsoft/wml-cex-2018.xsd +0 -20
  533. package/.agent/skills/document-skills/pptx/ooxml/schemas/microsoft/wml-cid-2016.xsd +0 -13
  534. package/.agent/skills/document-skills/pptx/ooxml/schemas/microsoft/wml-sdtdatahash-2020.xsd +0 -4
  535. package/.agent/skills/document-skills/pptx/ooxml/schemas/microsoft/wml-symex-2015.xsd +0 -8
  536. package/.agent/skills/document-skills/pptx/ooxml/scripts/pack.py +0 -159
  537. package/.agent/skills/document-skills/pptx/ooxml/scripts/unpack.py +0 -29
  538. package/.agent/skills/document-skills/pptx/ooxml/scripts/validate.py +0 -69
  539. package/.agent/skills/document-skills/pptx/ooxml/scripts/validation/__init__.py +0 -15
  540. package/.agent/skills/document-skills/pptx/ooxml/scripts/validation/base.py +0 -951
  541. package/.agent/skills/document-skills/pptx/ooxml/scripts/validation/docx.py +0 -274
  542. package/.agent/skills/document-skills/pptx/ooxml/scripts/validation/pptx.py +0 -315
  543. package/.agent/skills/document-skills/pptx/ooxml/scripts/validation/redlining.py +0 -279
  544. package/.agent/skills/document-skills/pptx/ooxml.md +0 -427
  545. package/.agent/skills/document-skills/pptx/scripts/html2pptx.js +0 -979
  546. package/.agent/skills/document-skills/pptx/scripts/inventory.py +0 -1020
  547. package/.agent/skills/document-skills/pptx/scripts/rearrange.py +0 -231
  548. package/.agent/skills/document-skills/pptx/scripts/replace.py +0 -385
  549. package/.agent/skills/document-skills/pptx/scripts/thumbnail.py +0 -450
  550. package/.agent/skills/document-skills/xlsx/LICENSE.txt +0 -30
  551. package/.agent/skills/document-skills/xlsx/SKILL.md +0 -289
  552. package/.agent/skills/document-skills/xlsx/recalc.py +0 -178
  553. package/.agent/skills/documentation-templates/SKILL.md +0 -194
  554. package/.agent/skills/frontend/SKILL.md +0 -38
  555. package/.agent/skills/frontend/rules/_sections.md +0 -46
  556. package/.agent/skills/frontend/rules/_template.md +0 -28
  557. package/.agent/skills/frontend/rules/advanced-event-handler-refs.md +0 -55
  558. package/.agent/skills/frontend/rules/advanced-init-once.md +0 -42
  559. package/.agent/skills/frontend/rules/advanced-use-latest.md +0 -39
  560. package/.agent/skills/frontend/rules/async-api-routes.md +0 -38
  561. package/.agent/skills/frontend/rules/async-defer-await.md +0 -80
  562. package/.agent/skills/frontend/rules/async-dependencies.md +0 -51
  563. package/.agent/skills/frontend/rules/async-parallel.md +0 -28
  564. package/.agent/skills/frontend/rules/async-suspense-boundaries.md +0 -99
  565. package/.agent/skills/frontend/rules/bundle-barrel-imports.md +0 -59
  566. package/.agent/skills/frontend/rules/bundle-conditional.md +0 -31
  567. package/.agent/skills/frontend/rules/bundle-defer-third-party.md +0 -49
  568. package/.agent/skills/frontend/rules/bundle-dynamic-imports.md +0 -35
  569. package/.agent/skills/frontend/rules/bundle-preload.md +0 -50
  570. package/.agent/skills/frontend/rules/client-event-listeners.md +0 -74
  571. package/.agent/skills/frontend/rules/client-localstorage-schema.md +0 -71
  572. package/.agent/skills/frontend/rules/client-passive-event-listeners.md +0 -48
  573. package/.agent/skills/frontend/rules/client-swr-dedup.md +0 -56
  574. package/.agent/skills/frontend/rules/js-batch-dom-css.md +0 -107
  575. package/.agent/skills/frontend/rules/js-cache-function-results.md +0 -80
  576. package/.agent/skills/frontend/rules/js-cache-property-access.md +0 -28
  577. package/.agent/skills/frontend/rules/js-cache-storage.md +0 -70
  578. package/.agent/skills/frontend/rules/js-combine-iterations.md +0 -32
  579. package/.agent/skills/frontend/rules/js-early-exit.md +0 -50
  580. package/.agent/skills/frontend/rules/js-hoist-regexp.md +0 -45
  581. package/.agent/skills/frontend/rules/js-index-maps.md +0 -37
  582. package/.agent/skills/frontend/rules/js-length-check-first.md +0 -49
  583. package/.agent/skills/frontend/rules/js-min-max-loop.md +0 -82
  584. package/.agent/skills/frontend/rules/js-set-map-lookups.md +0 -24
  585. package/.agent/skills/frontend/rules/js-tosorted-immutable.md +0 -57
  586. package/.agent/skills/frontend/rules/rendering-activity.md +0 -26
  587. package/.agent/skills/frontend/rules/rendering-animate-svg-wrapper.md +0 -47
  588. package/.agent/skills/frontend/rules/rendering-conditional-render.md +0 -40
  589. package/.agent/skills/frontend/rules/rendering-content-visibility.md +0 -38
  590. package/.agent/skills/frontend/rules/rendering-hoist-jsx.md +0 -46
  591. package/.agent/skills/frontend/rules/rendering-hydration-no-flicker.md +0 -82
  592. package/.agent/skills/frontend/rules/rendering-hydration-suppress-warning.md +0 -30
  593. package/.agent/skills/frontend/rules/rendering-svg-precision.md +0 -28
  594. package/.agent/skills/frontend/rules/rendering-usetransition-loading.md +0 -75
  595. package/.agent/skills/frontend/rules/rerender-defer-reads.md +0 -39
  596. package/.agent/skills/frontend/rules/rerender-dependencies.md +0 -45
  597. package/.agent/skills/frontend/rules/rerender-derived-state-no-effect.md +0 -40
  598. package/.agent/skills/frontend/rules/rerender-derived-state.md +0 -29
  599. package/.agent/skills/frontend/rules/rerender-functional-setstate.md +0 -74
  600. package/.agent/skills/frontend/rules/rerender-lazy-state-init.md +0 -58
  601. package/.agent/skills/frontend/rules/rerender-memo-with-default-value.md +0 -38
  602. package/.agent/skills/frontend/rules/rerender-memo.md +0 -44
  603. package/.agent/skills/frontend/rules/rerender-move-effect-to-event.md +0 -45
  604. package/.agent/skills/frontend/rules/rerender-simple-expression-in-memo.md +0 -35
  605. package/.agent/skills/frontend/rules/rerender-transitions.md +0 -40
  606. package/.agent/skills/frontend/rules/rerender-use-ref-transient-values.md +0 -73
  607. package/.agent/skills/frontend/rules/schema.json +0 -34
  608. package/.agent/skills/frontend/rules/server-after-nonblocking.md +0 -73
  609. package/.agent/skills/frontend/rules/server-auth-actions.md +0 -96
  610. package/.agent/skills/frontend/rules/server-cache-lru.md +0 -41
  611. package/.agent/skills/frontend/rules/server-cache-react.md +0 -76
  612. package/.agent/skills/frontend/rules/server-dedup-props.md +0 -65
  613. package/.agent/skills/frontend/rules/server-parallel-fetching.md +0 -83
  614. package/.agent/skills/frontend/rules/server-serialization.md +0 -38
  615. package/.agent/skills/frontend-design/SKILL.md +0 -33
  616. package/.agent/skills/frontend-design/rules/animation-guide.md +0 -331
  617. package/.agent/skills/frontend-design/rules/color-system.md +0 -311
  618. package/.agent/skills/frontend-design/rules/decision-trees.md +0 -418
  619. package/.agent/skills/frontend-design/rules/motion-graphics.md +0 -306
  620. package/.agent/skills/frontend-design/rules/typography-system.md +0 -345
  621. package/.agent/skills/frontend-design/rules/ux-psychology.md +0 -541
  622. package/.agent/skills/frontend-design/rules/visual-effects.md +0 -383
  623. package/.agent/skills/frontend-design/scripts/accessibility_checker.py +0 -183
  624. package/.agent/skills/frontend-design/scripts/ux_audit.py +0 -722
  625. package/.agent/skills/geo-fundamentals/SKILL.md +0 -156
  626. package/.agent/skills/geo-fundamentals/scripts/geo_checker.py +0 -289
  627. package/.agent/skills/git-conventions/.skill-source.json +0 -8
  628. package/.agent/skills/git-conventions/SKILL.md +0 -28
  629. package/.agent/skills/git-conventions/enforcement/commit-validation-rules.md +0 -55
  630. package/.agent/skills/git-conventions/examples/bad-commits.md +0 -201
  631. package/.agent/skills/git-conventions/examples/good-commits.md +0 -135
  632. package/.agent/skills/git-conventions/metadata/commit-config.yaml +0 -79
  633. package/.agent/skills/git-conventions/metadata/intent-triggers.yaml +0 -25
  634. package/.agent/skills/git-conventions/metadata/scope-mapping.yaml +0 -83
  635. package/.agent/skills/git-conventions/resources/BEST_PRACTICES.md +0 -121
  636. package/.agent/skills/git-conventions/resources/references.md +0 -53
  637. package/.agent/skills/git-conventions/scripts/format-commit.js +0 -393
  638. package/.agent/skills/git-conventions/scripts/validate-commit-msg.sh +0 -27
  639. package/.agent/skills/governance/.skill-source.json +0 -8
  640. package/.agent/skills/governance/CHANGELOG.md +0 -222
  641. package/.agent/skills/governance/README.md +0 -250
  642. package/.agent/skills/governance/SKILL.md +0 -199
  643. package/.agent/skills/governance/VERSION +0 -4
  644. package/.agent/skills/governance/examples/violation-backend-mutation/after.tsx +0 -59
  645. package/.agent/skills/governance/examples/violation-backend-mutation/before.tsx +0 -42
  646. package/.agent/skills/governance/examples/violation-backend-mutation/explanation.md +0 -87
  647. package/.agent/skills/governance/examples/violation-chart-injection/after.tsx +0 -99
  648. package/.agent/skills/governance/examples/violation-chart-injection/before.tsx +0 -57
  649. package/.agent/skills/governance/examples/violation-chart-injection/explanation.md +0 -116
  650. package/.agent/skills/governance/knowledge/lessons-learned.yaml +0 -3
  651. package/.agent/skills/governance/metadata/precedence.yaml +0 -117
  652. package/.agent/skills/governance/metadata/scope-map.yaml +0 -156
  653. package/.agent/skills/governance/proposals/v1.1-change-proposal-template.md +0 -197
  654. package/.agent/skills/governance/resources/AUTHORITY_MODEL.md +0 -111
  655. package/.agent/skills/governance/resources/ENFORCEMENT_GUIDE.md +0 -242
  656. package/.agent/skills/governance/resources/LOAD_ORDER.md +0 -82
  657. package/.agent/skills/governance/rules/constitution/coinpika-master-constitution.md +0 -206
  658. package/.agent/skills/governance/rules/doctrines/architecture/coinpika-architecture-doctrine.md +0 -184
  659. package/.agent/skills/governance/rules/doctrines/backend/coinpika-backend-data-engine-doctrine.md +0 -214
  660. package/.agent/skills/governance/rules/doctrines/commercial/coinpika-commercial-guardrails-doctrine.md +0 -192
  661. package/.agent/skills/governance/rules/doctrines/data/coinpika-chart-data-doctrine.md +0 -198
  662. package/.agent/skills/governance/rules/doctrines/frontend/coinpika-frontend-mobile-doctrine.md +0 -165
  663. package/.agent/skills/governance/rules/doctrines/frontend/coinpika-swipe-tabs-doctrine.md +0 -172
  664. package/.agent/skills/governance/rules/doctrines/learning/coinpika-learning-engine-doctrine.md +0 -188
  665. package/.agent/skills/governance/rules/doctrines/performance/coinpika-performance-doctrine.md +0 -176
  666. package/.agent/skills/governance/rules/doctrines/review/coinpika-code-review-doctrine.md +0 -170
  667. package/.agent/skills/governance/rules/enforcement/agents/coinpika-agent-enforcement-protocol.md +0 -214
  668. package/.agent/skills/governance/rules/enforcement/agents/coinpika-agent-system-prompt.md +0 -192
  669. package/.agent/skills/governance/rules/enforcement/checklists/backend-api-review-checklist.md +0 -127
  670. package/.agent/skills/governance/rules/enforcement/checklists/chart-component-review-checklist.md +0 -143
  671. package/.agent/skills/governance/rules/enforcement/checklists/coinpika-frontend-gesture-review-checklist.md +0 -190
  672. package/.agent/skills/governance/rules/enforcement/playbooks/doctrine-violation-playbook.md +0 -232
  673. package/.agent/skills/governance/scripts/audit_pr.js +0 -218
  674. package/.agent/skills/governance/scripts/learn.js +0 -161
  675. package/.agent/skills/governance/scripts/validate_doctrine.js +0 -286
  676. package/.agent/skills/i18n-localization/SKILL.md +0 -154
  677. package/.agent/skills/i18n-localization/scripts/i18n_checker.py +0 -241
  678. package/.agent/skills/intelligent-routing/SKILL.md +0 -335
  679. package/.agent/skills/lint-and-validate/SKILL.md +0 -45
  680. package/.agent/skills/lint-and-validate/scripts/lint_runner.py +0 -172
  681. package/.agent/skills/lint-and-validate/scripts/type_coverage.py +0 -173
  682. package/.agent/skills/mcp-builder/SKILL.md +0 -176
  683. package/.agent/skills/mermaidjs-v11/SKILL.md +0 -115
  684. package/.agent/skills/mermaidjs-v11/references/cli-usage.md +0 -228
  685. package/.agent/skills/mermaidjs-v11/references/configuration.md +0 -232
  686. package/.agent/skills/mermaidjs-v11/references/diagram-types.md +0 -315
  687. package/.agent/skills/mermaidjs-v11/references/examples.md +0 -344
  688. package/.agent/skills/mermaidjs-v11/references/integration.md +0 -310
  689. package/.agent/skills/mobile-design/references/anti-patterns.md +0 -46
  690. package/.agent/skills/nextjs-best-practices/SKILL.md +0 -203
  691. package/.agent/skills/nodejs-best-practices/SKILL.md +0 -76
  692. package/.agent/skills/nodejs-best-practices/references/architecture-patterns.md +0 -34
  693. package/.agent/skills/nodejs-best-practices/references/async-patterns.md +0 -32
  694. package/.agent/skills/nodejs-best-practices/references/error-handling.md +0 -39
  695. package/.agent/skills/nodejs-best-practices/references/framework-selection.md +0 -39
  696. package/.agent/skills/nodejs-best-practices/references/runtime-modules.md +0 -33
  697. package/.agent/skills/nodejs-best-practices/references/testing-strategy.md +0 -25
  698. package/.agent/skills/nodejs-best-practices/references/validation-security.md +0 -45
  699. package/.agent/skills/parallel-agents/SKILL.md +0 -175
  700. package/.agent/skills/performance-profiling/SKILL.md +0 -143
  701. package/.agent/skills/performance-profiling/scripts/lighthouse_audit.py +0 -76
  702. package/.agent/skills/plan-writing/SKILL.md +0 -152
  703. package/.agent/skills/powershell-windows/SKILL.md +0 -167
  704. package/.agent/skills/problem-solving/ABOUT.md +0 -40
  705. package/.agent/skills/problem-solving/SKILL.md +0 -69
  706. package/.agent/skills/problem-solving/collision-zone-thinking/SKILL.md +0 -62
  707. package/.agent/skills/problem-solving/inversion-exercise/SKILL.md +0 -58
  708. package/.agent/skills/problem-solving/meta-pattern-recognition/SKILL.md +0 -54
  709. package/.agent/skills/problem-solving/scale-game/SKILL.md +0 -63
  710. package/.agent/skills/problem-solving/simplification-cascades/SKILL.md +0 -76
  711. package/.agent/skills/problem-solving/when-stuck/SKILL.md +0 -88
  712. package/.agent/skills/python-patterns/SKILL.md +0 -80
  713. package/.agent/skills/python-patterns/references/async-patterns.md +0 -57
  714. package/.agent/skills/python-patterns/references/django-patterns.md +0 -41
  715. package/.agent/skills/python-patterns/references/fastapi-patterns.md +0 -54
  716. package/.agent/skills/python-patterns/references/framework-selection.md +0 -39
  717. package/.agent/skills/python-patterns/references/project-structure.md +0 -80
  718. package/.agent/skills/python-patterns/references/testing-patterns.md +0 -34
  719. package/.agent/skills/python-patterns/references/type-hints.md +0 -51
  720. package/.agent/skills/react-patterns/SKILL.md +0 -198
  721. package/.agent/skills/red-team-tactics/SKILL.md +0 -199
  722. package/.agent/skills/seo-fundamentals/SKILL.md +0 -129
  723. package/.agent/skills/seo-fundamentals/scripts/seo_checker.py +0 -219
  724. package/.agent/skills/sequential-thinking/README.md +0 -118
  725. package/.agent/skills/sequential-thinking/SKILL.md +0 -93
  726. package/.agent/skills/sequential-thinking/references/advanced.md +0 -122
  727. package/.agent/skills/sequential-thinking/references/examples.md +0 -274
  728. package/.agent/skills/server-management/SKILL.md +0 -161
  729. package/.agent/skills/skill-creator/LICENSE.txt +0 -202
  730. package/.agent/skills/skill-creator/SKILL.md +0 -237
  731. package/.agent/skills/skill-creator/scripts/init_skill.py +0 -303
  732. package/.agent/skills/skill-creator/scripts/package_skill.py +0 -110
  733. package/.agent/skills/skill-creator/scripts/quick_validate.py +0 -65
  734. package/.agent/skills/systematic-debugging/SKILL.md +0 -109
  735. package/.agent/skills/tailwind-patterns/SKILL.md +0 -269
  736. package/.agent/skills/tdd-workflow/SKILL.md +0 -149
  737. package/.agent/skills/testing-patterns/SKILL.md +0 -178
  738. package/.agent/skills/testing-patterns/scripts/test_runner.py +0 -219
  739. package/.agent/skills/vulnerability-scanner/SKILL.md +0 -276
  740. package/.agent/skills/vulnerability-scanner/checklists.md +0 -121
  741. package/.agent/skills/vulnerability-scanner/scripts/security_scan.py +0 -458
  742. package/.agent/skills/webapp-testing/SKILL.md +0 -187
  743. package/.agent/skills/webapp-testing/scripts/playwright_runner.py +0 -173
  744. package/.editorconfig +0 -21
  745. package/.github/workflows/release.yml +0 -39
  746. package/docs/PLAN-consolidation-final.md +0 -14
  747. package/docs/PLAN-integration.md +0 -28
  748. package/docs/PLAN-rebrand-agent-skills-kit.md +0 -104
  749. package/docs/PLAN-refactor.md +0 -48
  750. package/docs/PYTHON_SCRIPTS.md +0 -55
  751. package/docs/awf-user-guide.md +0 -436
  752. package/packages/cli/bin/ag-smart.v1.js +0 -78
  753. package/packages/cli/lib/audit.v2.js +0 -151
  754. package/packages/cli/lib/auto_preview.py +0 -148
  755. package/packages/cli/lib/checklist.py +0 -222
  756. package/packages/cli/lib/learn.v2.js +0 -255
  757. package/packages/cli/lib/recall.v2.js +0 -252
  758. package/packages/cli/lib/session_manager.py +0 -120
  759. package/packages/cli/lib/verify_all.py +0 -327
  760. /package/.agent/skills/{debugging → debug-pro}/defense-in-depth/SKILL.md +0 -0
  761. /package/.agent/skills/{debugging → debug-pro}/root-cause-tracing/SKILL.md +0 -0
  762. /package/.agent/skills/{debugging → debug-pro}/root-cause-tracing/find-polluter.sh +0 -0
  763. /package/.agent/skills/{debugging → debug-pro}/verification-before-completion/SKILL.md +0 -0
  764. /package/.agent/skills/mobile-design/{references/decision-trees.md → decision-trees.md} +0 -0
  765. /package/.agent/skills/mobile-design/{references/mobile-backend.md → mobile-backend.md} +0 -0
  766. /package/.agent/skills/mobile-design/{references/mobile-color-system.md → mobile-color-system.md} +0 -0
  767. /package/.agent/skills/mobile-design/{references/mobile-debugging.md → mobile-debugging.md} +0 -0
  768. /package/.agent/skills/mobile-design/{references/mobile-design-thinking.md → mobile-design-thinking.md} +0 -0
  769. /package/.agent/skills/mobile-design/{references/mobile-navigation.md → mobile-navigation.md} +0 -0
  770. /package/.agent/skills/mobile-design/{references/mobile-performance.md → mobile-performance.md} +0 -0
  771. /package/.agent/skills/mobile-design/{references/mobile-testing.md → mobile-testing.md} +0 -0
  772. /package/.agent/skills/mobile-design/{references/mobile-typography.md → mobile-typography.md} +0 -0
  773. /package/.agent/skills/mobile-design/{references/platform-android.md → platform-android.md} +0 -0
  774. /package/.agent/skills/mobile-design/{references/platform-ios.md → platform-ios.md} +0 -0
  775. /package/.agent/skills/mobile-design/{references/touch-psychology.md → touch-psychology.md} +0 -0
  776. /package/.agent/{.shared/ui-ux-pro-max → skills/studio}/data/charts.csv +0 -0
  777. /package/.agent/{.shared/ui-ux-pro-max → skills/studio}/data/colors.csv +0 -0
  778. /package/.agent/{.shared/ui-ux-pro-max → skills/studio}/data/icons.csv +0 -0
  779. /package/.agent/{.shared/ui-ux-pro-max → skills/studio}/data/landing.csv +0 -0
  780. /package/.agent/{.shared/ui-ux-pro-max → skills/studio}/data/products.csv +0 -0
  781. /package/.agent/{.shared/ui-ux-pro-max → skills/studio}/data/prompts.csv +0 -0
  782. /package/.agent/{.shared/ui-ux-pro-max → skills/studio}/data/react-performance.csv +0 -0
  783. /package/.agent/{.shared/ui-ux-pro-max → skills/studio}/data/stacks/flutter.csv +0 -0
  784. /package/.agent/{.shared/ui-ux-pro-max → skills/studio}/data/stacks/html-tailwind.csv +0 -0
  785. /package/.agent/{.shared/ui-ux-pro-max → skills/studio}/data/stacks/jetpack-compose.csv +0 -0
  786. /package/.agent/{.shared/ui-ux-pro-max → skills/studio}/data/stacks/nextjs.csv +0 -0
  787. /package/.agent/{.shared/ui-ux-pro-max → skills/studio}/data/stacks/nuxt-ui.csv +0 -0
  788. /package/.agent/{.shared/ui-ux-pro-max → skills/studio}/data/stacks/nuxtjs.csv +0 -0
  789. /package/.agent/{.shared/ui-ux-pro-max → skills/studio}/data/stacks/react-native.csv +0 -0
  790. /package/.agent/{.shared/ui-ux-pro-max → skills/studio}/data/stacks/react.csv +0 -0
  791. /package/.agent/{.shared/ui-ux-pro-max → skills/studio}/data/stacks/shadcn.csv +0 -0
  792. /package/.agent/{.shared/ui-ux-pro-max → skills/studio}/data/stacks/svelte.csv +0 -0
  793. /package/.agent/{.shared/ui-ux-pro-max → skills/studio}/data/stacks/swiftui.csv +0 -0
  794. /package/.agent/{.shared/ui-ux-pro-max → skills/studio}/data/stacks/vue.csv +0 -0
  795. /package/.agent/{.shared/ui-ux-pro-max → skills/studio}/data/typography.csv +0 -0
  796. /package/.agent/{.shared/ui-ux-pro-max → skills/studio}/data/ui-reasoning.csv +0 -0
  797. /package/.agent/{.shared/ui-ux-pro-max → skills/studio}/data/ux-guidelines.csv +0 -0
  798. /package/.agent/{.shared/ui-ux-pro-max → skills/studio}/data/web-interface.csv +0 -0
  799. /package/docs/{PATTERNS_REFERENCE.md → archive/patterns-anthropic.md} +0 -0
  800. /package/docs/{context-engineering-guide.md → guides/context-engineering.md} +0 -0
  801. /package/{VERSIONING.md → docs/guides/versioning.md} +0 -0
@@ -0,0 +1,184 @@
1
+ ---
2
+ name: mobile-security-coder
3
+ description: Expert in secure mobile coding practices specializing in input
4
+ validation, WebView security, and mobile-specific security patterns. Use
5
+ PROACTIVELY for mobile security implementations or mobile security code
6
+ reviews.
7
+ metadata:
8
+ model: sonnet
9
+ ---
10
+
11
+ ## Use this skill when
12
+
13
+ - Working on mobile security coder tasks or workflows
14
+ - Needing guidance, best practices, or checklists for mobile security coder
15
+
16
+ ## Do not use this skill when
17
+
18
+ - The task is unrelated to mobile security coder
19
+ - You need a different domain or tool outside this scope
20
+
21
+ ## Instructions
22
+
23
+ - Clarify goals, constraints, and required inputs.
24
+ - Apply relevant best practices and validate outcomes.
25
+ - Provide actionable steps and verification.
26
+ - If detailed examples are required, open `resources/implementation-playbook.md`.
27
+
28
+ You are a mobile security coding expert specializing in secure mobile development practices, mobile-specific vulnerabilities, and secure mobile architecture patterns.
29
+
30
+ ## Purpose
31
+ Expert mobile security developer with comprehensive knowledge of mobile security practices, platform-specific vulnerabilities, and secure mobile application development. Masters input validation, WebView security, secure data storage, and mobile authentication patterns. Specializes in building security-first mobile applications that protect sensitive data and resist mobile-specific attack vectors.
32
+
33
+ ## When to Use vs Security Auditor
34
+ - **Use this agent for**: Hands-on mobile security coding, implementation of secure mobile patterns, mobile-specific vulnerability fixes, WebView security configuration, mobile authentication implementation
35
+ - **Use security-auditor for**: High-level security audits, compliance assessments, DevSecOps pipeline design, threat modeling, security architecture reviews, penetration testing planning
36
+ - **Key difference**: This agent focuses on writing secure mobile code, while security-auditor focuses on auditing and assessing security posture
37
+
38
+ ## Capabilities
39
+
40
+ ### General Secure Coding Practices
41
+ - **Input validation and sanitization**: Mobile-specific input validation, touch input security, gesture validation
42
+ - **Injection attack prevention**: SQL injection in mobile databases, NoSQL injection, command injection in mobile contexts
43
+ - **Error handling security**: Secure error messages on mobile, crash reporting security, debug information protection
44
+ - **Sensitive data protection**: Mobile data classification, secure storage patterns, memory protection
45
+ - **Secret management**: Mobile credential storage, keychain/keystore integration, biometric-protected secrets
46
+ - **Output encoding**: Context-aware encoding for mobile UI, WebView content encoding, push notification security
47
+
48
+ ### Mobile Data Storage Security
49
+ - **Secure local storage**: SQLite encryption, Core Data protection, Realm security configuration
50
+ - **Keychain and Keystore**: Secure credential storage, biometric authentication integration, key derivation
51
+ - **File system security**: Secure file operations, directory permissions, temporary file cleanup
52
+ - **Cache security**: Secure caching strategies, cache encryption, sensitive data exclusion
53
+ - **Backup security**: Backup exclusion for sensitive files, encrypted backup handling, cloud backup protection
54
+ - **Memory protection**: Memory dump prevention, secure memory allocation, buffer overflow protection
55
+
56
+ ### WebView Security Implementation
57
+ - **URL allowlisting**: Trusted domain restrictions, URL validation, protocol enforcement (HTTPS)
58
+ - **JavaScript controls**: JavaScript disabling by default, selective JavaScript enabling, script injection prevention
59
+ - **Content Security Policy**: CSP implementation in WebViews, script-src restrictions, unsafe-inline prevention
60
+ - **Cookie and session management**: Secure cookie handling, session isolation, cross-WebView security
61
+ - **File access restrictions**: Local file access prevention, asset loading security, sandboxing
62
+ - **User agent security**: Custom user agent strings, fingerprinting prevention, privacy protection
63
+ - **Data cleanup**: Regular WebView cache and cookie clearing, session data cleanup, temporary file removal
64
+
65
+ ### HTTPS and Network Security
66
+ - **TLS enforcement**: HTTPS-only communication, certificate pinning, SSL/TLS configuration
67
+ - **Certificate validation**: Certificate chain validation, self-signed certificate rejection, CA trust management
68
+ - **Man-in-the-middle protection**: Certificate pinning implementation, network security monitoring
69
+ - **Protocol security**: HTTP Strict Transport Security, secure protocol selection, downgrade protection
70
+ - **Network error handling**: Secure network error messages, connection failure handling, retry security
71
+ - **Proxy and VPN detection**: Network environment validation, security policy enforcement
72
+
73
+ ### Mobile Authentication and Authorization
74
+ - **Biometric authentication**: Touch ID, Face ID, fingerprint authentication, fallback mechanisms
75
+ - **Multi-factor authentication**: TOTP integration, hardware token support, SMS-based 2FA security
76
+ - **OAuth implementation**: Mobile OAuth flows, PKCE implementation, deep link security
77
+ - **JWT handling**: Secure token storage, token refresh mechanisms, token validation
78
+ - **Session management**: Mobile session lifecycle, background/foreground transitions, session timeout
79
+ - **Device binding**: Device fingerprinting, hardware-based authentication, root/jailbreak detection
80
+
81
+ ### Platform-Specific Security
82
+ - **iOS security**: Keychain Services, App Transport Security, iOS permission model, sandboxing
83
+ - **Android security**: Android Keystore, Network Security Config, permission handling, ProGuard/R8 obfuscation
84
+ - **Cross-platform considerations**: React Native security, Flutter security, Xamarin security patterns
85
+ - **Native module security**: Bridge security, native code validation, memory safety
86
+ - **Permission management**: Runtime permissions, privacy permissions, location/camera access security
87
+ - **App lifecycle security**: Background/foreground transitions, app state protection, memory clearing
88
+
89
+ ### API and Backend Communication
90
+ - **API security**: Mobile API authentication, rate limiting, request validation
91
+ - **Request/response validation**: Schema validation, data type enforcement, size limits
92
+ - **Secure headers**: Mobile-specific security headers, CORS handling, content type validation
93
+ - **Error response handling**: Secure error messages, information leakage prevention, debug mode protection
94
+ - **Offline synchronization**: Secure data sync, conflict resolution security, cached data protection
95
+ - **Push notification security**: Secure notification handling, payload encryption, token management
96
+
97
+ ### Code Protection and Obfuscation
98
+ - **Code obfuscation**: ProGuard, R8, iOS obfuscation, symbol stripping
99
+ - **Anti-tampering**: Runtime application self-protection (RASP), integrity checks, debugger detection
100
+ - **Root/jailbreak detection**: Device security validation, security policy enforcement, graceful degradation
101
+ - **Binary protection**: Anti-reverse engineering, packing, dynamic analysis prevention
102
+ - **Asset protection**: Resource encryption, embedded asset security, intellectual property protection
103
+ - **Debug protection**: Debug mode detection, development feature disabling, production hardening
104
+
105
+ ### Mobile-Specific Vulnerabilities
106
+ - **Deep link security**: URL scheme validation, intent filter security, parameter sanitization
107
+ - **WebView vulnerabilities**: JavaScript bridge security, file scheme access, universal XSS prevention
108
+ - **Data leakage**: Log sanitization, screenshot protection, memory dump prevention
109
+ - **Side-channel attacks**: Timing attack prevention, cache-based attacks, acoustic/electromagnetic leakage
110
+ - **Physical device security**: Screen recording prevention, screenshot blocking, shoulder surfing protection
111
+ - **Backup and recovery**: Secure backup handling, recovery key management, data restoration security
112
+
113
+ ### Cross-Platform Security
114
+ - **React Native security**: Bridge security, native module validation, JavaScript thread protection
115
+ - **Flutter security**: Platform channel security, native plugin validation, Dart VM protection
116
+ - **Xamarin security**: Managed/native interop security, assembly protection, runtime security
117
+ - **Cordova/PhoneGap**: Plugin security, WebView configuration, native bridge protection
118
+ - **Unity mobile**: Asset bundle security, script compilation security, native plugin integration
119
+ - **Progressive Web Apps**: PWA security on mobile, service worker security, web manifest validation
120
+
121
+ ### Privacy and Compliance
122
+ - **Data privacy**: GDPR compliance, CCPA compliance, data minimization, consent management
123
+ - **Location privacy**: Location data protection, precise location limiting, background location security
124
+ - **Biometric data**: Biometric template protection, privacy-preserving authentication, data retention
125
+ - **Personal data handling**: PII protection, data encryption, access logging, data deletion
126
+ - **Third-party SDKs**: SDK privacy assessment, data sharing controls, vendor security validation
127
+ - **Analytics privacy**: Privacy-preserving analytics, data anonymization, opt-out mechanisms
128
+
129
+ ### Testing and Validation
130
+ - **Security testing**: Mobile penetration testing, SAST/DAST for mobile, dynamic analysis
131
+ - **Runtime protection**: Runtime application self-protection, behavior monitoring, anomaly detection
132
+ - **Vulnerability scanning**: Dependency scanning, known vulnerability detection, patch management
133
+ - **Code review**: Security-focused code review, static analysis integration, peer review processes
134
+ - **Compliance testing**: Security standard compliance, regulatory requirement validation, audit preparation
135
+ - **User acceptance testing**: Security scenario testing, social engineering resistance, user education
136
+
137
+ ## Behavioral Traits
138
+ - Validates and sanitizes all inputs including touch gestures and sensor data
139
+ - Enforces HTTPS-only communication with certificate pinning
140
+ - Implements comprehensive WebView security with JavaScript disabled by default
141
+ - Uses secure storage mechanisms with encryption and biometric protection
142
+ - Applies platform-specific security features and follows security guidelines
143
+ - Implements defense-in-depth with multiple security layers
144
+ - Protects against mobile-specific threats like root/jailbreak detection
145
+ - Considers privacy implications in all data handling operations
146
+ - Uses secure coding practices for cross-platform development
147
+ - Maintains security throughout the mobile app lifecycle
148
+
149
+ ## Knowledge Base
150
+ - Mobile security frameworks and best practices (OWASP MASVS)
151
+ - Platform-specific security features (iOS/Android security models)
152
+ - WebView security configuration and CSP implementation
153
+ - Mobile authentication and biometric integration patterns
154
+ - Secure data storage and encryption techniques
155
+ - Network security and certificate pinning implementation
156
+ - Mobile-specific vulnerability patterns and prevention
157
+ - Cross-platform security considerations
158
+ - Privacy regulations and compliance requirements
159
+ - Mobile threat landscape and attack vectors
160
+
161
+ ## Response Approach
162
+ 1. **Assess mobile security requirements** including platform constraints and threat model
163
+ 2. **Implement input validation** with mobile-specific considerations and touch input security
164
+ 3. **Configure WebView security** with HTTPS enforcement and JavaScript controls
165
+ 4. **Set up secure data storage** with encryption and platform-specific protection mechanisms
166
+ 5. **Implement authentication** with biometric integration and multi-factor support
167
+ 6. **Configure network security** with certificate pinning and HTTPS enforcement
168
+ 7. **Apply code protection** with obfuscation and anti-tampering measures
169
+ 8. **Handle privacy compliance** with data protection and consent management
170
+ 9. **Test security controls** with mobile-specific testing tools and techniques
171
+
172
+ ## Example Interactions
173
+ - "Implement secure WebView configuration with HTTPS enforcement and CSP"
174
+ - "Set up biometric authentication with secure fallback mechanisms"
175
+ - "Create secure local storage with encryption for sensitive user data"
176
+ - "Implement certificate pinning for API communication security"
177
+ - "Configure deep link security with URL validation and parameter sanitization"
178
+ - "Set up root/jailbreak detection with graceful security degradation"
179
+ - "Implement secure cross-platform data sharing between native and WebView"
180
+ - "Create privacy-compliant analytics with data minimization and consent"
181
+ - "Implement secure React Native bridge communication with input validation"
182
+ - "Configure Flutter platform channel security with message validation"
183
+ - "Set up secure Xamarin native interop with assembly protection"
184
+ - "Implement secure Cordova plugin communication with sandboxing"
@@ -0,0 +1,397 @@
1
+ ---
2
+ name: observability
3
+ description: >-
4
+ OpenTelemetry-based observability setup for production applications. Unified instrumentation for logs, metrics, and traces.
5
+ Triggers on: monitoring, observability, OpenTelemetry, telemetry, instrumentation.
6
+ Coordinates with: logging, metrics, tracing, incident-response.
7
+ allowed-tools: Read, Write, Glob, Bash
8
+ metadata:
9
+ category: "devops"
10
+ success_metrics: "SDK initialized, instrumentation active, telemetry exported"
11
+ coordinates_with: "logging, metrics, tracing, incident-response"
12
+ ---
13
+
14
+ # Observability Setup
15
+
16
+ > Unified telemetry foundation using OpenTelemetry
17
+
18
+ ## 🎯 Purpose
19
+
20
+ Setup OpenTelemetry SDK for automatic instrumentation and telemetry export to observability platforms (Datadog, Sentry, New Relic, Grafana Cloud).
21
+
22
+ ---
23
+
24
+ ## 1. Core Concepts
25
+
26
+ ### The Three Pillars
27
+
28
+ | Pillar | Purpose | Example |
29
+ | ----------- | ---------------------- | --------------------- |
30
+ | **Logs** | Events with context | "User login failed" |
31
+ | **Metrics** | Numerical measurements | "CPU usage: 45%" |
32
+ | **Traces** | Request flow | "API call took 250ms" |
33
+
34
+ ### OpenTelemetry Advantages
35
+
36
+ | Aspect | Benefit |
37
+ | -------------------- | ------------------------------ |
38
+ | Vendor-agnostic | Switch providers easily |
39
+ | Auto-instrumentation | No manual logging for HTTP, DB |
40
+ | Correlation | Link logs ↔ metrics ↔ traces |
41
+ | Standard | W3C Trace Context |
42
+
43
+ ---
44
+
45
+ ## 2. Setup Process
46
+
47
+ ### Step 1: Install Dependencies
48
+
49
+ **Node.js:**
50
+
51
+ ```bash
52
+ npm install @opentelemetry/sdk-node \
53
+ @opentelemetry/auto-instrumentations-node \
54
+ @opentelemetry/exporter-trace-otlp-http \
55
+ @opentelemetry/exporter-metrics-otlp-http
56
+ ```
57
+
58
+ **Python:**
59
+
60
+ ```bash
61
+ pip install opentelemetry-sdk \
62
+ opentelemetry-instrumentation \
63
+ opentelemetry-exporter-otlp
64
+ ```
65
+
66
+ ### Step 2: Initialize SDK
67
+
68
+ **Node.js (lib/observability/setup.ts):**
69
+
70
+ ```typescript
71
+ import { NodeSDK } from "@opentelemetry/sdk-node";
72
+ import { getNodeAutoInstrumentations } from "@opentelemetry/auto-instrumentations-node";
73
+ import { OTLPTraceExporter } from "@opentelemetry/exporter-trace-otlp-http";
74
+ import { OTLPMetricExporter } from "@opentelemetry/exporter-metrics-otlp-http";
75
+ import { PeriodicExportingMetricReader } from "@opentelemetry/sdk-metrics";
76
+
77
+ const sdk = new NodeSDK({
78
+ serviceName: process.env.SERVICE_NAME || "my-app",
79
+ traceExporter: new OTLPTraceExporter({
80
+ url: process.env.OTEL_EXPORTER_OTLP_ENDPOINT || "http://localhost:4318/v1/traces",
81
+ }),
82
+ metricReader: new PeriodicExportingMetricReader({
83
+ exporter: new OTLPMetricExporter({
84
+ url: process.env.OTEL_EXPORTER_OTLP_ENDPOINT || "http://localhost:4318/v1/metrics",
85
+ }),
86
+ exportIntervalMillis: 60000, // 1 minute
87
+ }),
88
+ instrumentations: [
89
+ getNodeAutoInstrumentations({
90
+ "@opentelemetry/instrumentation-http": { enabled: true },
91
+ "@opentelemetry/instrumentation-express": { enabled: true },
92
+ "@opentelemetry/instrumentation-prisma": { enabled: true },
93
+ "@opentelemetry/instrumentation-redis": { enabled: true },
94
+ }),
95
+ ],
96
+ resource: {
97
+ attributes: {
98
+ "service.name": process.env.SERVICE_NAME,
99
+ "deployment.environment": process.env.NODE_ENV || "development",
100
+ "service.version": process.env.APP_VERSION || "1.0.0",
101
+ },
102
+ },
103
+ });
104
+
105
+ sdk.start();
106
+
107
+ // Graceful shutdown
108
+ process.on("SIGTERM", () => {
109
+ sdk
110
+ .shutdown()
111
+ .then(() => console.log("Telemetry terminated"))
112
+ .catch((error) => console.error("Error terminating telemetry", error))
113
+ .finally(() => process.exit(0));
114
+ });
115
+
116
+ export default sdk;
117
+ ```
118
+
119
+ ### Step 3: Environment Variables
120
+
121
+ ```env
122
+ # Required
123
+ SERVICE_NAME=my-production-app
124
+ NODE_ENV=production
125
+ APP_VERSION=1.2.0
126
+
127
+ # OpenTelemetry
128
+ OTEL_EXPORTER_OTLP_ENDPOINT=https://api.example.com/v1
129
+ OTEL_EXPORTER_OTLP_HEADERS="api-key=your-key"
130
+
131
+ # Provider-specific (choose one)
132
+ # Datadog
133
+ DD_API_KEY=your-datadog-key
134
+ DD_SITE=datadoghq.com
135
+
136
+ # New Relic
137
+ NEW_RELIC_LICENSE_KEY=your-license-key
138
+
139
+ # Sentry
140
+ SENTRY_DSN=your-sentry-dsn
141
+ ```
142
+
143
+ ---
144
+
145
+ ## 3. Provider Integration
146
+
147
+ ### Datadog
148
+
149
+ ```typescript
150
+ import { DatadogExporter } from "@opentelemetry/exporter-datadog";
151
+
152
+ const sdk = new NodeSDK({
153
+ traceExporter: new DatadogExporter({
154
+ agentUrl: process.env.DD_AGENT_URL || "http://localhost:8126",
155
+ service: process.env.SERVICE_NAME,
156
+ env: process.env.NODE_ENV,
157
+ }),
158
+ });
159
+ ```
160
+
161
+ ### Sentry
162
+
163
+ ```typescript
164
+ import * as Sentry from "@sentry/node";
165
+
166
+ Sentry.init({
167
+ dsn: process.env.SENTRY_DSN,
168
+ tracesSampleRate: 0.1, // 10% sampling in production
169
+ environment: process.env.NODE_ENV,
170
+ release: process.env.APP_VERSION,
171
+ });
172
+ ```
173
+
174
+ ### Grafana Cloud
175
+
176
+ ```typescript
177
+ const sdk = new NodeSDK({
178
+ traceExporter: new OTLPTraceExporter({
179
+ url: "https://otlp-gateway-prod.grafana.net/otlp/v1/traces",
180
+ headers: {
181
+ Authorization: `Basic ${Buffer.from(`${process.env.GRAFANA_INSTANCE_ID}:${process.env.GRAFANA_API_KEY}`).toString("base64")}`,
182
+ },
183
+ }),
184
+ });
185
+ ```
186
+
187
+ ---
188
+
189
+ ## 4. Auto-Instrumentation
190
+
191
+ ### What Gets Instrumented Automatically
192
+
193
+ | Library | Captured Data |
194
+ | ----------- | -------------------------- |
195
+ | **HTTP** | Request/response, status |
196
+ | **Express** | Routes, middleware |
197
+ | **Prisma** | Database queries, duration |
198
+ | **Redis** | Commands, latency |
199
+ | **Fetch** | External API calls |
200
+ | **Next.js** | Page loads, API routes |
201
+
202
+ ### Custom Instrumentation
203
+
204
+ ```typescript
205
+ import { trace } from "@opentelemetry/api";
206
+
207
+ const tracer = trace.getTracer("my-app");
208
+
209
+ export async function processOrder(orderId: string) {
210
+ return tracer.startActiveSpan("process-order", async (span) => {
211
+ try {
212
+ span.setAttribute("order.id", orderId);
213
+
214
+ const order = await fetchOrder(orderId);
215
+ span.setAttribute("order.total", order.total);
216
+
217
+ await processPayment(order);
218
+
219
+ span.setStatus({ code: SpanStatusCode.OK });
220
+ return order;
221
+ } catch (error) {
222
+ span.recordException(error);
223
+ span.setStatus({
224
+ code: SpanStatusCode.ERROR,
225
+ message: error.message,
226
+ });
227
+ throw error;
228
+ } finally {
229
+ span.end();
230
+ }
231
+ });
232
+ }
233
+ ```
234
+
235
+ ---
236
+
237
+ ## 5. Resource Attributes
238
+
239
+ ### Standard Attributes
240
+
241
+ ```typescript
242
+ resource: {
243
+ attributes: {
244
+ // Service identification
245
+ 'service.name': 'my-app',
246
+ 'service.version': '1.2.0',
247
+ 'service.namespace': 'production',
248
+
249
+ // Environment
250
+ 'deployment.environment': 'production',
251
+ 'cloud.provider': 'aws',
252
+ 'cloud.region': 'us-east-1',
253
+
254
+ // Host information
255
+ 'host.name': 'web-server-01',
256
+ 'host.type': 't3.medium',
257
+
258
+ // Custom
259
+ 'team': 'backend',
260
+ 'cost-center': 'engineering',
261
+ }
262
+ }
263
+ ```
264
+
265
+ ---
266
+
267
+ ## 6. Sampling Strategies
268
+
269
+ ### By Environment
270
+
271
+ | Environment | Sampling Rate | Reason |
272
+ | ----------- | ------------- | ------------------- |
273
+ | Development | 100% | Debug all requests |
274
+ | Staging | 50% | Cost vs. visibility |
275
+ | Production | 1-10% | Cost optimization |
276
+
277
+ ### Configuration
278
+
279
+ ```typescript
280
+ import { ParentBasedSampler, TraceIdRatioBasedSampler } from "@opentelemetry/sdk-trace-base";
281
+
282
+ const sampler = new ParentBasedSampler({
283
+ root: new TraceIdRatioBasedSampler(process.env.NODE_ENV === "production" ? 0.1 : 1.0),
284
+ });
285
+
286
+ const sdk = new NodeSDK({
287
+ sampler,
288
+ // ...
289
+ });
290
+ ```
291
+
292
+ ---
293
+
294
+ ## 7. Health Checks
295
+
296
+ ### Verify Telemetry Export
297
+
298
+ ```typescript
299
+ // lib/observability/health.ts
300
+ export async function checkTelemetryHealth() {
301
+ const checks = {
302
+ sdkInitialized: false,
303
+ exporterConnected: false,
304
+ instrumentationActive: false,
305
+ };
306
+
307
+ try {
308
+ // Check SDK
309
+ if (sdk) checks.sdkInitialized = true;
310
+
311
+ // Check exporter (send test span)
312
+ const tracer = trace.getTracer("health-check");
313
+ await tracer.startActiveSpan("test-span", async (span) => {
314
+ span.end();
315
+ });
316
+ checks.exporterConnected = true;
317
+
318
+ // Check instrumentation
319
+ const instrumentations = getNodeAutoInstrumentations();
320
+ checks.instrumentationActive = instrumentations.length > 0;
321
+
322
+ return {
323
+ healthy: Object.values(checks).every(Boolean),
324
+ checks,
325
+ };
326
+ } catch (error) {
327
+ return {
328
+ healthy: false,
329
+ checks,
330
+ error: error.message,
331
+ };
332
+ }
333
+ }
334
+ ```
335
+
336
+ ---
337
+
338
+ ## 8. Best Practices
339
+
340
+ ### Do's ✅
341
+
342
+ | Practice | Benefit |
343
+ | ------------------------ | ------------------------ |
344
+ | Use semantic conventions | Standard attribute names |
345
+ | Sample production traces | Reduce costs |
346
+ | Add resource attributes | Context for debugging |
347
+ | Graceful shutdown | Don't lose last data |
348
+
349
+ ### Don'ts ❌
350
+
351
+ | Anti-Pattern | Why |
352
+ | ---------------------- | ----------------------- |
353
+ | Log in spans | Duplication, use events |
354
+ | Too many custom spans | Performance overhead |
355
+ | Sensitive data in tags | Security risk |
356
+ | Ignore errors | Silent failures |
357
+
358
+ ---
359
+
360
+ ## 9. Troubleshooting
361
+
362
+ ### Common Issues
363
+
364
+ | Symptom | Cause | Fix |
365
+ | -------------------- | ------------------------- | -------------------------- |
366
+ | No data in dashboard | Exporter misconfigured | Check endpoint, API key |
367
+ | High memory usage | Sample rate too high | Reduce sampling |
368
+ | Missing HTTP traces | SDK not initialized early | Import before app code |
369
+ | Broken trace context | Propagation disabled | Enable context propagation |
370
+
371
+ ### Debug Mode
372
+
373
+ ```typescript
374
+ import { diag, DiagConsoleLogger, DiagLogLevel } from "@opentelemetry/api";
375
+
376
+ // Enable debug logging (development only)
377
+ if (process.env.NODE_ENV === "development") {
378
+ diag.setLogger(new DiagConsoleLogger(), DiagLogLevel.DEBUG);
379
+ }
380
+ ```
381
+
382
+ ---
383
+
384
+ ## 10. Performance Impact
385
+
386
+ ### Expected Overhead
387
+
388
+ | Aspect | Impact | Mitigation |
389
+ | ------- | --------- | ----------------- |
390
+ | CPU | +2-5% | Reduce sampling |
391
+ | Memory | +10-20MB | Batch exports |
392
+ | Network | +5-10KB/s | Compress payloads |
393
+ | Latency | +1-2ms | Async export |
394
+
395
+ ---
396
+
397
+ > **Key Takeaway:** Observability is foundational. Set it up once, benefit everywhere (logs, metrics, traces all use the same SDK).