From 87ee0c955d3ea98e61da30fcbe5a0deb0cde0ea1 Mon Sep 17 00:00:00 2001 From: claude-defaults-sync Date: Sat, 21 Nov 2026 10:36:53 +0000 Subject: [PATCH] chore: sync Claude Code defaults from the .github father repo --- .claude/hooks/README.md | 2 +- .claude/rules/account-defaults.md | 26 +- .claude/skills/addy-accessibility/LICENSE | 21 + .../skills/addy-accessibility/PROVENANCE.md | 32 + .claude/skills/addy-accessibility/SKILL.md | 464 +++++++ .../references/A11Y-PATTERNS.md | 233 ++++ .../addy-accessibility/references/WCAG.md | 191 +++ .claude/skills/apis/SKILL.md | 6 +- .claude/skills/kimi-code/SKILL.md | 2 +- .claude/skills/mcollina-node/LICENSE | 21 + .claude/skills/mcollina-node/PROVENANCE.md | 32 + .claude/skills/mcollina-node/SKILL.md | 94 ++ .../rules/assets/graceful-server.test.ts | 88 ++ .../rules/assets/graceful-server.ts | 80 ++ .../mcollina-node/rules/async-patterns.md | 136 ++ .claude/skills/mcollina-node/rules/caching.md | 198 +++ .../skills/mcollina-node/rules/environment.md | 253 ++++ .../mcollina-node/rules/error-handling.md | 164 +++ .../skills/mcollina-node/rules/flaky-tests.md | 439 +++++++ .../mcollina-node/rules/graceful-shutdown.md | 204 +++ .claude/skills/mcollina-node/rules/logging.md | 205 +++ .claude/skills/mcollina-node/rules/modules.md | 105 ++ .../rules/node-modules-exploration.md | 172 +++ .../skills/mcollina-node/rules/performance.md | 130 ++ .../skills/mcollina-node/rules/profiling.md | 183 +++ .claude/skills/mcollina-node/rules/streams.md | 213 +++ .../rules/stuck-processes-and-tests.md | 124 ++ .claude/skills/mcollina-node/rules/testing.md | 218 ++++ .../skills/mcollina-node/rules/typescript.md | 262 ++++ .claude/skills/mcollina-node/tile.json | 11 + .claude/skills/openai-gh-fix-ci/LICENSE.txt | 201 +++ .claude/skills/openai-gh-fix-ci/PROVENANCE.md | 32 + .claude/skills/openai-gh-fix-ci/SKILL.md | 69 + .../openai-gh-fix-ci/agents/openai.yaml | 6 + .../openai-gh-fix-ci/assets/github-small.svg | 3 + .../skills/openai-gh-fix-ci/assets/github.png | Bin 0 -> 1838 bytes .../scripts/inspect_pr_checks.py | 509 ++++++++ .../LICENSE.txt | 201 +++ .../PROVENANCE.md | 32 + .../openai-security-best-practices/SKILL.md | 86 ++ .../agents/openai.yaml | 4 + .../golang-general-backend-security.md | 826 ++++++++++++ .../javascript-express-web-server-security.md | 1158 +++++++++++++++++ ...avascript-general-web-frontend-security.md | 747 +++++++++++ ...javascript-jquery-web-frontend-security.md | 678 ++++++++++ ...t-typescript-nextjs-web-server-security.md | 1144 ++++++++++++++++ ...-typescript-react-web-frontend-security.md | 990 ++++++++++++++ ...pt-typescript-vue-web-frontend-security.md | 791 +++++++++++ .../python-django-web-server-security.md | 882 +++++++++++++ .../python-fastapi-web-server-security.md | 1036 +++++++++++++++ .../python-flask-web-server-security.md | 705 ++++++++++ .../openai-security-threat-model/LICENSE.txt | 201 +++ .../PROVENANCE.md | 32 + .../openai-security-threat-model/SKILL.md | 81 ++ .../agents/openai.yaml | 4 + .../references/prompt-template.md | 255 ++++ .../security-controls-and-assets.md | 32 + .claude/skills/outlook-bridge/SKILL.md | 66 + .claude/skills/snowflow-ads/SKILL.md | 12 +- .claude/skills/snowflow-ads/ad-campaigns.json | 12 +- .claude/skills/snowflow-ads/meta_ads_api.py | 2 +- .../CHANGELOG.md | 73 ++ .../supabase-postgres-best-practices/LICENSE | 21 + .../PROVENANCE.md | 31 + .../supabase-postgres-best-practices/SKILL.md | 64 + .../references/_contributing.md | 170 +++ .../references/_sections.md | 39 + .../references/_template.md | 34 + .../references/advanced-full-text-search.md | 55 + .../references/advanced-jsonb-indexing.md | 49 + .../references/conn-idle-timeout.md | 46 + .../references/conn-limits.md | 44 + .../references/conn-pooling.md | 41 + .../references/conn-prepared-statements.md | 46 + .../references/data-batch-inserts.md | 54 + .../references/data-n-plus-one.md | 53 + .../references/data-pagination.md | 50 + .../references/data-upsert.md | 50 + .../references/lock-advisory.md | 56 + .../references/lock-deadlock-prevention.md | 68 + .../references/lock-short-transactions.md | 50 + .../references/lock-skip-locked.md | 54 + .../references/monitor-explain-analyze.md | 45 + .../references/monitor-pg-stat-statements.md | 55 + .../references/monitor-vacuum-analyze.md | 55 + .../references/query-composite-indexes.md | 44 + .../references/query-covering-indexes.md | 40 + .../references/query-index-types.md | 48 + .../references/query-missing-indexes.md | 43 + .../references/query-partial-indexes.md | 45 + .../references/schema-constraints.md | 80 ++ .../references/schema-data-types.md | 46 + .../references/schema-foreign-key-indexes.md | 59 + .../schema-lowercase-identifiers.md | 55 + .../references/schema-partitioning.md | 55 + .../references/schema-primary-keys.md | 61 + .../references/security-privileges.md | 54 + .../references/security-rls-basics.md | 50 + .../references/security-rls-performance.md | 63 + .../tob-agentic-actions-auditor/LICENSE | 427 ++++++ .../tob-agentic-actions-auditor/PROVENANCE.md | 32 + .../tob-agentic-actions-auditor/SKILL.md | 325 +++++ .../agents/openai.yaml | 6 + .../assets/trail-of-bits-mark.svg | 1 + .../references/action-profiles.md | 187 +++ .../references/cross-file-resolution.md | 228 ++++ .../references/foundations.md | 110 ++ .../vector-a-env-var-intermediary.md | 77 ++ .../vector-b-direct-expression-injection.md | 84 ++ .../references/vector-c-cli-data-fetch.md | 83 ++ .../references/vector-d-pr-target-checkout.md | 88 ++ .../vector-e-error-log-injection.md | 88 ++ .../references/vector-f-subshell-expansion.md | 82 ++ .../references/vector-g-eval-of-ai-output.md | 91 ++ .../vector-h-dangerous-sandbox-configs.md | 103 ++ .../vector-i-wildcard-allowlists.md | 88 ++ .../skills/tob-differential-review/LICENSE | 427 ++++++ .../tob-differential-review/PROVENANCE.md | 32 + .../skills/tob-differential-review/SKILL.md | 225 ++++ .../tob-differential-review/adversarial.md | 203 +++ .../agents/openai.yaml | 6 + .../assets/trail-of-bits-mark.svg | 1 + .../tob-differential-review/methodology.md | 234 ++++ .../tob-differential-review/patterns.md | 300 +++++ .../tob-differential-review/reporting.md | 369 ++++++ .claude/skills/tob-modern-python/LICENSE | 427 ++++++ .../skills/tob-modern-python/PROVENANCE.md | 33 + .claude/skills/tob-modern-python/SKILL.md | 333 +++++ .../tob-modern-python/agents/openai.yaml | 6 + .../assets/trail-of-bits-mark.svg | 1 + .../references/dependabot.md | 43 + .../references/migration-checklist.md | 141 ++ .../references/pep723-scripts.md | 259 ++++ .../tob-modern-python/references/prek.md | 211 +++ .../tob-modern-python/references/pyproject.md | 254 ++++ .../references/ruff-config.md | 240 ++++ .../references/security-setup.md | 255 ++++ .../tob-modern-python/references/testing.md | 284 ++++ .../references/uv-commands.md | 200 +++ .../templates/dependabot.yml | 36 + .../templates/pre-commit-config.yaml | 66 + .../skills/tob-property-based-testing/LICENSE | 427 ++++++ .../tob-property-based-testing/PROVENANCE.md | 31 + .../tob-property-based-testing/README.md | 279 ++++ .../tob-property-based-testing/SKILL.md | 68 + .../agents/openai.yaml | 6 + .../assets/trail-of-bits-mark.svg | 1 + .../references/generating.md | 79 ++ .../references/interpreting-failures.md | 80 ++ .../references/libraries.md | 77 ++ .../references/refactoring.md | 120 ++ .../references/reviewing.md | 78 ++ .claude/skills/tob-sharp-edges/LICENSE | 427 ++++++ .claude/skills/tob-sharp-edges/PROVENANCE.md | 32 + .claude/skills/tob-sharp-edges/SKILL.md | 293 +++++ .../skills/tob-sharp-edges/agents/openai.yaml | 6 + .../assets/trail-of-bits-mark.svg | 1 + .../references/auth-patterns.md | 252 ++++ .../references/case-studies.md | 274 ++++ .../references/config-patterns.md | 333 +++++ .../tob-sharp-edges/references/crypto-apis.md | 190 +++ .../tob-sharp-edges/references/lang-c.md | 205 +++ .../tob-sharp-edges/references/lang-csharp.md | 285 ++++ .../tob-sharp-edges/references/lang-go.md | 270 ++++ .../tob-sharp-edges/references/lang-java.md | 263 ++++ .../references/lang-javascript.md | 269 ++++ .../tob-sharp-edges/references/lang-kotlin.md | 265 ++++ .../tob-sharp-edges/references/lang-php.md | 245 ++++ .../tob-sharp-edges/references/lang-python.md | 274 ++++ .../tob-sharp-edges/references/lang-ruby.md | 273 ++++ .../tob-sharp-edges/references/lang-rust.md | 272 ++++ .../tob-sharp-edges/references/lang-swift.md | 287 ++++ .../references/language-specific.md | 588 +++++++++ .claude/skills/tob-variant-analysis/LICENSE | 427 ++++++ .../skills/tob-variant-analysis/PROVENANCE.md | 31 + .claude/skills/tob-variant-analysis/SKILL.md | 76 ++ .../tob-variant-analysis/agents/openai.yaml | 6 + .../assets/trail-of-bits-mark.svg | 1 + .../references/reporting.md | 38 + .../references/root-cause.md | 98 ++ .../references/searching.md | 159 +++ .../tob-variant-analysis/references/triage.md | 92 ++ .../resources/codeql/cpp.ql | 119 ++ .../resources/codeql/go.ql | 69 + .../resources/codeql/java.ql | 71 + .../resources/codeql/javascript.ql | 63 + .../resources/codeql/python.ql | 80 ++ .../resources/semgrep/cpp.yaml | 98 ++ .../resources/semgrep/go.yaml | 63 + .../resources/semgrep/java.yaml | 61 + .../resources/semgrep/javascript.yaml | 60 + .../resources/semgrep/python.yaml | 72 + .../resources/variant-report-template.md | 75 ++ .claude/tools/README.md | 14 +- .claude/tools/kimi-code.ps1 | 2 +- .claude/tools/ollama_route.py | 4 +- 196 files changed, 32135 insertions(+), 32 deletions(-) create mode 100644 .claude/skills/addy-accessibility/LICENSE create mode 100644 .claude/skills/addy-accessibility/PROVENANCE.md create mode 100644 .claude/skills/addy-accessibility/SKILL.md create mode 100644 .claude/skills/addy-accessibility/references/A11Y-PATTERNS.md create mode 100644 .claude/skills/addy-accessibility/references/WCAG.md create mode 100644 .claude/skills/mcollina-node/LICENSE create mode 100644 .claude/skills/mcollina-node/PROVENANCE.md create mode 100644 .claude/skills/mcollina-node/SKILL.md create mode 100644 .claude/skills/mcollina-node/rules/assets/graceful-server.test.ts create mode 100644 .claude/skills/mcollina-node/rules/assets/graceful-server.ts create mode 100644 .claude/skills/mcollina-node/rules/async-patterns.md create mode 100644 .claude/skills/mcollina-node/rules/caching.md create mode 100644 .claude/skills/mcollina-node/rules/environment.md create mode 100644 .claude/skills/mcollina-node/rules/error-handling.md create mode 100644 .claude/skills/mcollina-node/rules/flaky-tests.md create mode 100644 .claude/skills/mcollina-node/rules/graceful-shutdown.md create mode 100644 .claude/skills/mcollina-node/rules/logging.md create mode 100644 .claude/skills/mcollina-node/rules/modules.md create mode 100644 .claude/skills/mcollina-node/rules/node-modules-exploration.md create mode 100644 .claude/skills/mcollina-node/rules/performance.md create mode 100644 .claude/skills/mcollina-node/rules/profiling.md create mode 100644 .claude/skills/mcollina-node/rules/streams.md create mode 100644 .claude/skills/mcollina-node/rules/stuck-processes-and-tests.md create mode 100644 .claude/skills/mcollina-node/rules/testing.md create mode 100644 .claude/skills/mcollina-node/rules/typescript.md create mode 100644 .claude/skills/mcollina-node/tile.json create mode 100644 .claude/skills/openai-gh-fix-ci/LICENSE.txt create mode 100644 .claude/skills/openai-gh-fix-ci/PROVENANCE.md create mode 100644 .claude/skills/openai-gh-fix-ci/SKILL.md create mode 100644 .claude/skills/openai-gh-fix-ci/agents/openai.yaml create mode 100644 .claude/skills/openai-gh-fix-ci/assets/github-small.svg create mode 100644 .claude/skills/openai-gh-fix-ci/assets/github.png create mode 100644 .claude/skills/openai-gh-fix-ci/scripts/inspect_pr_checks.py create mode 100644 .claude/skills/openai-security-best-practices/LICENSE.txt create mode 100644 .claude/skills/openai-security-best-practices/PROVENANCE.md create mode 100644 .claude/skills/openai-security-best-practices/SKILL.md create mode 100644 .claude/skills/openai-security-best-practices/agents/openai.yaml create mode 100644 .claude/skills/openai-security-best-practices/references/golang-general-backend-security.md create mode 100644 .claude/skills/openai-security-best-practices/references/javascript-express-web-server-security.md create mode 100644 .claude/skills/openai-security-best-practices/references/javascript-general-web-frontend-security.md create mode 100644 .claude/skills/openai-security-best-practices/references/javascript-jquery-web-frontend-security.md create mode 100644 .claude/skills/openai-security-best-practices/references/javascript-typescript-nextjs-web-server-security.md create mode 100644 .claude/skills/openai-security-best-practices/references/javascript-typescript-react-web-frontend-security.md create mode 100644 .claude/skills/openai-security-best-practices/references/javascript-typescript-vue-web-frontend-security.md create mode 100644 .claude/skills/openai-security-best-practices/references/python-django-web-server-security.md create mode 100644 .claude/skills/openai-security-best-practices/references/python-fastapi-web-server-security.md create mode 100644 .claude/skills/openai-security-best-practices/references/python-flask-web-server-security.md create mode 100644 .claude/skills/openai-security-threat-model/LICENSE.txt create mode 100644 .claude/skills/openai-security-threat-model/PROVENANCE.md create mode 100644 .claude/skills/openai-security-threat-model/SKILL.md create mode 100644 .claude/skills/openai-security-threat-model/agents/openai.yaml create mode 100644 .claude/skills/openai-security-threat-model/references/prompt-template.md create mode 100644 .claude/skills/openai-security-threat-model/references/security-controls-and-assets.md create mode 100644 .claude/skills/outlook-bridge/SKILL.md create mode 100644 .claude/skills/supabase-postgres-best-practices/CHANGELOG.md create mode 100644 .claude/skills/supabase-postgres-best-practices/LICENSE create mode 100644 .claude/skills/supabase-postgres-best-practices/PROVENANCE.md create mode 100644 .claude/skills/supabase-postgres-best-practices/SKILL.md create mode 100644 .claude/skills/supabase-postgres-best-practices/references/_contributing.md create mode 100644 .claude/skills/supabase-postgres-best-practices/references/_sections.md create mode 100644 .claude/skills/supabase-postgres-best-practices/references/_template.md create mode 100644 .claude/skills/supabase-postgres-best-practices/references/advanced-full-text-search.md create mode 100644 .claude/skills/supabase-postgres-best-practices/references/advanced-jsonb-indexing.md create mode 100644 .claude/skills/supabase-postgres-best-practices/references/conn-idle-timeout.md create mode 100644 .claude/skills/supabase-postgres-best-practices/references/conn-limits.md create mode 100644 .claude/skills/supabase-postgres-best-practices/references/conn-pooling.md create mode 100644 .claude/skills/supabase-postgres-best-practices/references/conn-prepared-statements.md create mode 100644 .claude/skills/supabase-postgres-best-practices/references/data-batch-inserts.md create mode 100644 .claude/skills/supabase-postgres-best-practices/references/data-n-plus-one.md create mode 100644 .claude/skills/supabase-postgres-best-practices/references/data-pagination.md create mode 100644 .claude/skills/supabase-postgres-best-practices/references/data-upsert.md create mode 100644 .claude/skills/supabase-postgres-best-practices/references/lock-advisory.md create mode 100644 .claude/skills/supabase-postgres-best-practices/references/lock-deadlock-prevention.md create mode 100644 .claude/skills/supabase-postgres-best-practices/references/lock-short-transactions.md create mode 100644 .claude/skills/supabase-postgres-best-practices/references/lock-skip-locked.md create mode 100644 .claude/skills/supabase-postgres-best-practices/references/monitor-explain-analyze.md create mode 100644 .claude/skills/supabase-postgres-best-practices/references/monitor-pg-stat-statements.md create mode 100644 .claude/skills/supabase-postgres-best-practices/references/monitor-vacuum-analyze.md create mode 100644 .claude/skills/supabase-postgres-best-practices/references/query-composite-indexes.md create mode 100644 .claude/skills/supabase-postgres-best-practices/references/query-covering-indexes.md create mode 100644 .claude/skills/supabase-postgres-best-practices/references/query-index-types.md create mode 100644 .claude/skills/supabase-postgres-best-practices/references/query-missing-indexes.md create mode 100644 .claude/skills/supabase-postgres-best-practices/references/query-partial-indexes.md create mode 100644 .claude/skills/supabase-postgres-best-practices/references/schema-constraints.md create mode 100644 .claude/skills/supabase-postgres-best-practices/references/schema-data-types.md create mode 100644 .claude/skills/supabase-postgres-best-practices/references/schema-foreign-key-indexes.md create mode 100644 .claude/skills/supabase-postgres-best-practices/references/schema-lowercase-identifiers.md create mode 100644 .claude/skills/supabase-postgres-best-practices/references/schema-partitioning.md create mode 100644 .claude/skills/supabase-postgres-best-practices/references/schema-primary-keys.md create mode 100644 .claude/skills/supabase-postgres-best-practices/references/security-privileges.md create mode 100644 .claude/skills/supabase-postgres-best-practices/references/security-rls-basics.md create mode 100644 .claude/skills/supabase-postgres-best-practices/references/security-rls-performance.md create mode 100644 .claude/skills/tob-agentic-actions-auditor/LICENSE create mode 100644 .claude/skills/tob-agentic-actions-auditor/PROVENANCE.md create mode 100644 .claude/skills/tob-agentic-actions-auditor/SKILL.md create mode 100644 .claude/skills/tob-agentic-actions-auditor/agents/openai.yaml create mode 100644 .claude/skills/tob-agentic-actions-auditor/assets/trail-of-bits-mark.svg create mode 100644 .claude/skills/tob-agentic-actions-auditor/references/action-profiles.md create mode 100644 .claude/skills/tob-agentic-actions-auditor/references/cross-file-resolution.md create mode 100644 .claude/skills/tob-agentic-actions-auditor/references/foundations.md create mode 100644 .claude/skills/tob-agentic-actions-auditor/references/vector-a-env-var-intermediary.md create mode 100644 .claude/skills/tob-agentic-actions-auditor/references/vector-b-direct-expression-injection.md create mode 100644 .claude/skills/tob-agentic-actions-auditor/references/vector-c-cli-data-fetch.md create mode 100644 .claude/skills/tob-agentic-actions-auditor/references/vector-d-pr-target-checkout.md create mode 100644 .claude/skills/tob-agentic-actions-auditor/references/vector-e-error-log-injection.md create mode 100644 .claude/skills/tob-agentic-actions-auditor/references/vector-f-subshell-expansion.md create mode 100644 .claude/skills/tob-agentic-actions-auditor/references/vector-g-eval-of-ai-output.md create mode 100644 .claude/skills/tob-agentic-actions-auditor/references/vector-h-dangerous-sandbox-configs.md create mode 100644 .claude/skills/tob-agentic-actions-auditor/references/vector-i-wildcard-allowlists.md create mode 100644 .claude/skills/tob-differential-review/LICENSE create mode 100644 .claude/skills/tob-differential-review/PROVENANCE.md create mode 100644 .claude/skills/tob-differential-review/SKILL.md create mode 100644 .claude/skills/tob-differential-review/adversarial.md create mode 100644 .claude/skills/tob-differential-review/agents/openai.yaml create mode 100644 .claude/skills/tob-differential-review/assets/trail-of-bits-mark.svg create mode 100644 .claude/skills/tob-differential-review/methodology.md create mode 100644 .claude/skills/tob-differential-review/patterns.md create mode 100644 .claude/skills/tob-differential-review/reporting.md create mode 100644 .claude/skills/tob-modern-python/LICENSE create mode 100644 .claude/skills/tob-modern-python/PROVENANCE.md create mode 100644 .claude/skills/tob-modern-python/SKILL.md create mode 100644 .claude/skills/tob-modern-python/agents/openai.yaml create mode 100644 .claude/skills/tob-modern-python/assets/trail-of-bits-mark.svg create mode 100644 .claude/skills/tob-modern-python/references/dependabot.md create mode 100644 .claude/skills/tob-modern-python/references/migration-checklist.md create mode 100644 .claude/skills/tob-modern-python/references/pep723-scripts.md create mode 100644 .claude/skills/tob-modern-python/references/prek.md create mode 100644 .claude/skills/tob-modern-python/references/pyproject.md create mode 100644 .claude/skills/tob-modern-python/references/ruff-config.md create mode 100644 .claude/skills/tob-modern-python/references/security-setup.md create mode 100644 .claude/skills/tob-modern-python/references/testing.md create mode 100644 .claude/skills/tob-modern-python/references/uv-commands.md create mode 100644 .claude/skills/tob-modern-python/templates/dependabot.yml create mode 100644 .claude/skills/tob-modern-python/templates/pre-commit-config.yaml create mode 100644 .claude/skills/tob-property-based-testing/LICENSE create mode 100644 .claude/skills/tob-property-based-testing/PROVENANCE.md create mode 100644 .claude/skills/tob-property-based-testing/README.md create mode 100644 .claude/skills/tob-property-based-testing/SKILL.md create mode 100644 .claude/skills/tob-property-based-testing/agents/openai.yaml create mode 100644 .claude/skills/tob-property-based-testing/assets/trail-of-bits-mark.svg create mode 100644 .claude/skills/tob-property-based-testing/references/generating.md create mode 100644 .claude/skills/tob-property-based-testing/references/interpreting-failures.md create mode 100644 .claude/skills/tob-property-based-testing/references/libraries.md create mode 100644 .claude/skills/tob-property-based-testing/references/refactoring.md create mode 100644 .claude/skills/tob-property-based-testing/references/reviewing.md create mode 100644 .claude/skills/tob-sharp-edges/LICENSE create mode 100644 .claude/skills/tob-sharp-edges/PROVENANCE.md create mode 100644 .claude/skills/tob-sharp-edges/SKILL.md create mode 100644 .claude/skills/tob-sharp-edges/agents/openai.yaml create mode 100644 .claude/skills/tob-sharp-edges/assets/trail-of-bits-mark.svg create mode 100644 .claude/skills/tob-sharp-edges/references/auth-patterns.md create mode 100644 .claude/skills/tob-sharp-edges/references/case-studies.md create mode 100644 .claude/skills/tob-sharp-edges/references/config-patterns.md create mode 100644 .claude/skills/tob-sharp-edges/references/crypto-apis.md create mode 100644 .claude/skills/tob-sharp-edges/references/lang-c.md create mode 100644 .claude/skills/tob-sharp-edges/references/lang-csharp.md create mode 100644 .claude/skills/tob-sharp-edges/references/lang-go.md create mode 100644 .claude/skills/tob-sharp-edges/references/lang-java.md create mode 100644 .claude/skills/tob-sharp-edges/references/lang-javascript.md create mode 100644 .claude/skills/tob-sharp-edges/references/lang-kotlin.md create mode 100644 .claude/skills/tob-sharp-edges/references/lang-php.md create mode 100644 .claude/skills/tob-sharp-edges/references/lang-python.md create mode 100644 .claude/skills/tob-sharp-edges/references/lang-ruby.md create mode 100644 .claude/skills/tob-sharp-edges/references/lang-rust.md create mode 100644 .claude/skills/tob-sharp-edges/references/lang-swift.md create mode 100644 .claude/skills/tob-sharp-edges/references/language-specific.md create mode 100644 .claude/skills/tob-variant-analysis/LICENSE create mode 100644 .claude/skills/tob-variant-analysis/PROVENANCE.md create mode 100644 .claude/skills/tob-variant-analysis/SKILL.md create mode 100644 .claude/skills/tob-variant-analysis/agents/openai.yaml create mode 100644 .claude/skills/tob-variant-analysis/assets/trail-of-bits-mark.svg create mode 100644 .claude/skills/tob-variant-analysis/references/reporting.md create mode 100644 .claude/skills/tob-variant-analysis/references/root-cause.md create mode 100644 .claude/skills/tob-variant-analysis/references/searching.md create mode 100644 .claude/skills/tob-variant-analysis/references/triage.md create mode 100644 .claude/skills/tob-variant-analysis/resources/codeql/cpp.ql create mode 100644 .claude/skills/tob-variant-analysis/resources/codeql/go.ql create mode 100644 .claude/skills/tob-variant-analysis/resources/codeql/java.ql create mode 100644 .claude/skills/tob-variant-analysis/resources/codeql/javascript.ql create mode 100644 .claude/skills/tob-variant-analysis/resources/codeql/python.ql create mode 100644 .claude/skills/tob-variant-analysis/resources/semgrep/cpp.yaml create mode 100644 .claude/skills/tob-variant-analysis/resources/semgrep/go.yaml create mode 100644 .claude/skills/tob-variant-analysis/resources/semgrep/java.yaml create mode 100644 .claude/skills/tob-variant-analysis/resources/semgrep/javascript.yaml create mode 100644 .claude/skills/tob-variant-analysis/resources/semgrep/python.yaml create mode 100644 .claude/skills/tob-variant-analysis/resources/variant-report-template.md diff --git a/.claude/hooks/README.md b/.claude/hooks/README.md index 099f38a..488c571 100644 --- a/.claude/hooks/README.md +++ b/.claude/hooks/README.md @@ -47,7 +47,7 @@ tiers on Ollama Cloud or the hub (see `tools/README.md`). **Clients (each PC, one command):** ```powershell -.\bootstrap.ps1 -OllamaHub http://..ts.net:11434 +.\bootstrap.ps1 -OllamaHub http://elzydlab.tail76b098.ts.net:11434 ``` This persists `CLAUDE_ROUTER_OLLAMA_URL` (User env var), verifies the hub is reachable and has the classifier model, and skips all local model installs. diff --git a/.claude/rules/account-defaults.md b/.claude/rules/account-defaults.md index 16fd6d8..0e2a2d4 100644 --- a/.claude/rules/account-defaults.md +++ b/.claude/rules/account-defaults.md @@ -48,6 +48,12 @@ adversarial verification of important outputs. **How to delegate well (the operating contract):** +- **Worker tiers (Elie, 2026-11-20): Sonnet executes, Opus checks, Fable only + when needed.** Delegated execution work (building, editing, drafting, + fan-out) runs on `claude-sonnet-5`. Checks, reviews and validations of that + work run on Opus 5. Fable is used only when a slice genuinely needs frontier + reasoning or cannot be solved by a verified Sonnet then Opus attempt; never as + the default worker. - **Cheapest-capable per slice, escalate on doubt.** Pick the lowest tier that can do the slice to standard; when torn between two tiers, round **UP**. Ladder: Haiku (mechanical) → Sonnet (normal work) → GLM/Kimi bridge (bulk non-stakes) → @@ -141,7 +147,7 @@ The required observable standard is: - make honest progress claims at meaningful checkpoints; - finish only when the definition of done is verified. -Use Opus 5 at high effort as the default main-session model (Elie's decision, 2026-07-24: Opus 5 ships at the same $5/$25 per Mtok as Opus 4.8 with near-Fable capability, so the old Sonnet-first default no longer buys quality headroom for its saving). For the hardest bounded coding, agentic, debugging, or adversarial-review pass, use xhigh effort when the active Claude Code surface supports it. Sonnet 5 remains the efficiency workhorse for delegated subagent and routine fan-out work. Use Fable for genuinely frontier-scale work, a failed verified Opus attempt, or explicit user selection. +Use Opus 5 at high effort as the default main-session model (Elie's decision, 2026-07-24: Opus 5 ships at the same $5/$25 per Mtok as Opus 4.8 with near-Fable capability, so the old Sonnet-first default no longer buys quality headroom for its saving). For the hardest bounded coding, agentic, debugging, or adversarial-review pass, use xhigh effort when the active Claude Code surface supports it. Delegated workers follow the worker-tier rule (Elie, 2026-11-20): Sonnet 5 executes, Opus 5 checks and validates, and Fable is used only when a slice genuinely needs it or a verified Sonnet then Opus attempt could not solve it. ## Skills and plugins @@ -151,10 +157,21 @@ Use Opus 5 at high effort as the default main-session model (Elie's decision, 20 - Marketplace plugins may be installed without being enabled. Enable a pack only when its capabilities are needed. - Do not silently add autonomous loops, broad MCP permissions, or always-on agents. +## GitHub Actions budget (Elie, 2026-11-20) + +CI minutes are a hard monthly limit and have been exceeded. In every repo: + +- Validate locally first (the repo's own suites, by exit code), then let CI run **once per finished batch**. +- Work on a **draft** PR (drafts run no CI where the repo is set up that way); mark it ready once, when the whole batch is done. +- After a PR is ready, do not push one-off fixes, nits or optional review findings: collect them and ship them together in the next batch. Only a red required check or a blocking security finding justifies another push. +- Never re-run, re-trigger or poll CI to kick it; one run per batch, and wait for its result event. + ## Model selection - `claude-opus-5` is the pinned default main-session model (2026-07-24: same $5/$25 as Opus 4.8, near-Fable capability); do not silently replace it with an unpinned `opus` alias or demote it. -- `claude-sonnet-5` is the pinned efficiency workhorse for delegated subagent and routine fan-out work — the main loop rides Opus 5, the fan-out stays cheap. +- `claude-sonnet-5` is the pinned execution model for every delegated worker (building, editing, drafting, fan-out); the main loop rides Opus 5, the fan-out stays cheap. +- Opus 5 does the checks: reviews, validation and adversarial verification of worker output. +- Fable workers only when needed: a slice that needs frontier reasoning, or one a verified Sonnet then Opus attempt could not solve (Elie, 2026-11-20). - Haiku is for low-risk mechanical work and never for final high-stakes judgement. - GLM 5.2 (via the Ollama bridge, `ollama_route.py --route mid-tier`, or the orchestrator's `glm-5.2` worker) sits between Sonnet and Opus for heavy NON-stakes bulk reasoning, drafting, and summarising — it protects Claude quota. The NUMBERS RULE applies: never send customer-facing prices, quotes, invoices, or legal content to Ollama-routed models; if the Ollama endpoint is unreachable, fall back to Sonnet (or Opus per the rules below) rather than blocking. - Ollama-routed tiers are hosted off-box: heavy/mid open models run on Ollama Cloud (flat-rate plan) or the Tailscale hub, never resident on a daily-use PC's GPU. A workstation hosts at most one small local floor model (`llama3.2:3b`, shared by the routing classifier and trivial tasks); only a dedicated model-server box (`bootstrap.ps1 -DedicatedGpu`) hosts the full package. @@ -183,11 +200,12 @@ Use Opus 5 at high effort as the default main-session model (Elie's decision, 20 Whenever a session drafts a customer email reply (Snow Flow Sydney or The Slushie Co Sydney): -1. **Copy-box format, always.** The full email goes in a single plain-text code block the user can copy verbatim. No emojis, no markdown bold/italics inside the email, UPPERCASE section labels, simple `-` bullets, signature on separate lines (name / brand / m: / a: / w: / e:). Operator-facing notes (GST splits, flags, next actions) go outside the box, after it. +1. **Copy-box format, always.** The full email goes in a single plain-text code block the user can copy verbatim. No emojis, no markdown bold/italics inside the email, UPPERCASE section labels, simple `-` bullets, sign off with "Kind regards," and "Elie" only, with NO plain-text signature block (no brand / m: / a: / w: / e: lines), because Elie's Outlook signature (Elie Dagher, NSW Manager, logo and contact details) is appended automatically when the draft is opened (Elie, 2026-11-16). Operator-facing notes (GST splits, flags, next actions) go outside the box, after it. 2. **Always overquote, never underquote.** A serve count between tiers rounds UP to the next add-on tier. 3. **Attendant/operator labour is $65/hour, folded silently into the package price.** Never show an hourly rate or labour line to the customer. -4. **Delivery default:** delivery Friday, pickup the following Monday, unless it is a bump-in/bump-out or the customer specifies otherwise. +4. **Delivery default:** delivery Friday, pickup the following Monday, unless it is a bump-in/bump-out or the customer specifies otherwise. Warehouse pickups and warehouse drop-offs (returns) are 9-10am: the customer collects from Revesby on the Friday between 9-10am and returns it on the Monday between 9-10am, unless stated otherwise. Deliveries and collections by us stay 9am-3pm, with a closer time confirmed the day before (Elie, 2026-11-17). 5. **Never fabricate a price or a date.** Quote only from the verified sources (`snowflow/reply_engine/pricing.py` and the delivery-fee tables in `edagher92-coder/Claude-code-`); anything unverified becomes a `[CONFIRM: …]` gap. +6. **Brief after every draft.** After each reply draft, outside the box, give Elie a short THREAD SO FAR (what has happened with this customer to date: enquiry, quotes, changes, invoice and payment status) and a REPLY SUMMARY (what the draft says and what it commits us to), in a few lines each (Elie, 2026-11-17). ## Safety and authority diff --git a/.claude/skills/addy-accessibility/LICENSE b/.claude/skills/addy-accessibility/LICENSE new file mode 100644 index 0000000..90715bb --- /dev/null +++ b/.claude/skills/addy-accessibility/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 Addy Osmani + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/.claude/skills/addy-accessibility/PROVENANCE.md b/.claude/skills/addy-accessibility/PROVENANCE.md new file mode 100644 index 0000000..c91d02c --- /dev/null +++ b/.claude/skills/addy-accessibility/PROVENANCE.md @@ -0,0 +1,32 @@ +# Provenance: addy-accessibility + +Vendored third-party skill. Do not edit in place: re-vendor from upstream at a new pinned commit, +re-vet, and update this file and `claude-defaults/docs/third-party-skills.md` in the same PR. + +| Field | Value | +|---|---| +| Source repo | https://github.com/addyosmani/web-quality-skills | +| Pinned commit | `afa8da942115f2961fdbfa80807ea0b232ff6c00` | +| Upstream path | `skills/accessibility` | +| Upstream skill name | `accessibility` | +| Licence | MIT (full text in `LICENSE`) | +| Found via | VoltAgent/awesome-agent-skills: addyosmani/accessibility | +| Vendored and vetted | 2026-10-30 | + +## What it does + +WCAG 2.2 accessibility audit and fixes for customer-facing web pages: semantics, forms, focus, contrast, ARIA live regions, keyboard paths. + +## Changes from upstream + +None. Upstream folder copied byte-for-byte; only the licence file and this PROVENANCE.md were added. + +## Vetting notes + +- Instructions and reference markdown only; HTML comments in references are code-example labels. +- One unpinned `npx lighthouse` example; pin a version and ask before running. +- Links to a sibling `web-quality-audit` skill that was not vendored (overlaps `cf-web-perf`). + +## Local note + +The account rules (claude-defaults/CLAUDE.md, synced as `.claude/rules/account-defaults.md`) override anything in this skill: drafts only for outbound actions; ask before installs, pushes, deploys or production writes; never invent a price, date or spec. diff --git a/.claude/skills/addy-accessibility/SKILL.md b/.claude/skills/addy-accessibility/SKILL.md new file mode 100644 index 0000000..22a2444 --- /dev/null +++ b/.claude/skills/addy-accessibility/SKILL.md @@ -0,0 +1,464 @@ +--- +name: accessibility +description: Audit and improve web accessibility following WCAG 2.2 guidelines. Use when asked to "improve accessibility", "a11y audit", "WCAG compliance", "screen reader support", "keyboard navigation", or "make accessible". +license: MIT +metadata: + author: web-quality-skills + version: "2.0" +--- + +# Accessibility (a11y) + +Comprehensive accessibility guidelines based on WCAG 2.2 and Lighthouse accessibility audits. Goal: make content usable by everyone, including people with disabilities. + +## Evidence-led audit workflow + +When a rendered page is available: + +1. Run a live Lighthouse Accessibility audit when that capability is available; with Chrome DevTools MCP, use `lighthouse_audit`. Use mobile navigation mode for a general public page or snapshot mode when reloading would lose authenticated or user-created state. +2. Use failed audit nodes to localize the relevant component or template instead of searching the whole repository for generic patterns. +3. Inspect a rendered accessibility-tree snapshot for names, roles, states, landmarks, and heading structure; with Chrome DevTools MCP, use `take_snapshot`. Exercise the affected flow with the keyboard. +4. Fix the source, then re-run the same audit and manual interaction. + +If the live tools are unavailable, use Lighthouse CLI or axe for automated coverage and complete the same manual checks. Automated tools detect only a subset of accessibility barriers: a score of 100 is not WCAG conformance, and a low score does not replace issue-level evidence. + +## WCAG Principles: POUR + +| Principle | Description | +|-----------|-------------| +| **P**erceivable | Content can be perceived through different senses | +| **O**perable | Interface can be operated by all users | +| **U**nderstandable | Content and interface are understandable | +| **R**obust | Content works with assistive technologies | + +## Conformance levels + +| Level | Requirement | Target | +|-------|-------------|--------| +| **A** | Minimum accessibility | Must pass | +| **AA** | Standard compliance | Should pass (legal requirement in many jurisdictions) | +| **AAA** | Enhanced accessibility | Nice to have | + +--- + +## Perceivable + +### Text alternatives (1.1) + +**Images require alt text:** +```html + + + + +Bar chart showing 40% increase in Q3 sales + + + + + +
+ 2024 market trends infographic +
+ +
+
+``` + +**Icon buttons need accessible names:** +```html + + + + + + + + +``` + +**Visually hidden class:** +```css +.visually-hidden { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + white-space: nowrap; + border: 0; +} +``` + +### Color contrast (1.4.3, 1.4.6) + +| Text Size | AA minimum | AAA enhanced | +|-----------|------------|--------------| +| Normal text (< 18px / < 14px bold) | 4.5:1 | 7:1 | +| Large text (≥ 18px / ≥ 14px bold) | 3:1 | 4.5:1 | +| UI components & graphics | 3:1 | 3:1 | + +```css +/* ❌ Low contrast (2.5:1) */ +.low-contrast { + color: #999; + background: #fff; +} + +/* ✅ Sufficient contrast (7:1) */ +.high-contrast { + color: #333; + background: #fff; +} + +/* ✅ Focus states need contrast too (3:1 against background, WCAG 1.4.11) */ +:focus-visible { + outline: 2px solid currentColor; + outline-offset: 2px; +} +``` + +**Don't rely on color alone:** +```html + + + + + +
+ + + + Please enter a valid email address + +
+``` + +### Media alternatives (1.2) + +```html + + + + + +
+ Transcript +

Full transcript text...

+
+``` + +--- + +## Operable + +### Keyboard accessible (2.1) + +**All functionality must be keyboard accessible.** Prefer native interactive elements — ` +``` + +```javascript +// ✅ When you MUST use a non-interactive element (e.g. div with role="button"), +// make it focusable AND handle keyboard activation. Do NOT add this to a native +// + +``` + +--- + +## Robust + +### ARIA usage (4.1.2) + +**Prefer native elements:** +```html + +
Click me
+ + + + + +
Option
+ + + +``` + +**When ARIA is needed,** use the correct roles and states. See the [ARIA tabs pattern](references/A11Y-PATTERNS.md#aria-tabs) for a complete tablist example. + +### Live regions (4.1.3) + +Use `aria-live` regions to announce dynamic content changes without moving focus. See the [live regions pattern](references/A11Y-PATTERNS.md#live-regions-and-notifications) for markup and a `showNotification()` helper. + +--- + +## Testing checklist + +### Automated testing + +Prefer a live Lighthouse audit that returns failing rendered nodes directly to the agent. With Chrome DevTools MCP, this is `lighthouse_audit`. Otherwise: + +```bash +# Lighthouse accessibility audit +npx lighthouse https://example.com --only-categories=accessibility + +# axe-core +npm install @axe-core/cli -g +axe https://example.com +``` + +### Manual testing + +- [ ] **Keyboard navigation:** Tab through entire page, use Enter/Space to activate +- [ ] **Screen reader:** Test with VoiceOver (Mac), NVDA (Windows), or TalkBack (Android) +- [ ] **Zoom:** Content usable at 200% zoom +- [ ] **High contrast:** Test with Windows High Contrast Mode +- [ ] **Reduced motion:** Test with `prefers-reduced-motion: reduce` +- [ ] **Focus order:** Logical and follows visual order +- [ ] **Target size:** Interactive elements meet 24×24px minimum + +See the [screen reader commands reference](references/A11Y-PATTERNS.md#screen-reader-commands) for VoiceOver and NVDA shortcuts. + +--- + +## Common issues by impact + +### Critical (fix immediately) +1. Missing form labels +2. Missing image alt text +3. Insufficient color contrast +4. Keyboard traps +5. No focus indicators + +### Serious (fix before launch) +1. Missing page language +2. Missing heading structure +3. Non-descriptive link text +4. Auto-playing media +5. Missing skip links + +### Moderate (fix soon) +1. Missing ARIA labels on icons +2. Inconsistent navigation +3. Missing error identification +4. Timing without controls +5. Missing landmark regions + +## References + +- [WCAG 2.2 Quick Reference](https://www.w3.org/WAI/WCAG22/quickref/) +- [WAI-ARIA Authoring Practices](https://www.w3.org/WAI/ARIA/apg/) +- [Deque axe Rules](https://dequeuniversity.com/rules/axe/) +- [Web Quality Audit](../web-quality-audit/SKILL.md) +- [WCAG criteria reference](references/WCAG.md) +- [Accessibility code patterns](references/A11Y-PATTERNS.md) diff --git a/.claude/skills/addy-accessibility/references/A11Y-PATTERNS.md b/.claude/skills/addy-accessibility/references/A11Y-PATTERNS.md new file mode 100644 index 0000000..6d500ef --- /dev/null +++ b/.claude/skills/addy-accessibility/references/A11Y-PATTERNS.md @@ -0,0 +1,233 @@ +# Accessibility Code Patterns + +Practical, copy-paste-ready patterns for common accessibility requirements. Each pattern is self-contained and linked from the main [SKILL.md](../SKILL.md). + +--- + +## Modal focus trap + +Trap keyboard focus inside a modal dialog so Tab/Shift+Tab cycle through its focusable elements and Escape closes it. + +```javascript +function openModal(modal) { + const focusableElements = modal.querySelectorAll( + 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])' + ); + const firstElement = focusableElements[0]; + const lastElement = focusableElements[focusableElements.length - 1]; + + modal.addEventListener('keydown', (e) => { + if (e.key === 'Tab') { + if (e.shiftKey && document.activeElement === firstElement) { + e.preventDefault(); + lastElement.focus(); + } else if (!e.shiftKey && document.activeElement === lastElement) { + e.preventDefault(); + firstElement.focus(); + } + } + if (e.key === 'Escape') { + closeModal(); + } + }); + + firstElement.focus(); +} +``` + +The native `` element handles focus trapping automatically—prefer it when browser support allows. + +--- + +## Skip link + +Allows keyboard users to bypass repetitive navigation and jump straight to main content. + +```html + + +
+
+ +
+ +``` + +```css +.skip-link { + position: absolute; + top: -40px; + left: 0; + background: #000; + color: #fff; + padding: 8px 16px; + z-index: 100; +} + +.skip-link:focus { + top: 0; +} +``` + +--- + +## Error handling + +Announce errors to screen readers and focus the first invalid field on submit. + +```html +
+
+ + + +
+
+``` + +```javascript +form.addEventListener('submit', (e) => { + const firstError = form.querySelector('[aria-invalid="true"]'); + if (firstError) { + e.preventDefault(); + firstError.focus(); + + const errorSummary = document.getElementById('error-summary'); + errorSummary.textContent = + `${errors.length} errors found. Please fix them and try again.`; + errorSummary.focus(); + } +}); +``` + +--- + +## Form labels + +Every input needs an associated label—either explicit (`for`/`id`) or implicit (wrapping `