@cubis/foundry 0.3.71 → 0.3.73

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 (276) hide show
  1. package/CHANGELOG.md +23 -2
  2. package/dist/cli/core.js +9 -22
  3. package/dist/cli/core.js.map +1 -1
  4. package/package.json +1 -1
  5. package/src/cli/core.ts +13 -22
  6. package/workflows/powers/accessibility/POWER.md +83 -94
  7. package/workflows/powers/accessibility/SKILL.md +82 -94
  8. package/workflows/powers/agent-design/POWER.md +201 -0
  9. package/workflows/powers/agent-design/SKILL.md +198 -0
  10. package/workflows/powers/agent-design/references/clarification-patterns.md +153 -0
  11. package/workflows/powers/agent-design/references/skill-testing.md +164 -0
  12. package/workflows/powers/agent-design/references/workflow-patterns.md +226 -0
  13. package/workflows/powers/agentic-eval/POWER.md +62 -0
  14. package/workflows/powers/agentic-eval/SKILL.md +59 -0
  15. package/workflows/powers/agentic-eval/references/rubric-and-regression-checklist.md +11 -0
  16. package/workflows/powers/api-designer/POWER.md +43 -71
  17. package/workflows/powers/api-designer/SKILL.md +43 -71
  18. package/workflows/powers/api-patterns/POWER.md +42 -56
  19. package/workflows/powers/api-patterns/SKILL.md +42 -57
  20. package/workflows/powers/architecture-designer/POWER.md +43 -60
  21. package/workflows/powers/architecture-designer/SKILL.md +43 -60
  22. package/workflows/powers/ask-questions-if-underspecified/POWER.md +51 -3
  23. package/workflows/powers/auth-architect/POWER.md +69 -0
  24. package/workflows/powers/auth-architect/SKILL.md +66 -0
  25. package/workflows/powers/auth-architect/references/session-token-policy-checklist.md +45 -0
  26. package/workflows/powers/behavioral-modes/POWER.md +100 -9
  27. package/workflows/powers/c-pro/POWER.md +105 -0
  28. package/workflows/powers/c-pro/SKILL.md +102 -0
  29. package/workflows/powers/c-pro/references/build-systems-and-toolchains.md +148 -0
  30. package/workflows/powers/c-pro/references/common-ub-and-portability.md +166 -0
  31. package/workflows/powers/c-pro/references/debugging-with-sanitizers.md +205 -0
  32. package/workflows/powers/c-pro/references/memory-safety-and-build-checklist.md +60 -0
  33. package/workflows/powers/c-pro/references/posix-and-platform-apis.md +244 -0
  34. package/workflows/powers/changelog-generator/POWER.md +127 -63
  35. package/workflows/powers/changelog-generator/SKILL.md +126 -63
  36. package/workflows/powers/ci-cd-pipelines/POWER.md +156 -0
  37. package/workflows/powers/ci-cd-pipelines/SKILL.md +153 -0
  38. package/workflows/powers/ci-cd-pipelines/references/github-actions-patterns.md +160 -0
  39. package/workflows/powers/ci-cd-pipelines/references/pipeline-security-checklist.md +57 -0
  40. package/workflows/powers/cli-developer/POWER.md +152 -95
  41. package/workflows/powers/cli-developer/SKILL.md +152 -95
  42. package/workflows/powers/cpp-pro/POWER.md +111 -0
  43. package/workflows/powers/cpp-pro/SKILL.md +108 -0
  44. package/workflows/powers/cpp-pro/references/concurrency-primitives.md +266 -0
  45. package/workflows/powers/cpp-pro/references/move-semantics-and-value-types.md +149 -0
  46. package/workflows/powers/cpp-pro/references/performance-and-profiling.md +191 -0
  47. package/workflows/powers/cpp-pro/references/raii-and-modern-cpp-checklist.md +87 -0
  48. package/workflows/powers/cpp-pro/references/template-and-concepts-patterns.md +205 -0
  49. package/workflows/powers/csharp-pro/POWER.md +47 -22
  50. package/workflows/powers/csharp-pro/SKILL.md +47 -22
  51. package/workflows/powers/dart-pro/POWER.md +68 -0
  52. package/workflows/powers/dart-pro/SKILL.md +65 -0
  53. package/workflows/powers/dart-pro/references/isolate-and-concurrency.md +180 -0
  54. package/workflows/powers/dart-pro/references/null-safety-and-async-patterns.md +133 -0
  55. package/workflows/powers/dart-pro/references/package-structure-and-linting.md +193 -0
  56. package/workflows/powers/dart-pro/references/sealed-records-patterns.md +173 -0
  57. package/workflows/powers/dart-pro/references/testing-and-mocking.md +235 -0
  58. package/workflows/powers/database-design/POWER.md +47 -33
  59. package/workflows/powers/database-design/SKILL.md +47 -33
  60. package/workflows/powers/database-optimizer/POWER.md +43 -64
  61. package/workflows/powers/database-optimizer/SKILL.md +43 -64
  62. package/workflows/powers/database-skills/POWER.md +59 -93
  63. package/workflows/powers/database-skills/SKILL.md +59 -93
  64. package/workflows/powers/debugging-strategies/POWER.md +69 -0
  65. package/workflows/powers/debugging-strategies/SKILL.md +66 -0
  66. package/workflows/powers/debugging-strategies/references/reproduce-isolate-verify-checklist.md +42 -0
  67. package/workflows/powers/deep-research/POWER.md +67 -0
  68. package/workflows/powers/deep-research/SKILL.md +64 -0
  69. package/workflows/powers/deep-research/references/multi-round-research-loop.md +80 -0
  70. package/workflows/powers/design-system-builder/POWER.md +130 -116
  71. package/workflows/powers/design-system-builder/SKILL.md +130 -116
  72. package/workflows/powers/devops-engineer/POWER.md +120 -57
  73. package/workflows/powers/devops-engineer/SKILL.md +120 -57
  74. package/workflows/powers/docker-kubernetes/POWER.md +94 -0
  75. package/workflows/powers/docker-kubernetes/SKILL.md +91 -0
  76. package/workflows/powers/docker-kubernetes/references/dockerfile-optimization-checklist.md +35 -0
  77. package/workflows/powers/docker-kubernetes/references/kubernetes-deployment-patterns.md +59 -0
  78. package/workflows/powers/documentation-templates/POWER.md +158 -127
  79. package/workflows/powers/documentation-templates/SKILL.md +158 -127
  80. package/workflows/powers/drizzle-expert/POWER.md +66 -0
  81. package/workflows/powers/drizzle-expert/SKILL.md +63 -0
  82. package/workflows/powers/drizzle-expert/references/runtime-pairing-matrix.md +16 -0
  83. package/workflows/powers/drizzle-expert/references/schema-and-migration-playbook.md +18 -0
  84. package/workflows/powers/error-ux-observability/POWER.md +144 -131
  85. package/workflows/powers/error-ux-observability/SKILL.md +143 -131
  86. package/workflows/powers/fastapi-expert/POWER.md +46 -60
  87. package/workflows/powers/fastapi-expert/SKILL.md +46 -60
  88. package/workflows/powers/firebase/POWER.md +65 -0
  89. package/workflows/powers/firebase/SKILL.md +62 -0
  90. package/workflows/powers/firebase/references/platform-routing.md +16 -0
  91. package/workflows/powers/firebase/references/rules-and-indexes-checklist.md +11 -0
  92. package/workflows/powers/flutter-design-system/POWER.md +63 -0
  93. package/workflows/powers/flutter-design-system/SKILL.md +60 -0
  94. package/workflows/powers/flutter-design-system/references/shared-widgets.md +29 -0
  95. package/workflows/powers/flutter-design-system/references/tokens-and-theme.md +34 -0
  96. package/workflows/powers/flutter-drift/POWER.md +65 -0
  97. package/workflows/powers/flutter-drift/SKILL.md +62 -0
  98. package/workflows/powers/flutter-drift/references/migrations.md +22 -0
  99. package/workflows/powers/flutter-drift/references/query-patterns.md +26 -0
  100. package/workflows/powers/flutter-feature/POWER.md +65 -0
  101. package/workflows/powers/flutter-feature/SKILL.md +62 -0
  102. package/workflows/powers/flutter-feature/references/architecture-rules.md +85 -0
  103. package/workflows/powers/flutter-feature/references/composite-provider.md +58 -0
  104. package/workflows/powers/flutter-feature/references/outbox-pattern.md +87 -0
  105. package/workflows/powers/flutter-feature/references/testing-patterns.md +218 -0
  106. package/workflows/powers/flutter-go-router/POWER.md +64 -0
  107. package/workflows/powers/flutter-go-router/SKILL.md +61 -0
  108. package/workflows/powers/flutter-go-router/references/guards-and-deeplinks.md +20 -0
  109. package/workflows/powers/flutter-go-router/references/typed-routes.md +27 -0
  110. package/workflows/powers/flutter-offline-sync/POWER.md +62 -0
  111. package/workflows/powers/flutter-offline-sync/SKILL.md +59 -0
  112. package/workflows/powers/flutter-offline-sync/references/outbox-full.md +44 -0
  113. package/workflows/powers/flutter-repository/POWER.md +64 -0
  114. package/workflows/powers/flutter-repository/SKILL.md +61 -0
  115. package/workflows/powers/flutter-repository/references/drift-patterns.md +21 -0
  116. package/workflows/powers/flutter-repository/references/retrofit-patterns.md +20 -0
  117. package/workflows/powers/flutter-riverpod/POWER.md +70 -0
  118. package/workflows/powers/flutter-riverpod/SKILL.md +67 -0
  119. package/workflows/powers/flutter-riverpod/references/async-and-mutations.md +19 -0
  120. package/workflows/powers/flutter-riverpod/references/async-lifecycle.md +19 -0
  121. package/workflows/powers/flutter-riverpod/references/provider-selection.md +20 -0
  122. package/workflows/powers/flutter-riverpod/references/testing.md +21 -0
  123. package/workflows/powers/flutter-riverpod/references/version-matrix.md +24 -0
  124. package/workflows/powers/flutter-state-machine/POWER.md +62 -0
  125. package/workflows/powers/flutter-state-machine/SKILL.md +59 -0
  126. package/workflows/powers/flutter-state-machine/references/app-state-contract.md +23 -0
  127. package/workflows/powers/flutter-state-machine/references/ui-rendering.md +14 -0
  128. package/workflows/powers/flutter-testing/POWER.md +64 -0
  129. package/workflows/powers/flutter-testing/SKILL.md +61 -0
  130. package/workflows/powers/flutter-testing/references/offline-sync-tests.md +16 -0
  131. package/workflows/powers/flutter-testing/references/test-layers.md +33 -0
  132. package/workflows/powers/frontend-code-review/POWER.md +137 -0
  133. package/workflows/powers/frontend-code-review/SKILL.md +134 -0
  134. package/workflows/powers/frontend-code-review/references/common-antipatterns.md +86 -0
  135. package/workflows/powers/frontend-code-review/references/performance-budgets.md +56 -0
  136. package/workflows/powers/frontend-code-review/references/review-checklists.md +47 -0
  137. package/workflows/powers/frontend-design/POWER.md +163 -362
  138. package/workflows/powers/frontend-design/SKILL.md +163 -362
  139. package/workflows/powers/game-development/POWER.md +57 -140
  140. package/workflows/powers/game-development/SKILL.md +57 -140
  141. package/workflows/powers/geo-fundamentals/POWER.md +64 -126
  142. package/workflows/powers/geo-fundamentals/SKILL.md +64 -127
  143. package/workflows/powers/git-workflow/POWER.md +135 -0
  144. package/workflows/powers/git-workflow/SKILL.md +132 -0
  145. package/workflows/powers/git-workflow/references/pr-review-checklist.md +63 -0
  146. package/workflows/powers/golang-pro/POWER.md +46 -35
  147. package/workflows/powers/golang-pro/SKILL.md +46 -35
  148. package/workflows/powers/graphql-architect/POWER.md +44 -62
  149. package/workflows/powers/graphql-architect/SKILL.md +44 -62
  150. package/workflows/powers/i18n-localization/POWER.md +118 -103
  151. package/workflows/powers/i18n-localization/SKILL.md +118 -103
  152. package/workflows/powers/java-pro/POWER.md +47 -22
  153. package/workflows/powers/java-pro/SKILL.md +47 -22
  154. package/workflows/powers/javascript-pro/POWER.md +47 -34
  155. package/workflows/powers/javascript-pro/SKILL.md +47 -34
  156. package/workflows/powers/kotlin-pro/POWER.md +46 -23
  157. package/workflows/powers/kotlin-pro/SKILL.md +46 -23
  158. package/workflows/powers/legacy-modernizer/POWER.md +43 -60
  159. package/workflows/powers/legacy-modernizer/SKILL.md +43 -60
  160. package/workflows/powers/mcp-builder/POWER.md +65 -0
  161. package/workflows/powers/mcp-builder/SKILL.md +62 -0
  162. package/workflows/powers/mcp-builder/references/testing-and-evals.md +17 -0
  163. package/workflows/powers/mcp-builder/references/transport-and-tool-design.md +17 -0
  164. package/workflows/powers/microservices-architect/POWER.md +43 -70
  165. package/workflows/powers/microservices-architect/SKILL.md +43 -70
  166. package/workflows/powers/mobile-design/POWER.md +110 -345
  167. package/workflows/powers/mobile-design/SKILL.md +110 -345
  168. package/workflows/powers/mongodb/POWER.md +67 -0
  169. package/workflows/powers/mongodb/SKILL.md +64 -0
  170. package/workflows/powers/mongodb/references/mongodb-checklist.md +20 -0
  171. package/workflows/powers/mysql/POWER.md +67 -0
  172. package/workflows/powers/mysql/SKILL.md +64 -0
  173. package/workflows/powers/mysql/references/mysql-checklist.md +20 -0
  174. package/workflows/powers/neki/POWER.md +67 -0
  175. package/workflows/powers/neki/SKILL.md +64 -0
  176. package/workflows/powers/neki/references/neki-checklist.md +18 -0
  177. package/workflows/powers/nestjs-expert/POWER.md +45 -91
  178. package/workflows/powers/nestjs-expert/SKILL.md +45 -91
  179. package/workflows/powers/nextjs-developer/POWER.md +51 -44
  180. package/workflows/powers/nextjs-developer/SKILL.md +51 -44
  181. package/workflows/powers/nodejs-best-practices/POWER.md +48 -29
  182. package/workflows/powers/nodejs-best-practices/SKILL.md +48 -29
  183. package/workflows/powers/observability/POWER.md +109 -0
  184. package/workflows/powers/observability/SKILL.md +106 -0
  185. package/workflows/powers/observability/references/alerting-and-slo-checklist.md +87 -0
  186. package/workflows/powers/observability/references/opentelemetry-setup-guide.md +121 -0
  187. package/workflows/powers/openai-docs/POWER.md +61 -0
  188. package/workflows/powers/openai-docs/SKILL.md +58 -0
  189. package/workflows/powers/openai-docs/references/official-source-playbook.md +10 -0
  190. package/workflows/powers/performance-profiling/POWER.md +61 -114
  191. package/workflows/powers/performance-profiling/SKILL.md +61 -114
  192. package/workflows/powers/php-pro/POWER.md +116 -0
  193. package/workflows/powers/php-pro/SKILL.md +113 -0
  194. package/workflows/powers/php-pro/references/architecture-and-di.md +239 -0
  195. package/workflows/powers/php-pro/references/modern-php-features.md +189 -0
  196. package/workflows/powers/php-pro/references/performance-and-deployment.md +197 -0
  197. package/workflows/powers/php-pro/references/php84-strict-typing-checklist.md +161 -0
  198. package/workflows/powers/php-pro/references/testing-and-static-analysis.md +235 -0
  199. package/workflows/powers/playwright-e2e/POWER.md +85 -0
  200. package/workflows/powers/playwright-e2e/SKILL.md +82 -0
  201. package/workflows/powers/playwright-e2e/references/locator-trace-flake-checklist.md +80 -0
  202. package/workflows/powers/postgres/POWER.md +67 -0
  203. package/workflows/powers/postgres/SKILL.md +64 -0
  204. package/workflows/powers/postgres/references/postgres-checklist.md +20 -0
  205. package/workflows/powers/prompt-engineer/POWER.md +47 -30
  206. package/workflows/powers/prompt-engineer/SKILL.md +47 -30
  207. package/workflows/powers/python-pro/POWER.md +47 -36
  208. package/workflows/powers/python-pro/SKILL.md +47 -36
  209. package/workflows/powers/react-best-practices/POWER.md +56 -33
  210. package/workflows/powers/react-best-practices/SKILL.md +56 -33
  211. package/workflows/powers/react-expert/POWER.md +47 -37
  212. package/workflows/powers/react-expert/SKILL.md +47 -37
  213. package/workflows/powers/redis/POWER.md +67 -0
  214. package/workflows/powers/redis/SKILL.md +64 -0
  215. package/workflows/powers/redis/references/redis-checklist.md +19 -0
  216. package/workflows/powers/ruby-pro/POWER.md +118 -0
  217. package/workflows/powers/ruby-pro/SKILL.md +115 -0
  218. package/workflows/powers/ruby-pro/references/modern-ruby-features.md +189 -0
  219. package/workflows/powers/ruby-pro/references/object-design-patterns.md +220 -0
  220. package/workflows/powers/ruby-pro/references/performance-and-profiling.md +224 -0
  221. package/workflows/powers/ruby-pro/references/ruby-concurrency-and-testing.md +190 -0
  222. package/workflows/powers/ruby-pro/references/testing-and-rspec.md +236 -0
  223. package/workflows/powers/rust-pro/POWER.md +45 -31
  224. package/workflows/powers/rust-pro/SKILL.md +45 -31
  225. package/workflows/powers/security-engineer/POWER.md +129 -0
  226. package/workflows/powers/security-engineer/SKILL.md +126 -0
  227. package/workflows/powers/seo-fundamentals/POWER.md +59 -102
  228. package/workflows/powers/seo-fundamentals/SKILL.md +59 -102
  229. package/workflows/powers/serverless-patterns/POWER.md +171 -0
  230. package/workflows/powers/serverless-patterns/SKILL.md +168 -0
  231. package/workflows/powers/skill-creator/POWER.md +90 -0
  232. package/workflows/powers/skill-creator/SKILL.md +87 -0
  233. package/workflows/powers/skill-creator/references/platform-formats.md +181 -0
  234. package/workflows/powers/skill-creator/references/schemas.md +430 -0
  235. package/workflows/powers/spec-miner/POWER.md +49 -57
  236. package/workflows/powers/spec-miner/SKILL.md +49 -57
  237. package/workflows/powers/sqlite/POWER.md +67 -0
  238. package/workflows/powers/sqlite/SKILL.md +64 -0
  239. package/workflows/powers/sqlite/references/sqlite-checklist.md +19 -0
  240. package/workflows/powers/sre-engineer/POWER.md +123 -64
  241. package/workflows/powers/sre-engineer/SKILL.md +123 -64
  242. package/workflows/powers/static-analysis/POWER.md +121 -77
  243. package/workflows/powers/static-analysis/SKILL.md +121 -77
  244. package/workflows/powers/stripe-best-practices/POWER.md +140 -17
  245. package/workflows/powers/stripe-best-practices/SKILL.md +139 -17
  246. package/workflows/powers/supabase/POWER.md +67 -0
  247. package/workflows/powers/supabase/SKILL.md +64 -0
  248. package/workflows/powers/supabase/references/supabase-checklist.md +19 -0
  249. package/workflows/powers/swift-pro/POWER.md +118 -0
  250. package/workflows/powers/swift-pro/SKILL.md +115 -0
  251. package/workflows/powers/swift-pro/references/concurrency-patterns.md +165 -0
  252. package/workflows/powers/swift-pro/references/protocol-and-generics.md +172 -0
  253. package/workflows/powers/swift-pro/references/sendable-and-isolation.md +116 -0
  254. package/workflows/powers/swift-pro/references/swift-concurrency-and-protocols.md +260 -0
  255. package/workflows/powers/swift-pro/references/testing-and-packages.md +192 -0
  256. package/workflows/powers/tailwind-patterns/POWER.md +71 -240
  257. package/workflows/powers/tailwind-patterns/SKILL.md +71 -240
  258. package/workflows/powers/testing-patterns/POWER.md +155 -10
  259. package/workflows/powers/testing-patterns/SKILL.md +155 -10
  260. package/workflows/powers/typescript-pro/POWER.md +47 -38
  261. package/workflows/powers/typescript-pro/SKILL.md +47 -38
  262. package/workflows/powers/vitess/POWER.md +67 -0
  263. package/workflows/powers/vitess/SKILL.md +64 -0
  264. package/workflows/powers/vitess/references/vitess-checklist.md +19 -0
  265. package/workflows/powers/vulnerability-scanner/POWER.md +146 -10
  266. package/workflows/powers/vulnerability-scanner/SKILL.md +146 -10
  267. package/workflows/powers/web-perf/POWER.md +43 -170
  268. package/workflows/powers/web-perf/SKILL.md +43 -170
  269. package/workflows/powers/webapp-testing/POWER.md +43 -164
  270. package/workflows/powers/webapp-testing/SKILL.md +43 -164
  271. package/workflows/workflows/agent-environment-setup/platforms/antigravity/rules/GEMINI.md +65 -42
  272. package/workflows/workflows/agent-environment-setup/platforms/claude/rules/CLAUDE.md +8 -6
  273. package/workflows/workflows/agent-environment-setup/platforms/codex/rules/AGENTS.md +65 -41
  274. package/workflows/workflows/agent-environment-setup/platforms/copilot/rules/copilot-instructions.md +8 -6
  275. package/workflows/workflows/agent-environment-setup/shared/rules/STEERING.md +9 -8
  276. package/workflows/workflows/agent-environment-setup/shared/rules/overrides/codex.md +1 -1
