@synapta/skills 0.1.0 → 0.1.2

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 (353) hide show
  1. package/dist/index.js +11 -4
  2. package/package.json +3 -4
  3. package/skills/ATTRIBUTION.md +80 -0
  4. package/skills/accessibility-audit/SKILL.md +325 -0
  5. package/skills/accessibility-audit/reference/wcag-checklist.md +103 -0
  6. package/skills/apns-notifier/SKILL.md +86 -0
  7. package/skills/approval-policy-enforcer/SKILL.md +66 -0
  8. package/skills/apps-sdk-builder/LICENSE.txt +201 -0
  9. package/skills/apps-sdk-builder/SKILL.md +328 -0
  10. package/skills/apps-sdk-builder/agents/openai.yaml +13 -0
  11. package/skills/apps-sdk-builder/references/app-archetypes.md +132 -0
  12. package/skills/apps-sdk-builder/references/apps-sdk-docs-workflow.md +135 -0
  13. package/skills/apps-sdk-builder/references/interactive-state-sync-patterns.md +113 -0
  14. package/skills/apps-sdk-builder/references/repo-contract-and-validation.md +93 -0
  15. package/skills/apps-sdk-builder/references/search-fetch-standard.md +67 -0
  16. package/skills/apps-sdk-builder/references/upstream-example-workflow.md +79 -0
  17. package/skills/apps-sdk-builder/references/window-openai-patterns.md +79 -0
  18. package/skills/apps-sdk-builder/scripts/scaffold_node_ext_apps.mjs +606 -0
  19. package/skills/architecture-selector/SKILL.md +64 -0
  20. package/skills/backlog-planner/SKILL.md +68 -0
  21. package/skills/carplay-entitlement-checker/SKILL.md +82 -0
  22. package/skills/concept-discovery/SKILL.md +517 -0
  23. package/skills/concept-discovery/assets/sample-analysis.json +81 -0
  24. package/skills/concept-discovery/expected_outputs/sample-enum-dictionary.md +25 -0
  25. package/skills/concept-discovery/expected_outputs/sample-page-user-list.md +83 -0
  26. package/skills/concept-discovery/expected_outputs/sample-prd-readme.md +43 -0
  27. package/skills/concept-discovery/references/framework-patterns.md +228 -0
  28. package/skills/concept-discovery/references/prd-quality-checklist.md +65 -0
  29. package/skills/concept-discovery/scripts/codebase_analyzer.py +732 -0
  30. package/skills/concept-discovery/scripts/prd_scaffolder.py +435 -0
  31. package/skills/dast-zap/SKILL.md +453 -0
  32. package/skills/dast-zap/assets/.gitkeep +9 -0
  33. package/skills/dast-zap/assets/github_action.yml +207 -0
  34. package/skills/dast-zap/assets/gitlab_ci.yml +226 -0
  35. package/skills/dast-zap/assets/zap_automation.yaml +196 -0
  36. package/skills/dast-zap/assets/zap_context.xml +192 -0
  37. package/skills/dast-zap/references/EXAMPLE.md +40 -0
  38. package/skills/dast-zap/references/api_testing_guide.md +475 -0
  39. package/skills/dast-zap/references/authentication_guide.md +431 -0
  40. package/skills/dast-zap/references/false_positive_handling.md +427 -0
  41. package/skills/dast-zap/references/owasp_mapping.md +255 -0
  42. package/skills/dep-sbom-scan/SKILL.md +466 -0
  43. package/skills/deploy-cloudflare/SKILL.md +930 -0
  44. package/skills/deploy-docker/SKILL.md +55 -0
  45. package/skills/deploy-fly/SKILL.md +228 -0
  46. package/skills/deploy-k8s/SKILL.md +108 -0
  47. package/skills/deploy-k8s/assets/logo.png +0 -0
  48. package/skills/deploy-k8s/docs/README.md +29 -0
  49. package/skills/deploy-k8s/docs/SUMMARY.md +56 -0
  50. package/skills/deploy-k8s/docs/advanced/token-efficiency.md +61 -0
  51. package/skills/deploy-k8s/docs/architecture/multi-tenancy.md +96 -0
  52. package/skills/deploy-k8s/docs/architecture/storage-and-state.md +102 -0
  53. package/skills/deploy-k8s/docs/architecture/workload-patterns.md +87 -0
  54. package/skills/deploy-k8s/docs/book.json +16 -0
  55. package/skills/deploy-k8s/docs/community/changelog.md +34 -0
  56. package/skills/deploy-k8s/docs/community/contributing.md +67 -0
  57. package/skills/deploy-k8s/docs/core-concepts/failure-modes.md +153 -0
  58. package/skills/deploy-k8s/docs/core-concepts/philosophy.md +83 -0
  59. package/skills/deploy-k8s/docs/core-concepts/workflow.md +124 -0
  60. package/skills/deploy-k8s/docs/examples/bad-patterns.md +47 -0
  61. package/skills/deploy-k8s/docs/examples/do-dont-checklist.md +37 -0
  62. package/skills/deploy-k8s/docs/examples/good-patterns.md +49 -0
  63. package/skills/deploy-k8s/docs/failure-modes/api-drift.md +104 -0
  64. package/skills/deploy-k8s/docs/failure-modes/fragile-rollouts.md +99 -0
  65. package/skills/deploy-k8s/docs/failure-modes/insecure-workload-defaults.md +80 -0
  66. package/skills/deploy-k8s/docs/failure-modes/network-exposure.md +98 -0
  67. package/skills/deploy-k8s/docs/failure-modes/privilege-sprawl.md +91 -0
  68. package/skills/deploy-k8s/docs/failure-modes/resource-starvation.md +85 -0
  69. package/skills/deploy-k8s/docs/getting-started/installation.md +152 -0
  70. package/skills/deploy-k8s/docs/getting-started/quick-start.md +115 -0
  71. package/skills/deploy-k8s/docs/guides/helm-patterns.md +71 -0
  72. package/skills/deploy-k8s/docs/guides/kustomize-patterns.md +65 -0
  73. package/skills/deploy-k8s/docs/guides/observability.md +67 -0
  74. package/skills/deploy-k8s/docs/guides/security-hardening.md +59 -0
  75. package/skills/deploy-k8s/docs/guides/validation-and-policy.md +66 -0
  76. package/skills/deploy-k8s/docs/integrations/mcp-integration.md +52 -0
  77. package/skills/deploy-k8s/docs/package-lock.json +2892 -0
  78. package/skills/deploy-k8s/docs/package.json +13 -0
  79. package/skills/deploy-k8s/references/api-drift.md +298 -0
  80. package/skills/deploy-k8s/references/conditional/aks-patterns.md +70 -0
  81. package/skills/deploy-k8s/references/conditional/eks-patterns.md +79 -0
  82. package/skills/deploy-k8s/references/conditional/gitops-controllers.md +71 -0
  83. package/skills/deploy-k8s/references/conditional/gke-patterns.md +74 -0
  84. package/skills/deploy-k8s/references/conditional/observability-stacks.md +80 -0
  85. package/skills/deploy-k8s/references/conditional/openshift-patterns.md +67 -0
  86. package/skills/deploy-k8s/references/daemonset-operator-patterns.md +155 -0
  87. package/skills/deploy-k8s/references/deployment-patterns.md +146 -0
  88. package/skills/deploy-k8s/references/do-dont-patterns.md +87 -0
  89. package/skills/deploy-k8s/references/examples-bad.md +282 -0
  90. package/skills/deploy-k8s/references/examples-good.md +440 -0
  91. package/skills/deploy-k8s/references/fragile-rollouts.md +303 -0
  92. package/skills/deploy-k8s/references/helm-patterns.md +203 -0
  93. package/skills/deploy-k8s/references/insecure-workload-defaults.md +300 -0
  94. package/skills/deploy-k8s/references/job-patterns.md +120 -0
  95. package/skills/deploy-k8s/references/kustomize-patterns.md +239 -0
  96. package/skills/deploy-k8s/references/multi-tenancy.md +343 -0
  97. package/skills/deploy-k8s/references/network-exposure.md +481 -0
  98. package/skills/deploy-k8s/references/observability.md +302 -0
  99. package/skills/deploy-k8s/references/privilege-sprawl.md +273 -0
  100. package/skills/deploy-k8s/references/resource-starvation.md +374 -0
  101. package/skills/deploy-k8s/references/security-hardening.md +209 -0
  102. package/skills/deploy-k8s/references/stateful-patterns.md +130 -0
  103. package/skills/deploy-k8s/references/storage-and-state.md +330 -0
  104. package/skills/deploy-k8s/references/validation-and-policy.md +242 -0
  105. package/skills/deploy-railway/SKILL.md +235 -0
  106. package/skills/deploy-railway/references/analyze-db-mongo.md +84 -0
  107. package/skills/deploy-railway/references/analyze-db-mysql.md +254 -0
  108. package/skills/deploy-railway/references/analyze-db-postgres.md +479 -0
  109. package/skills/deploy-railway/references/analyze-db-redis.md +208 -0
  110. package/skills/deploy-railway/references/analyze-db.md +344 -0
  111. package/skills/deploy-railway/references/configure.md +309 -0
  112. package/skills/deploy-railway/references/deploy.md +195 -0
  113. package/skills/deploy-railway/references/operate.md +214 -0
  114. package/skills/deploy-railway/references/request.md +248 -0
  115. package/skills/deploy-railway/references/setup.md +312 -0
  116. package/skills/deploy-railway/scripts/analyze-mongo.py +1549 -0
  117. package/skills/deploy-railway/scripts/analyze-mysql.py +1195 -0
  118. package/skills/deploy-railway/scripts/analyze-postgres.py +3058 -0
  119. package/skills/deploy-railway/scripts/analyze-redis.py +1090 -0
  120. package/skills/deploy-railway/scripts/dal.py +671 -0
  121. package/skills/deploy-railway/scripts/enable-pg-stats.py +170 -0
  122. package/skills/deploy-railway/scripts/pg-extensions.py +370 -0
  123. package/skills/deploy-railway/scripts/railway-api.sh +52 -0
  124. package/skills/deploy-ssh/SKILL.md +91 -0
  125. package/skills/deploy-vercel/SKILL.md +304 -0
  126. package/skills/deploy-vercel/resources/deploy-codex.sh +301 -0
  127. package/skills/deploy-vercel/resources/deploy.sh +301 -0
  128. package/skills/docs-runbooks/SKILL.md +399 -0
  129. package/skills/drive-status-renderer/SKILL.md +62 -0
  130. package/skills/iac-scan/SKILL.md +680 -0
  131. package/skills/iac-scan/assets/.gitkeep +9 -0
  132. package/skills/iac-scan/assets/checkov_config.yaml +94 -0
  133. package/skills/iac-scan/assets/github_actions.yml +199 -0
  134. package/skills/iac-scan/assets/gitlab_ci.yml +218 -0
  135. package/skills/iac-scan/assets/pre_commit_config.yaml +92 -0
  136. package/skills/iac-scan/references/EXAMPLE.md +40 -0
  137. package/skills/iac-scan/references/compliance_mapping.md +237 -0
  138. package/skills/iac-scan/references/custom_policies.md +460 -0
  139. package/skills/iac-scan/references/suppression_guide.md +431 -0
  140. package/skills/incident-briefing/SKILL.md +66 -0
  141. package/skills/incident-triage/SKILL.md +481 -0
  142. package/{LICENSE → skills/mcp-builder/LICENSE.txt} +15 -14
  143. package/skills/mcp-builder/SKILL.md +244 -0
  144. package/skills/mcp-builder/reference/evaluation.md +602 -0
  145. package/skills/mcp-builder/reference/mcp_best_practices.md +249 -0
  146. package/skills/mcp-builder/reference/node_mcp_server.md +970 -0
  147. package/skills/mcp-builder/reference/python_mcp_server.md +719 -0
  148. package/skills/mcp-builder/scripts/connections.py +151 -0
  149. package/skills/mcp-builder/scripts/evaluation.py +373 -0
  150. package/skills/mcp-builder/scripts/example_evaluation.xml +22 -0
  151. package/skills/mcp-builder/scripts/requirements.txt +2 -0
  152. package/skills/mobile-pairing/SKILL.md +52 -0
  153. package/skills/ops-sre/SKILL.md +297 -0
  154. package/skills/playwright-qa/LICENSE.txt +201 -0
  155. package/skills/playwright-qa/NOTICE.txt +14 -0
  156. package/skills/playwright-qa/SKILL.md +156 -0
  157. package/skills/playwright-qa/agents/openai.yaml +6 -0
  158. package/skills/playwright-qa/assets/playwright-small.svg +3 -0
  159. package/skills/playwright-qa/assets/playwright.png +0 -0
  160. package/skills/playwright-qa/references/cli.md +116 -0
  161. package/skills/playwright-qa/references/workflows.md +95 -0
  162. package/skills/playwright-qa/scripts/playwright_cli.sh +25 -0
  163. package/skills/release-publish/SKILL.md +85 -0
  164. package/skills/repo-bootstrap/SKILL.md +92 -0
  165. package/skills/repo-bootstrap/assets/example-workflows/validate-agents.yml +89 -0
  166. package/skills/repo-bootstrap/assets/root-thin.md +141 -0
  167. package/skills/repo-bootstrap/assets/root-verbose.md +149 -0
  168. package/skills/repo-bootstrap/assets/scoped/backend-go.md +107 -0
  169. package/skills/repo-bootstrap/assets/scoped/backend-php.md +94 -0
  170. package/skills/repo-bootstrap/assets/scoped/backend-python.md +84 -0
  171. package/skills/repo-bootstrap/assets/scoped/backend-typescript.md +89 -0
  172. package/skills/repo-bootstrap/assets/scoped/claude-code-skill.md +101 -0
  173. package/skills/repo-bootstrap/assets/scoped/cli.md +83 -0
  174. package/skills/repo-bootstrap/assets/scoped/concourse.md +196 -0
  175. package/skills/repo-bootstrap/assets/scoped/ddev.md +68 -0
  176. package/skills/repo-bootstrap/assets/scoped/docker.md +160 -0
  177. package/skills/repo-bootstrap/assets/scoped/documentation.md +98 -0
  178. package/skills/repo-bootstrap/assets/scoped/examples.md +96 -0
  179. package/skills/repo-bootstrap/assets/scoped/frontend-typescript.md +88 -0
  180. package/skills/repo-bootstrap/assets/scoped/github-actions.md +174 -0
  181. package/skills/repo-bootstrap/assets/scoped/gitlab-ci.md +174 -0
  182. package/skills/repo-bootstrap/assets/scoped/oro-bundle.md +209 -0
  183. package/skills/repo-bootstrap/assets/scoped/oro-project.md +170 -0
  184. package/skills/repo-bootstrap/assets/scoped/python-modern.md +170 -0
  185. package/skills/repo-bootstrap/assets/scoped/resources.md +96 -0
  186. package/skills/repo-bootstrap/assets/scoped/skill-repo.md +139 -0
  187. package/skills/repo-bootstrap/assets/scoped/symfony.md +168 -0
  188. package/skills/repo-bootstrap/assets/scoped/testing.md +87 -0
  189. package/skills/repo-bootstrap/assets/scoped/typo3-docs.md +103 -0
  190. package/skills/repo-bootstrap/assets/scoped/typo3-extension.md +133 -0
  191. package/skills/repo-bootstrap/assets/scoped/typo3-project.md +137 -0
  192. package/skills/repo-bootstrap/assets/scoped/typo3-testing.md +80 -0
  193. package/skills/repo-bootstrap/checkpoints.yaml +279 -0
  194. package/skills/repo-bootstrap/evals/evals.json +385 -0
  195. package/skills/repo-bootstrap/references/ai-contribution-guidelines.md +63 -0
  196. package/skills/repo-bootstrap/references/ai-tool-compatibility.md +223 -0
  197. package/skills/repo-bootstrap/references/directory-coverage.md +82 -0
  198. package/skills/repo-bootstrap/references/examples/coding-agent-cli/AGENTS.md +70 -0
  199. package/skills/repo-bootstrap/references/examples/coding-agent-cli/go.mod +3 -0
  200. package/skills/repo-bootstrap/references/examples/coding-agent-cli/scripts-AGENTS.md +389 -0
  201. package/skills/repo-bootstrap/references/examples/express-api-ts/.env.example +13 -0
  202. package/skills/repo-bootstrap/references/examples/express-api-ts/AGENTS.md +91 -0
  203. package/skills/repo-bootstrap/references/examples/express-api-ts/package.json +33 -0
  204. package/skills/repo-bootstrap/references/examples/express-api-ts/pnpm-lock.yaml +3 -0
  205. package/skills/repo-bootstrap/references/examples/express-api-ts/src/AGENTS.md +91 -0
  206. package/skills/repo-bootstrap/references/examples/express-api-ts/src/config.ts +28 -0
  207. package/skills/repo-bootstrap/references/examples/express-api-ts/src/controllers/userController.ts +74 -0
  208. package/skills/repo-bootstrap/references/examples/express-api-ts/src/index.ts +26 -0
  209. package/skills/repo-bootstrap/references/examples/express-api-ts/src/middleware/errorHandler.ts +45 -0
  210. package/skills/repo-bootstrap/references/examples/express-api-ts/src/middleware/requestLogger.ts +18 -0
  211. package/skills/repo-bootstrap/references/examples/express-api-ts/src/routes/health.ts +18 -0
  212. package/skills/repo-bootstrap/references/examples/express-api-ts/src/routes/users.ts +13 -0
  213. package/skills/repo-bootstrap/references/examples/express-api-ts/src/utils/errors.ts +40 -0
  214. package/skills/repo-bootstrap/references/examples/express-api-ts/src/utils/logger.ts +14 -0
  215. package/skills/repo-bootstrap/references/examples/express-api-ts/tsconfig.json +24 -0
  216. package/skills/repo-bootstrap/references/examples/fastapi-app/.env.example +19 -0
  217. package/skills/repo-bootstrap/references/examples/fastapi-app/AGENTS.md +92 -0
  218. package/skills/repo-bootstrap/references/examples/fastapi-app/pyproject.toml +88 -0
  219. package/skills/repo-bootstrap/references/examples/fastapi-app/src/AGENTS.md +85 -0
  220. package/skills/repo-bootstrap/references/examples/fastapi-app/src/__init__.py +3 -0
  221. package/skills/repo-bootstrap/references/examples/fastapi-app/src/config.py +49 -0
  222. package/skills/repo-bootstrap/references/examples/fastapi-app/src/main.py +66 -0
  223. package/skills/repo-bootstrap/references/examples/fastapi-app/src/models/__init__.py +13 -0
  224. package/skills/repo-bootstrap/references/examples/fastapi-app/src/models/item.py +43 -0
  225. package/skills/repo-bootstrap/references/examples/fastapi-app/src/models/user.py +40 -0
  226. package/skills/repo-bootstrap/references/examples/fastapi-app/src/routes/__init__.py +5 -0
  227. package/skills/repo-bootstrap/references/examples/fastapi-app/src/routes/health.py +20 -0
  228. package/skills/repo-bootstrap/references/examples/fastapi-app/src/routes/items.py +61 -0
  229. package/skills/repo-bootstrap/references/examples/fastapi-app/src/routes/users.py +55 -0
  230. package/skills/repo-bootstrap/references/examples/fastapi-app/src/services/__init__.py +6 -0
  231. package/skills/repo-bootstrap/references/examples/fastapi-app/src/services/item_service.py +77 -0
  232. package/skills/repo-bootstrap/references/examples/fastapi-app/src/services/user_service.py +69 -0
  233. package/skills/repo-bootstrap/references/examples/fastapi-app/uv.lock +4 -0
  234. package/skills/repo-bootstrap/references/examples/go-api-with-react-admin/.scopes +3 -0
  235. package/skills/repo-bootstrap/references/examples/go-api-with-react-admin/AGENTS.md +86 -0
  236. package/skills/repo-bootstrap/references/examples/go-api-with-react-admin/admin/package.json +20 -0
  237. package/skills/repo-bootstrap/references/examples/go-api-with-react-admin/admin/src/App.tsx +5 -0
  238. package/skills/repo-bootstrap/references/examples/go-api-with-react-admin/cmd/api/main.go +7 -0
  239. package/skills/repo-bootstrap/references/examples/go-api-with-react-admin/go.mod +2 -0
  240. package/skills/repo-bootstrap/references/examples/go-api-with-react-admin/main.go +7 -0
  241. package/skills/repo-bootstrap/references/examples/go-with-internal-web-tsx/.scopes +3 -0
  242. package/skills/repo-bootstrap/references/examples/go-with-internal-web-tsx/AGENTS.md +89 -0
  243. package/skills/repo-bootstrap/references/examples/go-with-internal-web-tsx/go.mod +2 -0
  244. package/skills/repo-bootstrap/references/examples/go-with-internal-web-tsx/internal/web/AGENTS.md +90 -0
  245. package/skills/repo-bootstrap/references/examples/go-with-internal-web-tsx/internal/web/package.json +17 -0
  246. package/skills/repo-bootstrap/references/examples/go-with-internal-web-tsx/internal/web/src/App.tsx +1 -0
  247. package/skills/repo-bootstrap/references/examples/go-with-internal-web-tsx/internal/web/src/Button.tsx +1 -0
  248. package/skills/repo-bootstrap/references/examples/go-with-internal-web-tsx/internal/web/src/Footer.tsx +1 -0
  249. package/skills/repo-bootstrap/references/examples/go-with-internal-web-tsx/internal/web/src/Header.tsx +1 -0
  250. package/skills/repo-bootstrap/references/examples/go-with-internal-web-tsx/internal/web/src/Sidebar.tsx +1 -0
  251. package/skills/repo-bootstrap/references/examples/go-with-internal-web-tsx/main.go +7 -0
  252. package/skills/repo-bootstrap/references/examples/go-with-internal-web-tsx/package-lock.json +0 -0
  253. package/skills/repo-bootstrap/references/examples/go-with-internal-web-tsx/package.json +12 -0
  254. package/skills/repo-bootstrap/references/examples/ldap-selfservice/AGENTS.md +70 -0
  255. package/skills/repo-bootstrap/references/examples/ldap-selfservice/go.mod +3 -0
  256. package/skills/repo-bootstrap/references/examples/ldap-selfservice/internal-AGENTS.md +371 -0
  257. package/skills/repo-bootstrap/references/examples/ldap-selfservice/internal-web-AGENTS.md +448 -0
  258. package/skills/repo-bootstrap/references/examples/php-with-frontend/.scopes +3 -0
  259. package/skills/repo-bootstrap/references/examples/php-with-frontend/AGENTS.md +91 -0
  260. package/skills/repo-bootstrap/references/examples/php-with-frontend/composer.json +8 -0
  261. package/skills/repo-bootstrap/references/examples/php-with-frontend/package.json +15 -0
  262. package/skills/repo-bootstrap/references/examples/php-with-frontend/pnpm-lock.yaml +0 -0
  263. package/skills/repo-bootstrap/references/examples/php-with-frontend/src/Controller.php +3 -0
  264. package/skills/repo-bootstrap/references/examples/php-with-frontend/web/AGENTS.md +92 -0
  265. package/skills/repo-bootstrap/references/examples/php-with-frontend/web/package.json +26 -0
  266. package/skills/repo-bootstrap/references/examples/php-with-frontend/web/src/App.tsx +3 -0
  267. package/skills/repo-bootstrap/references/examples/php-with-frontend/web/src/Button.tsx +10 -0
  268. package/skills/repo-bootstrap/references/examples/php-with-frontend/web/src/Footer.tsx +9 -0
  269. package/skills/repo-bootstrap/references/examples/php-with-frontend/web/src/Header.tsx +9 -0
  270. package/skills/repo-bootstrap/references/examples/php-with-frontend/web/src/main.tsx +3 -0
  271. package/skills/repo-bootstrap/references/examples/php-with-frontend/web/tsconfig.json +13 -0
  272. package/skills/repo-bootstrap/references/examples/pnpm-workspace/AGENTS.md +75 -0
  273. package/skills/repo-bootstrap/references/examples/pnpm-workspace/package.json +7 -0
  274. package/skills/repo-bootstrap/references/examples/pnpm-workspace/packages/web/package.json +11 -0
  275. package/skills/repo-bootstrap/references/examples/pnpm-workspace/packages/web/src/index.ts +11 -0
  276. package/skills/repo-bootstrap/references/examples/pnpm-workspace/pnpm-lock.yaml +42 -0
  277. package/skills/repo-bootstrap/references/examples/pnpm-workspace/pnpm-workspace.yaml +2 -0
  278. package/skills/repo-bootstrap/references/examples/simple-ldap-go/AGENTS.md +70 -0
  279. package/skills/repo-bootstrap/references/examples/simple-ldap-go/examples-AGENTS.md +45 -0
  280. package/skills/repo-bootstrap/references/examples/simple-ldap-go/go.mod +3 -0
  281. package/skills/repo-bootstrap/references/examples/t3x-rte-ckeditor-image/AGENTS.md +70 -0
  282. package/skills/repo-bootstrap/references/examples/t3x-rte-ckeditor-image/Classes-AGENTS.md +392 -0
  283. package/skills/repo-bootstrap/references/examples/t3x-rte-ckeditor-image/composer.json +8 -0
  284. package/skills/repo-bootstrap/references/feedback-memory-schema.md +135 -0
  285. package/skills/repo-bootstrap/references/git-hooks-setup.md +79 -0
  286. package/skills/repo-bootstrap/references/output-structure.md +124 -0
  287. package/skills/repo-bootstrap/references/scripts-guide.md +175 -0
  288. package/skills/repo-bootstrap/references/verification-guide.md +137 -0
  289. package/skills/repo-bootstrap/scripts/analyze-git-history.sh +315 -0
  290. package/skills/repo-bootstrap/scripts/check-freshness.sh +230 -0
  291. package/skills/repo-bootstrap/scripts/detect-golden-samples.sh +161 -0
  292. package/skills/repo-bootstrap/scripts/detect-heuristics.sh +93 -0
  293. package/skills/repo-bootstrap/scripts/detect-project.sh +486 -0
  294. package/skills/repo-bootstrap/scripts/detect-scopes.sh +330 -0
  295. package/skills/repo-bootstrap/scripts/detect-utilities.sh +133 -0
  296. package/skills/repo-bootstrap/scripts/extract-adrs.sh +194 -0
  297. package/skills/repo-bootstrap/scripts/extract-agent-configs.sh +331 -0
  298. package/skills/repo-bootstrap/scripts/extract-architecture-rules.sh +522 -0
  299. package/skills/repo-bootstrap/scripts/extract-ci-commands.sh +385 -0
  300. package/skills/repo-bootstrap/scripts/extract-ci-rules.sh +384 -0
  301. package/skills/repo-bootstrap/scripts/extract-commands.sh +358 -0
  302. package/skills/repo-bootstrap/scripts/extract-documentation.sh +308 -0
  303. package/skills/repo-bootstrap/scripts/extract-github-rulesets.sh +96 -0
  304. package/skills/repo-bootstrap/scripts/extract-github-settings.sh +88 -0
  305. package/skills/repo-bootstrap/scripts/extract-ide-settings.sh +228 -0
  306. package/skills/repo-bootstrap/scripts/extract-platform-files.sh +290 -0
  307. package/skills/repo-bootstrap/scripts/extract-quality-configs.sh +442 -0
  308. package/skills/repo-bootstrap/scripts/generate-agents.sh +2424 -0
  309. package/skills/repo-bootstrap/scripts/generate-file-map.sh +153 -0
  310. package/skills/repo-bootstrap/scripts/lib/config-root.sh +211 -0
  311. package/skills/repo-bootstrap/scripts/lib/summary.sh +244 -0
  312. package/skills/repo-bootstrap/scripts/lib/template.sh +397 -0
  313. package/skills/repo-bootstrap/scripts/validate-structure.sh +324 -0
  314. package/skills/repo-bootstrap/scripts/verify-commands.sh +615 -0
  315. package/skills/repo-bootstrap/scripts/verify-content.sh +302 -0
  316. package/skills/schema-api-contracts/SKILL.md +56 -0
  317. package/skills/secret-hygiene/SKILL.md +511 -0
  318. package/skills/secret-hygiene/assets/.gitkeep +9 -0
  319. package/skills/secret-hygiene/assets/config-balanced.toml +81 -0
  320. package/skills/secret-hygiene/assets/config-custom.toml +178 -0
  321. package/skills/secret-hygiene/assets/config-strict.toml +48 -0
  322. package/skills/secret-hygiene/assets/github-action.yml +181 -0
  323. package/skills/secret-hygiene/assets/gitlab-ci.yml +257 -0
  324. package/skills/secret-hygiene/assets/precommit-config.yaml +70 -0
  325. package/skills/secret-hygiene/references/EXAMPLE.md +40 -0
  326. package/skills/secret-hygiene/references/compliance_mapping.md +538 -0
  327. package/skills/secret-hygiene/references/detection_rules.md +276 -0
  328. package/skills/secret-hygiene/references/false_positives.md +598 -0
  329. package/skills/secret-hygiene/references/remediation_guide.md +530 -0
  330. package/skills/stack-selector/SKILL.md +56 -0
  331. package/skills/telegram-control/SKILL.md +110 -0
  332. package/skills/telegram-control/references/architecture.md +184 -0
  333. package/skills/telegram-control/references/convex.md +173 -0
  334. package/skills/telegram-control/references/error_handling.md +212 -0
  335. package/skills/telegram-control/references/initial_setup.md +165 -0
  336. package/skills/telegram-control/references/telegram_api.md +156 -0
  337. package/skills/telegram-control/scripts/cancel_message.ts +53 -0
  338. package/skills/telegram-control/scripts/list_scheduled.ts +103 -0
  339. package/skills/telegram-control/scripts/logger.ts +121 -0
  340. package/skills/telegram-control/scripts/proxy-util.ts +11 -0
  341. package/skills/telegram-control/scripts/schedule_message.ts +216 -0
  342. package/skills/telegram-control/scripts/send_message.ts +115 -0
  343. package/skills/telegram-control/scripts/setup.ts +185 -0
  344. package/skills/telegram-control/scripts/types.ts +75 -0
  345. package/skills/telegram-control/scripts/view_history.ts +74 -0
  346. package/skills/test-strategy/SKILL.md +352 -0
  347. package/skills/threat-model/SKILL.md +303 -0
  348. package/skills/threat-model/examples/example-output.md +196 -0
  349. package/skills/threat-model/template.md +96 -0
  350. package/skills/ts-lint/SKILL.md +80 -0
  351. package/skills/ui-flow/SKILL.md +668 -0
  352. package/skills/voice-command-router/SKILL.md +51 -0
  353. package/skills/widget-live-activity-sync/SKILL.md +66 -0
