@ultrakit/ultrakit 0.0.0
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.
- package/README.md +95 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +5991 -0
- package/dist/template/.opencode/.env.example +196 -0
- package/dist/template/.opencode/.template-manifest.json +718 -0
- package/dist/template/.opencode/.version +1 -0
- package/dist/template/.opencode/AGENTS.md +573 -0
- package/dist/template/.opencode/AGENT_ALIGNMENT.md +564 -0
- package/dist/template/.opencode/README.md +79 -0
- package/dist/template/.opencode/agent/build.md +447 -0
- package/dist/template/.opencode/agent/explore.md +114 -0
- package/dist/template/.opencode/agent/general.md +201 -0
- package/dist/template/.opencode/agent/painter.md +83 -0
- package/dist/template/.opencode/agent/plan.md +469 -0
- package/dist/template/.opencode/agent/review.md +235 -0
- package/dist/template/.opencode/agent/scout.md +142 -0
- package/dist/template/.opencode/agent/vision.md +169 -0
- package/dist/template/.opencode/command/compound.md +240 -0
- package/dist/template/.opencode/command/create.md +298 -0
- package/dist/template/.opencode/command/curate.md +299 -0
- package/dist/template/.opencode/command/design.md +130 -0
- package/dist/template/.opencode/command/explore.md +170 -0
- package/dist/template/.opencode/command/handoff.md +149 -0
- package/dist/template/.opencode/command/health.md +356 -0
- package/dist/template/.opencode/command/init-context.md +297 -0
- package/dist/template/.opencode/command/init-user.md +125 -0
- package/dist/template/.opencode/command/init.md +115 -0
- package/dist/template/.opencode/command/iterate.md +200 -0
- package/dist/template/.opencode/command/lfg.md +173 -0
- package/dist/template/.opencode/command/plan.md +436 -0
- package/dist/template/.opencode/command/pr.md +166 -0
- package/dist/template/.opencode/command/research.md +128 -0
- package/dist/template/.opencode/command/resume.md +78 -0
- package/dist/template/.opencode/command/review-codebase.md +135 -0
- package/dist/template/.opencode/command/ship.md +390 -0
- package/dist/template/.opencode/command/status.md +126 -0
- package/dist/template/.opencode/command/ui-review.md +111 -0
- package/dist/template/.opencode/command/ui-slop-check.md +169 -0
- package/dist/template/.opencode/command/verify.md +173 -0
- package/dist/template/.opencode/context/README.md +29 -0
- package/dist/template/.opencode/context/git-context.md +32 -0
- package/dist/template/.opencode/dcp-prompts/defaults/README.md +40 -0
- package/dist/template/.opencode/dcp-prompts/defaults/compress-message.md +42 -0
- package/dist/template/.opencode/dcp-prompts/defaults/compress-range.md +59 -0
- package/dist/template/.opencode/dcp-prompts/defaults/context-limit-nudge.md +15 -0
- package/dist/template/.opencode/dcp-prompts/defaults/iteration-nudge.md +3 -0
- package/dist/template/.opencode/dcp-prompts/defaults/system.md +31 -0
- package/dist/template/.opencode/dcp-prompts/defaults/turn-nudge.md +7 -0
- package/dist/template/.opencode/dcp-prompts/overrides/compress-message.md +71 -0
- package/dist/template/.opencode/dcp.jsonc +115 -0
- package/dist/template/.opencode/memory/README.md +89 -0
- package/dist/template/.opencode/memory/_templates/design.md +59 -0
- package/dist/template/.opencode/memory/_templates/prd.md +203 -0
- package/dist/template/.opencode/memory/_templates/project.md +58 -0
- package/dist/template/.opencode/memory/_templates/proposal.md +38 -0
- package/dist/template/.opencode/memory/_templates/roadmap.md +93 -0
- package/dist/template/.opencode/memory/_templates/state.md +89 -0
- package/dist/template/.opencode/memory/_templates/tasks.md +198 -0
- package/dist/template/.opencode/memory/_templates/tech-stack.md +85 -0
- package/dist/template/.opencode/memory/_templates/user.md +26 -0
- package/dist/template/.opencode/memory/project/gotchas.md +67 -0
- package/dist/template/.opencode/memory/project/project.md +92 -0
- package/dist/template/.opencode/memory/project/roadmap.md +142 -0
- package/dist/template/.opencode/memory/project/state.md +84 -0
- package/dist/template/.opencode/memory/project/tech-stack.md +53 -0
- package/dist/template/.opencode/memory/project/user.md +45 -0
- package/dist/template/.opencode/memory/research/benchmark-framework.md +162 -0
- package/dist/template/.opencode/memory/research/ccpm-analysis.md +334 -0
- package/dist/template/.opencode/memory/research/context-management-analysis.md +685 -0
- package/dist/template/.opencode/memory/research/effectiveness-audit.md +213 -0
- package/dist/template/.opencode/memory/research/opencode-mcp-bug-report.md +129 -0
- package/dist/template/.opencode/memory/research/openspec-analysis.md +226 -0
- package/dist/template/.opencode/memory/session-context.md +40 -0
- package/dist/template/.opencode/opencode.json +1148 -0
- package/dist/template/.opencode/opencodex-fast.jsonc +3 -0
- package/dist/template/.opencode/package.json +21 -0
- package/dist/template/.opencode/plugin/README.md +81 -0
- package/dist/template/.opencode/plugin/copilot-auth.ts +1285 -0
- package/dist/template/.opencode/plugin/lib/capture.ts +177 -0
- package/dist/template/.opencode/plugin/lib/compact.ts +194 -0
- package/dist/template/.opencode/plugin/lib/compile.ts +253 -0
- package/dist/template/.opencode/plugin/lib/context.ts +198 -0
- package/dist/template/.opencode/plugin/lib/curator.ts +234 -0
- package/dist/template/.opencode/plugin/lib/db/graph.ts +253 -0
- package/dist/template/.opencode/plugin/lib/db/maintenance.ts +312 -0
- package/dist/template/.opencode/plugin/lib/db/observations.ts +304 -0
- package/dist/template/.opencode/plugin/lib/db/pipeline.ts +520 -0
- package/dist/template/.opencode/plugin/lib/db/schema.ts +687 -0
- package/dist/template/.opencode/plugin/lib/db/types.ts +284 -0
- package/dist/template/.opencode/plugin/lib/distill.ts +376 -0
- package/dist/template/.opencode/plugin/lib/index-generator.ts +170 -0
- package/dist/template/.opencode/plugin/lib/inject.ts +126 -0
- package/dist/template/.opencode/plugin/lib/lint.ts +359 -0
- package/dist/template/.opencode/plugin/lib/memory-admin-tools.ts +277 -0
- package/dist/template/.opencode/plugin/lib/memory-db.ts +100 -0
- package/dist/template/.opencode/plugin/lib/memory-helpers.ts +141 -0
- package/dist/template/.opencode/plugin/lib/memory-hooks.ts +399 -0
- package/dist/template/.opencode/plugin/lib/memory-tools.ts +535 -0
- package/dist/template/.opencode/plugin/lib/notify.ts +89 -0
- package/dist/template/.opencode/plugin/lib/operation-log.ts +110 -0
- package/dist/template/.opencode/plugin/lib/validate.ts +243 -0
- package/dist/template/.opencode/plugin/memory.ts +90 -0
- package/dist/template/.opencode/plugin/package.json +7 -0
- package/dist/template/.opencode/plugin/prompt-leverage.ts +191 -0
- package/dist/template/.opencode/plugin/rtk.ts +43 -0
- package/dist/template/.opencode/plugin/sdk/copilot/chat/convert-to-openai-compatible-chat-messages.ts +172 -0
- package/dist/template/.opencode/plugin/sdk/copilot/chat/get-response-metadata.ts +15 -0
- package/dist/template/.opencode/plugin/sdk/copilot/chat/map-openai-compatible-finish-reason.ts +19 -0
- package/dist/template/.opencode/plugin/sdk/copilot/chat/openai-compatible-api-types.ts +72 -0
- package/dist/template/.opencode/plugin/sdk/copilot/chat/openai-compatible-chat-language-model.ts +835 -0
- package/dist/template/.opencode/plugin/sdk/copilot/chat/openai-compatible-chat-options.ts +30 -0
- package/dist/template/.opencode/plugin/sdk/copilot/chat/openai-compatible-metadata-extractor.ts +48 -0
- package/dist/template/.opencode/plugin/sdk/copilot/chat/openai-compatible-prepare-tools.ts +92 -0
- package/dist/template/.opencode/plugin/sdk/copilot/copilot-provider.ts +101 -0
- package/dist/template/.opencode/plugin/sdk/copilot/index.ts +5 -0
- package/dist/template/.opencode/plugin/sdk/copilot/openai-compatible-error.ts +30 -0
- package/dist/template/.opencode/plugin/sdk/copilot/responses/convert-to-openai-responses-input.ts +335 -0
- package/dist/template/.opencode/plugin/sdk/copilot/responses/map-openai-responses-finish-reason.ts +22 -0
- package/dist/template/.opencode/plugin/sdk/copilot/responses/openai-config.ts +18 -0
- package/dist/template/.opencode/plugin/sdk/copilot/responses/openai-error.ts +22 -0
- package/dist/template/.opencode/plugin/sdk/copilot/responses/openai-responses-api-types.ts +214 -0
- package/dist/template/.opencode/plugin/sdk/copilot/responses/openai-responses-language-model.ts +1770 -0
- package/dist/template/.opencode/plugin/sdk/copilot/responses/openai-responses-prepare-tools.ts +173 -0
- package/dist/template/.opencode/plugin/sdk/copilot/responses/openai-responses-settings.ts +1 -0
- package/dist/template/.opencode/plugin/sdk/copilot/responses/tool/code-interpreter.ts +87 -0
- package/dist/template/.opencode/plugin/sdk/copilot/responses/tool/file-search.ts +127 -0
- package/dist/template/.opencode/plugin/sdk/copilot/responses/tool/image-generation.ts +114 -0
- package/dist/template/.opencode/plugin/sdk/copilot/responses/tool/local-shell.ts +64 -0
- package/dist/template/.opencode/plugin/sdk/copilot/responses/tool/web-search-preview.ts +103 -0
- package/dist/template/.opencode/plugin/sdk/copilot/responses/tool/web-search.ts +102 -0
- package/dist/template/.opencode/plugin/sessions.ts +457 -0
- package/dist/template/.opencode/plugin/skill-mcp.ts +618 -0
- package/dist/template/.opencode/plugin/tsconfig.json +16 -0
- package/dist/template/.opencode/skill/accessibility-audit/SKILL.md +191 -0
- package/dist/template/.opencode/skill/agent-evals/SKILL.md +208 -0
- package/dist/template/.opencode/skill/agent-teams/SKILL.md +268 -0
- package/dist/template/.opencode/skill/anti-ai-slop/SKILL.md +76 -0
- package/dist/template/.opencode/skill/api-and-interface-design/SKILL.md +162 -0
- package/dist/template/.opencode/skill/augment-context-engine/SKILL.md +122 -0
- package/dist/template/.opencode/skill/augment-context-engine/mcp.json +6 -0
- package/dist/template/.opencode/skill/beads/SKILL.md +182 -0
- package/dist/template/.opencode/skill/beads/references/BEST_PRACTICES.md +27 -0
- package/dist/template/.opencode/skill/beads/references/BOUNDARIES.md +219 -0
- package/dist/template/.opencode/skill/beads/references/DEPENDENCIES.md +124 -0
- package/dist/template/.opencode/skill/beads/references/EXAMPLES.md +45 -0
- package/dist/template/.opencode/skill/beads/references/FILE_CLAIMING.md +101 -0
- package/dist/template/.opencode/skill/beads/references/GIT_SYNC.md +25 -0
- package/dist/template/.opencode/skill/beads/references/HIERARCHY.md +71 -0
- package/dist/template/.opencode/skill/beads/references/MULTI_AGENT.md +40 -0
- package/dist/template/.opencode/skill/beads/references/RESUMABILITY.md +177 -0
- package/dist/template/.opencode/skill/beads/references/SESSION_PROTOCOL.md +61 -0
- package/dist/template/.opencode/skill/beads/references/TASK_CREATION.md +38 -0
- package/dist/template/.opencode/skill/beads/references/TROUBLESHOOTING.md +38 -0
- package/dist/template/.opencode/skill/beads/references/WORKFLOWS.md +226 -0
- package/dist/template/.opencode/skill/brainstorming/SKILL.md +114 -0
- package/dist/template/.opencode/skill/brand-asset-protocol/SKILL.md +222 -0
- package/dist/template/.opencode/skill/chrome-devtools/SKILL.md +76 -0
- package/dist/template/.opencode/skill/chrome-devtools/mcp.json +19 -0
- package/dist/template/.opencode/skill/ci-cd-and-automation/SKILL.md +202 -0
- package/dist/template/.opencode/skill/cloudflare/SKILL.md +253 -0
- package/dist/template/.opencode/skill/cloudflare/references/agents-sdk/README.md +35 -0
- package/dist/template/.opencode/skill/cloudflare/references/agents-sdk/api.md +100 -0
- package/dist/template/.opencode/skill/cloudflare/references/agents-sdk/configuration.md +99 -0
- package/dist/template/.opencode/skill/cloudflare/references/agents-sdk/gotchas.md +59 -0
- package/dist/template/.opencode/skill/cloudflare/references/agents-sdk/patterns.md +89 -0
- package/dist/template/.opencode/skill/cloudflare/references/ai-gateway/README.md +695 -0
- package/dist/template/.opencode/skill/cloudflare/references/ai-search/README.md +14 -0
- package/dist/template/.opencode/skill/cloudflare/references/ai-search/api.md +38 -0
- package/dist/template/.opencode/skill/cloudflare/references/ai-search/configuration.md +52 -0
- package/dist/template/.opencode/skill/cloudflare/references/ai-search/gotchas.md +41 -0
- package/dist/template/.opencode/skill/cloudflare/references/ai-search/patterns.md +45 -0
- package/dist/template/.opencode/skill/cloudflare/references/analytics-engine/README.md +14 -0
- package/dist/template/.opencode/skill/cloudflare/references/analytics-engine/api.md +27 -0
- package/dist/template/.opencode/skill/cloudflare/references/analytics-engine/configuration.md +45 -0
- package/dist/template/.opencode/skill/cloudflare/references/analytics-engine/gotchas.md +3 -0
- package/dist/template/.opencode/skill/cloudflare/references/analytics-engine/patterns.md +36 -0
- package/dist/template/.opencode/skill/cloudflare/references/api/README.md +21 -0
- package/dist/template/.opencode/skill/cloudflare/references/api/api.md +31 -0
- package/dist/template/.opencode/skill/cloudflare/references/api/configuration.md +20 -0
- package/dist/template/.opencode/skill/cloudflare/references/api/gotchas.md +28 -0
- package/dist/template/.opencode/skill/cloudflare/references/api/patterns.md +47 -0
- package/dist/template/.opencode/skill/cloudflare/references/api-shield/README.md +20 -0
- package/dist/template/.opencode/skill/cloudflare/references/api-shield/api.md +78 -0
- package/dist/template/.opencode/skill/cloudflare/references/api-shield/configuration.md +128 -0
- package/dist/template/.opencode/skill/cloudflare/references/api-shield/gotchas.md +51 -0
- package/dist/template/.opencode/skill/cloudflare/references/api-shield/patterns.md +145 -0
- package/dist/template/.opencode/skill/cloudflare/references/argo-smart-routing/README.md +16 -0
- package/dist/template/.opencode/skill/cloudflare/references/argo-smart-routing/api.md +50 -0
- package/dist/template/.opencode/skill/cloudflare/references/argo-smart-routing/configuration.md +53 -0
- package/dist/template/.opencode/skill/cloudflare/references/argo-smart-routing/gotchas.md +16 -0
- package/dist/template/.opencode/skill/cloudflare/references/argo-smart-routing/patterns.md +45 -0
- package/dist/template/.opencode/skill/cloudflare/references/bindings/README.md +14 -0
- package/dist/template/.opencode/skill/cloudflare/references/bindings/api.md +3 -0
- package/dist/template/.opencode/skill/cloudflare/references/bindings/configuration.md +58 -0
- package/dist/template/.opencode/skill/cloudflare/references/bindings/gotchas.md +35 -0
- package/dist/template/.opencode/skill/cloudflare/references/bindings/patterns.md +37 -0
- package/dist/template/.opencode/skill/cloudflare/references/bot-management/README.md +71 -0
- package/dist/template/.opencode/skill/cloudflare/references/bot-management/api.md +168 -0
- package/dist/template/.opencode/skill/cloudflare/references/bot-management/configuration.md +114 -0
- package/dist/template/.opencode/skill/cloudflare/references/bot-management/gotchas.md +99 -0
- package/dist/template/.opencode/skill/cloudflare/references/bot-management/patterns.md +125 -0
- package/dist/template/.opencode/skill/cloudflare/references/browser-rendering/README.md +16 -0
- package/dist/template/.opencode/skill/cloudflare/references/browser-rendering/api.md +54 -0
- package/dist/template/.opencode/skill/cloudflare/references/browser-rendering/configuration.md +47 -0
- package/dist/template/.opencode/skill/cloudflare/references/browser-rendering/gotchas.md +29 -0
- package/dist/template/.opencode/skill/cloudflare/references/browser-rendering/patterns.md +29 -0
- package/dist/template/.opencode/skill/cloudflare/references/c3/README.md +264 -0
- package/dist/template/.opencode/skill/cloudflare/references/cache-reserve/README.md +93 -0
- package/dist/template/.opencode/skill/cloudflare/references/cache-reserve/api.md +176 -0
- package/dist/template/.opencode/skill/cloudflare/references/cache-reserve/configuration.md +164 -0
- package/dist/template/.opencode/skill/cloudflare/references/cache-reserve/gotchas.md +203 -0
- package/dist/template/.opencode/skill/cloudflare/references/cache-reserve/patterns.md +180 -0
- package/dist/template/.opencode/skill/cloudflare/references/containers/README.md +16 -0
- package/dist/template/.opencode/skill/cloudflare/references/containers/api.md +43 -0
- package/dist/template/.opencode/skill/cloudflare/references/containers/configuration.md +56 -0
- package/dist/template/.opencode/skill/cloudflare/references/containers/gotchas.md +21 -0
- package/dist/template/.opencode/skill/cloudflare/references/containers/patterns.md +40 -0
- package/dist/template/.opencode/skill/cloudflare/references/cron-triggers/README.md +85 -0
- package/dist/template/.opencode/skill/cloudflare/references/cron-triggers/api.md +198 -0
- package/dist/template/.opencode/skill/cloudflare/references/cron-triggers/configuration.md +151 -0
- package/dist/template/.opencode/skill/cloudflare/references/cron-triggers/gotchas.md +129 -0
- package/dist/template/.opencode/skill/cloudflare/references/cron-triggers/patterns.md +122 -0
- package/dist/template/.opencode/skill/cloudflare/references/d1/README.md +92 -0
- package/dist/template/.opencode/skill/cloudflare/references/d1/api.md +141 -0
- package/dist/template/.opencode/skill/cloudflare/references/d1/configuration.md +127 -0
- package/dist/template/.opencode/skill/cloudflare/references/d1/gotchas.md +70 -0
- package/dist/template/.opencode/skill/cloudflare/references/d1/patterns.md +144 -0
- package/dist/template/.opencode/skill/cloudflare/references/ddos/README.md +34 -0
- package/dist/template/.opencode/skill/cloudflare/references/ddos/api.md +136 -0
- package/dist/template/.opencode/skill/cloudflare/references/ddos/configuration.md +67 -0
- package/dist/template/.opencode/skill/cloudflare/references/ddos/gotchas.md +114 -0
- package/dist/template/.opencode/skill/cloudflare/references/ddos/patterns.md +158 -0
- package/dist/template/.opencode/skill/cloudflare/references/do-storage/README.md +62 -0
- package/dist/template/.opencode/skill/cloudflare/references/do-storage/api.md +89 -0
- package/dist/template/.opencode/skill/cloudflare/references/do-storage/configuration.md +116 -0
- package/dist/template/.opencode/skill/cloudflare/references/do-storage/gotchas.md +93 -0
- package/dist/template/.opencode/skill/cloudflare/references/do-storage/patterns.md +112 -0
- package/dist/template/.opencode/skill/cloudflare/references/durable-objects/README.md +125 -0
- package/dist/template/.opencode/skill/cloudflare/references/durable-objects/api.md +152 -0
- package/dist/template/.opencode/skill/cloudflare/references/durable-objects/configuration.md +148 -0
- package/dist/template/.opencode/skill/cloudflare/references/durable-objects/gotchas.md +158 -0
- package/dist/template/.opencode/skill/cloudflare/references/durable-objects/patterns.md +255 -0
- package/dist/template/.opencode/skill/cloudflare/references/email-routing/README.md +18 -0
- package/dist/template/.opencode/skill/cloudflare/references/email-routing/api.md +46 -0
- package/dist/template/.opencode/skill/cloudflare/references/email-routing/configuration.md +63 -0
- package/dist/template/.opencode/skill/cloudflare/references/email-routing/gotchas.md +16 -0
- package/dist/template/.opencode/skill/cloudflare/references/email-routing/patterns.md +46 -0
- package/dist/template/.opencode/skill/cloudflare/references/email-workers/README.md +598 -0
- package/dist/template/.opencode/skill/cloudflare/references/hyperdrive/README.md +62 -0
- package/dist/template/.opencode/skill/cloudflare/references/hyperdrive/api.md +137 -0
- package/dist/template/.opencode/skill/cloudflare/references/hyperdrive/configuration.md +133 -0
- package/dist/template/.opencode/skill/cloudflare/references/hyperdrive/gotchas.md +184 -0
- package/dist/template/.opencode/skill/cloudflare/references/hyperdrive/patterns.md +176 -0
- package/dist/template/.opencode/skill/cloudflare/references/images/README.md +14 -0
- package/dist/template/.opencode/skill/cloudflare/references/images/api.md +3 -0
- package/dist/template/.opencode/skill/cloudflare/references/images/configuration.md +45 -0
- package/dist/template/.opencode/skill/cloudflare/references/images/gotchas.md +23 -0
- package/dist/template/.opencode/skill/cloudflare/references/images/patterns.md +31 -0
- package/dist/template/.opencode/skill/cloudflare/references/kv/README.md +60 -0
- package/dist/template/.opencode/skill/cloudflare/references/kv/api.md +114 -0
- package/dist/template/.opencode/skill/cloudflare/references/kv/configuration.md +92 -0
- package/dist/template/.opencode/skill/cloudflare/references/kv/gotchas.md +117 -0
- package/dist/template/.opencode/skill/cloudflare/references/kv/patterns.md +139 -0
- package/dist/template/.opencode/skill/cloudflare/references/miniflare/README.md +64 -0
- package/dist/template/.opencode/skill/cloudflare/references/miniflare/api.md +144 -0
- package/dist/template/.opencode/skill/cloudflare/references/miniflare/configuration.md +203 -0
- package/dist/template/.opencode/skill/cloudflare/references/miniflare/gotchas.md +187 -0
- package/dist/template/.opencode/skill/cloudflare/references/miniflare/patterns.md +211 -0
- package/dist/template/.opencode/skill/cloudflare/references/network-interconnect/README.md +60 -0
- package/dist/template/.opencode/skill/cloudflare/references/network-interconnect/api.md +240 -0
- package/dist/template/.opencode/skill/cloudflare/references/network-interconnect/configuration.md +127 -0
- package/dist/template/.opencode/skill/cloudflare/references/network-interconnect/gotchas.md +171 -0
- package/dist/template/.opencode/skill/cloudflare/references/network-interconnect/patterns.md +171 -0
- package/dist/template/.opencode/skill/cloudflare/references/observability/README.md +18 -0
- package/dist/template/.opencode/skill/cloudflare/references/observability/api.md +51 -0
- package/dist/template/.opencode/skill/cloudflare/references/observability/configuration.md +60 -0
- package/dist/template/.opencode/skill/cloudflare/references/observability/gotchas.md +36 -0
- package/dist/template/.opencode/skill/cloudflare/references/observability/patterns.md +42 -0
- package/dist/template/.opencode/skill/cloudflare/references/pages/README.md +76 -0
- package/dist/template/.opencode/skill/cloudflare/references/pages/api.md +200 -0
- package/dist/template/.opencode/skill/cloudflare/references/pages/configuration.md +228 -0
- package/dist/template/.opencode/skill/cloudflare/references/pages/gotchas.md +161 -0
- package/dist/template/.opencode/skill/cloudflare/references/pages/patterns.md +145 -0
- package/dist/template/.opencode/skill/cloudflare/references/pages-functions/README.md +57 -0
- package/dist/template/.opencode/skill/cloudflare/references/pages-functions/api.md +201 -0
- package/dist/template/.opencode/skill/cloudflare/references/pages-functions/configuration.md +159 -0
- package/dist/template/.opencode/skill/cloudflare/references/pages-functions/gotchas.md +151 -0
- package/dist/template/.opencode/skill/cloudflare/references/pages-functions/patterns.md +190 -0
- package/dist/template/.opencode/skill/cloudflare/references/pipelines/README.md +664 -0
- package/dist/template/.opencode/skill/cloudflare/references/pulumi/README.md +107 -0
- package/dist/template/.opencode/skill/cloudflare/references/pulumi/api.md +194 -0
- package/dist/template/.opencode/skill/cloudflare/references/pulumi/configuration.md +216 -0
- package/dist/template/.opencode/skill/cloudflare/references/pulumi/gotchas.md +223 -0
- package/dist/template/.opencode/skill/cloudflare/references/pulumi/patterns.md +139 -0
- package/dist/template/.opencode/skill/cloudflare/references/queues/README.md +69 -0
- package/dist/template/.opencode/skill/cloudflare/references/queues/api.md +138 -0
- package/dist/template/.opencode/skill/cloudflare/references/queues/configuration.md +125 -0
- package/dist/template/.opencode/skill/cloudflare/references/queues/gotchas.md +112 -0
- package/dist/template/.opencode/skill/cloudflare/references/queues/patterns.md +155 -0
- package/dist/template/.opencode/skill/cloudflare/references/r2/README.md +61 -0
- package/dist/template/.opencode/skill/cloudflare/references/r2/api.md +127 -0
- package/dist/template/.opencode/skill/cloudflare/references/r2/configuration.md +76 -0
- package/dist/template/.opencode/skill/cloudflare/references/r2/gotchas.md +94 -0
- package/dist/template/.opencode/skill/cloudflare/references/r2/patterns.md +127 -0
- package/dist/template/.opencode/skill/cloudflare/references/r2-data-catalog/README.md +18 -0
- package/dist/template/.opencode/skill/cloudflare/references/r2-data-catalog/api.md +29 -0
- package/dist/template/.opencode/skill/cloudflare/references/r2-data-catalog/configuration.md +39 -0
- package/dist/template/.opencode/skill/cloudflare/references/r2-data-catalog/gotchas.md +20 -0
- package/dist/template/.opencode/skill/cloudflare/references/r2-data-catalog/patterns.md +46 -0
- package/dist/template/.opencode/skill/cloudflare/references/r2-sql/README.md +512 -0
- package/dist/template/.opencode/skill/cloudflare/references/realtime-sfu/README.md +21 -0
- package/dist/template/.opencode/skill/cloudflare/references/realtime-sfu/api.md +135 -0
- package/dist/template/.opencode/skill/cloudflare/references/realtime-sfu/configuration.md +63 -0
- package/dist/template/.opencode/skill/cloudflare/references/realtime-sfu/gotchas.md +75 -0
- package/dist/template/.opencode/skill/cloudflare/references/realtime-sfu/patterns.md +102 -0
- package/dist/template/.opencode/skill/cloudflare/references/realtimekit/README.md +81 -0
- package/dist/template/.opencode/skill/cloudflare/references/realtimekit/api.md +164 -0
- package/dist/template/.opencode/skill/cloudflare/references/realtimekit/configuration.md +147 -0
- package/dist/template/.opencode/skill/cloudflare/references/realtimekit/gotchas.md +172 -0
- package/dist/template/.opencode/skill/cloudflare/references/realtimekit/patterns.md +155 -0
- package/dist/template/.opencode/skill/cloudflare/references/sandbox/README.md +90 -0
- package/dist/template/.opencode/skill/cloudflare/references/sandbox/api.md +178 -0
- package/dist/template/.opencode/skill/cloudflare/references/sandbox/configuration.md +131 -0
- package/dist/template/.opencode/skill/cloudflare/references/sandbox/gotchas.md +156 -0
- package/dist/template/.opencode/skill/cloudflare/references/sandbox/patterns.md +203 -0
- package/dist/template/.opencode/skill/cloudflare/references/secrets-store/README.md +58 -0
- package/dist/template/.opencode/skill/cloudflare/references/secrets-store/api.md +182 -0
- package/dist/template/.opencode/skill/cloudflare/references/secrets-store/configuration.md +140 -0
- package/dist/template/.opencode/skill/cloudflare/references/secrets-store/gotchas.md +129 -0
- package/dist/template/.opencode/skill/cloudflare/references/secrets-store/patterns.md +218 -0
- package/dist/template/.opencode/skill/cloudflare/references/smart-placement/README.md +91 -0
- package/dist/template/.opencode/skill/cloudflare/references/smart-placement/api.md +139 -0
- package/dist/template/.opencode/skill/cloudflare/references/smart-placement/configuration.md +129 -0
- package/dist/template/.opencode/skill/cloudflare/references/smart-placement/gotchas.md +87 -0
- package/dist/template/.opencode/skill/cloudflare/references/smart-placement/patterns.md +135 -0
- package/dist/template/.opencode/skill/cloudflare/references/snippets/README.md +15 -0
- package/dist/template/.opencode/skill/cloudflare/references/snippets/api.md +47 -0
- package/dist/template/.opencode/skill/cloudflare/references/snippets/configuration.md +33 -0
- package/dist/template/.opencode/skill/cloudflare/references/snippets/gotchas.md +21 -0
- package/dist/template/.opencode/skill/cloudflare/references/snippets/patterns.md +34 -0
- package/dist/template/.opencode/skill/cloudflare/references/spectrum/README.md +16 -0
- package/dist/template/.opencode/skill/cloudflare/references/spectrum/api.md +24 -0
- package/dist/template/.opencode/skill/cloudflare/references/spectrum/configuration.md +43 -0
- package/dist/template/.opencode/skill/cloudflare/references/spectrum/gotchas.md +42 -0
- package/dist/template/.opencode/skill/cloudflare/references/spectrum/patterns.md +40 -0
- package/dist/template/.opencode/skill/cloudflare/references/static-assets/README.md +14 -0
- package/dist/template/.opencode/skill/cloudflare/references/static-assets/api.md +3 -0
- package/dist/template/.opencode/skill/cloudflare/references/static-assets/configuration.md +47 -0
- package/dist/template/.opencode/skill/cloudflare/references/static-assets/gotchas.md +44 -0
- package/dist/template/.opencode/skill/cloudflare/references/static-assets/patterns.md +42 -0
- package/dist/template/.opencode/skill/cloudflare/references/stream/README.md +103 -0
- package/dist/template/.opencode/skill/cloudflare/references/stream/api.md +204 -0
- package/dist/template/.opencode/skill/cloudflare/references/stream/configuration.md +127 -0
- package/dist/template/.opencode/skill/cloudflare/references/stream/gotchas.md +131 -0
- package/dist/template/.opencode/skill/cloudflare/references/stream/patterns.md +152 -0
- package/dist/template/.opencode/skill/cloudflare/references/tail-workers/README.md +640 -0
- package/dist/template/.opencode/skill/cloudflare/references/terraform/README.md +76 -0
- package/dist/template/.opencode/skill/cloudflare/references/terraform/api.md +159 -0
- package/dist/template/.opencode/skill/cloudflare/references/terraform/configuration.md +156 -0
- package/dist/template/.opencode/skill/cloudflare/references/terraform/gotchas.md +207 -0
- package/dist/template/.opencode/skill/cloudflare/references/terraform/patterns.md +135 -0
- package/dist/template/.opencode/skill/cloudflare/references/tunnel/README.md +82 -0
- package/dist/template/.opencode/skill/cloudflare/references/tunnel/api.md +105 -0
- package/dist/template/.opencode/skill/cloudflare/references/tunnel/configuration.md +113 -0
- package/dist/template/.opencode/skill/cloudflare/references/tunnel/gotchas.md +115 -0
- package/dist/template/.opencode/skill/cloudflare/references/tunnel/patterns.md +157 -0
- package/dist/template/.opencode/skill/cloudflare/references/turn/README.md +699 -0
- package/dist/template/.opencode/skill/cloudflare/references/turnstile/README.md +14 -0
- package/dist/template/.opencode/skill/cloudflare/references/turnstile/api.md +3 -0
- package/dist/template/.opencode/skill/cloudflare/references/turnstile/configuration.md +19 -0
- package/dist/template/.opencode/skill/cloudflare/references/turnstile/gotchas.md +27 -0
- package/dist/template/.opencode/skill/cloudflare/references/turnstile/patterns.md +41 -0
- package/dist/template/.opencode/skill/cloudflare/references/vectorize/README.md +682 -0
- package/dist/template/.opencode/skill/cloudflare/references/waf/README.md +14 -0
- package/dist/template/.opencode/skill/cloudflare/references/waf/api.md +3 -0
- package/dist/template/.opencode/skill/cloudflare/references/waf/configuration.md +44 -0
- package/dist/template/.opencode/skill/cloudflare/references/waf/gotchas.md +24 -0
- package/dist/template/.opencode/skill/cloudflare/references/waf/patterns.md +29 -0
- package/dist/template/.opencode/skill/cloudflare/references/web-analytics/README.md +19 -0
- package/dist/template/.opencode/skill/cloudflare/references/web-analytics/api.md +52 -0
- package/dist/template/.opencode/skill/cloudflare/references/web-analytics/configuration.md +31 -0
- package/dist/template/.opencode/skill/cloudflare/references/web-analytics/gotchas.md +28 -0
- package/dist/template/.opencode/skill/cloudflare/references/web-analytics/patterns.md +52 -0
- package/dist/template/.opencode/skill/cloudflare/references/workerd/README.md +47 -0
- package/dist/template/.opencode/skill/cloudflare/references/workerd/api.md +199 -0
- package/dist/template/.opencode/skill/cloudflare/references/workerd/configuration.md +185 -0
- package/dist/template/.opencode/skill/cloudflare/references/workerd/gotchas.md +203 -0
- package/dist/template/.opencode/skill/cloudflare/references/workerd/patterns.md +216 -0
- package/dist/template/.opencode/skill/cloudflare/references/workers/README.md +96 -0
- package/dist/template/.opencode/skill/cloudflare/references/workers/api.md +137 -0
- package/dist/template/.opencode/skill/cloudflare/references/workers/configuration.md +147 -0
- package/dist/template/.opencode/skill/cloudflare/references/workers/gotchas.md +99 -0
- package/dist/template/.opencode/skill/cloudflare/references/workers/patterns.md +149 -0
- package/dist/template/.opencode/skill/cloudflare/references/workers-ai/README.md +116 -0
- package/dist/template/.opencode/skill/cloudflare/references/workers-for-platforms/README.md +48 -0
- package/dist/template/.opencode/skill/cloudflare/references/workers-for-platforms/api.md +169 -0
- package/dist/template/.opencode/skill/cloudflare/references/workers-for-platforms/configuration.md +136 -0
- package/dist/template/.opencode/skill/cloudflare/references/workers-for-platforms/gotchas.md +130 -0
- package/dist/template/.opencode/skill/cloudflare/references/workers-for-platforms/patterns.md +170 -0
- package/dist/template/.opencode/skill/cloudflare/references/workers-playground/README.md +16 -0
- package/dist/template/.opencode/skill/cloudflare/references/workers-playground/api.md +20 -0
- package/dist/template/.opencode/skill/cloudflare/references/workers-playground/configuration.md +3 -0
- package/dist/template/.opencode/skill/cloudflare/references/workers-playground/gotchas.md +35 -0
- package/dist/template/.opencode/skill/cloudflare/references/workers-playground/patterns.md +42 -0
- package/dist/template/.opencode/skill/cloudflare/references/workers-vpc/README.md +579 -0
- package/dist/template/.opencode/skill/cloudflare/references/workflows/README.md +62 -0
- package/dist/template/.opencode/skill/cloudflare/references/workflows/api.md +125 -0
- package/dist/template/.opencode/skill/cloudflare/references/workflows/configuration.md +177 -0
- package/dist/template/.opencode/skill/cloudflare/references/workflows/gotchas.md +136 -0
- package/dist/template/.opencode/skill/cloudflare/references/workflows/patterns.md +132 -0
- package/dist/template/.opencode/skill/cloudflare/references/wrangler/README.md +90 -0
- package/dist/template/.opencode/skill/cloudflare/references/wrangler/api.md +140 -0
- package/dist/template/.opencode/skill/cloudflare/references/wrangler/configuration.md +128 -0
- package/dist/template/.opencode/skill/cloudflare/references/wrangler/gotchas.md +93 -0
- package/dist/template/.opencode/skill/cloudflare/references/wrangler/patterns.md +150 -0
- package/dist/template/.opencode/skill/cloudflare/references/zaraz/README.md +360 -0
- package/dist/template/.opencode/skill/code-search-patterns/SKILL.md +253 -0
- package/dist/template/.opencode/skill/code-simplification/SKILL.md +211 -0
- package/dist/template/.opencode/skill/condition-based-waiting/SKILL.md +135 -0
- package/dist/template/.opencode/skill/condition-based-waiting/example.ts +158 -0
- package/dist/template/.opencode/skill/context-condensation/SKILL.md +149 -0
- package/dist/template/.opencode/skill/context-engineering/SKILL.md +176 -0
- package/dist/template/.opencode/skill/context-initialization/SKILL.md +69 -0
- package/dist/template/.opencode/skill/context-management/SKILL.md +390 -0
- package/dist/template/.opencode/skill/core-data-expert/SKILL.md +93 -0
- package/dist/template/.opencode/skill/core-data-expert/references/batch-operations.md +543 -0
- package/dist/template/.opencode/skill/core-data-expert/references/cloudkit-integration.md +259 -0
- package/dist/template/.opencode/skill/core-data-expert/references/concurrency.md +522 -0
- package/dist/template/.opencode/skill/core-data-expert/references/fetch-requests.md +643 -0
- package/dist/template/.opencode/skill/core-data-expert/references/glossary.md +233 -0
- package/dist/template/.opencode/skill/core-data-expert/references/migration.md +393 -0
- package/dist/template/.opencode/skill/core-data-expert/references/model-configuration.md +597 -0
- package/dist/template/.opencode/skill/core-data-expert/references/performance.md +300 -0
- package/dist/template/.opencode/skill/core-data-expert/references/persistent-history.md +553 -0
- package/dist/template/.opencode/skill/core-data-expert/references/project-audit.md +60 -0
- package/dist/template/.opencode/skill/core-data-expert/references/saving.md +574 -0
- package/dist/template/.opencode/skill/core-data-expert/references/stack-setup.md +625 -0
- package/dist/template/.opencode/skill/core-data-expert/references/testing.md +300 -0
- package/dist/template/.opencode/skill/core-data-expert/references/threading.md +589 -0
- package/dist/template/.opencode/skill/deep-research/SKILL.md +384 -0
- package/dist/template/.opencode/skill/defense-in-depth/SKILL.md +176 -0
- package/dist/template/.opencode/skill/deprecation-and-migration/SKILL.md +189 -0
- package/dist/template/.opencode/skill/design-direction-advisor/SKILL.md +139 -0
- package/dist/template/.opencode/skill/design-system-audit/SKILL.md +153 -0
- package/dist/template/.opencode/skill/design-taste-frontend/SKILL.md +238 -0
- package/dist/template/.opencode/skill/development-lifecycle/SKILL.md +320 -0
- package/dist/template/.opencode/skill/dispatching-parallel-agents/SKILL.md +191 -0
- package/dist/template/.opencode/skill/documentation-and-adrs/SKILL.md +220 -0
- package/dist/template/.opencode/skill/executing-plans/SKILL.md +247 -0
- package/dist/template/.opencode/skill/figma/SKILL.md +224 -0
- package/dist/template/.opencode/skill/figma-go/SKILL.md +65 -0
- package/dist/template/.opencode/skill/finishing-a-development-branch/SKILL.md +357 -0
- package/dist/template/.opencode/skill/frontend-design/SKILL.md +235 -0
- package/dist/template/.opencode/skill/frontend-design/references/animation/motion-advanced.md +224 -0
- package/dist/template/.opencode/skill/frontend-design/references/animation/motion-core.md +181 -0
- package/dist/template/.opencode/skill/frontend-design/references/canvas/execution.md +90 -0
- package/dist/template/.opencode/skill/frontend-design/references/canvas/philosophy.md +94 -0
- package/dist/template/.opencode/skill/frontend-design/references/design/color-system.md +111 -0
- package/dist/template/.opencode/skill/frontend-design/references/design/interaction.md +149 -0
- package/dist/template/.opencode/skill/frontend-design/references/design/typography-rules.md +106 -0
- package/dist/template/.opencode/skill/frontend-design/references/design/ux-writing.md +99 -0
- package/dist/template/.opencode/skill/frontend-design/references/shadcn/accessibility.md +132 -0
- package/dist/template/.opencode/skill/frontend-design/references/shadcn/core-components.md +153 -0
- package/dist/template/.opencode/skill/frontend-design/references/shadcn/form-components.md +158 -0
- package/dist/template/.opencode/skill/frontend-design/references/shadcn/setup.md +69 -0
- package/dist/template/.opencode/skill/frontend-design/references/shadcn/theming.md +152 -0
- package/dist/template/.opencode/skill/frontend-design/references/tailwind/responsive.md +112 -0
- package/dist/template/.opencode/skill/frontend-design/references/tailwind/utilities-layout.md +134 -0
- package/dist/template/.opencode/skill/frontend-design/references/tailwind/utilities-styling.md +165 -0
- package/dist/template/.opencode/skill/frontend-design/references/tailwind/v4-config.md +147 -0
- package/dist/template/.opencode/skill/frontend-design/references/tailwind/v4-features.md +128 -0
- package/dist/template/.opencode/skill/full-output-enforcement/SKILL.md +62 -0
- package/dist/template/.opencode/skill/gemini-large-context/SKILL.md +216 -0
- package/dist/template/.opencode/skill/gh-address-comments/SKILL.md +29 -0
- package/dist/template/.opencode/skill/gh-address-comments/scripts/fetch_comments.py +237 -0
- package/dist/template/.opencode/skill/gh-fix-ci/SKILL.md +38 -0
- package/dist/template/.opencode/skill/gh-fix-ci/scripts/inspect_pr_checks.py +509 -0
- package/dist/template/.opencode/skill/hi-fi-prototype-html/SKILL.md +253 -0
- package/dist/template/.opencode/skill/high-end-visual-design/SKILL.md +111 -0
- package/dist/template/.opencode/skill/html-deck-export/SKILL.md +189 -0
- package/dist/template/.opencode/skill/incremental-implementation/SKILL.md +191 -0
- package/dist/template/.opencode/skill/index-knowledge/SKILL.md +413 -0
- package/dist/template/.opencode/skill/industrial-brutalist-ui/SKILL.md +105 -0
- package/dist/template/.opencode/skill/jira/SKILL.md +283 -0
- package/dist/template/.opencode/skill/jira/mcp.json +6 -0
- package/dist/template/.opencode/skill/memory-grounding/SKILL.md +68 -0
- package/dist/template/.opencode/skill/memory-system/SKILL.md +148 -0
- package/dist/template/.opencode/skill/minimalist-ui/SKILL.md +98 -0
- package/dist/template/.opencode/skill/mockup-to-code/SKILL.md +184 -0
- package/dist/template/.opencode/skill/opensrc/SKILL.md +284 -0
- package/dist/template/.opencode/skill/opensrc/references/architecture.md +176 -0
- package/dist/template/.opencode/skill/opensrc/references/cli-usage.md +176 -0
- package/dist/template/.opencode/skill/opensrc/references/registry-support.md +137 -0
- package/dist/template/.opencode/skill/pdf-extract/SKILL.md +438 -0
- package/dist/template/.opencode/skill/performance-optimization/SKILL.md +236 -0
- package/dist/template/.opencode/skill/playwright/SKILL.md +381 -0
- package/dist/template/.opencode/skill/playwright/mcp.json +16 -0
- package/dist/template/.opencode/skill/playwright/references/agent-browser-cli.md +405 -0
- package/dist/template/.opencode/skill/playwriter/SKILL.md +158 -0
- package/dist/template/.opencode/skill/polar/SKILL.md +102 -0
- package/dist/template/.opencode/skill/portless/SKILL.md +109 -0
- package/dist/template/.opencode/skill/prd/SKILL.md +146 -0
- package/dist/template/.opencode/skill/prd-task/SKILL.md +182 -0
- package/dist/template/.opencode/skill/prd-task/references/prd-schema.json +124 -0
- package/dist/template/.opencode/skill/prompt-leverage/SKILL.md +90 -0
- package/dist/template/.opencode/skill/prompt-leverage/references/framework.md +91 -0
- package/dist/template/.opencode/skill/prompt-leverage/scripts/augment_prompt.py +157 -0
- package/dist/template/.opencode/skill/react-best-practices/AGENTS.md +2410 -0
- package/dist/template/.opencode/skill/react-best-practices/README.md +123 -0
- package/dist/template/.opencode/skill/react-best-practices/SKILL.md +133 -0
- package/dist/template/.opencode/skill/react-best-practices/metadata.json +15 -0
- package/dist/template/.opencode/skill/react-best-practices/rules/_sections.md +46 -0
- package/dist/template/.opencode/skill/react-best-practices/rules/_template.md +28 -0
- package/dist/template/.opencode/skill/react-best-practices/rules/advanced-event-handler-refs.md +55 -0
- package/dist/template/.opencode/skill/react-best-practices/rules/advanced-use-latest.md +49 -0
- package/dist/template/.opencode/skill/react-best-practices/rules/async-api-routes.md +38 -0
- package/dist/template/.opencode/skill/react-best-practices/rules/async-defer-await.md +80 -0
- package/dist/template/.opencode/skill/react-best-practices/rules/async-dependencies.md +36 -0
- package/dist/template/.opencode/skill/react-best-practices/rules/async-parallel.md +28 -0
- package/dist/template/.opencode/skill/react-best-practices/rules/async-suspense-boundaries.md +99 -0
- package/dist/template/.opencode/skill/react-best-practices/rules/bundle-barrel-imports.md +59 -0
- package/dist/template/.opencode/skill/react-best-practices/rules/bundle-conditional.md +31 -0
- package/dist/template/.opencode/skill/react-best-practices/rules/bundle-defer-third-party.md +49 -0
- package/dist/template/.opencode/skill/react-best-practices/rules/bundle-dynamic-imports.md +35 -0
- package/dist/template/.opencode/skill/react-best-practices/rules/bundle-preload.md +50 -0
- package/dist/template/.opencode/skill/react-best-practices/rules/client-event-listeners.md +74 -0
- package/dist/template/.opencode/skill/react-best-practices/rules/client-localstorage-schema.md +71 -0
- package/dist/template/.opencode/skill/react-best-practices/rules/client-passive-event-listeners.md +48 -0
- package/dist/template/.opencode/skill/react-best-practices/rules/client-swr-dedup.md +56 -0
- package/dist/template/.opencode/skill/react-best-practices/rules/js-batch-dom-css.md +82 -0
- package/dist/template/.opencode/skill/react-best-practices/rules/js-cache-function-results.md +80 -0
- package/dist/template/.opencode/skill/react-best-practices/rules/js-cache-property-access.md +28 -0
- package/dist/template/.opencode/skill/react-best-practices/rules/js-cache-storage.md +70 -0
- package/dist/template/.opencode/skill/react-best-practices/rules/js-combine-iterations.md +32 -0
- package/dist/template/.opencode/skill/react-best-practices/rules/js-early-exit.md +50 -0
- package/dist/template/.opencode/skill/react-best-practices/rules/js-hoist-regexp.md +45 -0
- package/dist/template/.opencode/skill/react-best-practices/rules/js-index-maps.md +37 -0
- package/dist/template/.opencode/skill/react-best-practices/rules/js-length-check-first.md +49 -0
- package/dist/template/.opencode/skill/react-best-practices/rules/js-min-max-loop.md +82 -0
- package/dist/template/.opencode/skill/react-best-practices/rules/js-set-map-lookups.md +24 -0
- package/dist/template/.opencode/skill/react-best-practices/rules/js-tosorted-immutable.md +57 -0
- package/dist/template/.opencode/skill/react-best-practices/rules/rendering-activity.md +26 -0
- package/dist/template/.opencode/skill/react-best-practices/rules/rendering-animate-svg-wrapper.md +47 -0
- package/dist/template/.opencode/skill/react-best-practices/rules/rendering-conditional-render.md +40 -0
- package/dist/template/.opencode/skill/react-best-practices/rules/rendering-content-visibility.md +38 -0
- package/dist/template/.opencode/skill/react-best-practices/rules/rendering-hoist-jsx.md +46 -0
- package/dist/template/.opencode/skill/react-best-practices/rules/rendering-hydration-no-flicker.md +82 -0
- package/dist/template/.opencode/skill/react-best-practices/rules/rendering-svg-precision.md +28 -0
- package/dist/template/.opencode/skill/react-best-practices/rules/rerender-defer-reads.md +39 -0
- package/dist/template/.opencode/skill/react-best-practices/rules/rerender-dependencies.md +45 -0
- package/dist/template/.opencode/skill/react-best-practices/rules/rerender-derived-state.md +29 -0
- package/dist/template/.opencode/skill/react-best-practices/rules/rerender-functional-setstate.md +74 -0
- package/dist/template/.opencode/skill/react-best-practices/rules/rerender-lazy-state-init.md +58 -0
- package/dist/template/.opencode/skill/react-best-practices/rules/rerender-memo.md +44 -0
- package/dist/template/.opencode/skill/react-best-practices/rules/rerender-transitions.md +40 -0
- package/dist/template/.opencode/skill/react-best-practices/rules/server-after-nonblocking.md +73 -0
- package/dist/template/.opencode/skill/react-best-practices/rules/server-cache-lru.md +41 -0
- package/dist/template/.opencode/skill/react-best-practices/rules/server-cache-react.md +76 -0
- package/dist/template/.opencode/skill/react-best-practices/rules/server-parallel-fetching.md +83 -0
- package/dist/template/.opencode/skill/react-best-practices/rules/server-serialization.md +38 -0
- package/dist/template/.opencode/skill/receiving-code-review/SKILL.md +263 -0
- package/dist/template/.opencode/skill/reconcile/SKILL.md +183 -0
- package/dist/template/.opencode/skill/redesign-existing-projects/SKILL.md +191 -0
- package/dist/template/.opencode/skill/reflection-checkpoints/SKILL.md +183 -0
- package/dist/template/.opencode/skill/requesting-code-review/SKILL.md +443 -0
- package/dist/template/.opencode/skill/requesting-code-review/references/specialist-profiles.md +108 -0
- package/dist/template/.opencode/skill/requesting-code-review/review.md +160 -0
- package/dist/template/.opencode/skill/resend/SKILL.md +177 -0
- package/dist/template/.opencode/skill/resend/references/react-email.md +287 -0
- package/dist/template/.opencode/skill/resend/references/receive-email.md +248 -0
- package/dist/template/.opencode/skill/resend/references/send-email.md +318 -0
- package/dist/template/.opencode/skill/root-cause-tracing/SKILL.md +192 -0
- package/dist/template/.opencode/skill/root-cause-tracing/find-polluter.sh +63 -0
- package/dist/template/.opencode/skill/rtk-command-compression/SKILL.md +134 -0
- package/dist/template/.opencode/skill/screenshot/SKILL.md +48 -0
- package/dist/template/.opencode/skill/screenshot/scripts/ensure_macos_permissions.sh +54 -0
- package/dist/template/.opencode/skill/screenshot/scripts/macos_display_info.swift +22 -0
- package/dist/template/.opencode/skill/screenshot/scripts/macos_permissions.swift +40 -0
- package/dist/template/.opencode/skill/screenshot/scripts/macos_window_info.swift +126 -0
- package/dist/template/.opencode/skill/screenshot/scripts/take_screenshot.ps1 +163 -0
- package/dist/template/.opencode/skill/screenshot/scripts/take_screenshot.py +585 -0
- package/dist/template/.opencode/skill/security-and-hardening/SKILL.md +296 -0
- package/dist/template/.opencode/skill/security-threat-model/SKILL.md +36 -0
- package/dist/template/.opencode/skill/security-threat-model/references/prompt-template.md +255 -0
- package/dist/template/.opencode/skill/security-threat-model/references/security-controls-and-assets.md +32 -0
- package/dist/template/.opencode/skill/sharing-skills/SKILL.md +214 -0
- package/dist/template/.opencode/skill/skill-creator/SKILL.md +181 -0
- package/dist/template/.opencode/skill/skill-installer/SKILL.md +58 -0
- package/dist/template/.opencode/skill/skill-installer/scripts/github_utils.py +21 -0
- package/dist/template/.opencode/skill/skill-installer/scripts/install-skill-from-github.py +313 -0
- package/dist/template/.opencode/skill/skill-installer/scripts/list-skills.py +106 -0
- package/dist/template/.opencode/skill/structured-edit/SKILL.md +191 -0
- package/dist/template/.opencode/skill/subagent-driven-development/SKILL.md +237 -0
- package/dist/template/.opencode/skill/supabase/SKILL.md +130 -0
- package/dist/template/.opencode/skill/supabase/mcp.json +27 -0
- package/dist/template/.opencode/skill/supabase-postgres-best-practices/AGENTS.md +1490 -0
- package/dist/template/.opencode/skill/supabase-postgres-best-practices/SKILL.md +65 -0
- package/dist/template/.opencode/skill/supabase-postgres-best-practices/rules/advanced-full-text-search.md +55 -0
- package/dist/template/.opencode/skill/supabase-postgres-best-practices/rules/advanced-jsonb-indexing.md +49 -0
- package/dist/template/.opencode/skill/supabase-postgres-best-practices/rules/conn-idle-timeout.md +46 -0
- package/dist/template/.opencode/skill/supabase-postgres-best-practices/rules/conn-limits.md +44 -0
- package/dist/template/.opencode/skill/supabase-postgres-best-practices/rules/conn-pooling.md +41 -0
- package/dist/template/.opencode/skill/supabase-postgres-best-practices/rules/conn-prepared-statements.md +46 -0
- package/dist/template/.opencode/skill/supabase-postgres-best-practices/rules/data-batch-inserts.md +54 -0
- package/dist/template/.opencode/skill/supabase-postgres-best-practices/rules/data-n-plus-one.md +53 -0
- package/dist/template/.opencode/skill/supabase-postgres-best-practices/rules/data-pagination.md +50 -0
- package/dist/template/.opencode/skill/supabase-postgres-best-practices/rules/data-upsert.md +50 -0
- package/dist/template/.opencode/skill/supabase-postgres-best-practices/rules/lock-advisory.md +56 -0
- package/dist/template/.opencode/skill/supabase-postgres-best-practices/rules/lock-deadlock-prevention.md +68 -0
- package/dist/template/.opencode/skill/supabase-postgres-best-practices/rules/lock-short-transactions.md +50 -0
- package/dist/template/.opencode/skill/supabase-postgres-best-practices/rules/lock-skip-locked.md +54 -0
- package/dist/template/.opencode/skill/supabase-postgres-best-practices/rules/monitor-explain-analyze.md +45 -0
- package/dist/template/.opencode/skill/supabase-postgres-best-practices/rules/monitor-pg-stat-statements.md +55 -0
- package/dist/template/.opencode/skill/supabase-postgres-best-practices/rules/monitor-vacuum-analyze.md +55 -0
- package/dist/template/.opencode/skill/supabase-postgres-best-practices/rules/query-composite-indexes.md +44 -0
- package/dist/template/.opencode/skill/supabase-postgres-best-practices/rules/query-covering-indexes.md +40 -0
- package/dist/template/.opencode/skill/supabase-postgres-best-practices/rules/query-index-types.md +45 -0
- package/dist/template/.opencode/skill/supabase-postgres-best-practices/rules/query-missing-indexes.md +43 -0
- package/dist/template/.opencode/skill/supabase-postgres-best-practices/rules/query-partial-indexes.md +45 -0
- package/dist/template/.opencode/skill/supabase-postgres-best-practices/rules/schema-data-types.md +46 -0
- package/dist/template/.opencode/skill/supabase-postgres-best-practices/rules/schema-foreign-key-indexes.md +59 -0
- package/dist/template/.opencode/skill/supabase-postgres-best-practices/rules/schema-lowercase-identifiers.md +55 -0
- package/dist/template/.opencode/skill/supabase-postgres-best-practices/rules/schema-partitioning.md +55 -0
- package/dist/template/.opencode/skill/supabase-postgres-best-practices/rules/schema-primary-keys.md +61 -0
- package/dist/template/.opencode/skill/supabase-postgres-best-practices/rules/security-privileges.md +54 -0
- package/dist/template/.opencode/skill/supabase-postgres-best-practices/rules/security-rls-basics.md +50 -0
- package/dist/template/.opencode/skill/supabase-postgres-best-practices/rules/security-rls-performance.md +57 -0
- package/dist/template/.opencode/skill/swarm-coordination/SKILL.md +244 -0
- package/dist/template/.opencode/skill/swarm-coordination/references/architecture.md +39 -0
- package/dist/template/.opencode/skill/swarm-coordination/references/delegation-worker-protocol.md +145 -0
- package/dist/template/.opencode/skill/swarm-coordination/references/dependency-graph.md +50 -0
- package/dist/template/.opencode/skill/swarm-coordination/references/drift-check.md +90 -0
- package/dist/template/.opencode/skill/swarm-coordination/references/integration-beads.md +20 -0
- package/dist/template/.opencode/skill/swarm-coordination/references/launch-flow.md +186 -0
- package/dist/template/.opencode/skill/swarm-coordination/references/reconciler.md +172 -0
- package/dist/template/.opencode/skill/swarm-coordination/references/tier-enforcement.md +78 -0
- package/dist/template/.opencode/skill/swarm-coordination/references/tmux-integration.md +134 -0
- package/dist/template/.opencode/skill/swift-concurrency/SKILL.md +266 -0
- package/dist/template/.opencode/skill/swift-concurrency/references/actors.md +640 -0
- package/dist/template/.opencode/skill/swift-concurrency/references/async-algorithms.md +822 -0
- package/dist/template/.opencode/skill/swift-concurrency/references/async-await-basics.md +249 -0
- package/dist/template/.opencode/skill/swift-concurrency/references/async-sequences.md +670 -0
- package/dist/template/.opencode/skill/swift-concurrency/references/core-data.md +533 -0
- package/dist/template/.opencode/skill/swift-concurrency/references/glossary.md +128 -0
- package/dist/template/.opencode/skill/swift-concurrency/references/linting.md +142 -0
- package/dist/template/.opencode/skill/swift-concurrency/references/memory-management.md +542 -0
- package/dist/template/.opencode/skill/swift-concurrency/references/migration.md +1076 -0
- package/dist/template/.opencode/skill/swift-concurrency/references/performance.md +574 -0
- package/dist/template/.opencode/skill/swift-concurrency/references/sendable.md +578 -0
- package/dist/template/.opencode/skill/swift-concurrency/references/tasks.md +604 -0
- package/dist/template/.opencode/skill/swift-concurrency/references/testing.md +565 -0
- package/dist/template/.opencode/skill/swift-concurrency/references/threading.md +452 -0
- package/dist/template/.opencode/skill/swiftui-expert-skill/SKILL.md +329 -0
- package/dist/template/.opencode/skill/swiftui-expert-skill/references/animation-advanced.md +351 -0
- package/dist/template/.opencode/skill/swiftui-expert-skill/references/animation-basics.md +284 -0
- package/dist/template/.opencode/skill/swiftui-expert-skill/references/animation-transitions.md +326 -0
- package/dist/template/.opencode/skill/swiftui-expert-skill/references/image-optimization.md +286 -0
- package/dist/template/.opencode/skill/swiftui-expert-skill/references/layout-best-practices.md +312 -0
- package/dist/template/.opencode/skill/swiftui-expert-skill/references/liquid-glass.md +377 -0
- package/dist/template/.opencode/skill/swiftui-expert-skill/references/list-patterns.md +153 -0
- package/dist/template/.opencode/skill/swiftui-expert-skill/references/modern-apis.md +400 -0
- package/dist/template/.opencode/skill/swiftui-expert-skill/references/performance-patterns.md +377 -0
- package/dist/template/.opencode/skill/swiftui-expert-skill/references/scroll-patterns.md +305 -0
- package/dist/template/.opencode/skill/swiftui-expert-skill/references/sheet-navigation-patterns.md +292 -0
- package/dist/template/.opencode/skill/swiftui-expert-skill/references/state-management.md +447 -0
- package/dist/template/.opencode/skill/swiftui-expert-skill/references/text-formatting.md +285 -0
- package/dist/template/.opencode/skill/swiftui-expert-skill/references/view-structure.md +276 -0
- package/dist/template/.opencode/skill/systematic-debugging/SKILL.md +402 -0
- package/dist/template/.opencode/skill/terse-output-mode/SKILL.md +95 -0
- package/dist/template/.opencode/skill/test-driven-development/SKILL.md +403 -0
- package/dist/template/.opencode/skill/testing-anti-patterns/SKILL.md +333 -0
- package/dist/template/.opencode/skill/think-in-code/SKILL.md +136 -0
- package/dist/template/.opencode/skill/using-git-worktrees/SKILL.md +259 -0
- package/dist/template/.opencode/skill/ux-quality-gates/SKILL.md +137 -0
- package/dist/template/.opencode/skill/v0/SKILL.md +158 -0
- package/dist/template/.opencode/skill/v1-run/SKILL.md +175 -0
- package/dist/template/.opencode/skill/v1-run/mcp.json +6 -0
- package/dist/template/.opencode/skill/vercel-deploy-claimable/SKILL.md +124 -0
- package/dist/template/.opencode/skill/vercel-deploy-claimable/scripts/deploy.sh +249 -0
- package/dist/template/.opencode/skill/verification-before-completion/SKILL.md +357 -0
- package/dist/template/.opencode/skill/verification-before-completion/references/VERIFICATION_PROTOCOL.md +171 -0
- package/dist/template/.opencode/skill/verification-gates/SKILL.md +63 -0
- package/dist/template/.opencode/skill/visual-analysis/SKILL.md +154 -0
- package/dist/template/.opencode/skill/web-design-guidelines/SKILL.md +46 -0
- package/dist/template/.opencode/skill/webclaw/SKILL.md +155 -0
- package/dist/template/.opencode/skill/workspace-setup/SKILL.md +76 -0
- package/dist/template/.opencode/skill/writing-plans/SKILL.md +320 -0
- package/dist/template/.opencode/skill/writing-skills/SKILL.md +324 -0
- package/dist/template/.opencode/skill/writing-skills/anthropic-best-practices.md +1173 -0
- package/dist/template/.opencode/skill/writing-skills/graphviz-conventions.dot +172 -0
- package/dist/template/.opencode/skill/writing-skills/persuasion-principles.md +220 -0
- package/dist/template/.opencode/skill/writing-skills/references/anti-patterns.md +25 -0
- package/dist/template/.opencode/skill/writing-skills/references/claude-search-optimization.md +140 -0
- package/dist/template/.opencode/skill/writing-skills/references/discovery-workflow.md +11 -0
- package/dist/template/.opencode/skill/writing-skills/references/file-organization.md +32 -0
- package/dist/template/.opencode/skill/writing-skills/references/flowcharts-and-examples.md +57 -0
- package/dist/template/.opencode/skill/writing-skills/references/rationalization-hardening.md +75 -0
- package/dist/template/.opencode/skill/writing-skills/references/testing-methodology.md +397 -0
- package/dist/template/.opencode/skill/writing-skills/references/testing-skill-types.md +52 -0
- package/dist/template/.opencode/tool/context7.ts +191 -0
- package/dist/template/.opencode/tool/grepsearch.ts +143 -0
- package/dist/template/.opencode/tsconfig.json +21 -0
- package/dist/template/.opencode/tui.json +15 -0
- package/package.json +78 -0
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: security-and-hardening
|
|
3
|
+
description: Use when auditing for security vulnerabilities, implementing auth/authz, handling secrets, or hardening against OWASP Top 10 — covers input validation, authentication, dependency auditing, and secure defaults
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
tags: [security, code-quality]
|
|
6
|
+
dependencies: []
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Security & Hardening
|
|
10
|
+
|
|
11
|
+
> **Replaces** "we'll add security later" with security-by-default patterns applied from the start
|
|
12
|
+
|
|
13
|
+
## When to Use
|
|
14
|
+
|
|
15
|
+
- Implementing authentication or authorization
|
|
16
|
+
- Handling user input that touches databases, file systems, or external services
|
|
17
|
+
- Reviewing code for security vulnerabilities
|
|
18
|
+
- Running dependency audits or responding to CVE alerts
|
|
19
|
+
- Deploying to production for the first time
|
|
20
|
+
|
|
21
|
+
## When NOT to Use
|
|
22
|
+
|
|
23
|
+
- Local-only developer tools with no network exposure
|
|
24
|
+
- Throwaway prototypes that will never see user data
|
|
25
|
+
- Performance optimization (that's a different skill)
|
|
26
|
+
|
|
27
|
+
## Overview
|
|
28
|
+
|
|
29
|
+
Security is a constraint, not a feature. It should be present by default and requires explicit justification to relax.
|
|
30
|
+
|
|
31
|
+
**Core principle:** Validate all input. Authenticate all access. Encrypt all secrets. Audit all dependencies. Trust nothing from outside your process boundary.
|
|
32
|
+
|
|
33
|
+
## Security Boundaries
|
|
34
|
+
|
|
35
|
+
### Always
|
|
36
|
+
|
|
37
|
+
- Validate and sanitize all user input at the boundary
|
|
38
|
+
- Use parameterized queries (never string interpolation for SQL)
|
|
39
|
+
- Hash passwords with bcrypt/scrypt/argon2 (never MD5/SHA for passwords)
|
|
40
|
+
- Use HTTPS for all external communication
|
|
41
|
+
- Store secrets in environment variables, never in code
|
|
42
|
+
- Set secure defaults (CORS restrictive, CSP strict, cookies httpOnly+secure)
|
|
43
|
+
|
|
44
|
+
### Ask First
|
|
45
|
+
|
|
46
|
+
- Changing authentication mechanism or session handling
|
|
47
|
+
- Adding new API endpoints that accept user data
|
|
48
|
+
- Modifying CORS policy or CSP headers
|
|
49
|
+
- Adding new third-party dependencies with network access
|
|
50
|
+
- Storing new types of PII or sensitive data
|
|
51
|
+
|
|
52
|
+
### Never
|
|
53
|
+
|
|
54
|
+
- Commit secrets, API keys, or credentials to git
|
|
55
|
+
- Disable CSRF protection
|
|
56
|
+
- Use `eval()` or `Function()` with user input
|
|
57
|
+
- Trust client-side validation as the only validation
|
|
58
|
+
- Log sensitive data (passwords, tokens, PII)
|
|
59
|
+
|
|
60
|
+
## OWASP Top 10 Patterns
|
|
61
|
+
|
|
62
|
+
### 1. Injection (SQL, NoSQL, Command)
|
|
63
|
+
|
|
64
|
+
```typescript
|
|
65
|
+
// ❌ SQL Injection
|
|
66
|
+
const user = await db.query(`SELECT * FROM users WHERE id = '${userId}'`);
|
|
67
|
+
|
|
68
|
+
// ✅ Parameterized query
|
|
69
|
+
const user = await db.query("SELECT * FROM users WHERE id = $1", [userId]);
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
```typescript
|
|
73
|
+
// ❌ Command injection
|
|
74
|
+
exec(`convert ${filename} output.png`);
|
|
75
|
+
|
|
76
|
+
// ✅ Safe argument passing
|
|
77
|
+
execFile("convert", [filename, "output.png"]);
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
### 2. Broken Authentication
|
|
81
|
+
|
|
82
|
+
```typescript
|
|
83
|
+
// ✅ Password hashing
|
|
84
|
+
import bcrypt from "bcrypt";
|
|
85
|
+
const hash = await bcrypt.hash(password, 12); // cost factor 12
|
|
86
|
+
const valid = await bcrypt.compare(input, hash);
|
|
87
|
+
|
|
88
|
+
// ✅ Session management
|
|
89
|
+
const session = {
|
|
90
|
+
httpOnly: true, // No JS access
|
|
91
|
+
secure: true, // HTTPS only
|
|
92
|
+
sameSite: "lax", // CSRF protection
|
|
93
|
+
maxAge: 3600, // 1 hour expiry
|
|
94
|
+
};
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
### 3. Sensitive Data Exposure
|
|
98
|
+
|
|
99
|
+
```typescript
|
|
100
|
+
// ❌ Logging sensitive data
|
|
101
|
+
console.log("User login:", { email, password });
|
|
102
|
+
|
|
103
|
+
// ✅ Redact sensitive fields
|
|
104
|
+
console.log("User login:", { email, password: "[REDACTED]" });
|
|
105
|
+
|
|
106
|
+
// ✅ API response excludes internal fields
|
|
107
|
+
function toPublicUser(user: DbUser): PublicUser {
|
|
108
|
+
const { passwordHash, internalId, ...publicFields } = user;
|
|
109
|
+
return publicFields;
|
|
110
|
+
}
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
### 4. Broken Access Control
|
|
114
|
+
|
|
115
|
+
```typescript
|
|
116
|
+
// ❌ No authorization check
|
|
117
|
+
app.get("/api/users/:id", async (req, res) => {
|
|
118
|
+
const user = await getUser(req.params.id);
|
|
119
|
+
res.json(user); // Any authenticated user can access any profile
|
|
120
|
+
});
|
|
121
|
+
|
|
122
|
+
// ✅ Authorization check
|
|
123
|
+
app.get("/api/users/:id", async (req, res) => {
|
|
124
|
+
const user = await getUser(req.params.id);
|
|
125
|
+
if (user.id !== req.auth.userId && !req.auth.isAdmin) {
|
|
126
|
+
return res.status(403).json({ error: "Forbidden" });
|
|
127
|
+
}
|
|
128
|
+
res.json(user);
|
|
129
|
+
});
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
### 5. Security Misconfiguration
|
|
133
|
+
|
|
134
|
+
```typescript
|
|
135
|
+
// ✅ Secure headers (use helmet for Express)
|
|
136
|
+
import helmet from "helmet";
|
|
137
|
+
app.use(helmet());
|
|
138
|
+
|
|
139
|
+
// ✅ CORS — restrictive by default
|
|
140
|
+
app.use(
|
|
141
|
+
cors({
|
|
142
|
+
origin: ["https://myapp.com"], // Not '*'
|
|
143
|
+
methods: ["GET", "POST"],
|
|
144
|
+
credentials: true,
|
|
145
|
+
}),
|
|
146
|
+
);
|
|
147
|
+
|
|
148
|
+
// ✅ CSP
|
|
149
|
+
app.use(
|
|
150
|
+
helmet.contentSecurityPolicy({
|
|
151
|
+
directives: {
|
|
152
|
+
defaultSrc: ["'self'"],
|
|
153
|
+
scriptSrc: ["'self'"], // No 'unsafe-inline'
|
|
154
|
+
styleSrc: ["'self'", "'unsafe-inline'"], // Only if needed
|
|
155
|
+
},
|
|
156
|
+
}),
|
|
157
|
+
);
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
## Input Validation Patterns
|
|
161
|
+
|
|
162
|
+
```typescript
|
|
163
|
+
import { z } from "zod";
|
|
164
|
+
|
|
165
|
+
// ✅ Validate at the boundary
|
|
166
|
+
const createUserSchema = z.object({
|
|
167
|
+
name: z.string().min(1).max(100).trim(),
|
|
168
|
+
email: z.string().email().max(254),
|
|
169
|
+
age: z.number().int().min(0).max(150).optional(),
|
|
170
|
+
});
|
|
171
|
+
|
|
172
|
+
// ✅ Reject unknown fields
|
|
173
|
+
const input = createUserSchema.strict().parse(req.body);
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
| Input Type | Validation |
|
|
177
|
+
| ----------- | -------------------------------------------- |
|
|
178
|
+
| String | Min/max length, regex pattern, trim |
|
|
179
|
+
| Number | Min/max range, integer check |
|
|
180
|
+
| Email | Format validation, max 254 chars |
|
|
181
|
+
| URL | Protocol whitelist (https only) |
|
|
182
|
+
| File upload | Type whitelist, max size, content validation |
|
|
183
|
+
| Array | Max length, item validation |
|
|
184
|
+
|
|
185
|
+
## Dependency Audit
|
|
186
|
+
|
|
187
|
+
### npm Audit Triage
|
|
188
|
+
|
|
189
|
+
```bash
|
|
190
|
+
# Run audit
|
|
191
|
+
npm audit
|
|
192
|
+
|
|
193
|
+
# Decision tree per vulnerability:
|
|
194
|
+
# 1. Is it in production dependencies? (devDeps are lower priority)
|
|
195
|
+
# 2. Is the vulnerability reachable in our usage?
|
|
196
|
+
# 3. Is a patch available? → Update
|
|
197
|
+
# 4. No patch? → Find alternative or add compensating control
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
| Severity | Action | Timeline |
|
|
201
|
+
| -------- | --------------------- | ---------------------- |
|
|
202
|
+
| Critical | Fix immediately | Same day |
|
|
203
|
+
| High | Fix in current sprint | Within 1 week |
|
|
204
|
+
| Medium | Plan fix | Within 1 month |
|
|
205
|
+
| Low | Track and monitor | Next convenient update |
|
|
206
|
+
|
|
207
|
+
### Supply Chain Security
|
|
208
|
+
|
|
209
|
+
- [ ] Use lockfile (`package-lock.json` / `pnpm-lock.yaml`) — commit it
|
|
210
|
+
- [ ] Pin major versions in production dependencies
|
|
211
|
+
- [ ] Review new dependencies before adding (check maintainers, download count, last update)
|
|
212
|
+
- [ ] Enable Dependabot or Renovate for automated updates
|
|
213
|
+
- [ ] Use `npm audit` or `pnpm audit` in CI pipeline
|
|
214
|
+
|
|
215
|
+
## Secrets Management
|
|
216
|
+
|
|
217
|
+
| Rule | Implementation |
|
|
218
|
+
| ------------------------- | ------------------------------------------------ |
|
|
219
|
+
| Never in code | Use `.env` files (gitignored) or secret managers |
|
|
220
|
+
| Never in logs | Redact before logging |
|
|
221
|
+
| Never in URLs | Use headers or body for tokens |
|
|
222
|
+
| Rotate on exposure | Immediate rotation + audit trail |
|
|
223
|
+
| Different per environment | Staging keys ≠ production keys |
|
|
224
|
+
| Least privilege | Each secret grants minimum required access |
|
|
225
|
+
|
|
226
|
+
```bash
|
|
227
|
+
# ✅ .gitignore
|
|
228
|
+
.env
|
|
229
|
+
.env.local
|
|
230
|
+
.env.*.local
|
|
231
|
+
*.key
|
|
232
|
+
*.pem
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
## Rate Limiting
|
|
236
|
+
|
|
237
|
+
```typescript
|
|
238
|
+
// ✅ Basic rate limiting
|
|
239
|
+
import rateLimit from "express-rate-limit";
|
|
240
|
+
|
|
241
|
+
const limiter = rateLimit({
|
|
242
|
+
windowMs: 15 * 60 * 1000, // 15 minutes
|
|
243
|
+
max: 100, // 100 requests per window
|
|
244
|
+
standardHeaders: true,
|
|
245
|
+
legacyHeaders: false,
|
|
246
|
+
message: { error: "Too many requests, try again later" },
|
|
247
|
+
});
|
|
248
|
+
|
|
249
|
+
app.use("/api/", limiter);
|
|
250
|
+
|
|
251
|
+
// ✅ Stricter limit for auth endpoints
|
|
252
|
+
const authLimiter = rateLimit({
|
|
253
|
+
windowMs: 15 * 60 * 1000,
|
|
254
|
+
max: 5, // 5 login attempts per 15 minutes
|
|
255
|
+
});
|
|
256
|
+
app.use("/api/auth/", authLimiter);
|
|
257
|
+
```
|
|
258
|
+
|
|
259
|
+
## Common Rationalizations
|
|
260
|
+
|
|
261
|
+
| Excuse | Rebuttal |
|
|
262
|
+
| ---------------------------------- | ----------------------------------------------------------------------------- |
|
|
263
|
+
| "It's an internal app" | Internal apps get compromised too. Validate all input regardless. |
|
|
264
|
+
| "We'll add security before launch" | Security retrofit is 10x harder than building it in. Start now. |
|
|
265
|
+
| "Nobody will find this endpoint" | Security through obscurity isn't security. Assume everything is discoverable. |
|
|
266
|
+
| "The framework handles it" | Frameworks have defaults, not guarantees. Verify your specific configuration. |
|
|
267
|
+
| "This is just a prototype" | Prototypes become production. Build secure habits from day one. |
|
|
268
|
+
| "The audit has too many warnings" | Triage by severity. Critical/High first, Low can wait. |
|
|
269
|
+
|
|
270
|
+
## Red Flags — STOP
|
|
271
|
+
|
|
272
|
+
- String concatenation in SQL queries
|
|
273
|
+
- Passwords stored in plaintext or MD5/SHA
|
|
274
|
+
- API keys or secrets in source code
|
|
275
|
+
- CORS set to `*` in production
|
|
276
|
+
- No rate limiting on authentication endpoints
|
|
277
|
+
- User input passed directly to `exec()`, `eval()`, or file system operations
|
|
278
|
+
- Dependencies with known critical CVEs
|
|
279
|
+
- No input validation at API boundaries
|
|
280
|
+
|
|
281
|
+
## Verification
|
|
282
|
+
|
|
283
|
+
- [ ] All user input validated with schemas at API boundaries
|
|
284
|
+
- [ ] SQL queries use parameterized statements
|
|
285
|
+
- [ ] Passwords hashed with bcrypt/scrypt/argon2 (cost ≥ 12)
|
|
286
|
+
- [ ] No secrets in source code or logs
|
|
287
|
+
- [ ] CORS, CSP, and security headers configured
|
|
288
|
+
- [ ] `npm audit` shows no critical/high vulnerabilities
|
|
289
|
+
- [ ] Rate limiting on authentication and sensitive endpoints
|
|
290
|
+
- [ ] Authorization checks on all protected resources
|
|
291
|
+
|
|
292
|
+
## See Also
|
|
293
|
+
|
|
294
|
+
- **defense-in-depth** — Validation at every layer, not just the boundary
|
|
295
|
+
- **api-and-interface-design** — Error responses that don't leak internals
|
|
296
|
+
- **ci-cd-and-automation** — Running security checks in CI pipeline
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: security-threat-model
|
|
3
|
+
description: Use when the user explicitly requests threat modeling for a repo or path, with concrete abuse paths, trust boundaries, and mitigations.
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
tags: [planning, code-quality, research]
|
|
6
|
+
dependencies: []
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# security-threat-model
|
|
10
|
+
|
|
11
|
+
Repository-grounded threat modeling for real attack paths and mitigations.
|
|
12
|
+
|
|
13
|
+
## When to Use
|
|
14
|
+
|
|
15
|
+
- User explicitly asks for threat modeling
|
|
16
|
+
- User asks for abuse-path analysis, attacker goals, or trust-boundary review
|
|
17
|
+
|
|
18
|
+
## When NOT to Use
|
|
19
|
+
|
|
20
|
+
- General code review without threat-model request
|
|
21
|
+
- Pure style/refactor requests
|
|
22
|
+
|
|
23
|
+
## Workflow
|
|
24
|
+
|
|
25
|
+
1. Scope system/runtime components from repository evidence
|
|
26
|
+
2. Enumerate trust boundaries, assets, and entry points
|
|
27
|
+
3. Define realistic attacker capabilities
|
|
28
|
+
4. Model concrete abuse paths and rank by impact/likelihood
|
|
29
|
+
5. Validate assumptions with user (1–3 targeted questions)
|
|
30
|
+
6. Recommend mitigations tied to concrete files/components
|
|
31
|
+
7. Write final report to `<repo-name>-threat-model.md`
|
|
32
|
+
|
|
33
|
+
## References
|
|
34
|
+
|
|
35
|
+
- `references/prompt-template.md`
|
|
36
|
+
- `references/security-controls-and-assets.md`
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
# Threat Modeling Prompt Template for LLMs
|
|
2
|
+
|
|
3
|
+
This reference provides a disciplined, repo-grounded prompt that produces AppSec-usable threat models. Use it when you need a reliable output contract and a consistent process to assemble the threat model output
|
|
4
|
+
|
|
5
|
+
## System prompt
|
|
6
|
+
|
|
7
|
+
Use this as a stable system prompt:
|
|
8
|
+
|
|
9
|
+
````text
|
|
10
|
+
You are a senior application security engineer producing a threat model that will be read by other AppSec engineers.
|
|
11
|
+
|
|
12
|
+
Primary objective:
|
|
13
|
+
- Generate a threat model that is specific to THIS repository and its real-world usage.
|
|
14
|
+
- Prefer concrete, evidence-backed findings over generic vulnerability checklists.
|
|
15
|
+
|
|
16
|
+
Evidence and grounding rules:
|
|
17
|
+
- Do not invent components, data stores, endpoints, flows, or controls.
|
|
18
|
+
- Every architectural claim must be backed by at least one "Evidence anchor" referencing a repo path
|
|
19
|
+
(and a symbol name, config key, or a short quoted snippet if available).
|
|
20
|
+
- If information is missing, state assumptions explicitly and list the open questions needed to validate them.
|
|
21
|
+
|
|
22
|
+
Security hygiene:
|
|
23
|
+
- Never output secrets. If you encounter tokens/keys/passwords, redact them and only describe their presence and location.
|
|
24
|
+
|
|
25
|
+
Threat modeling approach:
|
|
26
|
+
- Model the system using data flows and trust boundaries.
|
|
27
|
+
- Enumerate threats and produce attack goals and abuse paths
|
|
28
|
+
- Prioritize threats using explicit likelihood and impact reasoning (qualitative is acceptable: low/medium/high).
|
|
29
|
+
|
|
30
|
+
Scope discipline:
|
|
31
|
+
- Clearly separate: production/runtime behavior vs CI/build/dev tooling vs tests/examples.
|
|
32
|
+
- Clearly separate attacker-controlled inputs vs operator-controlled inputs vs developer-controlled inputs.
|
|
33
|
+
- If a vulnerability class requires attacker control that likely does not exist for this repo's real usage, say so and downgrade severity.
|
|
34
|
+
|
|
35
|
+
Communication quality:
|
|
36
|
+
- Write for AppSec engineers: concise but specific.
|
|
37
|
+
- Use precise terminology. Include mitigations and residual risks.
|
|
38
|
+
- Avoid restating large blocks of README/spec; summarize and point to evidence.
|
|
39
|
+
|
|
40
|
+
Diagram requirements:
|
|
41
|
+
- Produce a single compact Mermaid flowchart showing primary components and trust boundaries.
|
|
42
|
+
- Mermaid must render cleanly. Use a conservative subset:
|
|
43
|
+
- Use `flowchart TD` or `flowchart LR` and only `-->` arrows.
|
|
44
|
+
- Use simple node IDs (letters/numbers/underscores only) and quoted labels (e.g., `A["Label"]`); avoid `A(Label)` shape syntax.
|
|
45
|
+
- Do not use Mermaid `title` lines or `style` directives.
|
|
46
|
+
- Keep edge labels to plain words/spaces only via `-->|label|`; avoid `{}`, `[]`, `()`, or quotes in edge labels (if needed, drop the label).
|
|
47
|
+
- Keep node labels short and readable: do not include file paths, URLs, or socket paths (put those details in prose outside the diagram).
|
|
48
|
+
- Wrap the diagram in a Markdown fenced block:
|
|
49
|
+
```mermaid
|
|
50
|
+
<mermaid syntax here>
|
|
51
|
+
```
|
|
52
|
+
````
|
|
53
|
+
|
|
54
|
+
## Repository summary prompt
|
|
55
|
+
|
|
56
|
+
```
|
|
57
|
+
We have a codebase located at {repo_directory/path}, currently on branch {branch_name}.
|
|
58
|
+
|
|
59
|
+
Please produce a security-oriented summary of the repository (or the specified sub-path) with the goal of helping a follow-on security engineer quickly understand the system well enough to build an initial threat model and investigate potential security hypotheses.
|
|
60
|
+
|
|
61
|
+
Objectives
|
|
62
|
+
1. Project overview
|
|
63
|
+
• Identify the primary programming languages, frameworks, and build system.
|
|
64
|
+
• Summarize the project’s core purpose and high-level architecture.
|
|
65
|
+
• Describe major components, services, or modules and how they interact.
|
|
66
|
+
2. Security posture and entry points
|
|
67
|
+
• Identify likely user entry points and trust boundaries.
|
|
68
|
+
• Describe existing security layers (e.g., authentication, authorization, validation, sandboxing, isolation, privilege boundaries).
|
|
69
|
+
• Call out security-critical components and assumptions that must hold for the system to remain secure.
|
|
70
|
+
|
|
71
|
+
Guidance for Security Analysis
|
|
72
|
+
|
|
73
|
+
Structure the summary so an application security engineer can quickly answer questions such as:
|
|
74
|
+
• Where does user input originate?
|
|
75
|
+
• How is untrusted data parsed, validated, and handled?
|
|
76
|
+
• What security assumptions should not be violated?
|
|
77
|
+
• Where are the most likely choke points for security bugs?
|
|
78
|
+
|
|
79
|
+
Adapt the analysis to the project type. For example:
|
|
80
|
+
• Web applications: where requests enter, how user data is parsed, routed, authenticated, and stored.
|
|
81
|
+
• Command-line tools: supported inputs (arguments, files, environment variables, stdin) and how they are processed.
|
|
82
|
+
• Network daemons: exposed ports, supported protocols, message formats, and request handling paths.
|
|
83
|
+
• Operating system or low-level components: common vulnerability classes (e.g., memory corruption, logic flaws) that could lead to LPE or RCE.
|
|
84
|
+
|
|
85
|
+
Be thorough but pragmatic: the goal is to help a security engineer quickly determine whether a discovered bug is security-relevant and where deeper investigation should focus.
|
|
86
|
+
|
|
87
|
+
Tooling Notes
|
|
88
|
+
|
|
89
|
+
If Ripgrep (rg) is available, use it to explore the codebase. When using grep or rg, always include the -I flag to avoid searching through binary files.
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
## User prompt template
|
|
95
|
+
|
|
96
|
+
Use this as the task prompt, filling in what you know and marking the rest as assumptions:
|
|
97
|
+
|
|
98
|
+
```text
|
|
99
|
+
# Inputs
|
|
100
|
+
Context (fill as available; otherwise infer and mark assumptions):
|
|
101
|
+
- intended_usage: {intended_usage}
|
|
102
|
+
- deployment_model: {deployment_model}
|
|
103
|
+
- data_sensitivity: {data_sensitivity}
|
|
104
|
+
- internet_exposure: {internet_exposure}
|
|
105
|
+
- authn_authz_expectations: {authn_authz_expectations}
|
|
106
|
+
- out_of_scope: {out_of_scope}
|
|
107
|
+
|
|
108
|
+
Provided summaries (may be incomplete):
|
|
109
|
+
- repository_summary: {repository_summary}
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
In-scope code locations (if known):
|
|
113
|
+
- in_scope_paths: {in_scope_paths}
|
|
114
|
+
|
|
115
|
+
# Task
|
|
116
|
+
Construct a repo-centric threat model that helps AppSec engineers understand the most important security risks and where to focus manual review.
|
|
117
|
+
|
|
118
|
+
You MUST follow this process and reflect outputs in the final document:
|
|
119
|
+
|
|
120
|
+
## Process
|
|
121
|
+
1) Repo discovery (evidence collection)
|
|
122
|
+
a. Identify the repo shape:
|
|
123
|
+
- languages and frameworks
|
|
124
|
+
- how it runs (server/cli/library), entrypoints, build artifacts
|
|
125
|
+
b. Identify security-relevant surfaces and controls by searching for evidences, such as:
|
|
126
|
+
- network listeners/routes/endpoints; RPC handlers; message consumers
|
|
127
|
+
- authentication, session/token handling, authorization checks, RBAC/ACL logic
|
|
128
|
+
- parsing/serialization/deserialization (JSON/YAML/XML/protobuf), template rendering, eval/dynamic code
|
|
129
|
+
- file upload/read paths, archive extraction, image/document parsing
|
|
130
|
+
- database/queue/cache clients and query construction
|
|
131
|
+
- secrets/config loading, environment variables, key management
|
|
132
|
+
- SSRF-capable HTTP clients, webhooks, URL fetchers
|
|
133
|
+
- sandboxing/isolation, privilege boundaries, subprocess execution
|
|
134
|
+
- logging/auditing and error handling paths
|
|
135
|
+
- CI/build/release: pipelines, dependency management, artifact publishing
|
|
136
|
+
|
|
137
|
+
2) System model
|
|
138
|
+
a. Summarize the primary components (runtime plus critical build/CI components when relevant).
|
|
139
|
+
b. Enumerate data flows and trust boundaries.
|
|
140
|
+
- For each trust boundary, specify:
|
|
141
|
+
* source to destination
|
|
142
|
+
* data types crossing (e.g., credentials, PII, files, tokens, prompts)
|
|
143
|
+
* channel/protocol (HTTP/gRPC/IPC/file/db)
|
|
144
|
+
* security guarantees and validation (auth, mTLS, origin checks, schema validation, rate limits)
|
|
145
|
+
c. Provide a compact Mermaid diagram showing components and trust boundaries.
|
|
146
|
+
|
|
147
|
+
3) Assets and security objectives
|
|
148
|
+
- List assets (data, credentials, integrity-critical state, availability-critical components, build artifacts).
|
|
149
|
+
- For each asset, state why it matters (confidentiality/integrity/availability, compliance, user harm).
|
|
150
|
+
|
|
151
|
+
4) Attacker model
|
|
152
|
+
- Capabilities: realistic remote attacker assumptions based on intended usage and exposure.
|
|
153
|
+
- Non-capabilities: things attacker cannot plausibly do (unless explicitly in scope), to avoid inflated severity.
|
|
154
|
+
|
|
155
|
+
5) Threat enumeration (concrete, system-specific)
|
|
156
|
+
- Generate threats as attacker stories tied to:
|
|
157
|
+
* entry points
|
|
158
|
+
* trust boundaries
|
|
159
|
+
* privileged components
|
|
160
|
+
- Prefer abuse paths (multi-step sequences) over single-line generic threats.
|
|
161
|
+
|
|
162
|
+
6) Risk prioritization
|
|
163
|
+
- For each threat:
|
|
164
|
+
* Likelihood: low/medium/high with a 1 to 2 sentence justification
|
|
165
|
+
* Impact: low/medium/high with a 1 to 2 sentence justification
|
|
166
|
+
* Overall priority: critical/high/medium/low (based on likelihood x impact, adjusted for existing controls)
|
|
167
|
+
- Explicitly state which assumptions most affect risk.
|
|
168
|
+
|
|
169
|
+
7) Validate assumptions and service context with the user (required before final report)
|
|
170
|
+
- Summarize key assumptions that materially affect scope or risk ranking.
|
|
171
|
+
- Ask 1 to 3 targeted questions to resolve missing service meta-context (service owner/environment, scale/users, deployment model, authn/authz, internet exposure, data sensitivity, multi-tenancy).
|
|
172
|
+
- Pause and wait for user feedback before producing the final report.
|
|
173
|
+
- If the user cannot answer, proceed with explicit assumptions and mark any conditional conclusions.
|
|
174
|
+
|
|
175
|
+
8) Mitigations and recommendations
|
|
176
|
+
- For each high/critical threat:
|
|
177
|
+
* Existing mitigations (with evidence anchors)
|
|
178
|
+
* Gaps/weaknesses
|
|
179
|
+
* Recommended mitigations (code/config/process)
|
|
180
|
+
* Detection/monitoring ideas (logging, metrics, alerts)
|
|
181
|
+
|
|
182
|
+
9) Focus paths for manual security review
|
|
183
|
+
- Output 2 to 30 repo-relative paths (files or directories) that merit deeper review.
|
|
184
|
+
- For each path, give a one-sentence reason tied to the threat model.
|
|
185
|
+
|
|
186
|
+
10) Quality check
|
|
187
|
+
- Provide a short checklist confirming you covered:
|
|
188
|
+
* all entry points you discovered
|
|
189
|
+
* each trust boundary at least once in threats
|
|
190
|
+
* runtime vs CI/dev separation
|
|
191
|
+
* user clarifications (or explicit non-responses)
|
|
192
|
+
* assumptions and open questions
|
|
193
|
+
|
|
194
|
+
## Required output format (exact)
|
|
195
|
+
Before producing the final Markdown report, first provide an assumption-validation check-in:
|
|
196
|
+
- List the key assumptions in 3 to 6 bullets.
|
|
197
|
+
- Ask 1 to 3 targeted context questions.
|
|
198
|
+
- Wait for the user response, then produce the final report below using the clarified context.
|
|
199
|
+
|
|
200
|
+
Produce valid Markdown with these sections in this order:
|
|
201
|
+
|
|
202
|
+
## Executive summary
|
|
203
|
+
- 1 short paragraph on the top risk themes and highest-risk areas.
|
|
204
|
+
|
|
205
|
+
## Scope and assumptions
|
|
206
|
+
- In-scope paths, out-of-scope items, and explicit assumptions.
|
|
207
|
+
- A short list of open questions that would materially change the risk ranking.
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
## System model
|
|
211
|
+
### Primary components
|
|
212
|
+
### Data flows and trust boundaries
|
|
213
|
+
Represent the system as a sequence of arrow-style bullets (e.g., Internet → API Server, User Input -> Application Logic, etc). For each boundary, document:
|
|
214
|
+
• the primary data types crossing the boundary,
|
|
215
|
+
• the communication channel or protocol,
|
|
216
|
+
• the security guarantees (e.g., authentication, origin checks, encryption, rate limiting), and
|
|
217
|
+
• any input validation, normalization, or schema enforcement performed.
|
|
218
|
+
|
|
219
|
+
#### Diagram
|
|
220
|
+
- Include a single, compact Mermaid diagram (`flowchart TD` or `flowchart LR`) showing primary components and trust boundaries (e.g., separate trust zones via subgraphs). Keep it compact, use only `-->`, avoid `title`/`style`, keep node labels short (no paths/URLs), and keep edge labels to plain words only (avoid `{}`, `[]`, `()`, or quotes).
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
## Assets and security objectives
|
|
224
|
+
- A table: Asset | Why it matters | Security objective (C/I/A)
|
|
225
|
+
|
|
226
|
+
## Attacker model
|
|
227
|
+
### Capabilities
|
|
228
|
+
### Non-capabilities
|
|
229
|
+
|
|
230
|
+
## Entry points and attack surfaces
|
|
231
|
+
- A table: Surface | How reached | Trust boundary | Notes | Evidence (repo path / symbol)
|
|
232
|
+
|
|
233
|
+
## Top abuse paths
|
|
234
|
+
- 5 to 10 short abuse paths, each as a numbered sequence of steps (attacker goal -> steps -> impact).
|
|
235
|
+
|
|
236
|
+
## Threat model table
|
|
237
|
+
- A Markdown table with columns:
|
|
238
|
+
Threat ID | Threat source | Prerequisites | Threat action | Impact | Impacted assets | Existing controls (evidence) | Gaps | Recommended mitigations | Detection ideas | Likelihood | Impact severity | Priority
|
|
239
|
+
|
|
240
|
+
Rules:
|
|
241
|
+
- Threat IDs must be stable and formatted: TM-001, TM-002, ...
|
|
242
|
+
- Priority must be one of: critical, high, medium, low.
|
|
243
|
+
- Keep prerequisites to 1 to 2 sentences. Keep recommended mitigations concrete.
|
|
244
|
+
|
|
245
|
+
## Criticality calibration
|
|
246
|
+
- Define what counts as critical/high/medium/low for THIS repo and context.
|
|
247
|
+
- Include 2 to 3 examples per level (tailored to the repo's assets and exposure).
|
|
248
|
+
|
|
249
|
+
## Focus paths for security review
|
|
250
|
+
- A table: Path | Why it matters | Related Threat IDs
|
|
251
|
+
|
|
252
|
+
## Notes on use
|
|
253
|
+
|
|
254
|
+
- Fill in known context, but allow the model to infer and mark assumptions.
|
|
255
|
+
- Include 1–2 repo-path anchors per major claim; do not dump every match.
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Security Controls and Asset Categories
|
|
2
|
+
|
|
3
|
+
Use this as a lightweight checklist to keep outputs consistent across teams. Prefer concrete, system-specific items over generic text.
|
|
4
|
+
|
|
5
|
+
## Asset categories (pick only what applies)
|
|
6
|
+
- User data (PII, content, uploads)
|
|
7
|
+
- Authentication artifacts (passwords, tokens, sessions, cookies)
|
|
8
|
+
- Authorization state (roles, policies, ACLs)
|
|
9
|
+
- Secrets and keys (API keys, signing keys, encryption keys)
|
|
10
|
+
- Configuration and feature flags
|
|
11
|
+
- Models and weights (if ML systems)
|
|
12
|
+
- Source code and build artifacts
|
|
13
|
+
- Audit logs and telemetry
|
|
14
|
+
- Availability-critical resources (queues, caches, rate limits, compute budgets)
|
|
15
|
+
- Tenant isolation boundaries and metadata
|
|
16
|
+
|
|
17
|
+
## Security control categories
|
|
18
|
+
- Identity and access: authN, authZ, session handling, mTLS, key rotation
|
|
19
|
+
- Input protection: schema validation, parsing hardening, upload scanning, sandboxing
|
|
20
|
+
- Network safeguards: TLS, network policies, WAF, rate limiting, DoS controls
|
|
21
|
+
- Data protection: encryption at rest/in transit, tokenization, redaction
|
|
22
|
+
- Isolation: process sandboxing, container boundaries, tenant isolation, seccomp
|
|
23
|
+
- Observability: audit logs, alerting, anomaly detection, tamper resistance
|
|
24
|
+
- Supply chain: dependency pinning, SBOMs, provenance, signing
|
|
25
|
+
- Change control: CI checks, deployment approvals, config guardrails
|
|
26
|
+
|
|
27
|
+
## Mitigation phrasing patterns
|
|
28
|
+
- "Enforce schema at <boundary> for <payload> before <component>."
|
|
29
|
+
- "Require authZ check for <action> on <resource> in <service>."
|
|
30
|
+
- "Isolate <parser/component> in a sandbox with <resource limits>."
|
|
31
|
+
- "Rate limit <endpoint> by <key> and apply burst caps."
|
|
32
|
+
- "Encrypt <data> at rest using <key management> and rotate <keys>."
|