@@ -0,0 +1,129 @@
1
+ ````markdown
2
+ ---
3
+ inclusion: manual
4
+ name: security-engineer
5
+ description: Apply secure coding practices, OWASP Top 10 mitigations, threat modeling, input validation, and vulnerability prevention across web, API, and backend systems.
6
+ license: Apache-2.0
7
+ metadata:
8
+ author: cubis-foundry
9
+ version: "3.0"
10
+ compatibility: Claude Code, Codex, GitHub Copilot, Gemini CLI
11
+ ---
12
+
13
+ # Security Engineer
14
+
15
+ ## Purpose
16
+
17
+ Guide secure software development practices. Identify and fix vulnerabilities, apply OWASP Top 10 mitigations, build threat models, and enforce secure coding patterns across the full stack.
18
+
19
+ ## When to Use
20
+
21
+ - Reviewing code for security vulnerabilities
22
+ - Designing authentication, authorization, or data protection
23
+ - Implementing input validation and output encoding
24
+ - Building threat models for new features or systems
25
+ - Hardening APIs, databases, or infrastructure
26
+ - Responding to security incidents or CVE disclosures
27
+
28
+ ## Instructions
29
+
30
+ ### Step 1 — Identify the Attack Surface
31
+
32
+ Map what's exposed:
33
+
34
+ - **User inputs**: forms, URL params, headers, cookies, file uploads
35
+ - **APIs**: endpoints, authentication, rate limiting, CORS
36
+ - **Data stores**: database queries, file system access, caches
37
+ - **Third-party**: external services, SDKs, dependencies
38
+ - **Infrastructure**: secrets management, network exposure, permissions
39
+
40
+ ### Step 2 — Apply OWASP Top 10 Checks
41
+
42
+ | # | Risk | Key Mitigation |
43
+ | --- | ------------------------- | ------------------------------------------------------------------------------- |
44
+ | A01 | Broken Access Control | Deny by default, validate permissions on every request, server-side enforcement |
45
+ | A02 | Cryptographic Failures | TLS everywhere, hash passwords with Argon2/bcrypt, never roll custom crypto |
46
+ | A03 | Injection | Parameterized queries, prepared statements, contextual output encoding |
47
+ | A04 | Insecure Design | Threat modeling before implementation, abuse case analysis |
48
+ | A05 | Security Misconfiguration | Minimal permissions, disable debug in production, security headers |
49
+ | A06 | Vulnerable Components | Dependency scanning, automated updates, SBOM |
50
+ | A07 | Auth Failures | MFA, rate limiting, secure session management, credential stuffing protection |
51
+ | A08 | Data Integrity Failures | Verify signatures, integrity checks on CI/CD, signed artifacts |
52
+ | A09 | Logging Failures | Log security events, never log secrets, tamper-evident logs |
53
+ | A10 | SSRF | Allowlist outbound URLs, validate/sanitize URLs, block internal network access |
54
+
55
+ ### Step 3 — Secure Coding Patterns
56
+
57
+ **Input Validation**:
58
+
59
+ - Validate on the server (client validation is UX, not security)
60
+ - Allowlist valid inputs rather than blocklisting bad ones
61
+ - Validate type, length, range, and format
62
+ - Reject early and fail safely
63
+
64
+ **Output Encoding**:
65
+
66
+ - HTML context: HTML-entity encode
67
+ - JavaScript context: JavaScript-encode
68
+ - URL context: URL-encode
69
+ - SQL context: parameterized queries (never string concatenation)
70
+
71
+ **Authentication**:
72
+
73
+ - Hash passwords with Argon2id (preferred) or bcrypt (minimum work factor 12)
74
+ - Use constant-time comparison for secrets
75
+ - Implement account lockout with progressive delays
76
+ - Session tokens: cryptographically random, HttpOnly, Secure, SameSite=Strict
77
+
78
+ **Authorization**:
79
+
80
+ - Check permissions on every request (not just UI hiding)
81
+ - Use RBAC or ABAC — not role checks scattered in business logic
82
+ - Principle of least privilege for all service accounts
83
+
84
+ **Secrets Management**:
85
+
86
+ - Never hardcode secrets in source code
87
+ - Use environment variables or secret managers (Vault, AWS Secrets Manager)
88
+ - Rotate secrets regularly
89
+ - Audit secret access
90
+
91
+ ### Step 4 — Threat Modeling
92
+
93
+ Use STRIDE for systematic analysis:
94
+
95
+ | Threat | Question |
96
+ | -------------------------- | ---------------------------------------------- |
97
+ | **S**poofing | Can someone impersonate a user or service? |
98
+ | **T**ampering | Can someone modify data in transit or at rest? |
99
+ | **R**epudiation | Can someone deny performing an action? |
100
+ | **I**nformation Disclosure | Can someone access unauthorized data? |
101
+ | **D**enial of Service | Can someone make the system unavailable? |
102
+ | **E**levation of Privilege | Can someone gain unauthorized access levels? |
103
+
104
+ ## Output Format
105
+
106
+ ```
107
+ ## Security Review Summary
108
+ [Overall risk assessment: Low / Medium / High / Critical]
109
+
110
+ ## Critical Findings
111
+ - **[OWASP #]**: [vulnerability] → [specific fix with code]
112
+
113
+ ## Recommendations
114
+ - [priority-ordered list of security improvements]
115
+
116
+ ## Secure Patterns Applied
117
+ - ✓ [what's already done well]
118
+ ```
119
+
120
+ ## Examples
121
+
122
+ **User**: "Review this login endpoint for security issues"
123
+
124
+ **Response approach**: Check password hashing algorithm, session management, rate limiting, CSRF protection, input validation, error messages (no user enumeration), audit logging, TLS enforcement.
125
+
126
+ **User**: "We're building a file upload feature"
127
+
128
+ **Response approach**: Validate file type (magic bytes, not just extension), limit file size, store outside web root, generate random filenames, scan for malware, set Content-Disposition headers, restrict MIME types.
129
+ ````
@@ -0,0 +1,126 @@
1
+ ---
2
+ name: security-engineer
3
+ description: Apply secure coding practices, OWASP Top 10 mitigations, threat modeling, input validation, and vulnerability prevention across web, API, and backend systems.
4
+ license: Apache-2.0
5
+ metadata:
6
+ author: cubis-foundry
7
+ version: "3.0"
8
+ compatibility: Claude Code, Codex, GitHub Copilot, Gemini CLI
9
+ ---
10
+
11
+ # Security Engineer
12
+
13
+ ## Purpose
14
+
15
+ Guide secure software development practices. Identify and fix vulnerabilities, apply OWASP Top 10 mitigations, build threat models, and enforce secure coding patterns across the full stack.
16
+
17
+ ## When to Use
18
+
19
+ - Reviewing code for security vulnerabilities
20
+ - Designing authentication, authorization, or data protection
21
+ - Implementing input validation and output encoding
22
+ - Building threat models for new features or systems
23
+ - Hardening APIs, databases, or infrastructure
24
+ - Responding to security incidents or CVE disclosures
25
+
26
+ ## Instructions
27
+
28
+ ### Step 1 — Identify the Attack Surface
29
+
30
+ Map what's exposed:
31
+
32
+ - **User inputs**: forms, URL params, headers, cookies, file uploads
33
+ - **APIs**: endpoints, authentication, rate limiting, CORS
34
+ - **Data stores**: database queries, file system access, caches
35
+ - **Third-party**: external services, SDKs, dependencies
36
+ - **Infrastructure**: secrets management, network exposure, permissions
37
+
38
+ ### Step 2 — Apply OWASP Top 10 Checks
39
+
40
+ | # | Risk | Key Mitigation |
41
+ | --- | ------------------------- | ------------------------------------------------------------------------------- |
42
+ | A01 | Broken Access Control | Deny by default, validate permissions on every request, server-side enforcement |
43
+ | A02 | Cryptographic Failures | TLS everywhere, hash passwords with Argon2/bcrypt, never roll custom crypto |
44
+ | A03 | Injection | Parameterized queries, prepared statements, contextual output encoding |
45
+ | A04 | Insecure Design | Threat modeling before implementation, abuse case analysis |
46
+ | A05 | Security Misconfiguration | Minimal permissions, disable debug in production, security headers |
47
+ | A06 | Vulnerable Components | Dependency scanning, automated updates, SBOM |
48
+ | A07 | Auth Failures | MFA, rate limiting, secure session management, credential stuffing protection |
49
+ | A08 | Data Integrity Failures | Verify signatures, integrity checks on CI/CD, signed artifacts |
50
+ | A09 | Logging Failures | Log security events, never log secrets, tamper-evident logs |
51
+ | A10 | SSRF | Allowlist outbound URLs, validate/sanitize URLs, block internal network access |
52
+
53
+ ### Step 3 — Secure Coding Patterns
54
+
55
+ **Input Validation**:
56
+
57
+ - Validate on the server (client validation is UX, not security)
58
+ - Allowlist valid inputs rather than blocklisting bad ones
59
+ - Validate type, length, range, and format
60
+ - Reject early and fail safely
61
+
62
+ **Output Encoding**:
63
+
64
+ - HTML context: HTML-entity encode
65
+ - JavaScript context: JavaScript-encode
66
+ - URL context: URL-encode
67
+ - SQL context: parameterized queries (never string concatenation)
68
+
69
+ **Authentication**:
70
+
71
+ - Hash passwords with Argon2id (preferred) or bcrypt (minimum work factor 12)
72
+ - Use constant-time comparison for secrets
73
+ - Implement account lockout with progressive delays
74
+ - Session tokens: cryptographically random, HttpOnly, Secure, SameSite=Strict
75
+
76
+ **Authorization**:
77
+
78
+ - Check permissions on every request (not just UI hiding)
79
+ - Use RBAC or ABAC — not role checks scattered in business logic
80
+ - Principle of least privilege for all service accounts
81
+
82
+ **Secrets Management**:
83
+
84
+ - Never hardcode secrets in source code
85
+ - Use environment variables or secret managers (Vault, AWS Secrets Manager)
86
+ - Rotate secrets regularly
87
+ - Audit secret access
88
+
89
+ ### Step 4 — Threat Modeling
90
+
91
+ Use STRIDE for systematic analysis:
92
+
93
+ | Threat | Question |
94
+ | -------------------------- | ---------------------------------------------- |
95
+ | **S**poofing | Can someone impersonate a user or service? |
96
+ | **T**ampering | Can someone modify data in transit or at rest? |
97
+ | **R**epudiation | Can someone deny performing an action? |
98
+ | **I**nformation Disclosure | Can someone access unauthorized data? |
99
+ | **D**enial of Service | Can someone make the system unavailable? |
100
+ | **E**levation of Privilege | Can someone gain unauthorized access levels? |
101
+
102
+ ## Output Format
103
+
104
+ ```
105
+ ## Security Review Summary
106
+ [Overall risk assessment: Low / Medium / High / Critical]
107
+
108
+ ## Critical Findings
109
+ - **[OWASP #]**: [vulnerability] → [specific fix with code]
110
+
111
+ ## Recommendations
112
+ - [priority-ordered list of security improvements]
113
+
114
+ ## Secure Patterns Applied
115
+ - ✓ [what's already done well]
116
+ ```
117
+
118
+ ## Examples
119
+
120
+ **User**: "Review this login endpoint for security issues"
121
+
122
+ **Response approach**: Check password hashing algorithm, session management, rate limiting, CSRF protection, input validation, error messages (no user enumeration), audit logging, TLS enforcement.
123
+
124
+ **User**: "We're building a file upload feature"
125
+
126
+ **Response approach**: Validate file type (magic bytes, not just extension), limit file size, store outside web root, generate random filenames, scan for malware, set Content-Disposition headers, restrict MIME types.
@@ -2,131 +2,88 @@
2
2
  ---
