claudecode-omc 5.6.4 → 5.6.6

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 (383) hide show
  1. package/.local/commands/code-review.md +416 -0
  2. package/.local/commands/pr.md +250 -0
  3. package/.local/commands/prp-pr.md +244 -0
  4. package/.local/guidelines/CLAUDE.md +47 -0
  5. package/.local/skills/prompt-optimizer/SKILL.md +23 -4
  6. package/bundled/manifest.json +4 -4
  7. package/bundled/upstream/anthropic-skills/skills/algorithmic-art/LICENSE.txt +1 -1
  8. package/bundled/upstream/anthropic-skills/skills/brand-guidelines/LICENSE.txt +1 -1
  9. package/bundled/upstream/anthropic-skills/skills/canvas-design/LICENSE.txt +1 -1
  10. package/bundled/upstream/anthropic-skills/skills/claude-api/LICENSE.txt +1 -1
  11. package/bundled/upstream/anthropic-skills/skills/claude-api/SKILL.md +120 -58
  12. package/bundled/upstream/anthropic-skills/skills/claude-api/curl/examples.md +9 -9
  13. package/bundled/upstream/anthropic-skills/skills/claude-api/curl/managed-agents.md +336 -0
  14. package/bundled/upstream/anthropic-skills/skills/claude-api/go/managed-agents/README.md +561 -0
  15. package/bundled/upstream/anthropic-skills/skills/claude-api/java/claude-api.md +2 -2
  16. package/bundled/upstream/anthropic-skills/skills/claude-api/java/managed-agents/README.md +442 -0
  17. package/bundled/upstream/anthropic-skills/skills/claude-api/php/claude-api.md +10 -10
  18. package/bundled/upstream/anthropic-skills/skills/claude-api/php/managed-agents/README.md +435 -0
  19. package/bundled/upstream/anthropic-skills/skills/claude-api/python/claude-api/README.md +16 -16
  20. package/bundled/upstream/anthropic-skills/skills/claude-api/python/claude-api/batches.md +3 -3
  21. package/bundled/upstream/anthropic-skills/skills/claude-api/python/claude-api/files-api.md +3 -3
  22. package/bundled/upstream/anthropic-skills/skills/claude-api/python/claude-api/streaming.md +7 -7
  23. package/bundled/upstream/anthropic-skills/skills/claude-api/python/claude-api/tool-use.md +19 -19
  24. package/bundled/upstream/anthropic-skills/skills/claude-api/python/managed-agents/README.md +332 -0
  25. package/bundled/upstream/anthropic-skills/skills/claude-api/ruby/claude-api.md +4 -4
  26. package/bundled/upstream/anthropic-skills/skills/claude-api/ruby/managed-agents/README.md +389 -0
  27. package/bundled/upstream/anthropic-skills/skills/claude-api/shared/agent-design.md +101 -0
  28. package/bundled/upstream/anthropic-skills/skills/claude-api/shared/error-codes.md +11 -4
  29. package/bundled/upstream/anthropic-skills/skills/claude-api/shared/live-sources.md +60 -48
  30. package/bundled/upstream/anthropic-skills/skills/claude-api/shared/managed-agents-api-reference.md +372 -0
  31. package/bundled/upstream/anthropic-skills/skills/claude-api/shared/managed-agents-client-patterns.md +209 -0
  32. package/bundled/upstream/anthropic-skills/skills/claude-api/shared/managed-agents-core.md +220 -0
  33. package/bundled/upstream/anthropic-skills/skills/claude-api/shared/managed-agents-environments.md +211 -0
  34. package/bundled/upstream/anthropic-skills/skills/claude-api/shared/managed-agents-events.md +195 -0
  35. package/bundled/upstream/anthropic-skills/skills/claude-api/shared/managed-agents-memory.md +197 -0
  36. package/bundled/upstream/anthropic-skills/skills/claude-api/shared/managed-agents-multiagent.md +99 -0
  37. package/bundled/upstream/anthropic-skills/skills/claude-api/shared/managed-agents-onboarding.md +114 -0
  38. package/bundled/upstream/anthropic-skills/skills/claude-api/shared/managed-agents-outcomes.md +106 -0
  39. package/bundled/upstream/anthropic-skills/skills/claude-api/shared/managed-agents-overview.md +67 -0
  40. package/bundled/upstream/anthropic-skills/skills/claude-api/shared/managed-agents-tools.md +315 -0
  41. package/bundled/upstream/anthropic-skills/skills/claude-api/shared/managed-agents-webhooks.md +110 -0
  42. package/bundled/upstream/anthropic-skills/skills/claude-api/shared/model-migration.md +779 -0
  43. package/bundled/upstream/anthropic-skills/skills/claude-api/shared/models.md +16 -14
  44. package/bundled/upstream/anthropic-skills/skills/claude-api/shared/prompt-caching.md +45 -2
  45. package/bundled/upstream/anthropic-skills/skills/claude-api/shared/tool-use-concepts.md +28 -6
  46. package/bundled/upstream/anthropic-skills/skills/claude-api/typescript/claude-api/README.md +15 -15
  47. package/bundled/upstream/anthropic-skills/skills/claude-api/typescript/claude-api/batches.md +2 -2
  48. package/bundled/upstream/anthropic-skills/skills/claude-api/typescript/claude-api/files-api.md +1 -1
  49. package/bundled/upstream/anthropic-skills/skills/claude-api/typescript/claude-api/streaming.md +5 -5
  50. package/bundled/upstream/anthropic-skills/skills/claude-api/typescript/claude-api/tool-use.md +15 -15
  51. package/bundled/upstream/anthropic-skills/skills/claude-api/typescript/managed-agents/README.md +359 -0
  52. package/bundled/upstream/anthropic-skills/skills/internal-comms/LICENSE.txt +1 -1
  53. package/bundled/upstream/anthropic-skills/skills/mcp-builder/LICENSE.txt +1 -1
  54. package/bundled/upstream/anthropic-skills/skills/skill-creator/LICENSE.txt +1 -1
  55. package/bundled/upstream/anthropic-skills/skills/slack-gif-creator/LICENSE.txt +1 -1
  56. package/bundled/upstream/anthropic-skills/skills/theme-factory/LICENSE.txt +1 -1
  57. package/bundled/upstream/anthropic-skills/skills/web-artifacts-builder/LICENSE.txt +1 -1
  58. package/bundled/upstream/anthropic-skills/skills/webapp-testing/LICENSE.txt +1 -1
  59. package/bundled/upstream/ecc/.omc-source/bundle.json +2 -3
  60. package/bundled/upstream/ecc/.omc-source/manifests/.claude-plugin/marketplace.json +4 -4
  61. package/bundled/upstream/ecc/agents/a11y-architect.md +10 -2
  62. package/bundled/upstream/ecc/agents/architect.md +9 -0
  63. package/bundled/upstream/ecc/agents/build-error-resolver.md +9 -0
  64. package/bundled/upstream/ecc/agents/chief-of-staff.md +9 -0
  65. package/bundled/upstream/ecc/agents/code-architect.md +9 -0
  66. package/bundled/upstream/ecc/agents/code-explorer.md +10 -1
  67. package/bundled/upstream/ecc/agents/code-reviewer.md +87 -1
  68. package/bundled/upstream/ecc/agents/code-simplifier.md +9 -0
  69. package/bundled/upstream/ecc/agents/comment-analyzer.md +10 -1
  70. package/bundled/upstream/ecc/agents/conversation-analyzer.md +9 -0
  71. package/bundled/upstream/ecc/agents/cpp-build-resolver.md +9 -0
  72. package/bundled/upstream/ecc/agents/cpp-reviewer.md +9 -0
  73. package/bundled/upstream/ecc/agents/csharp-reviewer.md +9 -0
  74. package/bundled/upstream/ecc/agents/dart-build-resolver.md +9 -0
  75. package/bundled/upstream/ecc/agents/database-reviewer.md +9 -0
  76. package/bundled/upstream/ecc/agents/django-build-resolver.md +252 -0
  77. package/bundled/upstream/ecc/agents/django-reviewer.md +169 -0
  78. package/bundled/upstream/ecc/agents/doc-updater.md +9 -0
  79. package/bundled/upstream/ecc/agents/docs-lookup.md +9 -0
  80. package/bundled/upstream/ecc/agents/e2e-runner.md +9 -0
  81. package/bundled/upstream/ecc/agents/fastapi-reviewer.md +79 -0
  82. package/bundled/upstream/ecc/agents/flutter-reviewer.md +9 -0
  83. package/bundled/upstream/ecc/agents/fsharp-reviewer.md +109 -0
  84. package/bundled/upstream/ecc/agents/gan-evaluator.md +9 -0
  85. package/bundled/upstream/ecc/agents/gan-generator.md +9 -0
  86. package/bundled/upstream/ecc/agents/gan-planner.md +9 -0
  87. package/bundled/upstream/ecc/agents/go-build-resolver.md +9 -0
  88. package/bundled/upstream/ecc/agents/go-reviewer.md +9 -0
  89. package/bundled/upstream/ecc/agents/harmonyos-app-resolver.md +182 -0
  90. package/bundled/upstream/ecc/agents/harness-optimizer.md +9 -0
  91. package/bundled/upstream/ecc/agents/healthcare-reviewer.md +9 -0
  92. package/bundled/upstream/ecc/agents/homelab-architect.md +107 -0
  93. package/bundled/upstream/ecc/agents/java-build-resolver.md +133 -11
  94. package/bundled/upstream/ecc/agents/java-reviewer.md +130 -32
  95. package/bundled/upstream/ecc/agents/kotlin-build-resolver.md +9 -0
  96. package/bundled/upstream/ecc/agents/kotlin-reviewer.md +9 -0
  97. package/bundled/upstream/ecc/agents/loop-operator.md +9 -0
  98. package/bundled/upstream/ecc/agents/mle-reviewer.md +162 -0
  99. package/bundled/upstream/ecc/agents/network-architect.md +106 -0
  100. package/bundled/upstream/ecc/agents/network-config-reviewer.md +106 -0
  101. package/bundled/upstream/ecc/agents/network-troubleshooter.md +128 -0
  102. package/bundled/upstream/ecc/agents/opensource-forker.md +9 -0
  103. package/bundled/upstream/ecc/agents/opensource-packager.md +9 -0
  104. package/bundled/upstream/ecc/agents/opensource-sanitizer.md +9 -0
  105. package/bundled/upstream/ecc/agents/performance-optimizer.md +9 -0
  106. package/bundled/upstream/ecc/agents/planner.md +9 -0
  107. package/bundled/upstream/ecc/agents/pr-test-analyzer.md +9 -0
  108. package/bundled/upstream/ecc/agents/python-reviewer.md +9 -0
  109. package/bundled/upstream/ecc/agents/pytorch-build-resolver.md +12 -3
  110. package/bundled/upstream/ecc/agents/refactor-cleaner.md +9 -0
  111. package/bundled/upstream/ecc/agents/rust-build-resolver.md +9 -0
  112. package/bundled/upstream/ecc/agents/rust-reviewer.md +9 -0
  113. package/bundled/upstream/ecc/agents/security-reviewer.md +9 -0
  114. package/bundled/upstream/ecc/agents/seo-specialist.md +10 -1
  115. package/bundled/upstream/ecc/agents/silent-failure-hunter.md +9 -0
  116. package/bundled/upstream/ecc/agents/swift-build-resolver.md +170 -0
  117. package/bundled/upstream/ecc/agents/swift-reviewer.md +116 -0
  118. package/bundled/upstream/ecc/agents/tdd-guide.md +9 -0
  119. package/bundled/upstream/ecc/agents/type-design-analyzer.md +10 -1
  120. package/bundled/upstream/ecc/agents/typescript-reviewer.md +9 -0
  121. package/bundled/upstream/ecc/commands/auto-update.md +28 -0
  122. package/bundled/upstream/ecc/commands/build-fix.md +4 -0
  123. package/bundled/upstream/ecc/commands/checkpoint.md +4 -0
  124. package/bundled/upstream/ecc/commands/code-review.md +3 -3
  125. package/bundled/upstream/ecc/commands/cost-report.md +107 -0
  126. package/bundled/upstream/ecc/commands/cpp-build.md +1 -1
  127. package/bundled/upstream/ecc/commands/cpp-test.md +1 -1
  128. package/bundled/upstream/ecc/commands/ecc-guide.md +93 -0
  129. package/bundled/upstream/ecc/commands/fastapi-review.md +39 -0
  130. package/bundled/upstream/ecc/commands/flutter-build.md +1 -1
  131. package/bundled/upstream/ecc/commands/flutter-test.md +1 -1
  132. package/bundled/upstream/ecc/commands/gan-build.md +4 -0
  133. package/bundled/upstream/ecc/commands/gan-design.md +4 -0
  134. package/bundled/upstream/ecc/commands/go-build.md +1 -1
  135. package/bundled/upstream/ecc/commands/go-test.md +1 -1
  136. package/bundled/upstream/ecc/commands/harness-audit.md +4 -0
  137. package/bundled/upstream/ecc/commands/jira.md +2 -2
  138. package/bundled/upstream/ecc/commands/kotlin-build.md +1 -1
  139. package/bundled/upstream/ecc/commands/kotlin-test.md +1 -1
  140. package/bundled/upstream/ecc/commands/learn.md +4 -0
  141. package/bundled/upstream/ecc/commands/loop-start.md +4 -0
  142. package/bundled/upstream/ecc/commands/loop-status.md +54 -1
  143. package/bundled/upstream/ecc/commands/model-route.md +4 -0
  144. package/bundled/upstream/ecc/commands/multi-backend.md +4 -0
  145. package/bundled/upstream/ecc/commands/multi-execute.md +4 -0
  146. package/bundled/upstream/ecc/commands/multi-frontend.md +4 -0
  147. package/bundled/upstream/ecc/commands/multi-plan.md +4 -0
  148. package/bundled/upstream/ecc/commands/multi-workflow.md +4 -0
  149. package/bundled/upstream/ecc/commands/plan-prd.md +160 -0
  150. package/bundled/upstream/ecc/commands/plan.md +96 -13
  151. package/bundled/upstream/ecc/commands/pm2.md +4 -0
  152. package/bundled/upstream/ecc/commands/pr.md +184 -0
  153. package/bundled/upstream/ecc/commands/project-init.md +86 -0
  154. package/bundled/upstream/ecc/commands/python-review.md +1 -1
  155. package/bundled/upstream/ecc/commands/quality-gate.md +4 -0
  156. package/bundled/upstream/ecc/commands/refactor-clean.md +4 -0
  157. package/bundled/upstream/ecc/commands/rust-build.md +1 -1
  158. package/bundled/upstream/ecc/commands/rust-test.md +1 -1
  159. package/bundled/upstream/ecc/commands/security-scan.md +92 -0
  160. package/bundled/upstream/ecc/commands/sessions.md +6 -6
  161. package/bundled/upstream/ecc/commands/skill-health.md +3 -3
  162. package/bundled/upstream/ecc/commands/test-coverage.md +4 -0
  163. package/bundled/upstream/ecc/commands/update-codemaps.md +4 -0
  164. package/bundled/upstream/ecc/commands/update-docs.md +4 -0
  165. package/bundled/upstream/ecc/skills/accessibility/SKILL.md +1 -1
  166. package/bundled/upstream/ecc/skills/agent-architecture-audit/SKILL.md +256 -0
  167. package/bundled/upstream/ecc/skills/agent-payment-x402/SKILL.md +49 -3
  168. package/bundled/upstream/ecc/skills/agentic-os/SKILL.md +387 -0
  169. package/bundled/upstream/ecc/skills/angular-developer/SKILL.md +154 -0
  170. package/bundled/upstream/ecc/skills/angular-developer/references/angular-animations.md +160 -0
  171. package/bundled/upstream/ecc/skills/angular-developer/references/angular-aria.md +410 -0
  172. package/bundled/upstream/ecc/skills/angular-developer/references/cli.md +86 -0
  173. package/bundled/upstream/ecc/skills/angular-developer/references/component-harnesses.md +59 -0
  174. package/bundled/upstream/ecc/skills/angular-developer/references/component-styling.md +91 -0
  175. package/bundled/upstream/ecc/skills/angular-developer/references/components.md +117 -0
  176. package/bundled/upstream/ecc/skills/angular-developer/references/creating-services.md +97 -0
  177. package/bundled/upstream/ecc/skills/angular-developer/references/data-resolvers.md +69 -0
  178. package/bundled/upstream/ecc/skills/angular-developer/references/define-routes.md +67 -0
  179. package/bundled/upstream/ecc/skills/angular-developer/references/defining-providers.md +72 -0
  180. package/bundled/upstream/ecc/skills/angular-developer/references/di-fundamentals.md +120 -0
  181. package/bundled/upstream/ecc/skills/angular-developer/references/e2e-testing.md +56 -0
  182. package/bundled/upstream/ecc/skills/angular-developer/references/effects.md +83 -0
  183. package/bundled/upstream/ecc/skills/angular-developer/references/hierarchical-injectors.md +43 -0
  184. package/bundled/upstream/ecc/skills/angular-developer/references/host-elements.md +80 -0
  185. package/bundled/upstream/ecc/skills/angular-developer/references/injection-context.md +63 -0
  186. package/bundled/upstream/ecc/skills/angular-developer/references/inputs.md +101 -0
  187. package/bundled/upstream/ecc/skills/angular-developer/references/linked-signal.md +59 -0
  188. package/bundled/upstream/ecc/skills/angular-developer/references/loading-strategies.md +61 -0
  189. package/bundled/upstream/ecc/skills/angular-developer/references/mcp.md +108 -0
  190. package/bundled/upstream/ecc/skills/angular-developer/references/navigate-to-routes.md +69 -0
  191. package/bundled/upstream/ecc/skills/angular-developer/references/outputs.md +86 -0
  192. package/bundled/upstream/ecc/skills/angular-developer/references/reactive-forms.md +122 -0
  193. package/bundled/upstream/ecc/skills/angular-developer/references/rendering-strategies.md +44 -0
  194. package/bundled/upstream/ecc/skills/angular-developer/references/resource.md +77 -0
  195. package/bundled/upstream/ecc/skills/angular-developer/references/route-animations.md +56 -0
  196. package/bundled/upstream/ecc/skills/angular-developer/references/route-guards.md +52 -0
  197. package/bundled/upstream/ecc/skills/angular-developer/references/router-lifecycle.md +45 -0
  198. package/bundled/upstream/ecc/skills/angular-developer/references/router-testing.md +87 -0
  199. package/bundled/upstream/ecc/skills/angular-developer/references/show-routes-with-outlets.md +68 -0
  200. package/bundled/upstream/ecc/skills/angular-developer/references/signal-forms.md +795 -0
  201. package/bundled/upstream/ecc/skills/angular-developer/references/signals-overview.md +94 -0
  202. package/bundled/upstream/ecc/skills/angular-developer/references/tailwind-css.md +69 -0
  203. package/bundled/upstream/ecc/skills/angular-developer/references/template-driven-forms.md +114 -0
  204. package/bundled/upstream/ecc/skills/angular-developer/references/testing-fundamentals.md +65 -0
  205. package/bundled/upstream/ecc/skills/autonomous-agent-harness/SKILL.md +6 -0
  206. package/bundled/upstream/ecc/skills/backend-patterns/SKILL.md +8 -45
  207. package/bundled/upstream/ecc/skills/cisco-ios-patterns/SKILL.md +163 -0
  208. package/bundled/upstream/ecc/skills/configure-ecc/SKILL.md +31 -14
  209. package/bundled/upstream/ecc/skills/continuous-learning/SKILL.md +10 -2
  210. package/bundled/upstream/ecc/skills/continuous-learning-v2/SKILL.md +19 -5
  211. package/bundled/upstream/ecc/skills/continuous-learning-v2/agents/observer-loop.sh +44 -4
  212. package/bundled/upstream/ecc/skills/continuous-learning-v2/agents/observer.md +4 -4
  213. package/bundled/upstream/ecc/skills/continuous-learning-v2/agents/start-observer.sh +5 -1
  214. package/bundled/upstream/ecc/skills/continuous-learning-v2/hooks/observe.sh +21 -5
  215. package/bundled/upstream/ecc/skills/continuous-learning-v2/scripts/detect-project.sh +58 -13
  216. package/bundled/upstream/ecc/skills/continuous-learning-v2/scripts/instinct-cli.py +97 -4
  217. package/bundled/upstream/ecc/skills/continuous-learning-v2/scripts/lib/homunculus-dir.sh +31 -0
  218. package/bundled/upstream/ecc/skills/continuous-learning-v2/scripts/migrate-homunculus.sh +62 -0
  219. package/bundled/upstream/ecc/skills/continuous-learning-v2/scripts/test_parse_instinct.py +34 -0
  220. package/bundled/upstream/ecc/skills/cost-tracking/SKILL.md +147 -0
  221. package/bundled/upstream/ecc/skills/deep-research/SKILL.md +4 -0
  222. package/bundled/upstream/ecc/skills/defi-amm-security/SKILL.md +6 -0
  223. package/bundled/upstream/ecc/skills/django-celery/SKILL.md +457 -0
  224. package/bundled/upstream/ecc/skills/ecc-guide/SKILL.md +189 -0
  225. package/bundled/upstream/ecc/skills/error-handling/SKILL.md +376 -0
  226. package/bundled/upstream/ecc/skills/exa-search/SKILL.md +4 -0
  227. package/bundled/upstream/ecc/skills/fal-ai-media/SKILL.md +4 -0
  228. package/bundled/upstream/ecc/skills/fastapi-patterns/SKILL.md +327 -0
  229. package/bundled/upstream/ecc/skills/flox-environments/SKILL.md +496 -0
  230. package/bundled/upstream/ecc/skills/frontend-design-direction/SKILL.md +92 -0
  231. package/bundled/upstream/ecc/skills/frontend-slides/animation-patterns.md +122 -0
  232. package/bundled/upstream/ecc/skills/frontend-slides/html-template.md +419 -0
  233. package/bundled/upstream/ecc/skills/frontend-slides/scripts/export-pdf.sh +418 -0
  234. package/bundled/upstream/ecc/skills/frontend-slides/scripts/extract-pptx.py +96 -0
  235. package/bundled/upstream/ecc/skills/frontend-slides/viewport-base.css +153 -0
  236. package/bundled/upstream/ecc/skills/fsharp-testing/SKILL.md +280 -0
  237. package/bundled/upstream/ecc/skills/gateguard/SKILL.md +4 -0
  238. package/bundled/upstream/ecc/skills/hermes-imports/SKILL.md +88 -0
  239. package/bundled/upstream/ecc/skills/homelab-network-readiness/SKILL.md +169 -0
  240. package/bundled/upstream/ecc/skills/homelab-network-setup/SKILL.md +129 -0
  241. package/bundled/upstream/ecc/skills/homelab-pihole-dns/SKILL.md +274 -0
  242. package/bundled/upstream/ecc/skills/homelab-vlan-segmentation/SKILL.md +311 -0
  243. package/bundled/upstream/ecc/skills/homelab-wireguard-vpn/SKILL.md +305 -0
  244. package/bundled/upstream/ecc/skills/ios-icon-gen/SKILL.md +157 -0
  245. package/bundled/upstream/ecc/skills/ios-icon-gen/scripts/generate_icons.swift +258 -0
  246. package/bundled/upstream/ecc/skills/ios-icon-gen/scripts/iconify_gen.sh +235 -0
  247. package/bundled/upstream/ecc/skills/java-coding-standards/SKILL.md +241 -5
  248. package/bundled/upstream/ecc/skills/make-interfaces-feel-better/SKILL.md +151 -0
  249. package/bundled/upstream/ecc/skills/mle-workflow/SKILL.md +346 -0
  250. package/bundled/upstream/ecc/skills/motion-advanced/SKILL.md +596 -0
  251. package/bundled/upstream/ecc/skills/motion-foundations/SKILL.md +299 -0
  252. package/bundled/upstream/ecc/skills/motion-patterns/SKILL.md +435 -0
  253. package/bundled/upstream/ecc/skills/motion-ui/SKILL.md +575 -0
  254. package/bundled/upstream/ecc/skills/mysql-patterns/SKILL.md +412 -0
  255. package/bundled/upstream/ecc/skills/netmiko-ssh-automation/SKILL.md +173 -0
  256. package/bundled/upstream/ecc/skills/network-bgp-diagnostics/SKILL.md +167 -0
  257. package/bundled/upstream/ecc/skills/network-config-validation/SKILL.md +210 -0
  258. package/bundled/upstream/ecc/skills/network-interface-health/SKILL.md +152 -0
  259. package/bundled/upstream/ecc/skills/openclaw-persona-forge/SKILL.md +1 -9
  260. package/bundled/upstream/ecc/skills/plan-orchestrate/SKILL.md +262 -0
  261. package/bundled/upstream/ecc/skills/prisma-patterns/SKILL.md +371 -0
  262. package/bundled/upstream/ecc/skills/production-audit/SKILL.md +206 -0
  263. package/bundled/upstream/ecc/skills/prompt-optimizer/SKILL.md +24 -400
  264. package/bundled/upstream/ecc/skills/quarkus-patterns/SKILL.md +722 -0
  265. package/bundled/upstream/ecc/skills/quarkus-security/SKILL.md +467 -0
  266. package/bundled/upstream/ecc/skills/quarkus-tdd/SKILL.md +811 -0
  267. package/bundled/upstream/ecc/skills/quarkus-verification/SKILL.md +479 -0
  268. package/bundled/upstream/ecc/skills/redis-patterns/SKILL.md +403 -0
  269. package/bundled/upstream/ecc/skills/scientific-db-pubmed-database/SKILL.md +175 -0
  270. package/bundled/upstream/ecc/skills/scientific-db-uspto-database/SKILL.md +177 -0
  271. package/bundled/upstream/ecc/skills/scientific-pkg-gget/SKILL.md +166 -0
  272. package/bundled/upstream/ecc/skills/scientific-thinking-literature-review/SKILL.md +192 -0
  273. package/bundled/upstream/ecc/skills/scientific-thinking-scholar-evaluation/SKILL.md +160 -0
  274. package/bundled/upstream/ecc/skills/search-first/SKILL.md +23 -2
  275. package/bundled/upstream/ecc/skills/security-review/SKILL.md +10 -2
  276. package/bundled/upstream/ecc/skills/skill-comply/scripts/runner.py +28 -3
  277. package/bundled/upstream/ecc/skills/skill-comply/tests/test_runner.py +172 -0
  278. package/bundled/upstream/ecc/skills/skill-scout/SKILL.md +140 -0
  279. package/bundled/upstream/ecc/skills/skill-stocktake/SKILL.md +1 -0
  280. package/bundled/upstream/ecc/skills/strategic-compact/SKILL.md +2 -2
  281. package/bundled/upstream/ecc/skills/tinystruct-patterns/SKILL.md +203 -0
  282. package/bundled/upstream/ecc/skills/tinystruct-patterns/references/architecture.md +90 -0
  283. package/bundled/upstream/ecc/skills/tinystruct-patterns/references/data-handling.md +60 -0
  284. package/bundled/upstream/ecc/skills/tinystruct-patterns/references/database.md +99 -0
  285. package/bundled/upstream/ecc/skills/tinystruct-patterns/references/routing.md +64 -0
  286. package/bundled/upstream/ecc/skills/tinystruct-patterns/references/system-usage.md +97 -0
  287. package/bundled/upstream/ecc/skills/tinystruct-patterns/references/testing.md +72 -0
  288. package/bundled/upstream/ecc/skills/ui-to-vue/SKILL.md +134 -0
  289. package/bundled/upstream/ecc/skills/vite-patterns/SKILL.md +449 -0
  290. package/bundled/upstream/ecc/skills/windows-desktop-e2e/SKILL.md +788 -0
  291. package/bundled/upstream/ecc/skills/x-api/SKILL.md +4 -0
  292. package/bundled/upstream/oh-my-claudecode/.omc-source/bundle.json +20 -0
  293. package/bundled/upstream/oh-my-claudecode/agents/analyst.md +2 -1
  294. package/bundled/upstream/oh-my-claudecode/agents/architect.md +2 -1
  295. package/bundled/upstream/oh-my-claudecode/agents/code-reviewer.md +26 -7
  296. package/bundled/upstream/oh-my-claudecode/agents/critic.md +2 -1
  297. package/bundled/upstream/oh-my-claudecode/agents/debugger.md +2 -1
  298. package/bundled/upstream/oh-my-claudecode/agents/designer.md +14 -1
  299. package/bundled/upstream/oh-my-claudecode/agents/document-specialist.md +1 -1
  300. package/bundled/upstream/oh-my-claudecode/agents/executor.md +2 -1
  301. package/bundled/upstream/oh-my-claudecode/agents/explore.md +2 -1
  302. package/bundled/upstream/oh-my-claudecode/agents/git-master.md +2 -1
  303. package/bundled/upstream/oh-my-claudecode/agents/planner.md +2 -1
  304. package/bundled/upstream/oh-my-claudecode/agents/qa-tester.md +2 -1
  305. package/bundled/upstream/oh-my-claudecode/agents/scientist.md +2 -1
  306. package/bundled/upstream/oh-my-claudecode/agents/security-reviewer.md +2 -1
  307. package/bundled/upstream/oh-my-claudecode/agents/test-engineer.md +2 -1
  308. package/bundled/upstream/oh-my-claudecode/agents/tracer.md +2 -1
  309. package/bundled/upstream/oh-my-claudecode/agents/verifier.md +2 -1
  310. package/bundled/upstream/oh-my-claudecode/agents/writer.md +2 -1
  311. package/bundled/upstream/oh-my-claudecode/skills/AGENTS.md +4 -3
  312. package/bundled/upstream/oh-my-claudecode/skills/ai-slop-cleaner/SKILL.md +12 -0
  313. package/bundled/upstream/oh-my-claudecode/skills/deep-dive/SKILL.md +69 -13
  314. package/bundled/upstream/oh-my-claudecode/skills/deep-interview/SKILL.md +176 -63
  315. package/bundled/upstream/oh-my-claudecode/skills/learner/SKILL.md +3 -1
  316. package/bundled/upstream/oh-my-claudecode/skills/omc-doctor/SKILL.md +22 -3
  317. package/bundled/upstream/oh-my-claudecode/skills/omc-reference/SKILL.md +1 -1
  318. package/bundled/upstream/oh-my-claudecode/skills/omc-setup/phases/01-install-claude-md.md +2 -2
  319. package/bundled/upstream/oh-my-claudecode/skills/omc-setup/phases/02-configure.md +45 -2
  320. package/bundled/upstream/oh-my-claudecode/skills/omc-setup/phases/03-integrations.md +46 -5
  321. package/bundled/upstream/oh-my-claudecode/skills/plan/SKILL.md +19 -17
  322. package/bundled/upstream/oh-my-claudecode/skills/project-session-manager/lib/config.sh +1 -1
  323. package/bundled/upstream/oh-my-claudecode/skills/project-session-manager/lib/parse.sh +1 -1
  324. package/bundled/upstream/oh-my-claudecode/skills/project-session-manager/lib/providers/azure-devops.sh +1 -1
  325. package/bundled/upstream/oh-my-claudecode/skills/project-session-manager/lib/providers/bitbucket.sh +1 -1
  326. package/bundled/upstream/oh-my-claudecode/skills/project-session-manager/lib/providers/gitea.sh +1 -1
  327. package/bundled/upstream/oh-my-claudecode/skills/project-session-manager/lib/providers/github.sh +1 -1
  328. package/bundled/upstream/oh-my-claudecode/skills/project-session-manager/lib/providers/gitlab.sh +1 -1
  329. package/bundled/upstream/oh-my-claudecode/skills/project-session-manager/lib/providers/interface.sh +1 -1
  330. package/bundled/upstream/oh-my-claudecode/skills/project-session-manager/lib/providers/jira.sh +1 -1
  331. package/bundled/upstream/oh-my-claudecode/skills/project-session-manager/lib/session.sh +1 -1
  332. package/bundled/upstream/oh-my-claudecode/skills/project-session-manager/lib/tmux.sh +1 -1
  333. package/bundled/upstream/oh-my-claudecode/skills/project-session-manager/lib/worktree.sh +1 -1
  334. package/bundled/upstream/oh-my-claudecode/skills/project-session-manager/psm.sh +1 -1
  335. package/bundled/upstream/oh-my-claudecode/skills/project-session-manager/tests/test-psm-prompt-injection.sh +1 -1
  336. package/bundled/upstream/oh-my-claudecode/skills/ralph/SKILL.md +8 -8
  337. package/bundled/upstream/oh-my-claudecode/skills/ralplan/SKILL.md +9 -5
  338. package/bundled/upstream/oh-my-claudecode/skills/skill/SKILL.md +6 -6
  339. package/bundled/upstream/oh-my-claudecode/skills/skillify/SKILL.md +19 -3
  340. package/bundled/upstream/oh-my-claudecode/skills/trace/SKILL.md +3 -1
  341. package/bundled/upstream/oh-my-claudecode/skills/ultrawork/SKILL.md +20 -7
  342. package/bundled/upstream/superpowers/.omc-source/bundle.json +21 -0
  343. package/bundled/upstream/superpowers/hooks/hooks-cursor.json +1 -1
  344. package/bundled/upstream/superpowers/skills/executing-plans/SKILL.md +1 -1
  345. package/bundled/upstream/superpowers/skills/finishing-a-development-branch/SKILL.md +93 -42
  346. package/bundled/upstream/superpowers/skills/requesting-code-review/SKILL.md +7 -9
  347. package/bundled/upstream/superpowers/skills/requesting-code-review/code-reviewer.md +107 -85
  348. package/bundled/upstream/superpowers/skills/subagent-driven-development/SKILL.md +3 -1
  349. package/bundled/upstream/superpowers/skills/subagent-driven-development/code-quality-reviewer-prompt.md +2 -3
  350. package/bundled/upstream/superpowers/skills/systematic-debugging/CREATION-LOG.md +1 -1
  351. package/bundled/upstream/superpowers/skills/systematic-debugging/root-cause-tracing.md +1 -1
  352. package/bundled/upstream/superpowers/skills/using-git-worktrees/SKILL.md +95 -98
  353. package/bundled/upstream/superpowers/skills/using-superpowers/references/codex-tools.md +7 -48
  354. package/bundled/upstream/superpowers/skills/using-superpowers/references/copilot-tools.md +1 -11
  355. package/bundled/upstream/superpowers/skills/using-superpowers/references/gemini-tools.md +21 -3
  356. package/bundled/upstream/superpowers/skills/writing-plans/SKILL.md +1 -1
  357. package/package.json +1 -1
  358. package/src/cli/index.js +1 -0
  359. package/src/cli/setup.js +9 -0
  360. package/src/cli/skill-index.js +209 -0
  361. package/src/cli/skill.js +4 -0
  362. package/bundled/upstream/anthropic-skills/skills/claude-api/python/agent-sdk/README.md +0 -355
  363. package/bundled/upstream/anthropic-skills/skills/claude-api/python/agent-sdk/patterns.md +0 -359
  364. package/bundled/upstream/anthropic-skills/skills/claude-api/typescript/agent-sdk/README.md +0 -297
  365. package/bundled/upstream/anthropic-skills/skills/claude-api/typescript/agent-sdk/patterns.md +0 -209
  366. package/bundled/upstream/ecc/commands/agent-sort.md +0 -23
  367. package/bundled/upstream/ecc/commands/claw.md +0 -23
  368. package/bundled/upstream/ecc/commands/context-budget.md +0 -23
  369. package/bundled/upstream/ecc/commands/devfleet.md +0 -23
  370. package/bundled/upstream/ecc/commands/docs.md +0 -23
  371. package/bundled/upstream/ecc/commands/e2e.md +0 -268
  372. package/bundled/upstream/ecc/commands/eval.md +0 -23
  373. package/bundled/upstream/ecc/commands/orchestrate.md +0 -135
  374. package/bundled/upstream/ecc/commands/prompt-optimize.md +0 -23
  375. package/bundled/upstream/ecc/commands/rules-distill.md +0 -20
  376. package/bundled/upstream/ecc/commands/tdd.md +0 -231
  377. package/bundled/upstream/ecc/commands/verify.md +0 -23
  378. package/bundled/upstream/ecc/skills/claude-api/SKILL.md +0 -337
  379. package/bundled/upstream/ecc/skills/frontend-design/SKILL.md +0 -145
  380. package/bundled/upstream/superpowers/agents/code-reviewer.md +0 -48
  381. package/bundled/upstream/superpowers/commands/brainstorm.md +0 -5
  382. package/bundled/upstream/superpowers/commands/execute-plan.md +0 -5
  383. package/bundled/upstream/superpowers/commands/write-plan.md +0 -5
