@the-bearded-bear/claude-craft 3.4.0 → 3.5.0-next.0f69fca
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/Dev/i18n/de/Common/skills/documentation/SKILL.md +1 -1
- package/Dev/i18n/de/Common/skills/git-workflow/SKILL.md +1 -1
- package/Dev/i18n/de/Common/skills/kiss-dry-yagni/SKILL.md +1 -1
- package/Dev/i18n/de/Common/skills/security/SKILL.md +1 -1
- package/Dev/i18n/de/Common/skills/solid-principles/SKILL.md +1 -1
- package/Dev/i18n/de/Common/skills/testing/SKILL.md +1 -1
- package/Dev/i18n/de/Common/skills/workflow-analysis/SKILL.md +1 -1
- package/Dev/i18n/de/Common/templates/CLAUDE.md.template +56 -39
- package/Dev/i18n/de/Flutter/skills/architecture/SKILL.md +1 -1
- package/Dev/i18n/de/Flutter/skills/coding-standards/SKILL.md +1 -1
- package/Dev/i18n/de/Flutter/skills/performance/SKILL.md +1 -1
- package/Dev/i18n/de/Flutter/skills/quality-tools/SKILL.md +1 -1
- package/Dev/i18n/de/Flutter/skills/security-flutter/SKILL.md +1 -1
- package/Dev/i18n/de/Flutter/skills/state-management/SKILL.md +1 -1
- package/Dev/i18n/de/Flutter/skills/testing-flutter/SKILL.md +1 -1
- package/Dev/i18n/de/Flutter/skills/tooling/SKILL.md +1 -1
- package/Dev/i18n/de/Python/skills/architecture/SKILL.md +1 -1
- package/Dev/i18n/de/Python/skills/coding-standards/SKILL.md +1 -1
- package/Dev/i18n/de/Python/skills/testing-python/SKILL.md +1 -1
- package/Dev/i18n/de/Python/skills/tooling/SKILL.md +1 -1
- package/Dev/i18n/de/React/skills/architecture/SKILL.md +1 -1
- package/Dev/i18n/de/React/skills/coding-standards/SKILL.md +1 -1
- package/Dev/i18n/de/React/skills/quality-tools/SKILL.md +1 -1
- package/Dev/i18n/de/React/skills/security-react/SKILL.md +1 -1
- package/Dev/i18n/de/React/skills/testing-react/SKILL.md +1 -1
- package/Dev/i18n/de/React/skills/tooling/SKILL.md +1 -1
- package/Dev/i18n/de/ReactNative/skills/architecture/SKILL.md +1 -1
- package/Dev/i18n/de/ReactNative/skills/coding-standards/SKILL.md +1 -1
- package/Dev/i18n/de/ReactNative/skills/navigation/SKILL.md +1 -1
- package/Dev/i18n/de/ReactNative/skills/performance/SKILL.md +1 -1
- package/Dev/i18n/de/ReactNative/skills/quality-tools/SKILL.md +1 -1
- package/Dev/i18n/de/ReactNative/skills/security-reactnative/SKILL.md +1 -1
- package/Dev/i18n/de/ReactNative/skills/state-management/SKILL.md +1 -1
- package/Dev/i18n/de/ReactNative/skills/testing-reactnative/SKILL.md +1 -1
- package/Dev/i18n/de/ReactNative/skills/tooling/SKILL.md +1 -1
- package/Dev/i18n/de/Symfony/skills/aggregates/SKILL.md +1 -1
- package/Dev/i18n/de/Symfony/skills/architecture-clean-ddd/SKILL.md +1 -1
- package/Dev/i18n/de/Symfony/skills/async/SKILL.md +1 -1
- package/Dev/i18n/de/Symfony/skills/coding-standards/SKILL.md +1 -1
- package/Dev/i18n/de/Symfony/skills/cqrs/SKILL.md +1 -1
- package/Dev/i18n/de/Symfony/skills/ddd-patterns/SKILL.md +1 -1
- package/Dev/i18n/de/Symfony/skills/docker-hadolint/SKILL.md +1 -1
- package/Dev/i18n/de/Symfony/skills/doctrine-extensions/SKILL.md +1 -1
- package/Dev/i18n/de/Symfony/skills/domain-events/SKILL.md +1 -1
- package/Dev/i18n/de/Symfony/skills/i18n/SKILL.md +1 -1
- package/Dev/i18n/de/Symfony/skills/multitenant/SKILL.md +1 -1
- package/Dev/i18n/de/Symfony/skills/performance/SKILL.md +1 -1
- package/Dev/i18n/de/Symfony/skills/quality-tools/SKILL.md +1 -1
- package/Dev/i18n/de/Symfony/skills/security-symfony/SKILL.md +1 -1
- package/Dev/i18n/de/Symfony/skills/testing-symfony/SKILL.md +1 -1
- package/Dev/i18n/de/Symfony/skills/value-objects/SKILL.md +1 -1
- package/Dev/i18n/en/Common/skills/documentation/SKILL.md +1 -1
- package/Dev/i18n/en/Common/skills/git-workflow/SKILL.md +1 -1
- package/Dev/i18n/en/Common/skills/kiss-dry-yagni/SKILL.md +1 -1
- package/Dev/i18n/en/Common/skills/security/SKILL.md +1 -1
- package/Dev/i18n/en/Common/skills/solid-principles/SKILL.md +1 -1
- package/Dev/i18n/en/Common/skills/testing/SKILL.md +1 -1
- package/Dev/i18n/en/Common/skills/workflow-analysis/SKILL.md +1 -1
- package/Dev/i18n/en/Flutter/skills/architecture/SKILL.md +1 -1
- package/Dev/i18n/en/Flutter/skills/coding-standards/SKILL.md +1 -1
- package/Dev/i18n/en/Flutter/skills/performance/SKILL.md +1 -1
- package/Dev/i18n/en/Flutter/skills/quality-tools/SKILL.md +1 -1
- package/Dev/i18n/en/Flutter/skills/security-flutter/SKILL.md +1 -1
- package/Dev/i18n/en/Flutter/skills/state-management/SKILL.md +1 -1
- package/Dev/i18n/en/Flutter/skills/testing-flutter/SKILL.md +1 -1
- package/Dev/i18n/en/Flutter/skills/tooling/SKILL.md +1 -1
- package/Dev/i18n/en/Python/rules/08-quality-tools.md +572 -0
- package/Dev/i18n/en/Python/rules/11-security-python.md +596 -0
- package/Dev/i18n/en/Python/skills/architecture/SKILL.md +1 -1
- package/Dev/i18n/en/Python/skills/coding-standards/SKILL.md +1 -1
- package/Dev/i18n/en/Python/skills/testing-python/SKILL.md +1 -1
- package/Dev/i18n/en/Python/skills/tooling/SKILL.md +1 -1
- package/Dev/i18n/en/React/skills/architecture/SKILL.md +1 -1
- package/Dev/i18n/en/React/skills/coding-standards/SKILL.md +1 -1
- package/Dev/i18n/en/React/skills/quality-tools/SKILL.md +1 -1
- package/Dev/i18n/en/React/skills/security-react/SKILL.md +1 -1
- package/Dev/i18n/en/React/skills/testing-react/SKILL.md +1 -1
- package/Dev/i18n/en/React/skills/tooling/SKILL.md +1 -1
- package/Dev/i18n/en/ReactNative/skills/architecture/SKILL.md +1 -1
- package/Dev/i18n/en/ReactNative/skills/coding-standards/SKILL.md +1 -1
- package/Dev/i18n/en/ReactNative/skills/navigation/SKILL.md +1 -1
- package/Dev/i18n/en/ReactNative/skills/performance/SKILL.md +1 -1
- package/Dev/i18n/en/ReactNative/skills/quality-tools/SKILL.md +1 -1
- package/Dev/i18n/en/ReactNative/skills/security-reactnative/SKILL.md +1 -1
- package/Dev/i18n/en/ReactNative/skills/state-management/SKILL.md +1 -1
- package/Dev/i18n/en/ReactNative/skills/testing-reactnative/SKILL.md +1 -1
- package/Dev/i18n/en/ReactNative/skills/tooling/SKILL.md +1 -1
- package/Dev/i18n/en/Symfony/skills/aggregates/SKILL.md +1 -1
- package/Dev/i18n/en/Symfony/skills/architecture-clean-ddd/SKILL.md +1 -1
- package/Dev/i18n/en/Symfony/skills/async/SKILL.md +1 -1
- package/Dev/i18n/en/Symfony/skills/coding-standards/SKILL.md +1 -1
- package/Dev/i18n/en/Symfony/skills/cqrs/SKILL.md +1 -1
- package/Dev/i18n/en/Symfony/skills/ddd-patterns/SKILL.md +1 -1
- package/Dev/i18n/en/Symfony/skills/docker-hadolint/SKILL.md +1 -1
- package/Dev/i18n/en/Symfony/skills/doctrine-extensions/SKILL.md +1 -1
- package/Dev/i18n/en/Symfony/skills/domain-events/SKILL.md +1 -1
- package/Dev/i18n/en/Symfony/skills/i18n/SKILL.md +1 -1
- package/Dev/i18n/en/Symfony/skills/multitenant/SKILL.md +1 -1
- package/Dev/i18n/en/Symfony/skills/performance/SKILL.md +1 -1
- package/Dev/i18n/en/Symfony/skills/quality-tools/SKILL.md +1 -1
- package/Dev/i18n/en/Symfony/skills/security-symfony/SKILL.md +1 -1
- package/Dev/i18n/en/Symfony/skills/testing-symfony/SKILL.md +1 -1
- package/Dev/i18n/en/Symfony/skills/value-objects/SKILL.md +1 -1
- package/Dev/i18n/es/Common/skills/documentation/SKILL.md +1 -1
- package/Dev/i18n/es/Common/skills/git-workflow/SKILL.md +1 -1
- package/Dev/i18n/es/Common/skills/kiss-dry-yagni/SKILL.md +1 -1
- package/Dev/i18n/es/Common/skills/security/SKILL.md +1 -1
- package/Dev/i18n/es/Common/skills/solid-principles/SKILL.md +1 -1
- package/Dev/i18n/es/Common/skills/testing/SKILL.md +1 -1
- package/Dev/i18n/es/Common/skills/workflow-analysis/SKILL.md +1 -1
- package/Dev/i18n/es/Common/templates/CLAUDE.md.template +57 -40
- package/Dev/i18n/es/Flutter/skills/architecture/SKILL.md +1 -1
- package/Dev/i18n/es/Flutter/skills/coding-standards/SKILL.md +1 -1
- package/Dev/i18n/es/Flutter/skills/performance/SKILL.md +1 -1
- package/Dev/i18n/es/Flutter/skills/quality-tools/SKILL.md +1 -1
- package/Dev/i18n/es/Flutter/skills/security-flutter/SKILL.md +1 -1
- package/Dev/i18n/es/Flutter/skills/state-management/SKILL.md +1 -1
- package/Dev/i18n/es/Flutter/skills/testing-flutter/SKILL.md +1 -1
- package/Dev/i18n/es/Flutter/skills/tooling/SKILL.md +1 -1
- package/Dev/i18n/es/Python/skills/architecture/SKILL.md +1 -1
- package/Dev/i18n/es/Python/skills/coding-standards/SKILL.md +1 -1
- package/Dev/i18n/es/Python/skills/testing-python/SKILL.md +1 -1
- package/Dev/i18n/es/Python/skills/tooling/SKILL.md +1 -1
- package/Dev/i18n/es/React/skills/architecture/SKILL.md +1 -1
- package/Dev/i18n/es/React/skills/coding-standards/SKILL.md +1 -1
- package/Dev/i18n/es/React/skills/quality-tools/SKILL.md +1 -1
- package/Dev/i18n/es/React/skills/security-react/SKILL.md +1 -1
- package/Dev/i18n/es/React/skills/testing-react/SKILL.md +1 -1
- package/Dev/i18n/es/React/skills/tooling/SKILL.md +1 -1
- package/Dev/i18n/es/ReactNative/skills/architecture/SKILL.md +1 -1
- package/Dev/i18n/es/ReactNative/skills/coding-standards/SKILL.md +1 -1
- package/Dev/i18n/es/ReactNative/skills/navigation/SKILL.md +1 -1
- package/Dev/i18n/es/ReactNative/skills/performance/SKILL.md +1 -1
- package/Dev/i18n/es/ReactNative/skills/quality-tools/SKILL.md +1 -1
- package/Dev/i18n/es/ReactNative/skills/security-reactnative/SKILL.md +1 -1
- package/Dev/i18n/es/ReactNative/skills/state-management/SKILL.md +1 -1
- package/Dev/i18n/es/ReactNative/skills/testing-reactnative/SKILL.md +1 -1
- package/Dev/i18n/es/ReactNative/skills/tooling/SKILL.md +1 -1
- package/Dev/i18n/es/Symfony/skills/aggregates/SKILL.md +1 -1
- package/Dev/i18n/es/Symfony/skills/architecture-clean-ddd/SKILL.md +1 -1
- package/Dev/i18n/es/Symfony/skills/async/SKILL.md +1 -1
- package/Dev/i18n/es/Symfony/skills/coding-standards/SKILL.md +1 -1
- package/Dev/i18n/es/Symfony/skills/cqrs/SKILL.md +1 -1
- package/Dev/i18n/es/Symfony/skills/ddd-patterns/SKILL.md +1 -1
- package/Dev/i18n/es/Symfony/skills/docker-hadolint/SKILL.md +1 -1
- package/Dev/i18n/es/Symfony/skills/doctrine-extensions/SKILL.md +1 -1
- package/Dev/i18n/es/Symfony/skills/domain-events/SKILL.md +1 -1
- package/Dev/i18n/es/Symfony/skills/i18n/SKILL.md +1 -1
- package/Dev/i18n/es/Symfony/skills/multitenant/SKILL.md +1 -1
- package/Dev/i18n/es/Symfony/skills/performance/SKILL.md +1 -1
- package/Dev/i18n/es/Symfony/skills/quality-tools/SKILL.md +1 -1
- package/Dev/i18n/es/Symfony/skills/security-symfony/SKILL.md +1 -1
- package/Dev/i18n/es/Symfony/skills/testing-symfony/SKILL.md +1 -1
- package/Dev/i18n/es/Symfony/skills/value-objects/SKILL.md +1 -1
- package/Dev/i18n/fr/Common/skills/documentation/SKILL.md +1 -1
- package/Dev/i18n/fr/Common/skills/git-workflow/SKILL.md +1 -1
- package/Dev/i18n/fr/Common/skills/kiss-dry-yagni/SKILL.md +1 -1
- package/Dev/i18n/fr/Common/skills/security/SKILL.md +1 -1
- package/Dev/i18n/fr/Common/skills/solid-principles/SKILL.md +1 -1
- package/Dev/i18n/fr/Common/skills/testing/SKILL.md +1 -1
- package/Dev/i18n/fr/Common/skills/workflow-analysis/SKILL.md +1 -1
- package/Dev/i18n/fr/Common/templates/CLAUDE.md.template +56 -39
- package/Dev/i18n/fr/Flutter/skills/architecture/SKILL.md +1 -1
- package/Dev/i18n/fr/Flutter/skills/coding-standards/SKILL.md +1 -1
- package/Dev/i18n/fr/Flutter/skills/performance/SKILL.md +1 -1
- package/Dev/i18n/fr/Flutter/skills/quality-tools/SKILL.md +1 -1
- package/Dev/i18n/fr/Flutter/skills/security-flutter/SKILL.md +1 -1
- package/Dev/i18n/fr/Flutter/skills/state-management/SKILL.md +1 -1
- package/Dev/i18n/fr/Flutter/skills/testing-flutter/SKILL.md +1 -1
- package/Dev/i18n/fr/Flutter/skills/tooling/SKILL.md +1 -1
- package/Dev/i18n/fr/Python/skills/architecture/SKILL.md +1 -1
- package/Dev/i18n/fr/Python/skills/coding-standards/SKILL.md +1 -1
- package/Dev/i18n/fr/Python/skills/testing-python/SKILL.md +1 -1
- package/Dev/i18n/fr/Python/skills/tooling/SKILL.md +1 -1
- package/Dev/i18n/fr/React/skills/architecture/SKILL.md +1 -1
- package/Dev/i18n/fr/React/skills/coding-standards/SKILL.md +1 -1
- package/Dev/i18n/fr/React/skills/quality-tools/SKILL.md +1 -1
- package/Dev/i18n/fr/React/skills/security-react/SKILL.md +1 -1
- package/Dev/i18n/fr/React/skills/testing-react/SKILL.md +1 -1
- package/Dev/i18n/fr/React/skills/tooling/SKILL.md +1 -1
- package/Dev/i18n/fr/ReactNative/skills/architecture/SKILL.md +1 -1
- package/Dev/i18n/fr/ReactNative/skills/coding-standards/SKILL.md +1 -1
- package/Dev/i18n/fr/ReactNative/skills/navigation/SKILL.md +1 -1
- package/Dev/i18n/fr/ReactNative/skills/performance/SKILL.md +1 -1
- package/Dev/i18n/fr/ReactNative/skills/quality-tools/SKILL.md +1 -1
- package/Dev/i18n/fr/ReactNative/skills/security-reactnative/SKILL.md +1 -1
- package/Dev/i18n/fr/ReactNative/skills/state-management/SKILL.md +1 -1
- package/Dev/i18n/fr/ReactNative/skills/testing-reactnative/SKILL.md +1 -1
- package/Dev/i18n/fr/ReactNative/skills/tooling/SKILL.md +1 -1
- package/Dev/i18n/fr/Symfony/skills/aggregates/SKILL.md +1 -1
- package/Dev/i18n/fr/Symfony/skills/architecture-clean-ddd/SKILL.md +1 -1
- package/Dev/i18n/fr/Symfony/skills/async/SKILL.md +1 -1
- package/Dev/i18n/fr/Symfony/skills/coding-standards/SKILL.md +1 -1
- package/Dev/i18n/fr/Symfony/skills/cqrs/SKILL.md +1 -1
- package/Dev/i18n/fr/Symfony/skills/ddd-patterns/SKILL.md +1 -1
- package/Dev/i18n/fr/Symfony/skills/docker-hadolint/SKILL.md +1 -1
- package/Dev/i18n/fr/Symfony/skills/doctrine-extensions/SKILL.md +1 -1
- package/Dev/i18n/fr/Symfony/skills/domain-events/SKILL.md +1 -1
- package/Dev/i18n/fr/Symfony/skills/i18n/SKILL.md +1 -1
- package/Dev/i18n/fr/Symfony/skills/multitenant/SKILL.md +1 -1
- package/Dev/i18n/fr/Symfony/skills/performance/SKILL.md +1 -1
- package/Dev/i18n/fr/Symfony/skills/quality-tools/SKILL.md +1 -1
- package/Dev/i18n/fr/Symfony/skills/security-symfony/SKILL.md +1 -1
- package/Dev/i18n/fr/Symfony/skills/testing-symfony/SKILL.md +1 -1
- package/Dev/i18n/fr/Symfony/skills/value-objects/SKILL.md +1 -1
- package/Dev/i18n/pt/Common/skills/documentation/SKILL.md +1 -1
- package/Dev/i18n/pt/Common/skills/git-workflow/SKILL.md +1 -1
- package/Dev/i18n/pt/Common/skills/kiss-dry-yagni/SKILL.md +1 -1
- package/Dev/i18n/pt/Common/skills/security/SKILL.md +1 -1
- package/Dev/i18n/pt/Common/skills/solid-principles/SKILL.md +1 -1
- package/Dev/i18n/pt/Common/skills/testing/SKILL.md +1 -1
- package/Dev/i18n/pt/Common/skills/workflow-analysis/SKILL.md +1 -1
- package/Dev/i18n/pt/Common/templates/CLAUDE.md.template +56 -39
- package/Dev/i18n/pt/Flutter/skills/architecture/SKILL.md +1 -1
- package/Dev/i18n/pt/Flutter/skills/coding-standards/SKILL.md +1 -1
- package/Dev/i18n/pt/Flutter/skills/performance/SKILL.md +1 -1
- package/Dev/i18n/pt/Flutter/skills/quality-tools/SKILL.md +1 -1
- package/Dev/i18n/pt/Flutter/skills/security-flutter/SKILL.md +1 -1
- package/Dev/i18n/pt/Flutter/skills/state-management/SKILL.md +1 -1
- package/Dev/i18n/pt/Flutter/skills/tooling/SKILL.md +1 -1
- package/Dev/i18n/pt/Python/skills/architecture/SKILL.md +1 -1
- package/Dev/i18n/pt/Python/skills/coding-standards/SKILL.md +1 -1
- package/Dev/i18n/pt/Python/skills/testing-python/SKILL.md +1 -1
- package/Dev/i18n/pt/Python/skills/tooling/SKILL.md +1 -1
- package/Dev/i18n/pt/React/skills/architecture/SKILL.md +1 -1
- package/Dev/i18n/pt/React/skills/coding-standards/SKILL.md +1 -1
- package/Dev/i18n/pt/React/skills/quality-tools/SKILL.md +1 -1
- package/Dev/i18n/pt/React/skills/security-react/SKILL.md +1 -1
- package/Dev/i18n/pt/React/skills/testing-react/SKILL.md +1 -1
- package/Dev/i18n/pt/React/skills/tooling/SKILL.md +1 -1
- package/Dev/i18n/pt/ReactNative/skills/architecture/SKILL.md +1 -1
- package/Dev/i18n/pt/ReactNative/skills/coding-standards/SKILL.md +1 -1
- package/Dev/i18n/pt/ReactNative/skills/navigation/SKILL.md +1 -1
- package/Dev/i18n/pt/ReactNative/skills/performance/SKILL.md +1 -1
- package/Dev/i18n/pt/ReactNative/skills/quality-tools/SKILL.md +1 -1
- package/Dev/i18n/pt/ReactNative/skills/security-reactnative/SKILL.md +1 -1
- package/Dev/i18n/pt/ReactNative/skills/state-management/SKILL.md +1 -1
- package/Dev/i18n/pt/ReactNative/skills/testing-reactnative/SKILL.md +1 -1
- package/Dev/i18n/pt/ReactNative/skills/tooling/SKILL.md +1 -1
- package/Dev/i18n/pt/Symfony/skills/aggregates/SKILL.md +1 -1
- package/Dev/i18n/pt/Symfony/skills/architecture-clean-ddd/SKILL.md +1 -1
- package/Dev/i18n/pt/Symfony/skills/async/SKILL.md +1 -1
- package/Dev/i18n/pt/Symfony/skills/coding-standards/SKILL.md +1 -1
- package/Dev/i18n/pt/Symfony/skills/cqrs/SKILL.md +1 -1
- package/Dev/i18n/pt/Symfony/skills/ddd-patterns/SKILL.md +1 -1
- package/Dev/i18n/pt/Symfony/skills/docker-hadolint/SKILL.md +1 -1
- package/Dev/i18n/pt/Symfony/skills/doctrine-extensions/SKILL.md +1 -1
- package/Dev/i18n/pt/Symfony/skills/domain-events/SKILL.md +1 -1
- package/Dev/i18n/pt/Symfony/skills/i18n/SKILL.md +1 -1
- package/Dev/i18n/pt/Symfony/skills/multitenant/SKILL.md +1 -1
- package/Dev/i18n/pt/Symfony/skills/performance/SKILL.md +1 -1
- package/Dev/i18n/pt/Symfony/skills/quality-tools/SKILL.md +1 -1
- package/Dev/i18n/pt/Symfony/skills/security-symfony/SKILL.md +1 -1
- package/Dev/i18n/pt/Symfony/skills/testing-symfony/SKILL.md +1 -1
- package/Dev/i18n/pt/Symfony/skills/value-objects/SKILL.md +1 -1
- package/Dev/scripts/install-angular-rules.sh +284 -203
- package/Dev/scripts/install-common-rules.sh +16 -2
- package/Dev/scripts/install-csharp-rules.sh +217 -193
- package/Dev/scripts/install-flutter-rules.sh +288 -206
- package/Dev/scripts/install-laravel-rules.sh +298 -209
- package/Dev/scripts/install-php-rules.sh +220 -206
- package/Dev/scripts/install-python-rules.sh +199 -200
- package/Dev/scripts/install-react-rules.sh +253 -204
- package/Dev/scripts/install-reactnative-rules.sh +275 -207
- package/Dev/scripts/install-symfony-rules.sh +356 -635
- package/Dev/scripts/install-vuejs-rules.sh +291 -300
- package/Dev/scripts/migrate-project.sh +3 -4
- package/Dev/scripts/tcl-common.sh +329 -0
- package/Project/i18n/de/commands/decompose-tasks.md +2 -2
- package/Project/i18n/de/commands/generate-backlog.md +6 -6
- package/Project/i18n/en/commands/decompose-tasks.md +2 -2
- package/Project/i18n/en/commands/generate-backlog.md +6 -6
- package/Project/i18n/es/commands/decompose-tasks.md +2 -2
- package/Project/i18n/es/commands/generate-backlog.md +6 -6
- package/Project/i18n/fr/commands/decompose-tasks.md +2 -2
- package/Project/i18n/fr/commands/generate-backlog.md +7 -7
- package/Project/i18n/pt/commands/decompose-tasks.md +2 -2
- package/Project/i18n/pt/commands/generate-backlog.md +6 -6
- package/README.md +30 -4
- package/package.json +1 -1
- package/Dev/i18n/de/Common/skills/documentation/REFERENCE.md +0 -555
- package/Dev/i18n/de/Common/skills/git-workflow/REFERENCE.md +0 -541
- package/Dev/i18n/de/Common/skills/kiss-dry-yagni/REFERENCE.md +0 -417
- package/Dev/i18n/de/Common/skills/security/REFERENCE.md +0 -540
- package/Dev/i18n/de/Common/skills/solid-principles/REFERENCE.md +0 -396
- package/Dev/i18n/de/Common/skills/testing/REFERENCE.md +0 -463
- package/Dev/i18n/de/Common/skills/workflow-analysis/REFERENCE.md +0 -226
- package/Dev/i18n/de/Flutter/skills/architecture/REFERENCE.md +0 -455
- package/Dev/i18n/de/Flutter/skills/coding-standards/REFERENCE.md +0 -247
- package/Dev/i18n/de/Flutter/skills/performance/REFERENCE.md +0 -230
- package/Dev/i18n/de/Flutter/skills/quality-tools/REFERENCE.md +0 -239
- package/Dev/i18n/de/Flutter/skills/security-flutter/REFERENCE.md +0 -247
- package/Dev/i18n/de/Flutter/skills/state-management/REFERENCE.md +0 -0
- package/Dev/i18n/de/Flutter/skills/testing-flutter/REFERENCE.md +0 -0
- package/Dev/i18n/de/Flutter/skills/tooling/REFERENCE.md +0 -542
- package/Dev/i18n/de/Python/skills/architecture/REFERENCE.md +0 -444
- package/Dev/i18n/de/Python/skills/coding-standards/REFERENCE.md +0 -572
- package/Dev/i18n/de/Python/skills/testing-python/REFERENCE.md +0 -387
- package/Dev/i18n/de/Python/skills/tooling/REFERENCE.md +0 -351
- package/Dev/i18n/de/React/skills/architecture/REFERENCE.md +0 -490
- package/Dev/i18n/de/React/skills/coding-standards/REFERENCE.md +0 -500
- package/Dev/i18n/de/React/skills/quality-tools/REFERENCE.md +0 -758
- package/Dev/i18n/de/React/skills/security-react/REFERENCE.md +0 -793
- package/Dev/i18n/de/React/skills/testing-react/REFERENCE.md +0 -999
- package/Dev/i18n/de/React/skills/tooling/REFERENCE.md +0 -777
- package/Dev/i18n/de/ReactNative/skills/architecture/REFERENCE.md +0 -1253
- package/Dev/i18n/de/ReactNative/skills/coding-standards/REFERENCE.md +0 -1230
- package/Dev/i18n/de/ReactNative/skills/navigation/REFERENCE.md +0 -601
- package/Dev/i18n/de/ReactNative/skills/performance/REFERENCE.md +0 -727
- package/Dev/i18n/de/ReactNative/skills/quality-tools/REFERENCE.md +0 -122
- package/Dev/i18n/de/ReactNative/skills/security-reactnative/REFERENCE.md +0 -719
- package/Dev/i18n/de/ReactNative/skills/state-management/REFERENCE.md +0 -607
- package/Dev/i18n/de/ReactNative/skills/testing-reactnative/REFERENCE.md +0 -386
- package/Dev/i18n/de/ReactNative/skills/tooling/REFERENCE.md +0 -281
- package/Dev/i18n/de/Symfony/skills/aggregates/REFERENCE.md +0 -115
- package/Dev/i18n/de/Symfony/skills/architecture-clean-ddd/REFERENCE.md +0 -813
- package/Dev/i18n/de/Symfony/skills/async/REFERENCE.md +0 -190
- package/Dev/i18n/de/Symfony/skills/coding-standards/REFERENCE.md +0 -402
- package/Dev/i18n/de/Symfony/skills/cqrs/REFERENCE.md +0 -426
- package/Dev/i18n/de/Symfony/skills/ddd-patterns/REFERENCE.md +0 -1220
- package/Dev/i18n/de/Symfony/skills/docker-hadolint/REFERENCE.md +0 -772
- package/Dev/i18n/de/Symfony/skills/doctrine-extensions/REFERENCE.md +0 -927
- package/Dev/i18n/de/Symfony/skills/domain-events/REFERENCE.md +0 -129
- package/Dev/i18n/de/Symfony/skills/i18n/REFERENCE.md +0 -185
- package/Dev/i18n/de/Symfony/skills/multitenant/REFERENCE.md +0 -432
- package/Dev/i18n/de/Symfony/skills/performance/REFERENCE.md +0 -888
- package/Dev/i18n/de/Symfony/skills/quality-tools/REFERENCE.md +0 -982
- package/Dev/i18n/de/Symfony/skills/security-symfony/REFERENCE.md +0 -353
- package/Dev/i18n/de/Symfony/skills/testing-symfony/REFERENCE.md +0 -452
- package/Dev/i18n/de/Symfony/skills/value-objects/REFERENCE.md +0 -536
- package/Dev/i18n/de/Symfony/templates/aggregate-examples.md +0 -1128
- package/Dev/i18n/de/Symfony/templates/domain-event-examples.md +0 -1091
- package/Dev/i18n/de/Symfony/templates/value-object-examples.md +0 -1129
- package/Dev/i18n/en/Common/skills/documentation/REFERENCE.md +0 -555
- package/Dev/i18n/en/Common/skills/git-workflow/REFERENCE.md +0 -541
- package/Dev/i18n/en/Common/skills/kiss-dry-yagni/REFERENCE.md +0 -417
- package/Dev/i18n/en/Common/skills/security/REFERENCE.md +0 -540
- package/Dev/i18n/en/Common/skills/solid-principles/REFERENCE.md +0 -396
- package/Dev/i18n/en/Common/skills/testing/REFERENCE.md +0 -463
- package/Dev/i18n/en/Common/skills/workflow-analysis/REFERENCE.md +0 -226
- package/Dev/i18n/en/Flutter/skills/architecture/REFERENCE.md +0 -455
- package/Dev/i18n/en/Flutter/skills/coding-standards/REFERENCE.md +0 -247
- package/Dev/i18n/en/Flutter/skills/performance/REFERENCE.md +0 -230
- package/Dev/i18n/en/Flutter/skills/quality-tools/REFERENCE.md +0 -239
- package/Dev/i18n/en/Flutter/skills/security-flutter/REFERENCE.md +0 -247
- package/Dev/i18n/en/Flutter/skills/state-management/REFERENCE.md +0 -0
- package/Dev/i18n/en/Flutter/skills/testing-flutter/REFERENCE.md +0 -0
- package/Dev/i18n/en/Flutter/skills/tooling/REFERENCE.md +0 -542
- package/Dev/i18n/en/Python/skills/architecture/REFERENCE.md +0 -444
- package/Dev/i18n/en/Python/skills/coding-standards/REFERENCE.md +0 -572
- package/Dev/i18n/en/Python/skills/testing-python/REFERENCE.md +0 -387
- package/Dev/i18n/en/Python/skills/tooling/REFERENCE.md +0 -351
- package/Dev/i18n/en/React/skills/architecture/REFERENCE.md +0 -651
- package/Dev/i18n/en/React/skills/coding-standards/REFERENCE.md +0 -716
- package/Dev/i18n/en/React/skills/quality-tools/REFERENCE.md +0 -758
- package/Dev/i18n/en/React/skills/security-react/REFERENCE.md +0 -793
- package/Dev/i18n/en/React/skills/testing-react/REFERENCE.md +0 -999
- package/Dev/i18n/en/React/skills/tooling/REFERENCE.md +0 -777
- package/Dev/i18n/en/ReactNative/skills/architecture/REFERENCE.md +0 -1253
- package/Dev/i18n/en/ReactNative/skills/coding-standards/REFERENCE.md +0 -1230
- package/Dev/i18n/en/ReactNative/skills/navigation/REFERENCE.md +0 -601
- package/Dev/i18n/en/ReactNative/skills/performance/REFERENCE.md +0 -727
- package/Dev/i18n/en/ReactNative/skills/quality-tools/REFERENCE.md +0 -122
- package/Dev/i18n/en/ReactNative/skills/security-reactnative/REFERENCE.md +0 -719
- package/Dev/i18n/en/ReactNative/skills/state-management/REFERENCE.md +0 -607
- package/Dev/i18n/en/ReactNative/skills/testing-reactnative/REFERENCE.md +0 -386
- package/Dev/i18n/en/ReactNative/skills/tooling/REFERENCE.md +0 -281
- package/Dev/i18n/en/Symfony/skills/aggregates/REFERENCE.md +0 -115
- package/Dev/i18n/en/Symfony/skills/architecture-clean-ddd/REFERENCE.md +0 -979
- package/Dev/i18n/en/Symfony/skills/async/REFERENCE.md +0 -190
- package/Dev/i18n/en/Symfony/skills/coding-standards/REFERENCE.md +0 -402
- package/Dev/i18n/en/Symfony/skills/cqrs/REFERENCE.md +0 -426
- package/Dev/i18n/en/Symfony/skills/ddd-patterns/REFERENCE.md +0 -1220
- package/Dev/i18n/en/Symfony/skills/docker-hadolint/REFERENCE.md +0 -767
- package/Dev/i18n/en/Symfony/skills/doctrine-extensions/REFERENCE.md +0 -927
- package/Dev/i18n/en/Symfony/skills/domain-events/REFERENCE.md +0 -129
- package/Dev/i18n/en/Symfony/skills/i18n/REFERENCE.md +0 -185
- package/Dev/i18n/en/Symfony/skills/multitenant/REFERENCE.md +0 -432
- package/Dev/i18n/en/Symfony/skills/performance/REFERENCE.md +0 -888
- package/Dev/i18n/en/Symfony/skills/quality-tools/REFERENCE.md +0 -982
- package/Dev/i18n/en/Symfony/skills/security-symfony/REFERENCE.md +0 -1055
- package/Dev/i18n/en/Symfony/skills/testing-symfony/REFERENCE.md +0 -1121
- package/Dev/i18n/en/Symfony/skills/value-objects/REFERENCE.md +0 -536
- package/Dev/i18n/en/Symfony/templates/aggregate-examples.md +0 -1128
- package/Dev/i18n/en/Symfony/templates/domain-event-examples.md +0 -1091
- package/Dev/i18n/en/Symfony/templates/value-object-examples.md +0 -1129
- package/Dev/i18n/es/Common/skills/documentation/REFERENCE.md +0 -555
- package/Dev/i18n/es/Common/skills/git-workflow/REFERENCE.md +0 -541
- package/Dev/i18n/es/Common/skills/kiss-dry-yagni/REFERENCE.md +0 -417
- package/Dev/i18n/es/Common/skills/security/REFERENCE.md +0 -540
- package/Dev/i18n/es/Common/skills/solid-principles/REFERENCE.md +0 -396
- package/Dev/i18n/es/Common/skills/testing/REFERENCE.md +0 -463
- package/Dev/i18n/es/Common/skills/workflow-analysis/REFERENCE.md +0 -226
- package/Dev/i18n/es/Flutter/skills/architecture/REFERENCE.md +0 -455
- package/Dev/i18n/es/Flutter/skills/coding-standards/REFERENCE.md +0 -247
- package/Dev/i18n/es/Flutter/skills/performance/REFERENCE.md +0 -230
- package/Dev/i18n/es/Flutter/skills/quality-tools/REFERENCE.md +0 -239
- package/Dev/i18n/es/Flutter/skills/security-flutter/REFERENCE.md +0 -247
- package/Dev/i18n/es/Flutter/skills/state-management/REFERENCE.md +0 -0
- package/Dev/i18n/es/Flutter/skills/testing-flutter/REFERENCE.md +0 -0
- package/Dev/i18n/es/Flutter/skills/tooling/REFERENCE.md +0 -542
- package/Dev/i18n/es/Python/skills/architecture/REFERENCE.md +0 -445
- package/Dev/i18n/es/Python/skills/coding-standards/REFERENCE.md +0 -572
- package/Dev/i18n/es/Python/skills/testing-python/REFERENCE.md +0 -387
- package/Dev/i18n/es/Python/skills/tooling/REFERENCE.md +0 -351
- package/Dev/i18n/es/React/skills/architecture/REFERENCE.md +0 -583
- package/Dev/i18n/es/React/skills/coding-standards/REFERENCE.md +0 -716
- package/Dev/i18n/es/React/skills/quality-tools/REFERENCE.md +0 -758
- package/Dev/i18n/es/React/skills/security-react/REFERENCE.md +0 -793
- package/Dev/i18n/es/React/skills/testing-react/REFERENCE.md +0 -999
- package/Dev/i18n/es/React/skills/tooling/REFERENCE.md +0 -777
- package/Dev/i18n/es/ReactNative/skills/architecture/REFERENCE.md +0 -1253
- package/Dev/i18n/es/ReactNative/skills/coding-standards/REFERENCE.md +0 -1230
- package/Dev/i18n/es/ReactNative/skills/navigation/REFERENCE.md +0 -601
- package/Dev/i18n/es/ReactNative/skills/performance/REFERENCE.md +0 -727
- package/Dev/i18n/es/ReactNative/skills/quality-tools/REFERENCE.md +0 -122
- package/Dev/i18n/es/ReactNative/skills/security-reactnative/REFERENCE.md +0 -719
- package/Dev/i18n/es/ReactNative/skills/state-management/REFERENCE.md +0 -607
- package/Dev/i18n/es/ReactNative/skills/testing-reactnative/REFERENCE.md +0 -386
- package/Dev/i18n/es/ReactNative/skills/tooling/REFERENCE.md +0 -281
- package/Dev/i18n/es/Symfony/skills/aggregates/REFERENCE.md +0 -115
- package/Dev/i18n/es/Symfony/skills/architecture-clean-ddd/REFERENCE.md +0 -270
- package/Dev/i18n/es/Symfony/skills/async/REFERENCE.md +0 -190
- package/Dev/i18n/es/Symfony/skills/coding-standards/REFERENCE.md +0 -402
- package/Dev/i18n/es/Symfony/skills/cqrs/REFERENCE.md +0 -426
- package/Dev/i18n/es/Symfony/skills/ddd-patterns/REFERENCE.md +0 -1220
- package/Dev/i18n/es/Symfony/skills/docker-hadolint/REFERENCE.md +0 -265
- package/Dev/i18n/es/Symfony/skills/doctrine-extensions/REFERENCE.md +0 -927
- package/Dev/i18n/es/Symfony/skills/domain-events/REFERENCE.md +0 -129
- package/Dev/i18n/es/Symfony/skills/i18n/REFERENCE.md +0 -185
- package/Dev/i18n/es/Symfony/skills/multitenant/REFERENCE.md +0 -432
- package/Dev/i18n/es/Symfony/skills/performance/REFERENCE.md +0 -888
- package/Dev/i18n/es/Symfony/skills/quality-tools/REFERENCE.md +0 -982
- package/Dev/i18n/es/Symfony/skills/security-symfony/REFERENCE.md +0 -1055
- package/Dev/i18n/es/Symfony/skills/testing-symfony/REFERENCE.md +0 -370
- package/Dev/i18n/es/Symfony/skills/value-objects/REFERENCE.md +0 -536
- package/Dev/i18n/es/Symfony/templates/aggregate-examples.md +0 -1128
- package/Dev/i18n/es/Symfony/templates/domain-event-examples.md +0 -375
- package/Dev/i18n/es/Symfony/templates/value-object-examples.md +0 -626
- package/Dev/i18n/fr/Common/skills/documentation/REFERENCE.md +0 -555
- package/Dev/i18n/fr/Common/skills/git-workflow/REFERENCE.md +0 -541
- package/Dev/i18n/fr/Common/skills/kiss-dry-yagni/REFERENCE.md +0 -417
- package/Dev/i18n/fr/Common/skills/security/REFERENCE.md +0 -540
- package/Dev/i18n/fr/Common/skills/solid-principles/REFERENCE.md +0 -396
- package/Dev/i18n/fr/Common/skills/testing/REFERENCE.md +0 -463
- package/Dev/i18n/fr/Common/skills/workflow-analysis/REFERENCE.md +0 -226
- package/Dev/i18n/fr/Flutter/skills/architecture/REFERENCE.md +0 -1763
- package/Dev/i18n/fr/Flutter/skills/coding-standards/REFERENCE.md +0 -1147
- package/Dev/i18n/fr/Flutter/skills/performance/REFERENCE.md +0 -230
- package/Dev/i18n/fr/Flutter/skills/quality-tools/REFERENCE.md +0 -239
- package/Dev/i18n/fr/Flutter/skills/security-flutter/REFERENCE.md +0 -247
- package/Dev/i18n/fr/Flutter/skills/state-management/REFERENCE.md +0 -408
- package/Dev/i18n/fr/Flutter/skills/testing-flutter/REFERENCE.md +0 -692
- package/Dev/i18n/fr/Flutter/skills/tooling/REFERENCE.md +0 -542
- package/Dev/i18n/fr/Python/skills/architecture/REFERENCE.md +0 -1383
- package/Dev/i18n/fr/Python/skills/coding-standards/REFERENCE.md +0 -934
- package/Dev/i18n/fr/Python/skills/testing-python/REFERENCE.md +0 -778
- package/Dev/i18n/fr/Python/skills/tooling/REFERENCE.md +0 -730
- package/Dev/i18n/fr/React/skills/architecture/REFERENCE.md +0 -1005
- package/Dev/i18n/fr/React/skills/coding-standards/REFERENCE.md +0 -995
- package/Dev/i18n/fr/React/skills/quality-tools/REFERENCE.md +0 -758
- package/Dev/i18n/fr/React/skills/security-react/REFERENCE.md +0 -793
- package/Dev/i18n/fr/React/skills/testing-react/REFERENCE.md +0 -999
- package/Dev/i18n/fr/React/skills/tooling/REFERENCE.md +0 -777
- package/Dev/i18n/fr/ReactNative/skills/architecture/REFERENCE.md +0 -1253
- package/Dev/i18n/fr/ReactNative/skills/coding-standards/REFERENCE.md +0 -1230
- package/Dev/i18n/fr/ReactNative/skills/navigation/REFERENCE.md +0 -601
- package/Dev/i18n/fr/ReactNative/skills/performance/REFERENCE.md +0 -727
- package/Dev/i18n/fr/ReactNative/skills/quality-tools/REFERENCE.md +0 -122
- package/Dev/i18n/fr/ReactNative/skills/security-reactnative/REFERENCE.md +0 -719
- package/Dev/i18n/fr/ReactNative/skills/state-management/REFERENCE.md +0 -607
- package/Dev/i18n/fr/ReactNative/skills/testing-reactnative/REFERENCE.md +0 -386
- package/Dev/i18n/fr/ReactNative/skills/tooling/REFERENCE.md +0 -281
- package/Dev/i18n/fr/Symfony/skills/aggregates/REFERENCE.md +0 -115
- package/Dev/i18n/fr/Symfony/skills/architecture-clean-ddd/REFERENCE.md +0 -979
- package/Dev/i18n/fr/Symfony/skills/async/REFERENCE.md +0 -190
- package/Dev/i18n/fr/Symfony/skills/coding-standards/REFERENCE.md +0 -402
- package/Dev/i18n/fr/Symfony/skills/cqrs/REFERENCE.md +0 -426
- package/Dev/i18n/fr/Symfony/skills/ddd-patterns/REFERENCE.md +0 -1220
- package/Dev/i18n/fr/Symfony/skills/docker-hadolint/REFERENCE.md +0 -767
- package/Dev/i18n/fr/Symfony/skills/doctrine-extensions/REFERENCE.md +0 -927
- package/Dev/i18n/fr/Symfony/skills/domain-events/REFERENCE.md +0 -129
- package/Dev/i18n/fr/Symfony/skills/i18n/REFERENCE.md +0 -185
- package/Dev/i18n/fr/Symfony/skills/multitenant/REFERENCE.md +0 -432
- package/Dev/i18n/fr/Symfony/skills/performance/REFERENCE.md +0 -888
- package/Dev/i18n/fr/Symfony/skills/quality-tools/REFERENCE.md +0 -982
- package/Dev/i18n/fr/Symfony/skills/security-symfony/REFERENCE.md +0 -1055
- package/Dev/i18n/fr/Symfony/skills/testing-symfony/REFERENCE.md +0 -1121
- package/Dev/i18n/fr/Symfony/skills/value-objects/REFERENCE.md +0 -536
- package/Dev/i18n/fr/Symfony/templates/aggregate-examples.md +0 -1128
- package/Dev/i18n/fr/Symfony/templates/domain-event-examples.md +0 -1091
- package/Dev/i18n/fr/Symfony/templates/value-object-examples.md +0 -1129
- package/Dev/i18n/pt/Common/skills/documentation/REFERENCE.md +0 -555
- package/Dev/i18n/pt/Common/skills/git-workflow/REFERENCE.md +0 -541
- package/Dev/i18n/pt/Common/skills/kiss-dry-yagni/REFERENCE.md +0 -417
- package/Dev/i18n/pt/Common/skills/security/REFERENCE.md +0 -540
- package/Dev/i18n/pt/Common/skills/solid-principles/REFERENCE.md +0 -396
- package/Dev/i18n/pt/Common/skills/testing/REFERENCE.md +0 -463
- package/Dev/i18n/pt/Common/skills/workflow-analysis/REFERENCE.md +0 -226
- package/Dev/i18n/pt/Flutter/skills/architecture/REFERENCE.md +0 -455
- package/Dev/i18n/pt/Flutter/skills/coding-standards/REFERENCE.md +0 -247
- package/Dev/i18n/pt/Flutter/skills/performance/REFERENCE.md +0 -230
- package/Dev/i18n/pt/Flutter/skills/quality-tools/REFERENCE.md +0 -239
- package/Dev/i18n/pt/Flutter/skills/security-flutter/REFERENCE.md +0 -247
- package/Dev/i18n/pt/Flutter/skills/state-management/REFERENCE.md +0 -408
- package/Dev/i18n/pt/Flutter/skills/tooling/REFERENCE.md +0 -542
- package/Dev/i18n/pt/Python/skills/architecture/REFERENCE.md +0 -444
- package/Dev/i18n/pt/Python/skills/coding-standards/REFERENCE.md +0 -572
- package/Dev/i18n/pt/Python/skills/testing-python/REFERENCE.md +0 -387
- package/Dev/i18n/pt/Python/skills/tooling/REFERENCE.md +0 -351
- package/Dev/i18n/pt/React/skills/architecture/REFERENCE.md +0 -651
- package/Dev/i18n/pt/React/skills/coding-standards/REFERENCE.md +0 -716
- package/Dev/i18n/pt/React/skills/quality-tools/REFERENCE.md +0 -758
- package/Dev/i18n/pt/React/skills/security-react/REFERENCE.md +0 -793
- package/Dev/i18n/pt/React/skills/testing-react/REFERENCE.md +0 -999
- package/Dev/i18n/pt/React/skills/tooling/REFERENCE.md +0 -777
- package/Dev/i18n/pt/ReactNative/skills/architecture/REFERENCE.md +0 -200
- package/Dev/i18n/pt/ReactNative/skills/coding-standards/REFERENCE.md +0 -1230
- package/Dev/i18n/pt/ReactNative/skills/navigation/REFERENCE.md +0 -601
- package/Dev/i18n/pt/ReactNative/skills/performance/REFERENCE.md +0 -727
- package/Dev/i18n/pt/ReactNative/skills/quality-tools/REFERENCE.md +0 -122
- package/Dev/i18n/pt/ReactNative/skills/security-reactnative/REFERENCE.md +0 -719
- package/Dev/i18n/pt/ReactNative/skills/state-management/REFERENCE.md +0 -566
- package/Dev/i18n/pt/ReactNative/skills/testing-reactnative/REFERENCE.md +0 -386
- package/Dev/i18n/pt/ReactNative/skills/tooling/REFERENCE.md +0 -281
- package/Dev/i18n/pt/Symfony/skills/aggregates/REFERENCE.md +0 -115
- package/Dev/i18n/pt/Symfony/skills/architecture-clean-ddd/REFERENCE.md +0 -979
- package/Dev/i18n/pt/Symfony/skills/async/REFERENCE.md +0 -190
- package/Dev/i18n/pt/Symfony/skills/coding-standards/REFERENCE.md +0 -402
- package/Dev/i18n/pt/Symfony/skills/cqrs/REFERENCE.md +0 -426
- package/Dev/i18n/pt/Symfony/skills/ddd-patterns/REFERENCE.md +0 -1220
- package/Dev/i18n/pt/Symfony/skills/docker-hadolint/REFERENCE.md +0 -767
- package/Dev/i18n/pt/Symfony/skills/doctrine-extensions/REFERENCE.md +0 -927
- package/Dev/i18n/pt/Symfony/skills/domain-events/REFERENCE.md +0 -129
- package/Dev/i18n/pt/Symfony/skills/i18n/REFERENCE.md +0 -185
- package/Dev/i18n/pt/Symfony/skills/multitenant/REFERENCE.md +0 -432
- package/Dev/i18n/pt/Symfony/skills/performance/REFERENCE.md +0 -888
- package/Dev/i18n/pt/Symfony/skills/quality-tools/REFERENCE.md +0 -982
- package/Dev/i18n/pt/Symfony/skills/security-symfony/REFERENCE.md +0 -1055
- package/Dev/i18n/pt/Symfony/skills/testing-symfony/REFERENCE.md +0 -1121
- package/Dev/i18n/pt/Symfony/skills/value-objects/REFERENCE.md +0 -536
- package/Dev/i18n/pt/Symfony/templates/aggregate-examples.md +0 -1128
- package/Dev/i18n/pt/Symfony/templates/domain-event-examples.md +0 -1091
- package/Dev/i18n/pt/Symfony/templates/value-object-examples.md +0 -1129
|
@@ -0,0 +1,596 @@
|
|
|
1
|
+
# Python Security
|
|
2
|
+
|
|
3
|
+
## Fundamental Security Principles
|
|
4
|
+
|
|
5
|
+
### Defense in Depth
|
|
6
|
+
|
|
7
|
+
Apply multiple layers of security:
|
|
8
|
+
1. Validate on both client AND server side
|
|
9
|
+
2. Sanitize user data
|
|
10
|
+
3. Use HTTPS everywhere
|
|
11
|
+
4. Implement rate limiting
|
|
12
|
+
5. Apply principle of least privilege
|
|
13
|
+
6. Log security events
|
|
14
|
+
|
|
15
|
+
## Input Validation
|
|
16
|
+
|
|
17
|
+
### Pydantic for Data Validation
|
|
18
|
+
|
|
19
|
+
```python
|
|
20
|
+
from pydantic import BaseModel, Field, EmailStr, SecretStr, validator
|
|
21
|
+
from typing import Annotated
|
|
22
|
+
import re
|
|
23
|
+
|
|
24
|
+
class UserCreate(BaseModel):
|
|
25
|
+
"""Secure user creation schema."""
|
|
26
|
+
|
|
27
|
+
username: Annotated[
|
|
28
|
+
str,
|
|
29
|
+
Field(min_length=3, max_length=20, pattern=r"^[a-zA-Z0-9_]+$")
|
|
30
|
+
]
|
|
31
|
+
email: EmailStr
|
|
32
|
+
password: SecretStr = Field(min_length=8, max_length=128)
|
|
33
|
+
|
|
34
|
+
@validator("password")
|
|
35
|
+
def validate_password_strength(cls, v: SecretStr) -> SecretStr:
|
|
36
|
+
password = v.get_secret_value()
|
|
37
|
+
if not re.search(r"[A-Z]", password):
|
|
38
|
+
raise ValueError("Password must contain at least one uppercase letter")
|
|
39
|
+
if not re.search(r"[a-z]", password):
|
|
40
|
+
raise ValueError("Password must contain at least one lowercase letter")
|
|
41
|
+
if not re.search(r"[0-9]", password):
|
|
42
|
+
raise ValueError("Password must contain at least one digit")
|
|
43
|
+
if not re.search(r"[^A-Za-z0-9]", password):
|
|
44
|
+
raise ValueError("Password must contain at least one special character")
|
|
45
|
+
return v
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
class SearchQuery(BaseModel):
|
|
49
|
+
"""Secure search query schema."""
|
|
50
|
+
|
|
51
|
+
query: Annotated[str, Field(max_length=100)]
|
|
52
|
+
page: Annotated[int, Field(ge=1, le=1000)] = 1
|
|
53
|
+
limit: Annotated[int, Field(ge=1, le=100)] = 20
|
|
54
|
+
|
|
55
|
+
@validator("query")
|
|
56
|
+
def sanitize_query(cls, v: str) -> str:
|
|
57
|
+
# Remove potentially dangerous characters
|
|
58
|
+
return re.sub(r"[<>\"';]", "", v).strip()
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
### FastAPI with Validation
|
|
62
|
+
|
|
63
|
+
```python
|
|
64
|
+
from fastapi import FastAPI, HTTPException, Depends, status
|
|
65
|
+
from pydantic import ValidationError
|
|
66
|
+
|
|
67
|
+
app = FastAPI()
|
|
68
|
+
|
|
69
|
+
@app.post("/users/", status_code=status.HTTP_201_CREATED)
|
|
70
|
+
async def create_user(user: UserCreate) -> dict:
|
|
71
|
+
"""Create user with validated data."""
|
|
72
|
+
# Pydantic automatically validates the input
|
|
73
|
+
# If validation fails, FastAPI returns 422 Unprocessable Entity
|
|
74
|
+
|
|
75
|
+
# Hash password before storing
|
|
76
|
+
hashed_password = hash_password(user.password.get_secret_value())
|
|
77
|
+
|
|
78
|
+
return {"username": user.username, "email": user.email}
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
@app.get("/search/")
|
|
82
|
+
async def search(query: SearchQuery = Depends()) -> dict:
|
|
83
|
+
"""Search with validated and sanitized query."""
|
|
84
|
+
# query is already validated and sanitized
|
|
85
|
+
results = await perform_search(query.query, query.page, query.limit)
|
|
86
|
+
return {"results": results}
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
## SQL Injection Prevention
|
|
90
|
+
|
|
91
|
+
### Use Parameterized Queries
|
|
92
|
+
|
|
93
|
+
```python
|
|
94
|
+
# BAD - Vulnerable to SQL injection
|
|
95
|
+
async def get_user_unsafe(user_id: str) -> dict:
|
|
96
|
+
query = f"SELECT * FROM users WHERE id = '{user_id}'" # DANGER!
|
|
97
|
+
return await database.fetch_one(query)
|
|
98
|
+
|
|
99
|
+
# GOOD - Use parameterized queries
|
|
100
|
+
async def get_user_safe(user_id: str) -> dict:
|
|
101
|
+
query = "SELECT * FROM users WHERE id = :user_id"
|
|
102
|
+
return await database.fetch_one(query, {"user_id": user_id})
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
### SQLAlchemy ORM (Recommended)
|
|
106
|
+
|
|
107
|
+
```python
|
|
108
|
+
from sqlalchemy import select
|
|
109
|
+
from sqlalchemy.ext.asyncio import AsyncSession
|
|
110
|
+
from models import User
|
|
111
|
+
|
|
112
|
+
async def get_user_by_email(
|
|
113
|
+
session: AsyncSession,
|
|
114
|
+
email: str
|
|
115
|
+
) -> User | None:
|
|
116
|
+
"""Safely query user by email using ORM."""
|
|
117
|
+
# SQLAlchemy handles parameterization automatically
|
|
118
|
+
stmt = select(User).where(User.email == email)
|
|
119
|
+
result = await session.execute(stmt)
|
|
120
|
+
return result.scalar_one_or_none()
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
async def search_users(
|
|
124
|
+
session: AsyncSession,
|
|
125
|
+
search_term: str,
|
|
126
|
+
limit: int = 20
|
|
127
|
+
) -> list[User]:
|
|
128
|
+
"""Safe search with ORM."""
|
|
129
|
+
# Safe: ilike handles escaping
|
|
130
|
+
stmt = (
|
|
131
|
+
select(User)
|
|
132
|
+
.where(User.username.ilike(f"%{search_term}%"))
|
|
133
|
+
.limit(limit)
|
|
134
|
+
)
|
|
135
|
+
result = await session.execute(stmt)
|
|
136
|
+
return list(result.scalars().all())
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
## Authentication & Authorization
|
|
140
|
+
|
|
141
|
+
### Password Hashing with bcrypt
|
|
142
|
+
|
|
143
|
+
```python
|
|
144
|
+
from passlib.context import CryptContext
|
|
145
|
+
from pydantic import SecretStr
|
|
146
|
+
|
|
147
|
+
pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto")
|
|
148
|
+
|
|
149
|
+
def hash_password(password: str) -> str:
|
|
150
|
+
"""Hash a password securely."""
|
|
151
|
+
return pwd_context.hash(password)
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
def verify_password(plain_password: str, hashed_password: str) -> bool:
|
|
155
|
+
"""Verify a password against its hash."""
|
|
156
|
+
return pwd_context.verify(plain_password, hashed_password)
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
# Usage
|
|
160
|
+
hashed = hash_password("my_secure_password")
|
|
161
|
+
is_valid = verify_password("my_secure_password", hashed)
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
### JWT Token Handling
|
|
165
|
+
|
|
166
|
+
```python
|
|
167
|
+
from datetime import datetime, timedelta, timezone
|
|
168
|
+
from typing import Any
|
|
169
|
+
import jwt
|
|
170
|
+
from pydantic import BaseModel
|
|
171
|
+
|
|
172
|
+
SECRET_KEY = os.environ["JWT_SECRET_KEY"] # Load from environment
|
|
173
|
+
ALGORITHM = "HS256"
|
|
174
|
+
ACCESS_TOKEN_EXPIRE_MINUTES = 30
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
class TokenPayload(BaseModel):
|
|
178
|
+
sub: str
|
|
179
|
+
exp: datetime
|
|
180
|
+
iat: datetime
|
|
181
|
+
role: str
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
def create_access_token(
|
|
185
|
+
user_id: str,
|
|
186
|
+
role: str,
|
|
187
|
+
expires_delta: timedelta | None = None
|
|
188
|
+
) -> str:
|
|
189
|
+
"""Create a secure JWT token."""
|
|
190
|
+
now = datetime.now(timezone.utc)
|
|
191
|
+
expire = now + (expires_delta or timedelta(minutes=ACCESS_TOKEN_EXPIRE_MINUTES))
|
|
192
|
+
|
|
193
|
+
payload = {
|
|
194
|
+
"sub": user_id,
|
|
195
|
+
"role": role,
|
|
196
|
+
"exp": expire,
|
|
197
|
+
"iat": now,
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
return jwt.encode(payload, SECRET_KEY, algorithm=ALGORITHM)
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
def decode_token(token: str) -> TokenPayload:
|
|
204
|
+
"""Decode and validate a JWT token."""
|
|
205
|
+
try:
|
|
206
|
+
payload = jwt.decode(token, SECRET_KEY, algorithms=[ALGORITHM])
|
|
207
|
+
return TokenPayload(**payload)
|
|
208
|
+
except jwt.ExpiredSignatureError:
|
|
209
|
+
raise ValueError("Token has expired")
|
|
210
|
+
except jwt.InvalidTokenError:
|
|
211
|
+
raise ValueError("Invalid token")
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
### FastAPI Dependency for Authentication
|
|
215
|
+
|
|
216
|
+
```python
|
|
217
|
+
from fastapi import Depends, HTTPException, status
|
|
218
|
+
from fastapi.security import HTTPBearer, HTTPAuthorizationCredentials
|
|
219
|
+
|
|
220
|
+
security = HTTPBearer()
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
async def get_current_user(
|
|
224
|
+
credentials: HTTPAuthorizationCredentials = Depends(security)
|
|
225
|
+
) -> TokenPayload:
|
|
226
|
+
"""Validate token and return current user."""
|
|
227
|
+
try:
|
|
228
|
+
payload = decode_token(credentials.credentials)
|
|
229
|
+
return payload
|
|
230
|
+
except ValueError as e:
|
|
231
|
+
raise HTTPException(
|
|
232
|
+
status_code=status.HTTP_401_UNAUTHORIZED,
|
|
233
|
+
detail=str(e),
|
|
234
|
+
headers={"WWW-Authenticate": "Bearer"},
|
|
235
|
+
)
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
def require_role(required_roles: list[str]):
|
|
239
|
+
"""Dependency to require specific roles."""
|
|
240
|
+
async def role_checker(
|
|
241
|
+
user: TokenPayload = Depends(get_current_user)
|
|
242
|
+
) -> TokenPayload:
|
|
243
|
+
if user.role not in required_roles:
|
|
244
|
+
raise HTTPException(
|
|
245
|
+
status_code=status.HTTP_403_FORBIDDEN,
|
|
246
|
+
detail="Insufficient permissions"
|
|
247
|
+
)
|
|
248
|
+
return user
|
|
249
|
+
return role_checker
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
# Usage
|
|
253
|
+
@app.get("/admin/users/")
|
|
254
|
+
async def list_users(
|
|
255
|
+
user: TokenPayload = Depends(require_role(["admin"]))
|
|
256
|
+
) -> list[dict]:
|
|
257
|
+
"""Admin-only endpoint."""
|
|
258
|
+
return await get_all_users()
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
## Secrets Management
|
|
262
|
+
|
|
263
|
+
### Environment Variables
|
|
264
|
+
|
|
265
|
+
```python
|
|
266
|
+
from pydantic_settings import BaseSettings
|
|
267
|
+
from pydantic import SecretStr
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
class Settings(BaseSettings):
|
|
271
|
+
"""Application settings with secure defaults."""
|
|
272
|
+
|
|
273
|
+
# Database
|
|
274
|
+
database_url: SecretStr
|
|
275
|
+
database_pool_size: int = 5
|
|
276
|
+
|
|
277
|
+
# Authentication
|
|
278
|
+
jwt_secret_key: SecretStr
|
|
279
|
+
jwt_algorithm: str = "HS256"
|
|
280
|
+
access_token_expire_minutes: int = 30
|
|
281
|
+
|
|
282
|
+
# API keys
|
|
283
|
+
api_key: SecretStr
|
|
284
|
+
|
|
285
|
+
# External services
|
|
286
|
+
redis_url: SecretStr | None = None
|
|
287
|
+
|
|
288
|
+
class Config:
|
|
289
|
+
env_file = ".env"
|
|
290
|
+
env_file_encoding = "utf-8"
|
|
291
|
+
case_sensitive = False
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
settings = Settings()
|
|
295
|
+
|
|
296
|
+
# Access secrets safely
|
|
297
|
+
db_url = settings.database_url.get_secret_value()
|
|
298
|
+
```
|
|
299
|
+
|
|
300
|
+
### .env.example
|
|
301
|
+
|
|
302
|
+
```env
|
|
303
|
+
# .env.example (commit this file)
|
|
304
|
+
DATABASE_URL=postgresql://user:password@localhost:5432/dbname
|
|
305
|
+
JWT_SECRET_KEY=your-secret-key-here-change-in-production
|
|
306
|
+
API_KEY=your-api-key-here
|
|
307
|
+
REDIS_URL=redis://localhost:6379
|
|
308
|
+
```
|
|
309
|
+
|
|
310
|
+
### .gitignore
|
|
311
|
+
|
|
312
|
+
```gitignore
|
|
313
|
+
# Secrets - NEVER commit these
|
|
314
|
+
.env
|
|
315
|
+
.env.local
|
|
316
|
+
.env.production
|
|
317
|
+
*.pem
|
|
318
|
+
*.key
|
|
319
|
+
secrets/
|
|
320
|
+
```
|
|
321
|
+
|
|
322
|
+
## Rate Limiting
|
|
323
|
+
|
|
324
|
+
### FastAPI with slowapi
|
|
325
|
+
|
|
326
|
+
```python
|
|
327
|
+
from slowapi import Limiter, _rate_limit_exceeded_handler
|
|
328
|
+
from slowapi.util import get_remote_address
|
|
329
|
+
from slowapi.errors import RateLimitExceeded
|
|
330
|
+
from fastapi import FastAPI, Request
|
|
331
|
+
|
|
332
|
+
limiter = Limiter(key_func=get_remote_address)
|
|
333
|
+
app = FastAPI()
|
|
334
|
+
app.state.limiter = limiter
|
|
335
|
+
app.add_exception_handler(RateLimitExceeded, _rate_limit_exceeded_handler)
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
@app.post("/login/")
|
|
339
|
+
@limiter.limit("5/minute") # 5 attempts per minute
|
|
340
|
+
async def login(request: Request, credentials: LoginCredentials) -> dict:
|
|
341
|
+
"""Login with rate limiting."""
|
|
342
|
+
return await authenticate_user(credentials)
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
@app.get("/api/search/")
|
|
346
|
+
@limiter.limit("100/minute") # 100 requests per minute
|
|
347
|
+
async def search(request: Request, q: str) -> dict:
|
|
348
|
+
"""Search with rate limiting."""
|
|
349
|
+
return await perform_search(q)
|
|
350
|
+
```
|
|
351
|
+
|
|
352
|
+
## CORS Configuration
|
|
353
|
+
|
|
354
|
+
```python
|
|
355
|
+
from fastapi import FastAPI
|
|
356
|
+
from fastapi.middleware.cors import CORSMiddleware
|
|
357
|
+
|
|
358
|
+
app = FastAPI()
|
|
359
|
+
|
|
360
|
+
# Configure CORS properly
|
|
361
|
+
app.add_middleware(
|
|
362
|
+
CORSMiddleware,
|
|
363
|
+
allow_origins=[
|
|
364
|
+
"https://example.com",
|
|
365
|
+
"https://app.example.com",
|
|
366
|
+
], # Specify exact origins, NOT "*"
|
|
367
|
+
allow_credentials=True,
|
|
368
|
+
allow_methods=["GET", "POST", "PUT", "DELETE"],
|
|
369
|
+
allow_headers=["Authorization", "Content-Type"],
|
|
370
|
+
max_age=600, # Cache preflight for 10 minutes
|
|
371
|
+
)
|
|
372
|
+
```
|
|
373
|
+
|
|
374
|
+
## Secure Headers
|
|
375
|
+
|
|
376
|
+
```python
|
|
377
|
+
from starlette.middleware.base import BaseHTTPMiddleware
|
|
378
|
+
from starlette.requests import Request
|
|
379
|
+
from starlette.responses import Response
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
class SecurityHeadersMiddleware(BaseHTTPMiddleware):
|
|
383
|
+
"""Add security headers to all responses."""
|
|
384
|
+
|
|
385
|
+
async def dispatch(self, request: Request, call_next) -> Response:
|
|
386
|
+
response = await call_next(request)
|
|
387
|
+
|
|
388
|
+
# Security headers
|
|
389
|
+
response.headers["X-Content-Type-Options"] = "nosniff"
|
|
390
|
+
response.headers["X-Frame-Options"] = "DENY"
|
|
391
|
+
response.headers["X-XSS-Protection"] = "1; mode=block"
|
|
392
|
+
response.headers["Strict-Transport-Security"] = (
|
|
393
|
+
"max-age=31536000; includeSubDomains"
|
|
394
|
+
)
|
|
395
|
+
response.headers["Content-Security-Policy"] = (
|
|
396
|
+
"default-src 'self'; script-src 'self'"
|
|
397
|
+
)
|
|
398
|
+
response.headers["Referrer-Policy"] = "strict-origin-when-cross-origin"
|
|
399
|
+
response.headers["Permissions-Policy"] = (
|
|
400
|
+
"geolocation=(), microphone=(), camera=()"
|
|
401
|
+
)
|
|
402
|
+
|
|
403
|
+
return response
|
|
404
|
+
|
|
405
|
+
|
|
406
|
+
app.add_middleware(SecurityHeadersMiddleware)
|
|
407
|
+
```
|
|
408
|
+
|
|
409
|
+
## Secure Logging
|
|
410
|
+
|
|
411
|
+
```python
|
|
412
|
+
import logging
|
|
413
|
+
import re
|
|
414
|
+
from typing import Any
|
|
415
|
+
|
|
416
|
+
class SensitiveDataFilter(logging.Filter):
|
|
417
|
+
"""Filter to redact sensitive data from logs."""
|
|
418
|
+
|
|
419
|
+
SENSITIVE_PATTERNS = [
|
|
420
|
+
(re.compile(r'"password"\s*:\s*"[^"]*"'), '"password": "[REDACTED]"'),
|
|
421
|
+
(re.compile(r'"token"\s*:\s*"[^"]*"'), '"token": "[REDACTED]"'),
|
|
422
|
+
(re.compile(r'"api_key"\s*:\s*"[^"]*"'), '"api_key": "[REDACTED]"'),
|
|
423
|
+
(re.compile(r'"secret"\s*:\s*"[^"]*"'), '"secret": "[REDACTED]"'),
|
|
424
|
+
(re.compile(r"Bearer\s+[A-Za-z0-9-_=]+\.[A-Za-z0-9-_=]+\.?[A-Za-z0-9-_.+/=]*"),
|
|
425
|
+
"Bearer [REDACTED]"),
|
|
426
|
+
]
|
|
427
|
+
|
|
428
|
+
def filter(self, record: logging.LogRecord) -> bool:
|
|
429
|
+
if isinstance(record.msg, str):
|
|
430
|
+
for pattern, replacement in self.SENSITIVE_PATTERNS:
|
|
431
|
+
record.msg = pattern.sub(replacement, record.msg)
|
|
432
|
+
return True
|
|
433
|
+
|
|
434
|
+
|
|
435
|
+
# Configure logging
|
|
436
|
+
logging.basicConfig(
|
|
437
|
+
level=logging.INFO,
|
|
438
|
+
format="%(asctime)s - %(name)s - %(levelname)s - %(message)s"
|
|
439
|
+
)
|
|
440
|
+
|
|
441
|
+
logger = logging.getLogger(__name__)
|
|
442
|
+
logger.addFilter(SensitiveDataFilter())
|
|
443
|
+
|
|
444
|
+
|
|
445
|
+
# Usage
|
|
446
|
+
def log_login_attempt(email: str, success: bool) -> None:
|
|
447
|
+
"""Log login attempt without sensitive data."""
|
|
448
|
+
logger.info(
|
|
449
|
+
f"Login attempt for {email}: {'success' if success else 'failed'}"
|
|
450
|
+
)
|
|
451
|
+
# Password is never logged!
|
|
452
|
+
```
|
|
453
|
+
|
|
454
|
+
## File Upload Security
|
|
455
|
+
|
|
456
|
+
```python
|
|
457
|
+
from fastapi import UploadFile, HTTPException
|
|
458
|
+
from pathlib import Path
|
|
459
|
+
import hashlib
|
|
460
|
+
import magic # python-magic library
|
|
461
|
+
|
|
462
|
+
ALLOWED_EXTENSIONS = {".jpg", ".jpeg", ".png", ".gif", ".pdf"}
|
|
463
|
+
ALLOWED_MIME_TYPES = {
|
|
464
|
+
"image/jpeg",
|
|
465
|
+
"image/png",
|
|
466
|
+
"image/gif",
|
|
467
|
+
"application/pdf"
|
|
468
|
+
}
|
|
469
|
+
MAX_FILE_SIZE = 10 * 1024 * 1024 # 10 MB
|
|
470
|
+
|
|
471
|
+
|
|
472
|
+
async def validate_upload(file: UploadFile) -> bytes:
|
|
473
|
+
"""Validate uploaded file for security."""
|
|
474
|
+
|
|
475
|
+
# Check file extension
|
|
476
|
+
ext = Path(file.filename or "").suffix.lower()
|
|
477
|
+
if ext not in ALLOWED_EXTENSIONS:
|
|
478
|
+
raise HTTPException(
|
|
479
|
+
status_code=400,
|
|
480
|
+
detail=f"File extension {ext} not allowed"
|
|
481
|
+
)
|
|
482
|
+
|
|
483
|
+
# Read file content
|
|
484
|
+
content = await file.read()
|
|
485
|
+
|
|
486
|
+
# Check file size
|
|
487
|
+
if len(content) > MAX_FILE_SIZE:
|
|
488
|
+
raise HTTPException(
|
|
489
|
+
status_code=400,
|
|
490
|
+
detail="File too large"
|
|
491
|
+
)
|
|
492
|
+
|
|
493
|
+
# Validate MIME type using file content (not just extension)
|
|
494
|
+
mime_type = magic.from_buffer(content, mime=True)
|
|
495
|
+
if mime_type not in ALLOWED_MIME_TYPES:
|
|
496
|
+
raise HTTPException(
|
|
497
|
+
status_code=400,
|
|
498
|
+
detail=f"File type {mime_type} not allowed"
|
|
499
|
+
)
|
|
500
|
+
|
|
501
|
+
return content
|
|
502
|
+
|
|
503
|
+
|
|
504
|
+
def generate_safe_filename(original_filename: str, content: bytes) -> str:
|
|
505
|
+
"""Generate a safe filename to prevent path traversal."""
|
|
506
|
+
ext = Path(original_filename).suffix.lower()
|
|
507
|
+
content_hash = hashlib.sha256(content).hexdigest()[:16]
|
|
508
|
+
return f"{content_hash}{ext}"
|
|
509
|
+
```
|
|
510
|
+
|
|
511
|
+
## Dependency Security
|
|
512
|
+
|
|
513
|
+
### Regular Audits
|
|
514
|
+
|
|
515
|
+
```bash
|
|
516
|
+
# Audit with pip-audit
|
|
517
|
+
pip install pip-audit
|
|
518
|
+
pip-audit
|
|
519
|
+
|
|
520
|
+
# Audit with safety
|
|
521
|
+
pip install safety
|
|
522
|
+
safety check
|
|
523
|
+
|
|
524
|
+
# Update vulnerable packages
|
|
525
|
+
pip-audit --fix
|
|
526
|
+
```
|
|
527
|
+
|
|
528
|
+
### Requirements Pinning
|
|
529
|
+
|
|
530
|
+
```toml
|
|
531
|
+
# pyproject.toml - Pin versions for security
|
|
532
|
+
[project]
|
|
533
|
+
dependencies = [
|
|
534
|
+
"fastapi>=0.115.0,<0.116.0",
|
|
535
|
+
"pydantic>=2.10.0,<3.0.0",
|
|
536
|
+
"sqlalchemy>=2.0.0,<3.0.0",
|
|
537
|
+
]
|
|
538
|
+
```
|
|
539
|
+
|
|
540
|
+
### Dependabot Configuration
|
|
541
|
+
|
|
542
|
+
```yaml
|
|
543
|
+
# .github/dependabot.yml
|
|
544
|
+
version: 2
|
|
545
|
+
updates:
|
|
546
|
+
- package-ecosystem: "pip"
|
|
547
|
+
directory: "/"
|
|
548
|
+
schedule:
|
|
549
|
+
interval: "weekly"
|
|
550
|
+
open-pull-requests-limit: 10
|
|
551
|
+
labels:
|
|
552
|
+
- "dependencies"
|
|
553
|
+
- "security"
|
|
554
|
+
```
|
|
555
|
+
|
|
556
|
+
## Security Checklist
|
|
557
|
+
|
|
558
|
+
### Before Each Release
|
|
559
|
+
|
|
560
|
+
- [ ] Audit dependencies (`pip-audit`, `safety check`)
|
|
561
|
+
- [ ] No hardcoded secrets in code
|
|
562
|
+
- [ ] All endpoints have proper authentication
|
|
563
|
+
- [ ] Input validation on all user inputs
|
|
564
|
+
- [ ] SQL injection protection (ORM or parameterized queries)
|
|
565
|
+
- [ ] Rate limiting on sensitive endpoints
|
|
566
|
+
- [ ] CORS properly configured
|
|
567
|
+
- [ ] Security headers set
|
|
568
|
+
- [ ] Secure logging (no sensitive data)
|
|
569
|
+
- [ ] File uploads validated
|
|
570
|
+
- [ ] HTTPS enforced
|
|
571
|
+
- [ ] Secrets in environment variables
|
|
572
|
+
|
|
573
|
+
### OWASP Top 10 Awareness
|
|
574
|
+
|
|
575
|
+
1. **Injection**: Use ORMs, parameterized queries
|
|
576
|
+
2. **Broken Authentication**: Secure password hashing, JWT handling
|
|
577
|
+
3. **Sensitive Data Exposure**: Encrypt data, use HTTPS
|
|
578
|
+
4. **XML External Entities**: Disable XML processing
|
|
579
|
+
5. **Broken Access Control**: Role-based access, validate permissions
|
|
580
|
+
6. **Security Misconfiguration**: Secure defaults, security headers
|
|
581
|
+
7. **Cross-Site Scripting (XSS)**: Sanitize output
|
|
582
|
+
8. **Insecure Deserialization**: Validate input, use safe parsers
|
|
583
|
+
9. **Vulnerable Components**: Regular dependency audits
|
|
584
|
+
10. **Insufficient Logging**: Log security events, protect logs
|
|
585
|
+
|
|
586
|
+
## Conclusion
|
|
587
|
+
|
|
588
|
+
Security in Python requires:
|
|
589
|
+
|
|
590
|
+
1. **Validation**: Strict input validation with Pydantic
|
|
591
|
+
2. **Authentication**: Secure password hashing, JWT handling
|
|
592
|
+
3. **Authorization**: Role-based access control
|
|
593
|
+
4. **Protection**: SQL injection, XSS prevention
|
|
594
|
+
5. **Monitoring**: Secure logging, regular audits
|
|
595
|
+
|
|
596
|
+
**Golden rule**: NEVER trust user input. Always validate, sanitize, and secure.
|