3
3
  inclusion: manual
4
4
  name: seo-fundamentals
5
- description: SEO fundamentals, E-E-A-T, Core Web Vitals, and Google algorithm principles.
6
- allowed-tools: Read, Glob, Grep
5
+ description: "Use when implementing technical SEO, content optimization, schema markup, or Core Web Vitals improvements for search engine visibility."
6
+ license: MIT
7
+ metadata:
8
+ author: cubis-foundry
9
+ version: "1.0"
10
+ compatibility: Claude Code, Codex, GitHub Copilot
7
11
  ---
8
12
 
9
13
  # SEO Fundamentals
10
14
 
11
- > Principles for search engine visibility.
15
+ ## Purpose
12
16
 
13
- ---
14
-
15
- ## 1. E-E-A-T Framework
16
-
17
- | Principle | Signals |
18
- |-----------|---------|
19
- | **Experience** | First-hand knowledge, real examples |
20
- | **Expertise** | Credentials, depth of knowledge |
21
- | **Authoritativeness** | Backlinks, mentions, industry recognition |
22
- | **Trustworthiness** | HTTPS, transparency, accurate info |
17
+ Use when implementing technical SEO, content optimization, schema markup, or Core Web Vitals improvements for search engine visibility.
23
18
 
24
- ---
19
+ ## When to Use
25
20
 