@@ -0,0 +1,69 @@
1
+ # Navigate to Routes
2
+
3
+ Angular provides both declarative and programmatic ways to navigate between routes.
4
+
5
+ ## Declarative Navigation (`RouterLink`)
6
+
7
+ Use the `RouterLink` directive on anchor elements.
8
+
9
+ ```ts
10
+ import {RouterLink, RouterLinkActive} from '@angular/router';
11
+
12
+ @Component({
13
+ imports: [RouterLink, RouterLinkActive],
14
+ template: `
15
+ <nav>
16
+ <a routerLink="/dashboard" routerLinkActive="active-link">Dashboard</a>
17
+ <a [routerLink]="['/user', userId]">Profile</a>
18
+ </nav>
19
+ `,
20
+ })
21
+ export class Nav {
22
+ userId = '123';
23
+ }
24
+ ```
25
+
26
+ - **Absolute Paths**: Start with `/` (e.g., `/settings`).
27
+ - **Relative Paths**: No leading `/`. Use `../` to go up a level.
28
+
29
+ ## Programmatic Navigation (`Router`)
30
+
31
+ Inject the `Router` service to navigate via TypeScript code.
32
+
33
+ ### `router.navigate()`
34
+
35
+ Uses an array of commands.
36
+
37
+ ```ts
38
+ private router = inject(Router);
39
+ private route = inject(ActivatedRoute);
40
+
41
+ // Standard navigation
42
+ this.router.navigate(['/profile']);
43
+
44
+ // With parameters
45
+ this.router.navigate(['/search'], {
46
+ queryParams: { q: 'angular' },
47
+ fragment: 'results'
48
+ });
49
+
50
+ // Relative navigation
51
+ this.router.navigate(['edit'], { relativeTo: this.route });
52
+ ```
53
+
54
+ ### `router.navigateByUrl()`
55
+
56
+ Uses a string path. Ideal for absolute navigation or full URLs.
57
+
58
+ ```ts
59
+ this.router.navigateByUrl('/products/123?view=details');
60
+
61
+ // Replace current entry in history
62
+ this.router.navigateByUrl('/login', {replaceUrl: true});
63
+ ```
64
+
65
+ ## URL Parameters
66
+
67
+ - **Route Params**: Part of the path (e.g., `/user/123`).
68
+ - **Query Params**: After the `?` (e.g., `/search?q=query`).
69
+ - **Matrix Params**: Scoped to a segment (e.g., `/products;category=books`).
@@ -0,0 +1,86 @@
1
+ # Outputs (Custom Events)
2
+
3
+ Outputs allow a child component to emit custom events that a parent component can listen to. Angular recommends using the new `output()` function for modern applications.
4
+
5
+ ## Function-based outputs
6
+
7
+ Declare outputs using the `output()` function. This returns an `OutputEmitterRef`.
8
+
9
+ ```ts
10
+ import {Component, output} from '@angular/core';
11
+
12
+ @Component({
13
+ selector: 'custom-slider',
14
+ template: `<button (click)="changeValue(50)">Set to 50</button>`,
15
+ })
16
+ export class CustomSlider {
17
+ // Output without event data
18
+ panelClosed = output<void>();
19
+
20
+ // Output with event data (number)
21
+ valueChanged = output<number>();
22
+
23
+ changeValue(newValue: number) {
24
+ this.valueChanged.emit(newValue);
25
+ }
26
+ }
27
+ ```
28
+
29
+ ### Usage in Template
30
+
31
+ Bind to the output event using parentheses `()`. If the event emits data, access it using the special `$event` variable.
32
+
33
+ ```html
34
+ <custom-slider (panelClosed)="savePanelState()" (valueChanged)="logValue($event)" />
35
+ ```
36
+
37
+ ## Configuration Options
38
+
39
+ The `output` function accepts a config object to specify an alias.
40
+
41
+ ```ts
42
+ @Component({...})
43
+ export class CustomSlider {
44
+ // The event is named 'valueChanged' in the template,
45
+ // but accessed as 'changed' in the component class.
46
+ changed = output<number>({ alias: 'valueChanged' });
47
+ }
48
+ ```
49
+
50
+ ## Programmatic Subscription
51
+
52
+ When creating components dynamically, you can subscribe to outputs programmatically:
53
+
54
+ ```ts
55
+ const componentRef = viewContainerRef.createComponent(CustomSlider);
56
+
57
+ const subscription = componentRef.instance.valueChanged.subscribe((val) => {
58
+ console.log('Value changed:', val);
59
+ });
60
+
61
+ // Clean up manually if needed (Angular cleans up destroyed components automatically)
62
+ subscription.unsubscribe();
63
+ ```
64
+
65
+ ## Decorator-based Outputs (@Output)
66
+
67
+ The legacy API uses the `@Output()` decorator with an `EventEmitter`. It remains supported but is not recommended for new code.
68
+
69
+ ```ts
70
+ import { Component, Output, EventEmitter } from '@angular/core';
71
+
72
+ @Component({...})
73
+ export class LegacyExample {
74
+ @Output() valueChanged = new EventEmitter<number>();
75
+
76
+ // With alias
77
+ @Output('customEventName') changed = new EventEmitter<void>();
78
+ }
79
+ ```
80
+
81
+ ## Best Practices
82
+
83
+ - **Prefer `output()`**: Use the function-based `output()` instead of `@Output()` and `EventEmitter`.
84
+ - **Naming**: Use `camelCase` for output names. Avoid prefixing with `on` (e.g., use `valueChanged` instead of `onValueChanged`).
85
+ - **No DOM Bubbling**: Angular custom events do not bubble up the DOM tree like native events.
86
+ - **Avoid Collisions**: Do not choose names that collide with native DOM events (like `click` or `submit`).
@@ -0,0 +1,122 @@
1
+ # Reactive Forms
2
+
3
+ Reactive forms provide a model-driven approach to handling form inputs. They are built around observable streams and provide synchronous access to the data model, making them more scalable and testable than template-driven forms.
4
+
5
+ ## Core Classes
6
+
7
+ Reactive forms are built using these fundamental classes from `@angular/forms`:
8
+
9
+ - `FormControl`: Manages the value and validity of an individual input.
10
+ - `FormGroup`: Manages a group of controls (an object-like structure).
11
+ - `FormArray`: Manages a numerically indexed array of controls.
12
+ - `FormBuilder`: A service that provides factory methods for creating control instances.
13
+
14
+ ## Setup
15
+
16
+ Import `ReactiveFormsModule` into your component.
17
+
18
+ ```ts
19
+ import {Component, inject} from '@angular/core';
20
+ import {ReactiveFormsModule, FormGroup, FormControl, Validators, FormBuilder} from '@angular/forms';
21
+
22
+ @Component({
23
+ selector: 'app-profile-editor',
24
+ imports: [ReactiveFormsModule],
25
+ templateUrl: './profile-editor.component.html',
26
+ })
27
+ export class ProfileEditor {
28
+ private fb = inject(FormBuilder);
29
+
30
+ // Using FormBuilder for concise definition
31
+ profileForm = this.fb.group({
32
+ firstName: ['', Validators.required],
33
+ lastName: [''],
34
+ address: this.fb.group({
35
+ street: [''],
36
+ city: [''],
37
+ }),
38
+ aliases: this.fb.array([this.fb.control('')]),
39
+ });
40
+
41
+ onSubmit() {
42
+ console.warn(this.profileForm.value);
43
+ }
44
+ }
45
+ ```
46
+
47
+ ## Template Binding
48
+
49
+ Use directives to bind the model to the view:
50
+
51
+ - `[formGroup]`: Binds a `FormGroup` to a `<form>` or `<div>`.
52
+ - `formControlName`: Binds a named control within a group to an input.
53
+ - `formGroupName`: Binds a nested `FormGroup`.
54
+ - `formArrayName`: Binds a nested `FormArray`.
55
+ - `[formControl]`: Binds a standalone `FormControl`.
56
+
57
+ ```html
58
+ <form [formGroup]="profileForm" (ngSubmit)="onSubmit()">
59
+ <input type="text" formControlName="firstName" />
60
+
61
+ <div formGroupName="address">
62
+ <input type="text" formControlName="street" />
63
+ </div>
64
+
65
+ <div formArrayName="aliases">
66
+ @for (alias of aliases.controls; track $index) {
67
+ <input type="text" [formControlName]="$index" />
68
+ }
69
+ </div>
70
+
71
+ <button type="submit" [disabled]="!profileForm.valid">Submit</button>
72
+ </form>
73
+ ```
74
+
75
+ ## Accessing Controls
76
+
77
+ Use getters for easy access to controls, especially for `FormArray`.
78
+
79
+ ```ts
80
+ get aliases() {
81
+ return this.profileForm.get('aliases') as FormArray;
82
+ }
83
+
84
+ addAlias() {
85
+ this.aliases.push(this.fb.control(''));
86
+ }
87
+ ```
88
+
89
+ ## Updating Values
90
+
91
+ - `patchValue()`: Updates only the specified properties. Fails silently on structural mismatches.
92
+ - `setValue()`: Replaces the entire model. Strictly enforces the form structure.
93
+
94
+ ```ts
95
+ updateProfile() {
96
+ this.profileForm.patchValue({
97
+ firstName: 'Nancy',
98
+ address: { street: '123 Drew Street' }
99
+ });
100
+ }
101
+ ```
102
+
103
+ ## Unified Change Events
104
+
105
+ Modern Angular (v18+) provides a single `events` observable on all controls to track value, status, pristine, touched, reset, and submit events.
106
+
107
+ ```ts
108
+ import {ValueChangeEvent, StatusChangeEvent} from '@angular/forms';
109
+
110
+ this.profileForm.events.subscribe((event) => {
111
+ if (event instanceof ValueChangeEvent) {
112
+ console.log('New value:', event.value);
113
+ }
114
+ });
115
+ ```
116
+
117
+ ## Manual State Management
118
+
119
+ - `markAsTouched()` / `markAllAsTouched()`: Useful for showing validation errors on submit.
120
+ - `markAsDirty()` / `markAsPristine()`: Tracks if the value has been modified.
121
+ - `updateValueAndValidity()`: Manually triggers recalculation of value and status.
122
+ - Options `{ emitEvent: false }` or `{ onlySelf: true }` can be passed to most methods to control propagation.
@@ -0,0 +1,44 @@
1
+ # Rendering Strategies
2
+
3
+ Angular supports multiple rendering strategies to optimize for SEO, performance, and interactivity.
4
+
5
+ ## 1. Client-Side Rendering (CSR)
6
+
7
+ **Default Strategy.** Content is rendered entirely in the browser.
8
+
9
+ - **Use case**: Interactive dashboards, internal tools.
10
+ - **Pros**: Simplest to configure, low server cost.
11
+ - **Cons**: Poor SEO, slower initial content visibility (must wait for JS).
12
+
13
+ ## 2. Static Site Generation (SSG / Prerendering)
14
+
15
+ Content is pre-rendered into static HTML files at **build time**.
16
+
17
+ - **Use case**: Marketing pages, blogs, documentation.
18
+ - **Pros**: Fastest initial load, excellent SEO, CDN-friendly.
19
+ - **Cons**: Requires rebuild for content updates, not for user-specific data.
20
+
21
+ ## 3. Server-Side Rendering (SSR)
22
+
23
+ Content is rendered on the server for the **initial request**. Subsequent navigations happen client-side (SPA style).
24
+
25
+ - **Use case**: E-commerce product pages, news sites, personalized dynamic content.
26
+ - **Pros**: Excellent SEO, fast initial content visibility.
27
+ - **Cons**: Requires a server (Node.js), higher server cost/latency.
28
+
29
+ ## Hydration
30
+
31
+ Hydration is the process of making server-rendered HTML interactive in the browser.
32
+
33
+ - **Full Hydration**: The entire app becomes interactive at once.
34
+ - **Incremental Hydration**: (Advanced) Parts become interactive as needed using `@defer` blocks.
35
+ - **Event Replay**: Captures and replays user events that happened before hydration finished.
36
+
37
+ ## Decision Matrix
38
+
39
+ | Requirement | Strategy |
40
+ | :------------------------------ | :------------------- |
41
+ | **SEO + Static Content** | SSG |
42
+ | **SEO + Dynamic Content** | SSR |
43
+ | **No SEO + High Interactivity** | CSR |
44
+ | **Mixed** | Hybrid (Route-based) |
@@ -0,0 +1,77 @@
1
+ # Async Reactivity with `resource`
2
+
3
+ > [!IMPORTANT]
4
+ > The `resource` API is currently experimental in Angular.
5
+
6
+ A `Resource` incorporates asynchronous data fetching into Angular's signal-based reactivity. It executes an async loader function whenever its dependencies change, exposing the status and result as synchronous signals.
7
+
8
+ ## Basic Usage
9
+
10
+ The `resource` function accepts an options object with two main properties:
11
+
12
+ 1. `params`: A reactive computation (like `computed`). When signals read here change, the resource re-fetches.
13
+ 2. `loader`: An async function that fetches data based on the parameters.
14
+
15
+ ```ts
16
+ import { Component, resource, signal, computed } from '@angular/core';
17
+
18
+ @Component({...})
19
+ export class UserProfile {
20
+ userId = signal('123');
21
+
22
+ userResource = resource({
23
+ // Reactively tracking userId
24
+ params: () => ({ id: this.userId() }),
25
+
26
+ // Executes whenever params change
27
+ loader: async ({ params, abortSignal }) => {
28
+ const response = await fetch(`/api/users/${params.id}`, { signal: abortSignal });
29
+ if (!response.ok) throw new Error('Network error');
30
+ return response.json();
31
+ }
32
+ });
33
+
34
+ // Use the resource value in computed signals
35
+ userName = computed(() => {
36
+ if (this.userResource.hasValue()) {
37
+ return this.userResource.value()?.name;
38
+ } else {
39
+ return 'Loading...';
40
+ }
41
+ });
42
+ }
43
+ ```
44
+
45
+ ## Aborting Requests
46
+
47
+ If the `params` signal changes while a previous loader is still running, the `Resource` will attempt to abort the outstanding request using the provided `abortSignal`. **Always pass `abortSignal` to your `fetch` calls.**
48
+
49
+ ## Reloading Data
50
+
51
+ You can imperatively force the resource to re-run the loader without the params changing by calling `.reload()`.
52
+
53
+ ```ts
54
+ this.userResource.reload();
55
+ ```
56
+
57
+ ## Resource Status Signals
58
+
59
+ The `Resource` object provides several signals to read its current state:
60
+
61
+ - `value()`: The resolved data, or `undefined`.
62
+ - `hasValue()`: Type-guard boolean. `true` if a value exists.
63
+ - `isLoading()`: Boolean indicating if the loader is currently running.
64
+ - `error()`: The error thrown by the loader, or `undefined`.
65
+ - `status()`: A string constant representing the exact state (`'idle'`, `'loading'`, `'resolved'`, `'error'`, `'reloading'`, `'local'`).
66
+
67
+ ## Local Mutation
68
+
69
+ You can optimistically update the resource's value directly. This changes the status to `'local'`.
70
+
71
+ ```ts
72
+ this.userResource.value.set({name: 'Optimistic Update'});
73
+ ```
74
+
75
+ ## Reactive Data Fetching with `httpResource`
76
+
77
+ If you are using Angular's `HttpClient`, prefer using `httpResource`. It is a specialized wrapper that leverages the Angular HTTP stack (including interceptors) while providing the same signal-based resource API.
@@ -0,0 +1,56 @@
1
+ # Route Transition Animations
2
+
3
+ Angular Router supports the browser's **View Transitions API** for smooth visual transitions between routes.
4
+
5
+ ## Enabling View Transitions
6
+
7
+ Add `withViewTransitions()` to your router configuration.
8
+
9
+ ```ts
10
+ provideRouter(routes, withViewTransitions());
11
+ ```
12
+
13
+ This is a **progressive enhancement**. In browsers that don't support the API, the router will still work but without the transition animation.
14
+
15
+ ## How it Works
16
+
17
+ 1. Browser takes a screenshot of the old state.
18
+ 2. Router updates the DOM (activates new component).
19
+ 3. Browser takes a screenshot of the new state.
20
+ 4. Browser animates between the two states.
21
+
22
+ ## Customizing with CSS
23
+
24
+ Transitions are customized in **global CSS files** (not component-scoped CSS).
25
+
26
+ Use the `::view-transition-old()` and `::view-transition-new()` pseudo-elements.
27
+
28
+ ```css
29
+ /* Example: Cross-fade + Slide */
30
+ ::view-transition-old(root) {
31
+ animation: 90ms cubic-bezier(0.4, 0, 1, 1) both fade-out;
32
+ }
33
+ ::view-transition-new(root) {
34
+ animation: 210ms cubic-bezier(0, 0, 0.2, 1) 90ms both fade-in;
35
+ }
36
+ ```
37
+
38
+ ## Advanced Control
39
+
40
+ Use `onViewTransitionCreated` to skip transitions or customize behavior based on the navigation context.
41
+
42
+ ```ts
43
+ withViewTransitions({
44
+ onViewTransitionCreated: ({transition, from, to}) => {
45
+ // Skip animation for specific routes
46
+ if (to.url === '/no-animation') {
47
+ transition.skipTransition();
48
+ }
49
+ },
50
+ });
51
+ ```
52
+
53
+ ## Best Practices
54
+
55
+ - **Global Styles**: Always define transition animations in `styles.css` to avoid view encapsulation issues.
56
+ - **View Transition Names**: Assign unique `view-transition-name` to elements that should transition smoothly across routes (e.g., a header image).
@@ -0,0 +1,52 @@
1
+ # Route Guards
2
+
3
+ Route guards control whether a user can navigate to or leave a route.
4
+
5
+ ## Types of Guards
6
+
7
+ - **`CanActivate`**: Can the user access this route? (e.g., Auth check).
8
+ - **`CanActivateChild`**: Can the user access children of this route?
9
+ - **`CanDeactivate`**: Can the user leave this route? (e.g., Unsaved changes).
10
+ - **`CanMatch`**: Should this route even be considered for matching? (e.g., Feature flags). If it returns `false`, the router continues checking other routes.
11
+
12
+ ## Creating a Guard
13
+
14
+ Guards are typically functional since Angular 15.
15
+
16
+ ```ts
17
+ export const authGuard: CanActivateFn = (route, state) => {
18
+ const authService = inject(AuthService);
19
+ const router = inject(Router);
20
+
21
+ if (authService.isLoggedIn()) {
22
+ return true;
23
+ }
24
+
25
+ // Redirect to login
26
+ return router.parseUrl('/login');
27
+ };
28
+ ```
29
+
30
+ ## Applying Guards
31
+
32
+ Add them to the route configuration as an array. They execute in order.
33
+
34
+ ```ts
35
+ {
36
+ path: 'admin',
37
+ component: Admin,
38
+ canActivate: [authGuard],
39
+ canActivateChild: [adminChildGuard],
40
+ canDeactivate: [unsavedChangesGuard]
41
+ }
42
+ ```
43
+
44
+ ## Return Values
45
+
46
+ - `boolean`: `true` to allow, `false` to block.
47
+ - `UrlTree` or `RedirectCommand`: Redirect to a different route.
48
+ - `Observable` or `Promise`: Resolves to the above types.
49
+
50
+ ## Security Note
51
+
52
+ **Client-side guards are NOT a substitute for server-side security.** Always verify permissions on the server.
@@ -0,0 +1,45 @@
1
+ # Router Lifecycle and Events
2
+
3
+ Angular Router emits events through the `Router.events` observable, allowing you to track the navigation lifecycle from start to finish.
4
+
5
+ ## Common Router Events (Chronological)
6
+
7
+ 1. **`NavigationStart`**: Navigation begins.
8
+ 2. **`RoutesRecognized`**: Router matches the URL to a route.
9
+ 3. **`GuardsCheckStart` / `End`**: Evaluation of `canActivate`, `canMatch`, etc.
10
+ 4. **`ResolveStart` / `End`**: Data resolution phase (fetching data via resolvers).
11
+ 5. **`NavigationEnd`**: Navigation completed successfully.
12
+ 6. **`NavigationCancel`**: Navigation canceled (e.g., guard returned `false`).
13
+ 7. **`NavigationError`**: Navigation failed (e.g., error in resolver).
14
+
15
+ ## Subscribing to Events
16
+
17
+ Inject the `Router` and filter the `events` observable.
18
+
19
+ ```ts
20
+ import {Router, NavigationStart, NavigationEnd} from '@angular/router';
21
+
22
+ export class MyService {
23
+ private router = inject(Router);
24
+
25
+ constructor() {
26
+ this.router.events.pipe(filter((e) => e instanceof NavigationEnd)).subscribe((event) => {
27
+ console.log('Navigated to:', event.url);
28
+ });
29
+ }
30
+ }
31
+ ```
32
+
33
+ ## Debugging
34
+
35
+ Enable detailed console logging of all routing events during application bootstrap.
36
+
37
+ ```ts
38
+ provideRouter(routes, withDebugTracing());
39
+ ```
40
+
41
+ ## Common Use Cases
42
+
43
+ - **Loading Indicators**: Show a spinner when `NavigationStart` fires and hide it on `NavigationEnd`/`Cancel`/`Error`.
44
+ - **Analytics**: Track page views by listening for `NavigationEnd`.
45
+ - **Scroll Management**: Respond to `Scroll` events for custom scroll behavior.
@@ -0,0 +1,87 @@
1
+ # Testing with the RouterTestingHarness
2
+
3
+ When testing components that involve routing, it is crucial **not to mock the Router or related services**. Instead, use the `RouterTestingHarness`, which provides a robust and reliable way to test routing logic in an environment that closely mirrors a real application.
4
+
5
+ Using the harness ensures you are testing the actual router configuration, guards, and resolvers, leading to more meaningful tests.
6
+
7
+ ## Setting Up for Router Testing
8
+
9
+ The `RouterTestingHarness` is the primary tool for testing routing scenarios. You also need to provide your test routes using the `provideRouter` function in your `TestBed` configuration.
10
+
11
+ ### Example Setup
12
+
13
+ ```ts
14
+ import {TestBed} from '@angular/core/testing';
15
+ import {provideRouter} from '@angular/router';
16
+ import {RouterTestingHarness} from '@angular/router/testing';
17
+ import {Dashboard} from './dashboard.component';
18
+ import {HeroDetail} from './hero-detail.component';
19
+
20
+ describe('Dashboard Component Routing', () => {
21
+ let harness: RouterTestingHarness;
22
+
23
+ beforeEach(async () => {
24
+ // 1. Configure TestBed with test routes
25
+ await TestBed.configureTestingModule({
26
+ providers: [
27
+ // Use provideRouter with your test-specific routes
28
+ provideRouter([
29
+ {path: '', component: Dashboard},
30
+ {path: 'heroes/:id', component: HeroDetail},
31
+ ]),
32
+ ],
33
+ }).compileComponents();
34
+
35
+ // 2. Create the RouterTestingHarness
36
+ harness = await RouterTestingHarness.create();
37
+ });
38
+ });
39
+ ```
40
+
41
+ ### Key Concepts
42
+
43
+ 1. **`provideRouter([...])`**: Provide a test-specific routing configuration. This should include the routes necessary for the component-under-test to function correctly.
44
+ 2. **`RouterTestingHarness.create()`**: Asynchronously creates and initializes the harness and performs an initial navigation to the root URL (`/`).
45
+
46
+ ## Writing Router Tests
47
+
48
+ Once the harness is created, you can use it to drive navigation and make assertions on the state of the router and the activated components.
49
+
50
+ ### Example: Testing Navigation
51
+
52
+ ```ts
53
+ it('should navigate to a hero detail when a hero is selected', async () => {
54
+ // 1. Navigate to the initial component and get its instance
55
+ const dashboard = await harness.navigateByUrl('/', Dashboard);
56
+
57
+ // Suppose the dashboard has a method to select a hero
58
+ const heroToSelect = {id: 42, name: 'Test Hero'};
59
+ dashboard.selectHero(heroToSelect);
60
+
61
+ // Wait for stability after the action that triggers navigation
62
+ await harness.fixture.whenStable();
63
+
64
+ // 2. Assert on the URL
65
+ expect(harness.router.url).toEqual('/heroes/42');
66
+
67
+ // 3. Get the activated component after navigation
68
+ const heroDetail = await harness.getHarness(HeroDetail);
69
+
70
+ // 4. Assert on the state of the new component
71
+ expect(await heroDetail.componentInstance.hero.name).toBe('Test Hero');
72
+ });
73
+
74
+ it('should get the activated component directly', async () => {
75
+ // Navigate and get the component instance in one step
76
+ const dashboardInstance = await harness.navigateByUrl('/', Dashboard);
77
+
78
+ expect(dashboardInstance).toBeInstanceOf(Dashboard);
79
+ });
80
+ ```
81
+
82
+ ### Best Practices
83
+
84
+ - **Navigate with the Harness:** Always use `harness.navigateByUrl()` to simulate navigation. This method returns a promise that resolves with the instance of the activated component.
85
+ - **Access the Router State:** Use `harness.router` to access the live router instance and assert on its state (e.g., `harness.router.url`).
86
+ - **Get Activated Components:** Use `harness.getHarness(ComponentType)` to get an instance of a component harness for the currently activated routed component, or `harness.routeDebugElement` to get the `DebugElement`.
87
+ - **Wait for Stability:** After performing an action that causes navigation, always `await harness.fixture.whenStable()` to ensure the routing is complete before making assertions.