@@ -0,0 +1,511 @@
1
+ ---
2
+ name: secret-hygiene
3
+ synapta_original_name: secrets-gitleaks
4
+ triggers: [synapta secret scan, gitleaks, credential leak, API key, pre-commit secret]
5
+ network: off
6
+ source:
7
+ origin: https://github.com/AgentSecOps/SecOpsAgentKit
8
+ path: skills/devsecops/secrets-gitleaks
9
+ commit: 6e25a4bc5743
10
+ license: see source repo
11
+ adapted: light-touch
12
+ description: >
13
+ Hardcoded secret detection and prevention in git repositories and codebases using Gitleaks.
14
+ Identifies passwords, API keys, tokens, and credentials through regex-based pattern matching
15
+ and entropy analysis. Use when: (1) Scanning repositories for exposed secrets and credentials,
16
+ (2) Implementing pre-commit hooks to prevent secret leakage, (3) Integrating secret detection
17
+ into CI/CD pipelines, (4) Auditing codebases for compliance violations (PCI-DSS, SOC2, GDPR),
18
+ (5) Establishing baseline secret detection and tracking new exposures, (6) Remediating
19
+ historical secret exposures in git history.
20
+ version: 0.1.0
21
+ maintainer: SirAppSec
22
+ category: devsecops
23
+ tags: [secrets, gitleaks, secret-scanning, devsecops, ci-cd, credentials, api-keys, compliance]
24
+ frameworks: [OWASP, CWE, PCI-DSS, SOC2, GDPR]
25
+ dependencies:
26
+ tools: [gitleaks, git]
27
+ references:
28
+ - https://github.com/gitleaks/gitleaks
29
+ - https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures/
30
+ - https://cwe.mitre.org/data/definitions/798.html
31
+ ---
32
+
33
+ # Secrets Detection with Gitleaks
34
+
35
+ ## Overview
36
+
37
+ Gitleaks is a secret detection tool that scans git repositories, files, and directories for hardcoded credentials including passwords, API keys, tokens, and other sensitive information. It uses regex-based pattern matching combined with Shannon entropy analysis to identify secrets that could lead to unauthorized access if exposed.
38
+
39
+ This skill provides comprehensive guidance for integrating Gitleaks into DevSecOps workflows, from pre-commit hooks to CI/CD pipelines, with emphasis on preventing secret leakage before code reaches production.
40
+
41
+ ## Quick Start
42
+
43
+ Scan current repository for secrets:
44
+
45
+ ```bash
46
+ # Install gitleaks
47
+ brew install gitleaks # macOS
48
+ # or: docker pull zricethezav/gitleaks:latest
49
+
50
+ # Scan current git repository
51
+ gitleaks detect -v
52
+
53
+ # Scan specific directory
54
+ gitleaks detect --source /path/to/code -v
55
+
56
+ # Generate report
57
+ gitleaks detect --report-path gitleaks-report.json --report-format json
58
+ ```
59
+
60
+ ## Core Workflows
61
+
62
+ ### 1. Repository Scanning
63
+
64
+ Scan existing repositories to identify exposed secrets:
65
+
66
+ ```bash
67
+ # Full repository scan with verbose output
68
+ gitleaks detect -v --source /path/to/repo
69
+
70
+ # Scan with custom configuration
71
+ gitleaks detect --config .gitleaks.toml -v
72
+
73
+ # Generate JSON report for further analysis
74
+ gitleaks detect --report-path findings.json --report-format json
75
+
76
+ # Generate SARIF report for GitHub/GitLab integration
77
+ gitleaks detect --report-path findings.sarif --report-format sarif
78
+ ```
79
+
80
+ **When to use**: Initial security audit, compliance checks, incident response.
81
+
82
+ ### 2. Pre-Commit Hook Protection
83
+
84
+ Prevent secrets from being committed in the first place:
85
+
86
+ ```bash
87
+ # Install pre-commit hook (run in repository root)
88
+ cat << 'EOF' > .git/hooks/pre-commit
89
+ #!/bin/sh
90
+ gitleaks protect --verbose --redact --staged
91
+ EOF
92
+
93
+ chmod +x .git/hooks/pre-commit
94
+ ```
95
+
96
+ Use the bundled script for automated hook installation:
97
+
98
+ ```bash
99
+ ./scripts/install_precommit.sh
100
+ ```
101
+
102
+ **When to use**: Developer workstation setup, team onboarding, mandatory security controls.
103
+
104
+ ### 3. CI/CD Pipeline Integration
105
+
106
+ #### GitHub Actions
107
+
108
+ ```yaml
109
+ name: gitleaks
110
+ on: [push, pull_request]
111
+ jobs:
112
+ scan:
113
+ runs-on: ubuntu-latest
114
+ steps:
115
+ - uses: actions/checkout@v3
116
+ with:
117
+ fetch-depth: 0
118
+ - uses: gitleaks/gitleaks-action@v2
119
+ env:
120
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
121
+ ```
122
+
123
+ #### GitLab CI
124
+
125
+ ```yaml
126
+ gitleaks:
127
+ image: zricethezav/gitleaks:latest
128
+ stage: test
129
+ script:
130
+ - gitleaks detect --report-path gitleaks.json --report-format json --verbose
131
+ artifacts:
132
+ paths:
133
+ - gitleaks.json
134
+ when: always
135
+ allow_failure: false
136
+ ```
137
+
138
+ **When to use**: Automated security gates, pull request checks, release validation.
139
+
140
+ ### 4. Baseline and Incremental Scanning
141
+
142
+ Establish security baseline and track only new secrets:
143
+
144
+ ```bash
145
+ # Create initial baseline
146
+ gitleaks detect --report-path baseline.json --report-format json
147
+
148
+ # Subsequent scans detect only new secrets
149
+ gitleaks detect --baseline-path baseline.json --report-path new-findings.json -v
150
+ ```
151
+
152
+ **When to use**: Legacy codebase remediation, phased rollout, compliance tracking.
153
+
154
+ ### 5. Configuration Customization
155
+
156
+ Create custom `.gitleaks.toml` configuration:
157
+
158
+ ```toml
159
+ title = "Custom Gitleaks Configuration"
160
+
161
+ [extend]
162
+ # Extend default config with custom rules
163
+ useDefault = true
164
+
165
+ [[rules]]
166
+ id = "custom-api-key"
167
+ description = "Custom API Key Pattern"
168
+ regex = '''(?i)(custom_api_key|custom_secret)[\s]*[=:][\s]*['"][a-zA-Z0-9]{32,}['"]'''
169
+ tags = ["api-key", "custom"]
170
+
171
+ [allowlist]
172
+ description = "Global allowlist"
173
+ paths = [
174
+ '''\.md$''', # Ignore markdown files
175
+ '''test/fixtures/''', # Ignore test fixtures
176
+ ]
177
+ stopwords = [
178
+ '''EXAMPLE''', # Ignore example keys
179
+ '''PLACEHOLDER''',
180
+ ]
181
+ ```
182
+
183
+ Use bundled configuration templates in `assets/`:
184
+ - `assets/config-strict.toml` - Strict detection (low false negatives)
185
+ - `assets/config-balanced.toml` - Balanced detection (recommended)
186
+ - `assets/config-custom.toml` - Template for custom rules
187
+
188
+ **When to use**: Reducing false positives, adding proprietary secret patterns, organizational standards.
189
+
190
+ ## Security Considerations
191
+
192
+ ### Sensitive Data Handling
193
+
194
+ - **Secret Redaction**: Always use `--redact` flag in logs and reports to prevent accidental secret exposure
195
+ - **Report Security**: Gitleaks reports contain detected secrets - treat as confidential, encrypt at rest
196
+ - **Git History**: Detected secrets in git history require complete removal using tools like `git filter-repo` or `BFG Repo-Cleaner`
197
+ - **Credential Rotation**: All exposed secrets must be rotated immediately, even if removed from code
198
+
199
+ ### Access Control
200
+
201
+ - **CI/CD Permissions**: Gitleaks scans require read access to repository content and git history
202
+ - **Report Access**: Restrict access to scan reports containing sensitive findings
203
+ - **Baseline Files**: Baseline JSON files contain secret metadata - protect with same controls as findings
204
+
205
+ ### Audit Logging
206
+
207
+ Log the following for compliance and incident response:
208
+ - Scan execution timestamps and scope (repository, branch, commit range)
209
+ - Number and types of secrets detected
210
+ - Remediation actions taken (credential rotation, commit history cleanup)
211
+ - False positive classifications and allowlist updates
212
+
213
+ ### Compliance Requirements
214
+
215
+ - **PCI-DSS 3.2.1**: Requirement 6.5.3 - Prevent hardcoded credentials in payment applications
216
+ - **SOC2**: CC6.1 - Logical access controls prevent unauthorized credential exposure
217
+ - **GDPR**: Article 32 - Appropriate security measures for processing personal data credentials
218
+ - **CWE-798**: Use of Hard-coded Credentials
219
+ - **CWE-259**: Use of Hard-coded Password
220
+ - **OWASP A07:2021**: Identification and Authentication Failures
221
+
222
+ ## Bundled Resources
223
+
224
+ ### Scripts (`scripts/`)
225
+
226
+ - `install_precommit.sh` - Automated pre-commit hook installation with configuration prompts
227
+ - `scan_and_report.py` - Comprehensive scanning with multiple output formats and severity classification
228
+ - `baseline_manager.py` - Baseline creation, comparison, and incremental scan management
229
+
230
+ ### References (`references/`)
231
+
232
+ - `detection_rules.md` - Comprehensive list of built-in Gitleaks detection rules with CWE mappings
233
+ - `remediation_guide.md` - Step-by-step secret remediation procedures including git history cleanup
234
+ - `false_positives.md` - Common false positive patterns and allowlist configuration strategies
235
+ - `compliance_mapping.md` - Detailed mapping to PCI-DSS, SOC2, GDPR, and OWASP requirements
236
+
237
+ ### Assets (`assets/`)
238
+
239
+ - `config-strict.toml` - High-sensitivity configuration (maximum detection)
240
+ - `config-balanced.toml` - Production-ready balanced configuration
241
+ - `config-custom.toml` - Template with inline documentation for custom rules
242
+ - `precommit-config.yaml` - Pre-commit framework configuration
243
+ - `github-action.yml` - Complete GitHub Actions workflow template
244
+ - `gitlab-ci.yml` - Complete GitLab CI pipeline template
245
+
246
+ ## Common Patterns
247
+
248
+ ### Pattern 1: Initial Repository Audit
249
+
250
+ First-time secret scanning for security assessment:
251
+
252
+ ```bash
253
+ # 1. Clone repository with full history
254
+ git clone --mirror https://github.com/org/repo.git audit-repo
255
+ cd audit-repo
256
+
257
+ # 2. Run comprehensive scan
258
+ gitleaks detect --report-path audit-report.json --report-format json -v
259
+
260
+ # 3. Generate human-readable report
261
+ ./scripts/scan_and_report.py --input audit-report.json --format markdown --output audit-report.md
262
+
263
+ # 4. Review findings and classify false positives
264
+ # Edit .gitleaks.toml to add allowlist entries
265
+
266
+ # 5. Create baseline for future scans
267
+ cp audit-report.json baseline.json
268
+ ```
269
+
270
+ ### Pattern 2: Developer Workstation Setup
271
+
272
+ Protect developers from accidental secret commits:
273
+
274
+ ```bash
275
+ # 1. Install gitleaks locally
276
+ brew install gitleaks # macOS
277
+ # or use package manager for your OS
278
+
279
+ # 2. Install pre-commit hook
280
+ ./scripts/install_precommit.sh
281
+
282
+ # 3. Test hook with dummy commit
283
+ echo "api_key = 'EXAMPLE_KEY_12345'" > test.txt
284
+ git add test.txt
285
+ git commit -m "test" # Should be blocked by gitleaks
286
+
287
+ # 4. Clean up test
288
+ git reset HEAD~1
289
+ rm test.txt
290
+ ```
291
+
292
+ ### Pattern 3: CI/CD Pipeline with Baseline
293
+
294
+ Progressive secret detection in continuous integration:
295
+
296
+ ```bash
297
+ # In CI pipeline script:
298
+
299
+ # 1. Check if baseline exists
300
+ if [ -f ".gitleaks-baseline.json" ]; then
301
+ # Incremental scan - only new secrets
302
+ gitleaks detect \
303
+ --baseline-path .gitleaks-baseline.json \
304
+ --report-path new-findings.json \
305
+ --report-format json \
306
+ --exit-code 1 # Fail on new secrets
307
+ else
308
+ # Initial scan - create baseline
309
+ gitleaks detect \
310
+ --report-path .gitleaks-baseline.json \
311
+ --report-format json \
312
+ --exit-code 0 # Don't fail on first scan
313
+ fi
314
+
315
+ # 2. Generate SARIF for GitHub Security tab
316
+ if [ -f "new-findings.json" ] && [ -s "new-findings.json" ]; then
317
+ gitleaks detect \
318
+ --baseline-path .gitleaks-baseline.json \
319
+ --report-path results.sarif \
320
+ --report-format sarif
321
+ fi
322
+ ```
323
+
324
+ ### Pattern 4: Custom Rule Development
325
+
326
+ Add organization-specific secret patterns:
327
+
328
+ ```toml
329
+ # Add to .gitleaks.toml
330
+
331
+ [[rules]]
332
+ id = "acme-corp-api-key"
333
+ description = "ACME Corp Internal API Key"
334
+ regex = '''(?i)acme[_-]?api[_-]?key[\s]*[=:][\s]*['"]?([a-f0-9]{40})['"]?'''
335
+ secretGroup = 1
336
+ tags = ["api-key", "acme-internal"]
337
+
338
+ [[rules]]
339
+ id = "acme-corp-database-password"
340
+ description = "ACME Corp Database Password Format"
341
+ regex = '''(?i)(db_pass|database_password)[\s]*[=:][\s]*['"]([A-Z][a-z0-9@#$%]{15,})['"]'''
342
+ secretGroup = 2
343
+ tags = ["password", "database", "acme-internal"]
344
+
345
+ # Test custom rules
346
+ # gitleaks detect --config .gitleaks.toml -v
347
+ ```
348
+
349
+ ## Integration Points
350
+
351
+ ### CI/CD Integration
352
+
353
+ - **GitHub Actions**: Use `gitleaks/gitleaks-action@v2` for native integration with Security tab
354
+ - **GitLab CI**: Docker-based scanning with artifact retention for audit trails
355
+ - **Jenkins**: Execute via Docker or installed binary in pipeline stages
356
+ - **CircleCI**: Docker executor with orb support
357
+ - **Azure Pipelines**: Task-based integration with results publishing
358
+
359
+ ### Security Tools Ecosystem
360
+
361
+ - **SIEM Integration**: Export JSON findings to Splunk, ELK, or Datadog for centralized monitoring
362
+ - **Vulnerability Management**: Import SARIF reports into Snyk, SonarQube, or Checkmarx
363
+ - **Secret Management**: Integrate findings with HashiCorp Vault or AWS Secrets Manager rotation workflows
364
+ - **Ticketing Systems**: Automated Jira/ServiceNow ticket creation for remediation tracking
365
+
366
+ ### SDLC Integration
367
+
368
+ - **Design Phase**: Include secret detection requirements in security architecture reviews
369
+ - **Development**: Pre-commit hooks provide immediate feedback to developers
370
+ - **Code Review**: PR/MR checks prevent secrets from reaching main branches
371
+ - **Testing**: Scan test environments and infrastructure-as-code
372
+ - **Deployment**: Final validation gate before production release
373
+ - **Operations**: Periodic scanning of deployed configurations and logs
374
+
375
+ ## Troubleshooting
376
+
377
+ ### Issue: Too Many False Positives
378
+
379
+ **Symptoms**: Legitimate code patterns flagged as secrets (test fixtures, examples, placeholders)
380
+
381
+ **Solution**:
382
+ 1. Review findings to identify patterns: `grep -i "example\|test\|placeholder" gitleaks-report.json`
383
+ 2. Add to allowlist in `.gitleaks.toml`:
384
+ ```toml
385
+ [allowlist]
386
+ paths = ['''test/''', '''examples/''', '''\.md$''']
387
+ stopwords = ["EXAMPLE", "PLACEHOLDER", "YOUR_API_KEY_HERE"]
388
+ ```
389
+ 3. Use commit allowlists for specific false positives:
390
+ ```toml
391
+ [allowlist]
392
+ commits = ["commit-sha-here"]
393
+ ```
394
+ 4. Consult `references/false_positives.md` for common patterns
395
+
396
+ ### Issue: Performance Issues on Large Repositories
397
+
398
+ **Symptoms**: Scans taking excessive time (>10 minutes), high memory usage
399
+
400
+ **Solution**:
401
+ 1. Use `--log-opts` to limit git history: `gitleaks detect --log-opts="--since=2024-01-01"`
402
+ 2. Scan specific branches: `gitleaks detect --log-opts="origin/main"`
403
+ 3. Use baseline approach to scan only recent changes
404
+ 4. Consider shallow clone for initial scans: `git clone --depth=1000`
405
+ 5. Parallelize scans across multiple branches or subdirectories
406
+
407
+ ### Issue: Pre-commit Hook Blocking Valid Commits
408
+
409
+ **Symptoms**: Developers unable to commit code with legitimate patterns
410
+
411
+ **Solution**:
412
+ 1. Add inline comment to bypass hook: `# gitleaks:allow`
413
+ 2. Update `.gitleaks.toml` allowlist for the specific pattern
414
+ 3. Use `--redact` to safely review findings: `gitleaks protect --staged --redact`
415
+ 4. Temporary bypass (use with caution): `git commit --no-verify`
416
+ 5. Review with security team if pattern is genuinely needed
417
+
418
+ ### Issue: Secrets Found in Git History
419
+
420
+ **Symptoms**: Secrets detected in old commits, already removed from current code
421
+
422
+ **Solution**:
423
+ 1. Rotate compromised credentials immediately (highest priority)
424
+ 2. For public repositories, consider full history rewrite using:
425
+ - `git filter-repo` (recommended): `git filter-repo --path-glob '*.env' --invert-paths`
426
+ - BFG Repo-Cleaner: `bfg --delete-files credentials.json`
427
+ 3. Force-push cleaned history: `git push --force`
428
+ 4. Notify all contributors to rebase/re-clone
429
+ 5. See `references/remediation_guide.md` for detailed procedures
430
+ 6. Document incident in security audit log
431
+
432
+ ### Issue: Custom Secret Patterns Not Detected
433
+
434
+ **Symptoms**: Organization-specific secrets not caught by default rules
435
+
436
+ **Solution**:
437
+ 1. Develop regex pattern: Test at regex101.com with sample secrets
438
+ 2. Add custom rule to `.gitleaks.toml`:
439
+ ```toml
440
+ [[rules]]
441
+ id = "custom-secret-id"
442
+ description = "Description"
443
+ regex = '''your-pattern-here'''
444
+ secretGroup = 1 # Capture group containing actual secret
445
+ ```
446
+ 3. Test pattern: `gitleaks detect --config .gitleaks.toml -v --no-git`
447
+ 4. Consider entropy threshold if pattern is ambiguous:
448
+ ```toml
449
+ [[rules.Entropies]]
450
+ Min = "3.5"
451
+ Max = "7.0"
452
+ Group = "1"
453
+ ```
454
+ 5. Validate with known true positives and negatives
455
+
456
+ ## Advanced Configuration
457
+
458
+ ### Entropy-Based Detection
459
+
460
+ For secrets without clear patterns, use Shannon entropy analysis:
461
+
462
+ ```toml
463
+ [[rules]]
464
+ id = "high-entropy-strings"
465
+ description = "High entropy strings that may be secrets"
466
+ regex = '''[a-zA-Z0-9]{32,}'''
467
+ entropy = 4.5 # Shannon entropy threshold
468
+ secretGroup = 0
469
+ ```
470
+
471
+ ### Composite Rules (v8.28.0+)
472
+
473
+ Detect secrets spanning multiple lines or requiring context:
474
+
475
+ ```toml
476
+ [[rules]]
477
+ id = "multi-line-secret"
478
+ description = "API key with usage context"
479
+ regex = '''api_key[\s]*='''
480
+
481
+ [[rules.composite]]
482
+ pattern = '''initialize_client'''
483
+ location = "line" # Must be within same line proximity
484
+ distance = 5 # Within 5 lines
485
+ ```
486
+
487
+ ### Global vs Rule-Specific Allowlists
488
+
489
+ ```toml
490
+ # Global allowlist (highest precedence)
491
+ [allowlist]
492
+ description = "Organization-wide exceptions"
493
+ paths = ['''vendor/''', '''node_modules/''']
494
+
495
+ # Rule-specific allowlist
496
+ [[rules]]
497
+ id = "generic-api-key"
498
+ [rules.allowlist]
499
+ description = "Exceptions only for this rule"
500
+ regexes = ['''key\s*=\s*EXAMPLE''']
501
+ ```
502
+
503
+ ## References
504
+
505
+ - [Gitleaks Official Documentation](https://github.com/gitleaks/gitleaks)
506
+ - [OWASP A07:2021 - Identification and Authentication Failures](https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures/)
507
+ - [CWE-798: Use of Hard-coded Credentials](https://cwe.mitre.org/data/definitions/798.html)
508
+ - [CWE-259: Use of Hard-coded Password](https://cwe.mitre.org/data/definitions/259.html)
509
+ - [CWE-321: Use of Hard-coded Cryptographic Key](https://cwe.mitre.org/data/definitions/321.html)
510
+ - [PCI-DSS Requirements](https://www.pcisecuritystandards.org/)
511
+ - [SOC2 Security Criteria](https://www.aicpa.org/interestareas/frc/assuranceadvisoryservices/aicpasoc2report.html)
@@ -0,0 +1,9 @@
1
+ # Assets Directory
2
+
3
+ Place files that will be used in the output Claude produces:
4
+ - Templates
5
+ - Configuration files
6
+ - Images/logos
7
+ - Boilerplate code
8
+
9
+ These files are NOT loaded into context but copied/modified in output.
@@ -0,0 +1,81 @@
1
+ # Gitleaks Balanced Configuration
2
+ # Production-ready configuration balancing security and developer experience
3
+ # Use for: Most production repositories
4
+
5
+ title = "Gitleaks Balanced Configuration"
6
+
7
+ [extend]
8
+ # Extend default Gitleaks rules
9
+ useDefault = true
10
+
11
+ [allowlist]
12
+ description = "Balanced allowlist for common false positives"
13
+
14
+ # Standard non-production paths
15
+ paths = [
16
+ '''test/.*''',
17
+ '''tests/.*''',
18
+ '''.*/fixtures/.*''',
19
+ '''.*/testdata/.*''',
20
+ '''spec/.*''',
21
+ '''examples?/.*''',
22
+ '''docs?/.*''',
23
+ '''\.md$''',
24
+ '''\.rst$''',
25
+ '''\.txt$''',
26
+ '''node_modules/.*''',
27
+ '''vendor/.*''',
28
+ '''third[_-]party/.*''',
29
+ '''\.min\.js$''',
30
+ '''\.min\.css$''',
31
+ '''dist/.*''',
32
+ '''build/.*''',
33
+ '''target/.*''',
34
+ '''.*/mocks?/.*''',
35
+ ]
36
+
37
+ # Common placeholder patterns
38
+ stopwords = [
39
+ "example",
40
+ "placeholder",
41
+ "your_api_key_here",
42
+ "your_key_here",
43
+ "your_secret_here",
44
+ "replace_me",
45
+ "replaceme",
46
+ "changeme",
47
+ "change_me",
48
+ "insert_key_here",
49
+ "xxxxxx",
50
+ "000000",
51
+ "123456",
52
+ "abcdef",
53
+ "sample",
54
+ "dummy",
55
+ "fake",
56
+ "test_key",
57
+ "test_secret",
58
+ "test_password",
59
+ "test_token",
60
+ "mock",
61
+ "TODO",
62
+ ]
63
+
64
+ # Public non-secrets
65
+ regexes = [
66
+ '''-----BEGIN CERTIFICATE-----''',
67
+ '''-----BEGIN PUBLIC KEY-----''',
68
+ '''data:image/[^;]+;base64,''',
69
+ '''[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}''', # UUID
70
+ ]
71
+
72
+ # Manually verified false positives (add with comments)
73
+ commits = []
74
+
75
+ # Custom rules for organization-specific patterns can be added below
76
+
77
+ # Example: Allowlist template files
78
+ # [[rules]]
79
+ # id = "generic-api-key"
80
+ # [rules.allowlist]
81
+ # paths = ['''config/.*\.template$''', '''config/.*\.example$''']