26
- ## 2. Core Web Vitals
21
+ - Implementing technical SEO (sitemaps, robots.txt, canonical tags, HTTPS, meta tags).
22
+ - Optimizing Core Web Vitals (LCP, INP, CLS) for search ranking.
23
+ - Adding structured data and schema markup (Article, FAQPage, Product, Organization).
24
+ - Improving content quality using E-E-A-T framework.
25
+ - Auditing a site for SEO issues and prioritizing fixes.
27
26
 
28
- | Metric | Target | Measures |
29
- |--------|--------|----------|
30
- | **LCP** | < 2.5s | Loading performance |
31
- | **INP** | < 200ms | Interactivity |
32
- | **CLS** | < 0.1 | Visual stability |
27
+ ## Instructions
33
28
 
34
- ---
29
+ 1. Audit technical SEO fundamentals — sitemaps, robots.txt, canonical tags, HTTPS, meta tags.
30
+ 2. Measure Core Web Vitals — LCP < 2.5s, INP < 200ms, CLS < 0.1.
31
+ 3. Implement structured data with appropriate schema types.
32
+ 4. Evaluate content quality against E-E-A-T (Experience, Expertise, Authoritativeness, Trustworthiness).
33
+ 5. Prioritize fixes by impact: content quality > backlinks > page experience > technical SEO.
35
34
 
36
- ## 3. Technical SEO Principles
35
+ ### Baseline standards
37
36
 
38
- ### Site Structure
37
+ - Core Web Vitals targets: LCP < 2.5s, INP < 200ms, CLS < 0.1.
38
+ - Every page must have unique title + meta description.
39
+ - XML sitemap must be current and submitted.
40
+ - Canonical tags must prevent duplicate content issues.
41
+ - Schema markup must validate against Google's structured data testing tool.
39
42
 
40
- | Element | Purpose |
41
- |---------|---------|
42
- | XML sitemap | Help crawling |
43
- | robots.txt | Control access |
44
- | Canonical tags | Prevent duplicates |
45
- | HTTPS | Security signal |
43
+ ### Ranking factors priority
46
44
 
47
- ### Performance
45
+ | Priority | Factor |
46
+ | -------- | ------------------------------------------ |
47
+ | 1 | Content quality and relevance |
48
+ | 2 | Backlink profile |
49
+ | 3 | Page experience (Core Web Vitals) |
50
+ | 4 | Technical SEO (crawlability, indexability) |
51
+ | 5 | Content freshness |
48
52
 
49
- | Factor | Impact |
50
- |--------|--------|
51
- | Page speed | Core Web Vital |
52
- | Mobile-friendly | Ranking factor |
53
- | Clean URLs | Crawlability |
53
+ ### Schema types reference
54
54
 
55
- ---
55
+ | Type | Use For |
56
+ | -------------- | ------------------------- |
57
+ | Article | Blog posts, news articles |
58
+ | Organization | Company info, contact |
59
+ | FAQPage | FAQ sections |
60
+ | Product | E-commerce product pages |
61
+ | Review | User reviews, ratings |
62
+ | BreadcrumbList | Navigation breadcrumbs |
63
+ | HowTo | Step-by-step guides |
56
64
 
57
- ## 4. Content SEO Principles
65
+ ### Constraints
58
66
 
59
- ### Page Elements
67
+ - Never use hidden text, keyword stuffing, or cloaking.
68
+ - Never create doorway pages or thin content for ranking.
69
+ - Always follow Google's webmaster guidelines.
70
+ - Always validate schema markup before deploying.
60
71
 
61
- | Element | Best Practice |
62
- |---------|---------------|
63
- | Title tag | 50-60 chars, keyword front |
64
- | Meta description | 150-160 chars, compelling |
65
- | H1 | One per page, main keyword |
66
- | H2-H6 | Logical hierarchy |
67
- | Alt text | Descriptive, not stuffed |
72
+ ## Output Format
68
73
 
69
- ### Content Quality
74
+ Provide SEO audit findings, implementation guidance, schema markup code, and Core Web Vitals optimization recommendations.
70
75
 
71
- | Factor | Importance |
72
- |--------|------------|
73
- | Depth | Comprehensive coverage |
74
- | Freshness | Regular updates |
75
- | Uniqueness | Original value |
76
- | Readability | Clear writing |
76
+ ## References
77
77
 
78
- ---
79
-
80
- ## 5. Schema Markup Types
81
-
82
- | Type | Use |
83
- |------|-----|
84
- | Article | Blog posts, news |
85
- | Organization | Company info |
86
- | Person | Author profiles |
87
- | FAQPage | Q&A content |
88
- | Product | E-commerce |
89
- | Review | Ratings |
90
- | BreadcrumbList | Navigation |
91
-
92
- ---
78
+ No reference files for this skill right now.
93
79
 
94
- ## 6. AI Content Guidelines
80
+ ## Scripts
95
81
 
96
- ### What Google Looks For
82
+ No helper scripts are required for this skill right now.
97
83
 
98
- | ✅ Do | ❌ Don't |
99
- |-------|----------|
100
- | AI draft + human edit | Publish raw AI content |
101
- | Add original insights | Copy without value |
102
- | Expert review | Skip fact-checking |
103
- | Follow E-E-A-T | Keyword stuffing |
104
-
105
- ---
106
-
107
- ## 7. Ranking Factors (Prioritized)
108
-
109
- | Priority | Factor |
110
- |----------|--------|
111
- | 1 | Quality, relevant content |
112
- | 2 | Backlinks from authority sites |
113
- | 3 | Page experience (Core Web Vitals) |
114
- | 4 | Mobile optimization |
115
- | 5 | Technical SEO fundamentals |
116
-
117
- ---
118
-
119
- ## 8. Measurement
120
-
121
- | Metric | Tool |
122
- |--------|------|
123
- | Rankings | Search Console, Ahrefs |
124
- | Traffic | Analytics |
125
- | Core Web Vitals | PageSpeed Insights |
126
- | Indexing | Search Console |
127
- | Backlinks | Ahrefs, Semrush |
128
-
129
- ---
84
+ ## Examples
130
85
 
131
- > **Remember:** SEO is a long-term game. Quality content + technical excellence + patience = results.
86
+ - "Audit this Next.js site for SEO issues and prioritize fixes"
87
+ - "Add structured data markup for our product pages"
88
+ - "Improve Core Web Vitals scores on our landing pages"
132
89
  ````
@@ -1,129 +1,86 @@
1
1
  ---
2
2
  name: seo-fundamentals
3
- description: SEO fundamentals, E-E-A-T, Core Web Vitals, and Google algorithm principles.
4
- allowed-tools: Read, Glob, Grep
3
+ description: "Use when implementing technical SEO, content optimization, schema markup, or Core Web Vitals improvements for search engine visibility."
4
+ license: MIT
5
+ metadata:
6
+ author: cubis-foundry
7
+ version: "1.0"
8
+ compatibility: Claude Code, Codex, GitHub Copilot
5
9
  ---
6
10
 
7
11
  # SEO Fundamentals
8
12
 
9
- > Principles for search engine visibility.
13
+ ## Purpose
10
14
 
11
- ---
12
-
13
- ## 1. E-E-A-T Framework
14
-
15
- | Principle | Signals |
16
- |-----------|---------|
17
- | **Experience** | First-hand knowledge, real examples |
18
- | **Expertise** | Credentials, depth of knowledge |
19
- | **Authoritativeness** | Backlinks, mentions, industry recognition |
20
- | **Trustworthiness** | HTTPS, transparency, accurate info |
15
+ Use when implementing technical SEO, content optimization, schema markup, or Core Web Vitals improvements for search engine visibility.
21
16
 
22
- ---
17
+ ## When to Use
23
18
 
24
- ## 2. Core Web Vitals
19
+ - Implementing technical SEO (sitemaps, robots.txt, canonical tags, HTTPS, meta tags).
20
+ - Optimizing Core Web Vitals (LCP, INP, CLS) for search ranking.
21
+ - Adding structured data and schema markup (Article, FAQPage, Product, Organization).
22
+ - Improving content quality using E-E-A-T framework.
23
+ - Auditing a site for SEO issues and prioritizing fixes.
25
24
 
26
- | Metric | Target | Measures |
27
- |--------|--------|----------|
28
- | **LCP** | < 2.5s | Loading performance |
29
- | **INP** | < 200ms | Interactivity |
30
- | **CLS** | < 0.1 | Visual stability |
25
+ ## Instructions
31
26
 
32
- ---
27
+ 1. Audit technical SEO fundamentals — sitemaps, robots.txt, canonical tags, HTTPS, meta tags.
28
+ 2. Measure Core Web Vitals — LCP < 2.5s, INP < 200ms, CLS < 0.1.
29
+ 3. Implement structured data with appropriate schema types.
30
+ 4. Evaluate content quality against E-E-A-T (Experience, Expertise, Authoritativeness, Trustworthiness).
31
+ 5. Prioritize fixes by impact: content quality > backlinks > page experience > technical SEO.
33
32
 
34
- ## 3. Technical SEO Principles
33
+ ### Baseline standards
35
34
 
36
- ### Site Structure
35
+ - Core Web Vitals targets: LCP < 2.5s, INP < 200ms, CLS < 0.1.
36
+ - Every page must have unique title + meta description.
37
+ - XML sitemap must be current and submitted.
38
+ - Canonical tags must prevent duplicate content issues.
39
+ - Schema markup must validate against Google's structured data testing tool.
37
40
 
38
- | Element | Purpose |
39
- |---------|---------|
40
- | XML sitemap | Help crawling |
41
- | robots.txt | Control access |
42
- | Canonical tags | Prevent duplicates |
43
- | HTTPS | Security signal |
41
+ ### Ranking factors priority
44
42
 
45
- ### Performance
43
+ | Priority | Factor |
44
+ | -------- | ------------------------------------------ |
45
+ | 1 | Content quality and relevance |
46
+ | 2 | Backlink profile |
47
+ | 3 | Page experience (Core Web Vitals) |
48
+ | 4 | Technical SEO (crawlability, indexability) |
49
+ | 5 | Content freshness |
46
50
 
47
- | Factor | Impact |
48
- |--------|--------|
49
- | Page speed | Core Web Vital |
50
- | Mobile-friendly | Ranking factor |
51
- | Clean URLs | Crawlability |
51
+ ### Schema types reference
52
52
 
53
- ---
53
+ | Type | Use For |
54
+ | -------------- | ------------------------- |
55
+ | Article | Blog posts, news articles |
56
+ | Organization | Company info, contact |
57
+ | FAQPage | FAQ sections |
58
+ | Product | E-commerce product pages |
59
+ | Review | User reviews, ratings |
60
+ | BreadcrumbList | Navigation breadcrumbs |
61
+ | HowTo | Step-by-step guides |
54
62
 
55
- ## 4. Content SEO Principles
63
+ ### Constraints
56
64
 
57
- ### Page Elements
65
+ - Never use hidden text, keyword stuffing, or cloaking.
66
+ - Never create doorway pages or thin content for ranking.
67
+ - Always follow Google's webmaster guidelines.
68
+ - Always validate schema markup before deploying.
58
69
 
59
- | Element | Best Practice |
60
- |---------|---------------|
61
- | Title tag | 50-60 chars, keyword front |
62
- | Meta description | 150-160 chars, compelling |
63
- | H1 | One per page, main keyword |
64
- | H2-H6 | Logical hierarchy |
65
- | Alt text | Descriptive, not stuffed |
70
+ ## Output Format
66
71
 
67
- ### Content Quality
72
+ Provide SEO audit findings, implementation guidance, schema markup code, and Core Web Vitals optimization recommendations.
68
73
 
69
- | Factor | Importance |
70
- |--------|------------|
71
- | Depth | Comprehensive coverage |
72
- | Freshness | Regular updates |
73
- | Uniqueness | Original value |
74
- | Readability | Clear writing |
74
+ ## References
75
75
 
76
- ---
77
-
78
- ## 5. Schema Markup Types
79
-
80
- | Type | Use |
81
- |------|-----|
82
- | Article | Blog posts, news |
83
- | Organization | Company info |
84
- | Person | Author profiles |
85
- | FAQPage | Q&A content |
86
- | Product | E-commerce |
87
- | Review | Ratings |
88
- | BreadcrumbList | Navigation |
89
-
90
- ---
76
+ No reference files for this skill right now.
91
77
 
92
- ## 6. AI Content Guidelines
78
+ ## Scripts
93
79
 
94
- ### What Google Looks For
80
+ No helper scripts are required for this skill right now.
95
81
 
96
- | ✅ Do | ❌ Don't |
97
- |-------|----------|
98
- | AI draft + human edit | Publish raw AI content |
99
- | Add original insights | Copy without value |
100
- | Expert review | Skip fact-checking |
101
- | Follow E-E-A-T | Keyword stuffing |
102
-
103
- ---
104
-
105
- ## 7. Ranking Factors (Prioritized)
106
-
107
- | Priority | Factor |
108
- |----------|--------|
109
- | 1 | Quality, relevant content |
110
- | 2 | Backlinks from authority sites |
111
- | 3 | Page experience (Core Web Vitals) |
112
- | 4 | Mobile optimization |
113
- | 5 | Technical SEO fundamentals |
114
-
115
- ---
116
-
117
- ## 8. Measurement
118
-
119
- | Metric | Tool |
120
- |--------|------|
121
- | Rankings | Search Console, Ahrefs |
122
- | Traffic | Analytics |
123
- | Core Web Vitals | PageSpeed Insights |
124
- | Indexing | Search Console |
125
- | Backlinks | Ahrefs, Semrush |
126
-
127
- ---
82
+ ## Examples
128
83
 
129
- > **Remember:** SEO is a long-term game. Quality content + technical excellence + patience = results.
84
+ - "Audit this Next.js site for SEO issues and prioritize fixes"
85
+ - "Add structured data markup for our product pages"
86
+ - "Improve Core Web Vitals scores on our landing pages"