@synapta/skills 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +11 -4
- package/package.json +3 -4
- package/skills/ATTRIBUTION.md +80 -0
- package/skills/accessibility-audit/SKILL.md +325 -0
- package/skills/accessibility-audit/reference/wcag-checklist.md +103 -0
- package/skills/apns-notifier/SKILL.md +86 -0
- package/skills/approval-policy-enforcer/SKILL.md +66 -0
- package/skills/apps-sdk-builder/LICENSE.txt +201 -0
- package/skills/apps-sdk-builder/SKILL.md +328 -0
- package/skills/apps-sdk-builder/agents/openai.yaml +13 -0
- package/skills/apps-sdk-builder/references/app-archetypes.md +132 -0
- package/skills/apps-sdk-builder/references/apps-sdk-docs-workflow.md +135 -0
- package/skills/apps-sdk-builder/references/interactive-state-sync-patterns.md +113 -0
- package/skills/apps-sdk-builder/references/repo-contract-and-validation.md +93 -0
- package/skills/apps-sdk-builder/references/search-fetch-standard.md +67 -0
- package/skills/apps-sdk-builder/references/upstream-example-workflow.md +79 -0
- package/skills/apps-sdk-builder/references/window-openai-patterns.md +79 -0
- package/skills/apps-sdk-builder/scripts/scaffold_node_ext_apps.mjs +606 -0
- package/skills/architecture-selector/SKILL.md +64 -0
- package/skills/backlog-planner/SKILL.md +68 -0
- package/skills/carplay-entitlement-checker/SKILL.md +82 -0
- package/skills/concept-discovery/SKILL.md +517 -0
- package/skills/concept-discovery/assets/sample-analysis.json +81 -0
- package/skills/concept-discovery/expected_outputs/sample-enum-dictionary.md +25 -0
- package/skills/concept-discovery/expected_outputs/sample-page-user-list.md +83 -0
- package/skills/concept-discovery/expected_outputs/sample-prd-readme.md +43 -0
- package/skills/concept-discovery/references/framework-patterns.md +228 -0
- package/skills/concept-discovery/references/prd-quality-checklist.md +65 -0
- package/skills/concept-discovery/scripts/codebase_analyzer.py +732 -0
- package/skills/concept-discovery/scripts/prd_scaffolder.py +435 -0
- package/skills/dast-zap/SKILL.md +453 -0
- package/skills/dast-zap/assets/.gitkeep +9 -0
- package/skills/dast-zap/assets/github_action.yml +207 -0
- package/skills/dast-zap/assets/gitlab_ci.yml +226 -0
- package/skills/dast-zap/assets/zap_automation.yaml +196 -0
- package/skills/dast-zap/assets/zap_context.xml +192 -0
- package/skills/dast-zap/references/EXAMPLE.md +40 -0
- package/skills/dast-zap/references/api_testing_guide.md +475 -0
- package/skills/dast-zap/references/authentication_guide.md +431 -0
- package/skills/dast-zap/references/false_positive_handling.md +427 -0
- package/skills/dast-zap/references/owasp_mapping.md +255 -0
- package/skills/dep-sbom-scan/SKILL.md +466 -0
- package/skills/deploy-cloudflare/SKILL.md +930 -0
- package/skills/deploy-docker/SKILL.md +55 -0
- package/skills/deploy-fly/SKILL.md +228 -0
- package/skills/deploy-k8s/SKILL.md +108 -0
- package/skills/deploy-k8s/assets/logo.png +0 -0
- package/skills/deploy-k8s/docs/README.md +29 -0
- package/skills/deploy-k8s/docs/SUMMARY.md +56 -0
- package/skills/deploy-k8s/docs/advanced/token-efficiency.md +61 -0
- package/skills/deploy-k8s/docs/architecture/multi-tenancy.md +96 -0
- package/skills/deploy-k8s/docs/architecture/storage-and-state.md +102 -0
- package/skills/deploy-k8s/docs/architecture/workload-patterns.md +87 -0
- package/skills/deploy-k8s/docs/book.json +16 -0
- package/skills/deploy-k8s/docs/community/changelog.md +34 -0
- package/skills/deploy-k8s/docs/community/contributing.md +67 -0
- package/skills/deploy-k8s/docs/core-concepts/failure-modes.md +153 -0
- package/skills/deploy-k8s/docs/core-concepts/philosophy.md +83 -0
- package/skills/deploy-k8s/docs/core-concepts/workflow.md +124 -0
- package/skills/deploy-k8s/docs/examples/bad-patterns.md +47 -0
- package/skills/deploy-k8s/docs/examples/do-dont-checklist.md +37 -0
- package/skills/deploy-k8s/docs/examples/good-patterns.md +49 -0
- package/skills/deploy-k8s/docs/failure-modes/api-drift.md +104 -0
- package/skills/deploy-k8s/docs/failure-modes/fragile-rollouts.md +99 -0
- package/skills/deploy-k8s/docs/failure-modes/insecure-workload-defaults.md +80 -0
- package/skills/deploy-k8s/docs/failure-modes/network-exposure.md +98 -0
- package/skills/deploy-k8s/docs/failure-modes/privilege-sprawl.md +91 -0
- package/skills/deploy-k8s/docs/failure-modes/resource-starvation.md +85 -0
- package/skills/deploy-k8s/docs/getting-started/installation.md +152 -0
- package/skills/deploy-k8s/docs/getting-started/quick-start.md +115 -0
- package/skills/deploy-k8s/docs/guides/helm-patterns.md +71 -0
- package/skills/deploy-k8s/docs/guides/kustomize-patterns.md +65 -0
- package/skills/deploy-k8s/docs/guides/observability.md +67 -0
- package/skills/deploy-k8s/docs/guides/security-hardening.md +59 -0
- package/skills/deploy-k8s/docs/guides/validation-and-policy.md +66 -0
- package/skills/deploy-k8s/docs/integrations/mcp-integration.md +52 -0
- package/skills/deploy-k8s/docs/package-lock.json +2892 -0
- package/skills/deploy-k8s/docs/package.json +13 -0
- package/skills/deploy-k8s/references/api-drift.md +298 -0
- package/skills/deploy-k8s/references/conditional/aks-patterns.md +70 -0
- package/skills/deploy-k8s/references/conditional/eks-patterns.md +79 -0
- package/skills/deploy-k8s/references/conditional/gitops-controllers.md +71 -0
- package/skills/deploy-k8s/references/conditional/gke-patterns.md +74 -0
- package/skills/deploy-k8s/references/conditional/observability-stacks.md +80 -0
- package/skills/deploy-k8s/references/conditional/openshift-patterns.md +67 -0
- package/skills/deploy-k8s/references/daemonset-operator-patterns.md +155 -0
- package/skills/deploy-k8s/references/deployment-patterns.md +146 -0
- package/skills/deploy-k8s/references/do-dont-patterns.md +87 -0
- package/skills/deploy-k8s/references/examples-bad.md +282 -0
- package/skills/deploy-k8s/references/examples-good.md +440 -0
- package/skills/deploy-k8s/references/fragile-rollouts.md +303 -0
- package/skills/deploy-k8s/references/helm-patterns.md +203 -0
- package/skills/deploy-k8s/references/insecure-workload-defaults.md +300 -0
- package/skills/deploy-k8s/references/job-patterns.md +120 -0
- package/skills/deploy-k8s/references/kustomize-patterns.md +239 -0
- package/skills/deploy-k8s/references/multi-tenancy.md +343 -0
- package/skills/deploy-k8s/references/network-exposure.md +481 -0
- package/skills/deploy-k8s/references/observability.md +302 -0
- package/skills/deploy-k8s/references/privilege-sprawl.md +273 -0
- package/skills/deploy-k8s/references/resource-starvation.md +374 -0
- package/skills/deploy-k8s/references/security-hardening.md +209 -0
- package/skills/deploy-k8s/references/stateful-patterns.md +130 -0
- package/skills/deploy-k8s/references/storage-and-state.md +330 -0
- package/skills/deploy-k8s/references/validation-and-policy.md +242 -0
- package/skills/deploy-railway/SKILL.md +235 -0
- package/skills/deploy-railway/references/analyze-db-mongo.md +84 -0
- package/skills/deploy-railway/references/analyze-db-mysql.md +254 -0
- package/skills/deploy-railway/references/analyze-db-postgres.md +479 -0
- package/skills/deploy-railway/references/analyze-db-redis.md +208 -0
- package/skills/deploy-railway/references/analyze-db.md +344 -0
- package/skills/deploy-railway/references/configure.md +309 -0
- package/skills/deploy-railway/references/deploy.md +195 -0
- package/skills/deploy-railway/references/operate.md +214 -0
- package/skills/deploy-railway/references/request.md +248 -0
- package/skills/deploy-railway/references/setup.md +312 -0
- package/skills/deploy-railway/scripts/analyze-mongo.py +1549 -0
- package/skills/deploy-railway/scripts/analyze-mysql.py +1195 -0
- package/skills/deploy-railway/scripts/analyze-postgres.py +3058 -0
- package/skills/deploy-railway/scripts/analyze-redis.py +1090 -0
- package/skills/deploy-railway/scripts/dal.py +671 -0
- package/skills/deploy-railway/scripts/enable-pg-stats.py +170 -0
- package/skills/deploy-railway/scripts/pg-extensions.py +370 -0
- package/skills/deploy-railway/scripts/railway-api.sh +52 -0
- package/skills/deploy-ssh/SKILL.md +91 -0
- package/skills/deploy-vercel/SKILL.md +304 -0
- package/skills/deploy-vercel/resources/deploy-codex.sh +301 -0
- package/skills/deploy-vercel/resources/deploy.sh +301 -0
- package/skills/docs-runbooks/SKILL.md +399 -0
- package/skills/drive-status-renderer/SKILL.md +62 -0
- package/skills/iac-scan/SKILL.md +680 -0
- package/skills/iac-scan/assets/.gitkeep +9 -0
- package/skills/iac-scan/assets/checkov_config.yaml +94 -0
- package/skills/iac-scan/assets/github_actions.yml +199 -0
- package/skills/iac-scan/assets/gitlab_ci.yml +218 -0
- package/skills/iac-scan/assets/pre_commit_config.yaml +92 -0
- package/skills/iac-scan/references/EXAMPLE.md +40 -0
- package/skills/iac-scan/references/compliance_mapping.md +237 -0
- package/skills/iac-scan/references/custom_policies.md +460 -0
- package/skills/iac-scan/references/suppression_guide.md +431 -0
- package/skills/incident-briefing/SKILL.md +66 -0
- package/skills/incident-triage/SKILL.md +481 -0
- package/{LICENSE → skills/mcp-builder/LICENSE.txt} +15 -14
- package/skills/mcp-builder/SKILL.md +244 -0
- package/skills/mcp-builder/reference/evaluation.md +602 -0
- package/skills/mcp-builder/reference/mcp_best_practices.md +249 -0
- package/skills/mcp-builder/reference/node_mcp_server.md +970 -0
- package/skills/mcp-builder/reference/python_mcp_server.md +719 -0
- package/skills/mcp-builder/scripts/connections.py +151 -0
- package/skills/mcp-builder/scripts/evaluation.py +373 -0
- package/skills/mcp-builder/scripts/example_evaluation.xml +22 -0
- package/skills/mcp-builder/scripts/requirements.txt +2 -0
- package/skills/mobile-pairing/SKILL.md +52 -0
- package/skills/ops-sre/SKILL.md +297 -0
- package/skills/playwright-qa/LICENSE.txt +201 -0
- package/skills/playwright-qa/NOTICE.txt +14 -0
- package/skills/playwright-qa/SKILL.md +156 -0
- package/skills/playwright-qa/agents/openai.yaml +6 -0
- package/skills/playwright-qa/assets/playwright-small.svg +3 -0
- package/skills/playwright-qa/assets/playwright.png +0 -0
- package/skills/playwright-qa/references/cli.md +116 -0
- package/skills/playwright-qa/references/workflows.md +95 -0
- package/skills/playwright-qa/scripts/playwright_cli.sh +25 -0
- package/skills/release-publish/SKILL.md +85 -0
- package/skills/repo-bootstrap/SKILL.md +92 -0
- package/skills/repo-bootstrap/assets/example-workflows/validate-agents.yml +89 -0
- package/skills/repo-bootstrap/assets/root-thin.md +141 -0
- package/skills/repo-bootstrap/assets/root-verbose.md +149 -0
- package/skills/repo-bootstrap/assets/scoped/backend-go.md +107 -0
- package/skills/repo-bootstrap/assets/scoped/backend-php.md +94 -0
- package/skills/repo-bootstrap/assets/scoped/backend-python.md +84 -0
- package/skills/repo-bootstrap/assets/scoped/backend-typescript.md +89 -0
- package/skills/repo-bootstrap/assets/scoped/claude-code-skill.md +101 -0
- package/skills/repo-bootstrap/assets/scoped/cli.md +83 -0
- package/skills/repo-bootstrap/assets/scoped/concourse.md +196 -0
- package/skills/repo-bootstrap/assets/scoped/ddev.md +68 -0
- package/skills/repo-bootstrap/assets/scoped/docker.md +160 -0
- package/skills/repo-bootstrap/assets/scoped/documentation.md +98 -0
- package/skills/repo-bootstrap/assets/scoped/examples.md +96 -0
- package/skills/repo-bootstrap/assets/scoped/frontend-typescript.md +88 -0
- package/skills/repo-bootstrap/assets/scoped/github-actions.md +174 -0
- package/skills/repo-bootstrap/assets/scoped/gitlab-ci.md +174 -0
- package/skills/repo-bootstrap/assets/scoped/oro-bundle.md +209 -0
- package/skills/repo-bootstrap/assets/scoped/oro-project.md +170 -0
- package/skills/repo-bootstrap/assets/scoped/python-modern.md +170 -0
- package/skills/repo-bootstrap/assets/scoped/resources.md +96 -0
- package/skills/repo-bootstrap/assets/scoped/skill-repo.md +139 -0
- package/skills/repo-bootstrap/assets/scoped/symfony.md +168 -0
- package/skills/repo-bootstrap/assets/scoped/testing.md +87 -0
- package/skills/repo-bootstrap/assets/scoped/typo3-docs.md +103 -0
- package/skills/repo-bootstrap/assets/scoped/typo3-extension.md +133 -0
- package/skills/repo-bootstrap/assets/scoped/typo3-project.md +137 -0
- package/skills/repo-bootstrap/assets/scoped/typo3-testing.md +80 -0
- package/skills/repo-bootstrap/checkpoints.yaml +279 -0
- package/skills/repo-bootstrap/evals/evals.json +385 -0
- package/skills/repo-bootstrap/references/ai-contribution-guidelines.md +63 -0
- package/skills/repo-bootstrap/references/ai-tool-compatibility.md +223 -0
- package/skills/repo-bootstrap/references/directory-coverage.md +82 -0
- package/skills/repo-bootstrap/references/examples/coding-agent-cli/AGENTS.md +70 -0
- package/skills/repo-bootstrap/references/examples/coding-agent-cli/go.mod +3 -0
- package/skills/repo-bootstrap/references/examples/coding-agent-cli/scripts-AGENTS.md +389 -0
- package/skills/repo-bootstrap/references/examples/express-api-ts/.env.example +13 -0
- package/skills/repo-bootstrap/references/examples/express-api-ts/AGENTS.md +91 -0
- package/skills/repo-bootstrap/references/examples/express-api-ts/package.json +33 -0
- package/skills/repo-bootstrap/references/examples/express-api-ts/pnpm-lock.yaml +3 -0
- package/skills/repo-bootstrap/references/examples/express-api-ts/src/AGENTS.md +91 -0
- package/skills/repo-bootstrap/references/examples/express-api-ts/src/config.ts +28 -0
- package/skills/repo-bootstrap/references/examples/express-api-ts/src/controllers/userController.ts +74 -0
- package/skills/repo-bootstrap/references/examples/express-api-ts/src/index.ts +26 -0
- package/skills/repo-bootstrap/references/examples/express-api-ts/src/middleware/errorHandler.ts +45 -0
- package/skills/repo-bootstrap/references/examples/express-api-ts/src/middleware/requestLogger.ts +18 -0
- package/skills/repo-bootstrap/references/examples/express-api-ts/src/routes/health.ts +18 -0
- package/skills/repo-bootstrap/references/examples/express-api-ts/src/routes/users.ts +13 -0
- package/skills/repo-bootstrap/references/examples/express-api-ts/src/utils/errors.ts +40 -0
- package/skills/repo-bootstrap/references/examples/express-api-ts/src/utils/logger.ts +14 -0
- package/skills/repo-bootstrap/references/examples/express-api-ts/tsconfig.json +24 -0
- package/skills/repo-bootstrap/references/examples/fastapi-app/.env.example +19 -0
- package/skills/repo-bootstrap/references/examples/fastapi-app/AGENTS.md +92 -0
- package/skills/repo-bootstrap/references/examples/fastapi-app/pyproject.toml +88 -0
- package/skills/repo-bootstrap/references/examples/fastapi-app/src/AGENTS.md +85 -0
- package/skills/repo-bootstrap/references/examples/fastapi-app/src/__init__.py +3 -0
- package/skills/repo-bootstrap/references/examples/fastapi-app/src/config.py +49 -0
- package/skills/repo-bootstrap/references/examples/fastapi-app/src/main.py +66 -0
- package/skills/repo-bootstrap/references/examples/fastapi-app/src/models/__init__.py +13 -0
- package/skills/repo-bootstrap/references/examples/fastapi-app/src/models/item.py +43 -0
- package/skills/repo-bootstrap/references/examples/fastapi-app/src/models/user.py +40 -0
- package/skills/repo-bootstrap/references/examples/fastapi-app/src/routes/__init__.py +5 -0
- package/skills/repo-bootstrap/references/examples/fastapi-app/src/routes/health.py +20 -0
- package/skills/repo-bootstrap/references/examples/fastapi-app/src/routes/items.py +61 -0
- package/skills/repo-bootstrap/references/examples/fastapi-app/src/routes/users.py +55 -0
- package/skills/repo-bootstrap/references/examples/fastapi-app/src/services/__init__.py +6 -0
- package/skills/repo-bootstrap/references/examples/fastapi-app/src/services/item_service.py +77 -0
- package/skills/repo-bootstrap/references/examples/fastapi-app/src/services/user_service.py +69 -0
- package/skills/repo-bootstrap/references/examples/fastapi-app/uv.lock +4 -0
- package/skills/repo-bootstrap/references/examples/go-api-with-react-admin/.scopes +3 -0
- package/skills/repo-bootstrap/references/examples/go-api-with-react-admin/AGENTS.md +86 -0
- package/skills/repo-bootstrap/references/examples/go-api-with-react-admin/admin/package.json +20 -0
- package/skills/repo-bootstrap/references/examples/go-api-with-react-admin/admin/src/App.tsx +5 -0
- package/skills/repo-bootstrap/references/examples/go-api-with-react-admin/cmd/api/main.go +7 -0
- package/skills/repo-bootstrap/references/examples/go-api-with-react-admin/go.mod +2 -0
- package/skills/repo-bootstrap/references/examples/go-api-with-react-admin/main.go +7 -0
- package/skills/repo-bootstrap/references/examples/go-with-internal-web-tsx/.scopes +3 -0
- package/skills/repo-bootstrap/references/examples/go-with-internal-web-tsx/AGENTS.md +89 -0
- package/skills/repo-bootstrap/references/examples/go-with-internal-web-tsx/go.mod +2 -0
- package/skills/repo-bootstrap/references/examples/go-with-internal-web-tsx/internal/web/AGENTS.md +90 -0
- package/skills/repo-bootstrap/references/examples/go-with-internal-web-tsx/internal/web/package.json +17 -0
- package/skills/repo-bootstrap/references/examples/go-with-internal-web-tsx/internal/web/src/App.tsx +1 -0
- package/skills/repo-bootstrap/references/examples/go-with-internal-web-tsx/internal/web/src/Button.tsx +1 -0
- package/skills/repo-bootstrap/references/examples/go-with-internal-web-tsx/internal/web/src/Footer.tsx +1 -0
- package/skills/repo-bootstrap/references/examples/go-with-internal-web-tsx/internal/web/src/Header.tsx +1 -0
- package/skills/repo-bootstrap/references/examples/go-with-internal-web-tsx/internal/web/src/Sidebar.tsx +1 -0
- package/skills/repo-bootstrap/references/examples/go-with-internal-web-tsx/main.go +7 -0
- package/skills/repo-bootstrap/references/examples/go-with-internal-web-tsx/package-lock.json +0 -0
- package/skills/repo-bootstrap/references/examples/go-with-internal-web-tsx/package.json +12 -0
- package/skills/repo-bootstrap/references/examples/ldap-selfservice/AGENTS.md +70 -0
- package/skills/repo-bootstrap/references/examples/ldap-selfservice/go.mod +3 -0
- package/skills/repo-bootstrap/references/examples/ldap-selfservice/internal-AGENTS.md +371 -0
- package/skills/repo-bootstrap/references/examples/ldap-selfservice/internal-web-AGENTS.md +448 -0
- package/skills/repo-bootstrap/references/examples/php-with-frontend/.scopes +3 -0
- package/skills/repo-bootstrap/references/examples/php-with-frontend/AGENTS.md +91 -0
- package/skills/repo-bootstrap/references/examples/php-with-frontend/composer.json +8 -0
- package/skills/repo-bootstrap/references/examples/php-with-frontend/package.json +15 -0
- package/skills/repo-bootstrap/references/examples/php-with-frontend/pnpm-lock.yaml +0 -0
- package/skills/repo-bootstrap/references/examples/php-with-frontend/src/Controller.php +3 -0
- package/skills/repo-bootstrap/references/examples/php-with-frontend/web/AGENTS.md +92 -0
- package/skills/repo-bootstrap/references/examples/php-with-frontend/web/package.json +26 -0
- package/skills/repo-bootstrap/references/examples/php-with-frontend/web/src/App.tsx +3 -0
- package/skills/repo-bootstrap/references/examples/php-with-frontend/web/src/Button.tsx +10 -0
- package/skills/repo-bootstrap/references/examples/php-with-frontend/web/src/Footer.tsx +9 -0
- package/skills/repo-bootstrap/references/examples/php-with-frontend/web/src/Header.tsx +9 -0
- package/skills/repo-bootstrap/references/examples/php-with-frontend/web/src/main.tsx +3 -0
- package/skills/repo-bootstrap/references/examples/php-with-frontend/web/tsconfig.json +13 -0
- package/skills/repo-bootstrap/references/examples/pnpm-workspace/AGENTS.md +75 -0
- package/skills/repo-bootstrap/references/examples/pnpm-workspace/package.json +7 -0
- package/skills/repo-bootstrap/references/examples/pnpm-workspace/packages/web/package.json +11 -0
- package/skills/repo-bootstrap/references/examples/pnpm-workspace/packages/web/src/index.ts +11 -0
- package/skills/repo-bootstrap/references/examples/pnpm-workspace/pnpm-lock.yaml +42 -0
- package/skills/repo-bootstrap/references/examples/pnpm-workspace/pnpm-workspace.yaml +2 -0
- package/skills/repo-bootstrap/references/examples/simple-ldap-go/AGENTS.md +70 -0
- package/skills/repo-bootstrap/references/examples/simple-ldap-go/examples-AGENTS.md +45 -0
- package/skills/repo-bootstrap/references/examples/simple-ldap-go/go.mod +3 -0
- package/skills/repo-bootstrap/references/examples/t3x-rte-ckeditor-image/AGENTS.md +70 -0
- package/skills/repo-bootstrap/references/examples/t3x-rte-ckeditor-image/Classes-AGENTS.md +392 -0
- package/skills/repo-bootstrap/references/examples/t3x-rte-ckeditor-image/composer.json +8 -0
- package/skills/repo-bootstrap/references/feedback-memory-schema.md +135 -0
- package/skills/repo-bootstrap/references/git-hooks-setup.md +79 -0
- package/skills/repo-bootstrap/references/output-structure.md +124 -0
- package/skills/repo-bootstrap/references/scripts-guide.md +175 -0
- package/skills/repo-bootstrap/references/verification-guide.md +137 -0
- package/skills/repo-bootstrap/scripts/analyze-git-history.sh +315 -0
- package/skills/repo-bootstrap/scripts/check-freshness.sh +230 -0
- package/skills/repo-bootstrap/scripts/detect-golden-samples.sh +161 -0
- package/skills/repo-bootstrap/scripts/detect-heuristics.sh +93 -0
- package/skills/repo-bootstrap/scripts/detect-project.sh +486 -0
- package/skills/repo-bootstrap/scripts/detect-scopes.sh +330 -0
- package/skills/repo-bootstrap/scripts/detect-utilities.sh +133 -0
- package/skills/repo-bootstrap/scripts/extract-adrs.sh +194 -0
- package/skills/repo-bootstrap/scripts/extract-agent-configs.sh +331 -0
- package/skills/repo-bootstrap/scripts/extract-architecture-rules.sh +522 -0
- package/skills/repo-bootstrap/scripts/extract-ci-commands.sh +385 -0
- package/skills/repo-bootstrap/scripts/extract-ci-rules.sh +384 -0
- package/skills/repo-bootstrap/scripts/extract-commands.sh +358 -0
- package/skills/repo-bootstrap/scripts/extract-documentation.sh +308 -0
- package/skills/repo-bootstrap/scripts/extract-github-rulesets.sh +96 -0
- package/skills/repo-bootstrap/scripts/extract-github-settings.sh +88 -0
- package/skills/repo-bootstrap/scripts/extract-ide-settings.sh +228 -0
- package/skills/repo-bootstrap/scripts/extract-platform-files.sh +290 -0
- package/skills/repo-bootstrap/scripts/extract-quality-configs.sh +442 -0
- package/skills/repo-bootstrap/scripts/generate-agents.sh +2424 -0
- package/skills/repo-bootstrap/scripts/generate-file-map.sh +153 -0
- package/skills/repo-bootstrap/scripts/lib/config-root.sh +211 -0
- package/skills/repo-bootstrap/scripts/lib/summary.sh +244 -0
- package/skills/repo-bootstrap/scripts/lib/template.sh +397 -0
- package/skills/repo-bootstrap/scripts/validate-structure.sh +324 -0
- package/skills/repo-bootstrap/scripts/verify-commands.sh +615 -0
- package/skills/repo-bootstrap/scripts/verify-content.sh +302 -0
- package/skills/schema-api-contracts/SKILL.md +56 -0
- package/skills/secret-hygiene/SKILL.md +511 -0
- package/skills/secret-hygiene/assets/.gitkeep +9 -0
- package/skills/secret-hygiene/assets/config-balanced.toml +81 -0
- package/skills/secret-hygiene/assets/config-custom.toml +178 -0
- package/skills/secret-hygiene/assets/config-strict.toml +48 -0
- package/skills/secret-hygiene/assets/github-action.yml +181 -0
- package/skills/secret-hygiene/assets/gitlab-ci.yml +257 -0
- package/skills/secret-hygiene/assets/precommit-config.yaml +70 -0
- package/skills/secret-hygiene/references/EXAMPLE.md +40 -0
- package/skills/secret-hygiene/references/compliance_mapping.md +538 -0
- package/skills/secret-hygiene/references/detection_rules.md +276 -0
- package/skills/secret-hygiene/references/false_positives.md +598 -0
- package/skills/secret-hygiene/references/remediation_guide.md +530 -0
- package/skills/stack-selector/SKILL.md +56 -0
- package/skills/telegram-control/SKILL.md +110 -0
- package/skills/telegram-control/references/architecture.md +184 -0
- package/skills/telegram-control/references/convex.md +173 -0
- package/skills/telegram-control/references/error_handling.md +212 -0
- package/skills/telegram-control/references/initial_setup.md +165 -0
- package/skills/telegram-control/references/telegram_api.md +156 -0
- package/skills/telegram-control/scripts/cancel_message.ts +53 -0
- package/skills/telegram-control/scripts/list_scheduled.ts +103 -0
- package/skills/telegram-control/scripts/logger.ts +121 -0
- package/skills/telegram-control/scripts/proxy-util.ts +11 -0
- package/skills/telegram-control/scripts/schedule_message.ts +216 -0
- package/skills/telegram-control/scripts/send_message.ts +115 -0
- package/skills/telegram-control/scripts/setup.ts +185 -0
- package/skills/telegram-control/scripts/types.ts +75 -0
- package/skills/telegram-control/scripts/view_history.ts +74 -0
- package/skills/test-strategy/SKILL.md +352 -0
- package/skills/threat-model/SKILL.md +303 -0
- package/skills/threat-model/examples/example-output.md +196 -0
- package/skills/threat-model/template.md +96 -0
- package/skills/ts-lint/SKILL.md +80 -0
- package/skills/ui-flow/SKILL.md +668 -0
- package/skills/voice-command-router/SKILL.md +51 -0
- package/skills/widget-live-activity-sync/SKILL.md +66 -0
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
<!-- Managed by agent: keep sections and order; edit content, not structure. Last updated: {{TIMESTAMP}} -->
|
|
2
|
+
|
|
3
|
+
# AGENTS.md — {{SCOPE_NAME}}
|
|
4
|
+
|
|
5
|
+
<!-- AGENTS-GENERATED:START overview -->
|
|
6
|
+
## Overview
|
|
7
|
+
{{SCOPE_DESCRIPTION}}
|
|
8
|
+
<!-- AGENTS-GENERATED:END overview -->
|
|
9
|
+
|
|
10
|
+
<!-- AGENTS-GENERATED:START filemap -->
|
|
11
|
+
## Key Files
|
|
12
|
+
{{SCOPE_FILE_MAP}}
|
|
13
|
+
<!-- AGENTS-GENERATED:END filemap -->
|
|
14
|
+
|
|
15
|
+
<!-- AGENTS-GENERATED:START golden-samples -->
|
|
16
|
+
## Golden Samples (follow these patterns)
|
|
17
|
+
{{SCOPE_GOLDEN_SAMPLES}}
|
|
18
|
+
<!-- AGENTS-GENERATED:END golden-samples -->
|
|
19
|
+
|
|
20
|
+
<!-- AGENTS-GENERATED:START setup -->
|
|
21
|
+
## Setup & environment
|
|
22
|
+
{{SETUP_INSTRUCTIONS}}
|
|
23
|
+
{{CLI_FRAMEWORK_LINE}}
|
|
24
|
+
{{BUILD_OUTPUT_LINE}}
|
|
25
|
+
<!-- AGENTS-GENERATED:END setup -->
|
|
26
|
+
|
|
27
|
+
<!-- AGENTS-GENERATED:START commands -->
|
|
28
|
+
## Build & tests
|
|
29
|
+
{{BUILD_LINE}}
|
|
30
|
+
{{RUN_LINE}}
|
|
31
|
+
{{TEST_LINE}}
|
|
32
|
+
{{LINT_LINE}}
|
|
33
|
+
<!-- AGENTS-GENERATED:END commands -->
|
|
34
|
+
|
|
35
|
+
<!-- AGENTS-GENERATED:START code-style -->
|
|
36
|
+
## Code style & conventions
|
|
37
|
+
{{CLI_FRAMEWORK_CONVENTION_LINE}}
|
|
38
|
+
- Provide `--help` for all commands and subcommands
|
|
39
|
+
- Use `--version` to display version information
|
|
40
|
+
- Exit codes: 0 = success, 1 = general error, 2 = usage error
|
|
41
|
+
- Output: structured (JSON) for scripts, human-readable for interactive
|
|
42
|
+
- Errors: write to stderr, not stdout
|
|
43
|
+
- Progress: show for long-running operations
|
|
44
|
+
- Interactive prompts: support non-interactive mode with flags
|
|
45
|
+
<!-- AGENTS-GENERATED:END code-style -->
|
|
46
|
+
|
|
47
|
+
<!-- AGENTS-GENERATED:START security -->
|
|
48
|
+
## Security & safety
|
|
49
|
+
- Validate all file paths and prevent directory traversal
|
|
50
|
+
- Never execute user-provided code without explicit confirmation
|
|
51
|
+
- Sensitive data: never log or display in plain text
|
|
52
|
+
- Config files: validate schema and permissions
|
|
53
|
+
- Network operations: timeout and retry with backoff
|
|
54
|
+
<!-- AGENTS-GENERATED:END security -->
|
|
55
|
+
|
|
56
|
+
<!-- AGENTS-GENERATED:START checklist -->
|
|
57
|
+
## PR/commit checklist
|
|
58
|
+
- [ ] `--help` text is clear and accurate
|
|
59
|
+
- [ ] `--version` displays correct version
|
|
60
|
+
- [ ] Exit codes are correct
|
|
61
|
+
- [ ] Errors go to stderr
|
|
62
|
+
- [ ] Long operations show progress
|
|
63
|
+
- [ ] Works in non-interactive mode
|
|
64
|
+
- [ ] Tests cover main workflows
|
|
65
|
+
<!-- AGENTS-GENERATED:END checklist -->
|
|
66
|
+
|
|
67
|
+
<!-- AGENTS-GENERATED:START examples -->
|
|
68
|
+
## Patterns to Follow
|
|
69
|
+
> **Prefer looking at real code in this repo over generic examples.**
|
|
70
|
+
> See **Golden Samples** section above for files that demonstrate correct patterns.
|
|
71
|
+
<!-- AGENTS-GENERATED:END examples -->
|
|
72
|
+
|
|
73
|
+
<!-- AGENTS-GENERATED:START help -->
|
|
74
|
+
## When stuck
|
|
75
|
+
{{CLI_FRAMEWORK_DOCS_LINE}}
|
|
76
|
+
- Check existing commands for patterns
|
|
77
|
+
- Test with `--help` to ensure clarity
|
|
78
|
+
- Check root AGENTS.md for project conventions
|
|
79
|
+
<!-- AGENTS-GENERATED:END help -->
|
|
80
|
+
|
|
81
|
+
## House Rules (project-specific)
|
|
82
|
+
<!-- This section is NOT auto-generated - add your project-specific rules here -->
|
|
83
|
+
{{HOUSE_RULES}}
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
<!-- Managed by agent: keep sections and order; edit content, not structure. Last updated: {{TIMESTAMP}} -->
|
|
2
|
+
|
|
3
|
+
# AGENTS.md — {{SCOPE_NAME}}
|
|
4
|
+
|
|
5
|
+
<!-- AGENTS-GENERATED:START overview -->
|
|
6
|
+
## Overview
|
|
7
|
+
{{SCOPE_DESCRIPTION}}
|
|
8
|
+
<!-- AGENTS-GENERATED:END overview -->
|
|
9
|
+
|
|
10
|
+
<!-- AGENTS-GENERATED:START filemap -->
|
|
11
|
+
## Key Files
|
|
12
|
+
{{SCOPE_FILE_MAP}}
|
|
13
|
+
<!-- AGENTS-GENERATED:END filemap -->
|
|
14
|
+
|
|
15
|
+
<!-- AGENTS-GENERATED:START golden-samples -->
|
|
16
|
+
## Golden Samples (follow these patterns)
|
|
17
|
+
{{SCOPE_GOLDEN_SAMPLES}}
|
|
18
|
+
<!-- AGENTS-GENERATED:END golden-samples -->
|
|
19
|
+
|
|
20
|
+
<!-- AGENTS-GENERATED:START setup -->
|
|
21
|
+
## Pipeline configuration
|
|
22
|
+
{{PIPELINE_COUNT_LINE}}
|
|
23
|
+
{{TASKS_LINE}}
|
|
24
|
+
<!-- AGENTS-GENERATED:END setup -->
|
|
25
|
+
|
|
26
|
+
<!-- AGENTS-GENERATED:START structure -->
|
|
27
|
+
## Directory structure
|
|
28
|
+
```
|
|
29
|
+
ci/
|
|
30
|
+
pipeline.yml → Main pipeline definition
|
|
31
|
+
pipeline-*.yml → Additional pipelines (optional)
|
|
32
|
+
tasks/
|
|
33
|
+
build.yml → Task definitions
|
|
34
|
+
test.yml
|
|
35
|
+
deploy.yml
|
|
36
|
+
scripts/
|
|
37
|
+
build.sh → Task scripts
|
|
38
|
+
test.sh
|
|
39
|
+
```
|
|
40
|
+
<!-- AGENTS-GENERATED:END structure -->
|
|
41
|
+
|
|
42
|
+
<!-- AGENTS-GENERATED:START code-style -->
|
|
43
|
+
## Pipeline conventions
|
|
44
|
+
- **Resources first**: Define all resources at top of pipeline
|
|
45
|
+
- **Jobs reference resources**: Use `get:` and `put:` for resource I/O
|
|
46
|
+
- **Tasks are reusable**: Define tasks in separate files under `ci/tasks/`
|
|
47
|
+
- **Params over hardcoding**: Use `((params))` for configuration
|
|
48
|
+
- **YAML anchors**: Use anchors for repeated configuration
|
|
49
|
+
|
|
50
|
+
### Naming conventions
|
|
51
|
+
| Type | Convention | Example |
|
|
52
|
+
|------|------------|---------|
|
|
53
|
+
| Resource | kebab-case | `source-code`, `docker-image` |
|
|
54
|
+
| Job | kebab-case with verb | `build-app`, `deploy-staging` |
|
|
55
|
+
| Task | kebab-case | `run-tests`, `push-image` |
|
|
56
|
+
| Param | snake_case | `docker_repo`, `deploy_env` |
|
|
57
|
+
<!-- AGENTS-GENERATED:END code-style -->
|
|
58
|
+
|
|
59
|
+
<!-- AGENTS-GENERATED:START patterns -->
|
|
60
|
+
## Common patterns
|
|
61
|
+
|
|
62
|
+
### Basic pipeline structure
|
|
63
|
+
```yaml
|
|
64
|
+
resources:
|
|
65
|
+
- name: source-code
|
|
66
|
+
type: git
|
|
67
|
+
source:
|
|
68
|
+
uri: ((git_uri))
|
|
69
|
+
branch: main
|
|
70
|
+
|
|
71
|
+
- name: app-image
|
|
72
|
+
type: registry-image
|
|
73
|
+
source:
|
|
74
|
+
repository: ((docker_repo))
|
|
75
|
+
|
|
76
|
+
jobs:
|
|
77
|
+
- name: build-and-test
|
|
78
|
+
plan:
|
|
79
|
+
- get: source-code
|
|
80
|
+
trigger: true
|
|
81
|
+
- task: run-tests
|
|
82
|
+
file: source-code/ci/tasks/test.yml
|
|
83
|
+
- task: build-image
|
|
84
|
+
privileged: true
|
|
85
|
+
config:
|
|
86
|
+
platform: linux
|
|
87
|
+
image_resource:
|
|
88
|
+
type: registry-image
|
|
89
|
+
source: {repository: concourse/oci-build-task}
|
|
90
|
+
inputs:
|
|
91
|
+
- name: source-code
|
|
92
|
+
outputs:
|
|
93
|
+
- name: image
|
|
94
|
+
run:
|
|
95
|
+
path: build
|
|
96
|
+
- put: app-image
|
|
97
|
+
params:
|
|
98
|
+
image: image/image.tar
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
### Task definition (ci/tasks/test.yml)
|
|
102
|
+
```yaml
|
|
103
|
+
platform: linux
|
|
104
|
+
|
|
105
|
+
image_resource:
|
|
106
|
+
type: registry-image
|
|
107
|
+
source:
|
|
108
|
+
repository: node
|
|
109
|
+
tag: "20"
|
|
110
|
+
|
|
111
|
+
inputs:
|
|
112
|
+
- name: source-code
|
|
113
|
+
|
|
114
|
+
run:
|
|
115
|
+
path: /bin/sh
|
|
116
|
+
args:
|
|
117
|
+
- -c
|
|
118
|
+
- |
|
|
119
|
+
cd source-code
|
|
120
|
+
npm ci
|
|
121
|
+
npm test
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
### Multi-environment deployment
|
|
125
|
+
```yaml
|
|
126
|
+
jobs:
|
|
127
|
+
- name: deploy-staging
|
|
128
|
+
plan:
|
|
129
|
+
- get: source-code
|
|
130
|
+
passed: [build-and-test]
|
|
131
|
+
trigger: true
|
|
132
|
+
- task: deploy
|
|
133
|
+
file: source-code/ci/tasks/deploy.yml
|
|
134
|
+
params:
|
|
135
|
+
ENVIRONMENT: staging
|
|
136
|
+
|
|
137
|
+
- name: deploy-production
|
|
138
|
+
plan:
|
|
139
|
+
- get: source-code
|
|
140
|
+
passed: [deploy-staging]
|
|
141
|
+
- task: deploy
|
|
142
|
+
file: source-code/ci/tasks/deploy.yml
|
|
143
|
+
params:
|
|
144
|
+
ENVIRONMENT: production
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
### Using across step for parallel deploys
|
|
148
|
+
```yaml
|
|
149
|
+
- across:
|
|
150
|
+
- var: region
|
|
151
|
+
values: [us-east-1, eu-west-1, ap-southeast-1]
|
|
152
|
+
task: deploy-region
|
|
153
|
+
file: ci/tasks/deploy.yml
|
|
154
|
+
params:
|
|
155
|
+
REGION: ((.:region))
|
|
156
|
+
```
|
|
157
|
+
<!-- AGENTS-GENERATED:END patterns -->
|
|
158
|
+
|
|
159
|
+
<!-- AGENTS-GENERATED:START security -->
|
|
160
|
+
## Security & safety
|
|
161
|
+
- Store secrets in **Vault** or **CredHub**, never in pipeline YAML
|
|
162
|
+
- Use **((params))** syntax for all sensitive values
|
|
163
|
+
- **Privileged containers** only for image building (oci-build-task)
|
|
164
|
+
- Pin **resource versions** for reproducibility
|
|
165
|
+
- Use **webhook tokens** with secrets for triggers
|
|
166
|
+
- Review **fly set-pipeline** changes before applying
|
|
167
|
+
<!-- AGENTS-GENERATED:END security -->
|
|
168
|
+
|
|
169
|
+
<!-- AGENTS-GENERATED:START checklist -->
|
|
170
|
+
## PR/commit checklist
|
|
171
|
+
- [ ] Pipeline validates: `fly validate-pipeline -c pipeline.yml`
|
|
172
|
+
- [ ] Resources have appropriate `check_every` intervals
|
|
173
|
+
- [ ] Tasks are defined in separate files (not inline)
|
|
174
|
+
- [ ] Secrets use ((param)) syntax, not hardcoded
|
|
175
|
+
- [ ] Jobs have appropriate `passed:` constraints
|
|
176
|
+
- [ ] Triggers are on correct resources only
|
|
177
|
+
<!-- AGENTS-GENERATED:END checklist -->
|
|
178
|
+
|
|
179
|
+
<!-- AGENTS-GENERATED:START examples -->
|
|
180
|
+
## Patterns to Follow
|
|
181
|
+
> **Prefer looking at real code in this repo over generic examples.**
|
|
182
|
+
> See **Golden Samples** section above for files that demonstrate correct patterns.
|
|
183
|
+
<!-- AGENTS-GENERATED:END examples -->
|
|
184
|
+
|
|
185
|
+
<!-- AGENTS-GENERATED:START help -->
|
|
186
|
+
## When stuck
|
|
187
|
+
- Concourse docs: https://concourse-ci.org/docs.html
|
|
188
|
+
- Resource types: https://resource-types.concourse-ci.org/
|
|
189
|
+
- Pipeline examples: https://concourse-ci.org/examples.html
|
|
190
|
+
- Validate locally: `fly validate-pipeline -c pipeline.yml`
|
|
191
|
+
- Check existing pipelines in this repo for patterns
|
|
192
|
+
<!-- AGENTS-GENERATED:END help -->
|
|
193
|
+
|
|
194
|
+
## House Rules (project-specific)
|
|
195
|
+
<!-- This section is NOT auto-generated - add your project-specific rules here -->
|
|
196
|
+
{{HOUSE_RULES}}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
<!-- Managed by agent: keep sections and order; edit content, not structure. Last updated: {{TIMESTAMP}} -->
|
|
2
|
+
|
|
3
|
+
# AGENTS.md — {{SCOPE_NAME}}
|
|
4
|
+
|
|
5
|
+
<!-- AGENTS-GENERATED:START overview -->
|
|
6
|
+
## Overview
|
|
7
|
+
DDEV local development environment configuration. **Use the `typo3-ddev` skill** for setup and multi-version testing.
|
|
8
|
+
<!-- AGENTS-GENERATED:END overview -->
|
|
9
|
+
|
|
10
|
+
<!-- AGENTS-GENERATED:START filemap -->
|
|
11
|
+
## Key Files
|
|
12
|
+
| File | Purpose |
|
|
13
|
+
|------|---------|
|
|
14
|
+
| `config.yaml` | Main DDEV configuration |
|
|
15
|
+
| `docker-compose.*.yaml` | Custom service overrides |
|
|
16
|
+
| `commands/host/` | Host-side custom commands |
|
|
17
|
+
| `commands/web/` | Container-side custom commands |
|
|
18
|
+
| `.env` | Environment variables |
|
|
19
|
+
<!-- AGENTS-GENERATED:END filemap -->
|
|
20
|
+
|
|
21
|
+
<!-- AGENTS-GENERATED:START commands -->
|
|
22
|
+
## Common Commands
|
|
23
|
+
| Task | Command |
|
|
24
|
+
|------|---------|
|
|
25
|
+
| Start | `ddev start` |
|
|
26
|
+
| Stop | `ddev stop` |
|
|
27
|
+
| SSH into container | `ddev ssh` |
|
|
28
|
+
| Run composer | `ddev composer ...` |
|
|
29
|
+
| Database export | `ddev export-db > dump.sql.gz` |
|
|
30
|
+
| Database import | `ddev import-db < dump.sql.gz` |
|
|
31
|
+
| View logs | `ddev logs` |
|
|
32
|
+
| Restart | `ddev restart` |
|
|
33
|
+
<!-- AGENTS-GENERATED:END commands -->
|
|
34
|
+
|
|
35
|
+
<!-- AGENTS-GENERATED:START patterns -->
|
|
36
|
+
## Key Patterns
|
|
37
|
+
- Use `ddev composer` instead of local composer
|
|
38
|
+
- Custom commands in `.ddev/commands/` for project-specific tasks
|
|
39
|
+
- Override services with `docker-compose.*.yaml` files
|
|
40
|
+
- Use `ddev describe` to see URLs and credentials
|
|
41
|
+
- Multi-version testing: change `php_version` in config.yaml
|
|
42
|
+
<!-- AGENTS-GENERATED:END patterns -->
|
|
43
|
+
|
|
44
|
+
<!-- AGENTS-GENERATED:START code-style -->
|
|
45
|
+
## Configuration Style
|
|
46
|
+
- Keep `config.yaml` minimal, use overrides for complexity
|
|
47
|
+
- Document custom commands with `## Description:` header
|
|
48
|
+
- Use `#ddev-generated` comment for files DDEV manages
|
|
49
|
+
- Pin addon versions for reproducibility
|
|
50
|
+
<!-- AGENTS-GENERATED:END code-style -->
|
|
51
|
+
|
|
52
|
+
<!-- AGENTS-GENERATED:START checklist -->
|
|
53
|
+
## PR Checklist
|
|
54
|
+
- [ ] `ddev start` works after changes
|
|
55
|
+
- [ ] Custom commands have descriptions
|
|
56
|
+
- [ ] No hardcoded paths or credentials
|
|
57
|
+
- [ ] Works on macOS, Linux, and Windows (WSL2)
|
|
58
|
+
<!-- AGENTS-GENERATED:END checklist -->
|
|
59
|
+
|
|
60
|
+
<!-- AGENTS-GENERATED:START skill-reference -->
|
|
61
|
+
## Skill Reference
|
|
62
|
+
> For DDEV setup, TYPO3 multi-version testing, and custom commands:
|
|
63
|
+
> **Invoke skill:** `typo3-ddev`
|
|
64
|
+
<!-- AGENTS-GENERATED:END skill-reference -->
|
|
65
|
+
|
|
66
|
+
## House Rules (project-specific)
|
|
67
|
+
<!-- This section is NOT auto-generated - add your project-specific rules here -->
|
|
68
|
+
{{HOUSE_RULES}}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
<!-- Managed by agent: keep sections and order; edit content, not structure. Last updated: {{TIMESTAMP}} -->
|
|
2
|
+
|
|
3
|
+
# AGENTS.md — {{SCOPE_NAME}}
|
|
4
|
+
|
|
5
|
+
<!-- AGENTS-GENERATED:START overview -->
|
|
6
|
+
## Overview
|
|
7
|
+
{{SCOPE_DESCRIPTION}}
|
|
8
|
+
<!-- AGENTS-GENERATED:END overview -->
|
|
9
|
+
|
|
10
|
+
<!-- AGENTS-GENERATED:START filemap -->
|
|
11
|
+
## Key Files
|
|
12
|
+
{{SCOPE_FILE_MAP}}
|
|
13
|
+
<!-- AGENTS-GENERATED:END filemap -->
|
|
14
|
+
|
|
15
|
+
<!-- AGENTS-GENERATED:START golden-samples -->
|
|
16
|
+
## Golden Samples (follow these patterns)
|
|
17
|
+
{{SCOPE_GOLDEN_SAMPLES}}
|
|
18
|
+
<!-- AGENTS-GENERATED:END golden-samples -->
|
|
19
|
+
|
|
20
|
+
<!-- AGENTS-GENERATED:START setup -->
|
|
21
|
+
## Setup & environment
|
|
22
|
+
{{DOCKER_VERSION_LINE}}
|
|
23
|
+
{{COMPOSE_VERSION_LINE}}
|
|
24
|
+
{{REGISTRY_LINE}}
|
|
25
|
+
<!-- AGENTS-GENERATED:END setup -->
|
|
26
|
+
|
|
27
|
+
<!-- AGENTS-GENERATED:START structure -->
|
|
28
|
+
## Directory structure
|
|
29
|
+
```
|
|
30
|
+
docker/ # or deploy/, .docker/, infrastructure/
|
|
31
|
+
Dockerfile → Main application image
|
|
32
|
+
Dockerfile.dev → Development image (optional)
|
|
33
|
+
docker-compose.yml → Local development stack
|
|
34
|
+
docker-compose.prod.yml → Production overrides
|
|
35
|
+
.dockerignore → Build context exclusions
|
|
36
|
+
entrypoint.sh → Container entrypoint script
|
|
37
|
+
healthcheck.sh → Health check script
|
|
38
|
+
```
|
|
39
|
+
<!-- AGENTS-GENERATED:END structure -->
|
|
40
|
+
|
|
41
|
+
<!-- AGENTS-GENERATED:START commands -->
|
|
42
|
+
## Build & run
|
|
43
|
+
| Task | Command |
|
|
44
|
+
|------|---------|
|
|
45
|
+
| Build image | `docker build -t app .` |
|
|
46
|
+
| Run container | `docker run -p 8080:80 app` |
|
|
47
|
+
| Start stack | `docker compose up -d` |
|
|
48
|
+
| View logs | `docker compose logs -f` |
|
|
49
|
+
| Stop stack | `docker compose down` |
|
|
50
|
+
| Rebuild | `docker compose up -d --build` |
|
|
51
|
+
<!-- AGENTS-GENERATED:END commands -->
|
|
52
|
+
|
|
53
|
+
<!-- AGENTS-GENERATED:START code-style -->
|
|
54
|
+
## Dockerfile conventions
|
|
55
|
+
- **Multi-stage builds**: Separate build and runtime stages
|
|
56
|
+
- **Non-root user**: Run as non-root user in production
|
|
57
|
+
- **Layer caching**: Order instructions from least to most frequently changing
|
|
58
|
+
- **Specific versions**: Pin base image versions (e.g., `node:20-alpine`, not `node:latest`)
|
|
59
|
+
- **COPY over ADD**: Prefer COPY unless extracting archives
|
|
60
|
+
- **.dockerignore**: Exclude unnecessary files from build context
|
|
61
|
+
|
|
62
|
+
### Naming conventions
|
|
63
|
+
| Type | Convention | Example |
|
|
64
|
+
|------|------------|---------|
|
|
65
|
+
| Dockerfile | `Dockerfile` or `Dockerfile.<variant>` | `Dockerfile.dev` |
|
|
66
|
+
| Compose file | `docker-compose.yml` or `compose.yml` | `docker-compose.prod.yml` |
|
|
67
|
+
| Image tag | `<registry>/<name>:<version>` | `ghcr.io/org/app:1.2.3` |
|
|
68
|
+
| Service name | lowercase with hyphens | `web-app`, `postgres-db` |
|
|
69
|
+
<!-- AGENTS-GENERATED:END code-style -->
|
|
70
|
+
|
|
71
|
+
<!-- AGENTS-GENERATED:START patterns -->
|
|
72
|
+
## Common patterns
|
|
73
|
+
|
|
74
|
+
### Multi-stage build
|
|
75
|
+
```dockerfile
|
|
76
|
+
# Build stage
|
|
77
|
+
FROM node:20-alpine AS builder
|
|
78
|
+
WORKDIR /app
|
|
79
|
+
COPY package*.json ./
|
|
80
|
+
RUN npm ci
|
|
81
|
+
COPY . .
|
|
82
|
+
RUN npm run build
|
|
83
|
+
|
|
84
|
+
# Runtime stage
|
|
85
|
+
FROM node:20-alpine AS runtime
|
|
86
|
+
WORKDIR /app
|
|
87
|
+
RUN addgroup -g 1001 appgroup && adduser -u 1001 -G appgroup -s /bin/sh -D appuser
|
|
88
|
+
COPY --from=builder /app/dist ./dist
|
|
89
|
+
COPY --from=builder /app/node_modules ./node_modules
|
|
90
|
+
USER appuser
|
|
91
|
+
EXPOSE 3000
|
|
92
|
+
CMD ["node", "dist/index.js"]
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
### Health check
|
|
96
|
+
```dockerfile
|
|
97
|
+
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
|
|
98
|
+
CMD wget --no-verbose --tries=1 --spider http://localhost:3000/health || exit 1
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
### Compose with profiles
|
|
102
|
+
```yaml
|
|
103
|
+
services:
|
|
104
|
+
app:
|
|
105
|
+
build: .
|
|
106
|
+
profiles: ["dev", "prod"]
|
|
107
|
+
debug:
|
|
108
|
+
build:
|
|
109
|
+
context: .
|
|
110
|
+
dockerfile: Dockerfile.dev
|
|
111
|
+
profiles: ["dev"]
|
|
112
|
+
```
|
|
113
|
+
<!-- AGENTS-GENERATED:END patterns -->
|
|
114
|
+
|
|
115
|
+
<!-- AGENTS-GENERATED:START security -->
|
|
116
|
+
## Security & safety
|
|
117
|
+
- **No secrets in images**: Use runtime environment variables or secret mounts
|
|
118
|
+
- **Non-root execution**: Always use USER directive in production
|
|
119
|
+
- **Minimal base images**: Prefer Alpine or distroless images
|
|
120
|
+
- **Scan images**: Use `docker scout`, `trivy`, or similar tools
|
|
121
|
+
- **Pin versions**: Avoid `latest` tags for reproducibility
|
|
122
|
+
- **Read-only filesystem**: Use `--read-only` when possible
|
|
123
|
+
<!-- AGENTS-GENERATED:END security -->
|
|
124
|
+
|
|
125
|
+
<!-- AGENTS-GENERATED:START checklist -->
|
|
126
|
+
## PR/commit checklist
|
|
127
|
+
- [ ] Dockerfile builds successfully
|
|
128
|
+
- [ ] Image runs without errors
|
|
129
|
+
- [ ] Non-root user configured for production
|
|
130
|
+
- [ ] .dockerignore excludes sensitive/unnecessary files
|
|
131
|
+
- [ ] Health check configured
|
|
132
|
+
- [ ] No secrets or credentials in image layers
|
|
133
|
+
- [ ] Base image version pinned
|
|
134
|
+
- [ ] Multi-stage build used where appropriate
|
|
135
|
+
<!-- AGENTS-GENERATED:END checklist -->
|
|
136
|
+
|
|
137
|
+
<!-- AGENTS-GENERATED:START examples -->
|
|
138
|
+
## Patterns to Follow
|
|
139
|
+
> **Prefer looking at real code in this repo over generic examples.**
|
|
140
|
+
> See **Golden Samples** section above for files that demonstrate correct patterns.
|
|
141
|
+
<!-- AGENTS-GENERATED:END examples -->
|
|
142
|
+
|
|
143
|
+
<!-- AGENTS-GENERATED:START help -->
|
|
144
|
+
## When stuck
|
|
145
|
+
- Docker docs: https://docs.docker.com
|
|
146
|
+
- Dockerfile best practices: https://docs.docker.com/develop/develop-images/dockerfile_best-practices/
|
|
147
|
+
- Compose specification: https://docs.docker.com/compose/compose-file/
|
|
148
|
+
- Check existing Dockerfiles in this repo for patterns
|
|
149
|
+
- Review root AGENTS.md for project-wide conventions
|
|
150
|
+
<!-- AGENTS-GENERATED:END help -->
|
|
151
|
+
|
|
152
|
+
<!-- AGENTS-GENERATED:START skill-reference -->
|
|
153
|
+
## Skill Reference
|
|
154
|
+
> For Dockerfile best practices, multi-stage builds, and compose patterns:
|
|
155
|
+
> **Invoke skill:** `docker-development`
|
|
156
|
+
<!-- AGENTS-GENERATED:END skill-reference -->
|
|
157
|
+
|
|
158
|
+
## House Rules (project-specific)
|
|
159
|
+
<!-- This section is NOT auto-generated - add your project-specific rules here -->
|
|
160
|
+
{{HOUSE_RULES}}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
<!-- Managed by agent: keep sections and order; edit content, not structure. Last updated: {{TIMESTAMP}} -->
|
|
2
|
+
|
|
3
|
+
# AGENTS.md — {{SCOPE_NAME}}
|
|
4
|
+
|
|
5
|
+
<!-- AGENTS-GENERATED:START overview -->
|
|
6
|
+
## Overview
|
|
7
|
+
{{SCOPE_DESCRIPTION}}
|
|
8
|
+
<!-- AGENTS-GENERATED:END overview -->
|
|
9
|
+
|
|
10
|
+
<!-- AGENTS-GENERATED:START filemap -->
|
|
11
|
+
## Key Files
|
|
12
|
+
{{SCOPE_FILE_MAP}}
|
|
13
|
+
<!-- AGENTS-GENERATED:END filemap -->
|
|
14
|
+
|
|
15
|
+
<!-- AGENTS-GENERATED:START golden-samples -->
|
|
16
|
+
## Golden Samples (follow these patterns)
|
|
17
|
+
{{SCOPE_GOLDEN_SAMPLES}}
|
|
18
|
+
<!-- AGENTS-GENERATED:END golden-samples -->
|
|
19
|
+
|
|
20
|
+
<!-- AGENTS-GENERATED:START setup -->
|
|
21
|
+
## Setup & environment
|
|
22
|
+
- Documentation may use a static site generator (check for config files)
|
|
23
|
+
- Preview locally before committing major changes
|
|
24
|
+
- Check for broken links and formatting issues
|
|
25
|
+
<!-- AGENTS-GENERATED:END setup -->
|
|
26
|
+
|
|
27
|
+
<!-- AGENTS-GENERATED:START commands -->
|
|
28
|
+
## Building docs
|
|
29
|
+
- Preview: check for `npm run docs`, `make docs`, or similar
|
|
30
|
+
- Build: check for documentation build commands in root
|
|
31
|
+
- Serve locally to verify rendering
|
|
32
|
+
<!-- AGENTS-GENERATED:END commands -->
|
|
33
|
+
|
|
34
|
+
<!-- AGENTS-GENERATED:START structure -->
|
|
35
|
+
## Documentation structure
|
|
36
|
+
- `README.md` - Entry point, project overview
|
|
37
|
+
- `getting-started/` - Installation and quick start guides
|
|
38
|
+
- `guides/` - How-to guides and tutorials
|
|
39
|
+
- `reference/` - API documentation, configuration reference
|
|
40
|
+
- `architecture/` - Design documents, ADRs
|
|
41
|
+
- `contributing/` - Contribution guidelines
|
|
42
|
+
<!-- AGENTS-GENERATED:END structure -->
|
|
43
|
+
|
|
44
|
+
<!-- AGENTS-GENERATED:START code-style -->
|
|
45
|
+
## Code style & conventions
|
|
46
|
+
- Use clear, concise language
|
|
47
|
+
- Include code examples for technical concepts
|
|
48
|
+
- Keep line length reasonable (~80-120 chars for readability)
|
|
49
|
+
- Use consistent heading hierarchy (H1 for page title, H2 for sections)
|
|
50
|
+
- Add alt text to images for accessibility
|
|
51
|
+
- Use relative links for internal references
|
|
52
|
+
- Keep code examples up-to-date with actual codebase
|
|
53
|
+
<!-- AGENTS-GENERATED:END code-style -->
|
|
54
|
+
|
|
55
|
+
<!-- AGENTS-GENERATED:START markdown -->
|
|
56
|
+
## Markdown best practices
|
|
57
|
+
- Use fenced code blocks with language hints: ```python
|
|
58
|
+
- Use tables for structured data comparison
|
|
59
|
+
- Use admonitions for warnings/notes (if supported)
|
|
60
|
+
- Keep paragraphs focused on one idea
|
|
61
|
+
- Use bullet points for lists, numbered lists for sequences
|
|
62
|
+
<!-- AGENTS-GENERATED:END markdown -->
|
|
63
|
+
|
|
64
|
+
<!-- AGENTS-GENERATED:START security -->
|
|
65
|
+
## Security & safety
|
|
66
|
+
- Never include secrets, API keys, or credentials in examples
|
|
67
|
+
- Use placeholder values: `your-api-key`, `example.com`
|
|
68
|
+
- Review screenshots for sensitive information
|
|
69
|
+
- Avoid documenting security vulnerabilities in detail
|
|
70
|
+
<!-- AGENTS-GENERATED:END security -->
|
|
71
|
+
|
|
72
|
+
<!-- AGENTS-GENERATED:START checklist -->
|
|
73
|
+
## PR/commit checklist
|
|
74
|
+
- [ ] Documentation matches current code behavior
|
|
75
|
+
- [ ] Code examples are tested and work
|
|
76
|
+
- [ ] Links are valid (no 404s)
|
|
77
|
+
- [ ] Images have alt text
|
|
78
|
+
- [ ] Spelling and grammar checked
|
|
79
|
+
- [ ] Formatting renders correctly
|
|
80
|
+
<!-- AGENTS-GENERATED:END checklist -->
|
|
81
|
+
|
|
82
|
+
<!-- AGENTS-GENERATED:START examples -->
|
|
83
|
+
## Patterns to Follow
|
|
84
|
+
> **Prefer looking at real code in this repo over generic examples.**
|
|
85
|
+
> See **Golden Samples** section above for files that demonstrate correct patterns.
|
|
86
|
+
<!-- AGENTS-GENERATED:END examples -->
|
|
87
|
+
|
|
88
|
+
<!-- AGENTS-GENERATED:START help -->
|
|
89
|
+
## When stuck
|
|
90
|
+
- Check existing documentation for patterns
|
|
91
|
+
- Review the style guide (if one exists)
|
|
92
|
+
- Preview changes locally before committing
|
|
93
|
+
- Check root AGENTS.md for project conventions
|
|
94
|
+
<!-- AGENTS-GENERATED:END help -->
|
|
95
|
+
|
|
96
|
+
## House Rules (project-specific)
|
|
97
|
+
<!-- This section is NOT auto-generated - add your project-specific rules here -->
|
|
98
|
+
{{HOUSE_RULES}}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
<!-- Managed by agent: keep sections and order; edit content, not structure. Last updated: {{TIMESTAMP}} -->
|
|
2
|
+
|
|
3
|
+
# AGENTS.md — {{SCOPE_NAME}}
|
|
4
|
+
|
|
5
|
+
<!-- AGENTS-GENERATED:START overview -->
|
|
6
|
+
## Overview
|
|
7
|
+
{{SCOPE_DESCRIPTION}}
|
|
8
|
+
<!-- AGENTS-GENERATED:END overview -->
|
|
9
|
+
|
|
10
|
+
<!-- AGENTS-GENERATED:START filemap -->
|
|
11
|
+
## Key Files
|
|
12
|
+
{{SCOPE_FILE_MAP}}
|
|
13
|
+
<!-- AGENTS-GENERATED:END filemap -->
|
|
14
|
+
|
|
15
|
+
<!-- AGENTS-GENERATED:START golden-samples -->
|
|
16
|
+
## Golden Samples (follow these patterns)
|
|
17
|
+
{{SCOPE_GOLDEN_SAMPLES}}
|
|
18
|
+
<!-- AGENTS-GENERATED:END golden-samples -->
|
|
19
|
+
|
|
20
|
+
<!-- AGENTS-GENERATED:START setup -->
|
|
21
|
+
## Setup & environment
|
|
22
|
+
- Examples should be self-contained and runnable
|
|
23
|
+
- Each example may have its own dependencies (check local README)
|
|
24
|
+
- Examples should work with the current version of the main package
|
|
25
|
+
<!-- AGENTS-GENERATED:END setup -->
|
|
26
|
+
|
|
27
|
+
<!-- AGENTS-GENERATED:START commands -->
|
|
28
|
+
## Running examples
|
|
29
|
+
- Check each example's README for specific instructions
|
|
30
|
+
- Most examples: `cd example-name && follow README`
|
|
31
|
+
- Some examples may require environment setup
|
|
32
|
+
<!-- AGENTS-GENERATED:END commands -->
|
|
33
|
+
|
|
34
|
+
<!-- AGENTS-GENERATED:START organization -->
|
|
35
|
+
## Example organization
|
|
36
|
+
- One directory per example/use case
|
|
37
|
+
- Each example has its own README explaining what it demonstrates
|
|
38
|
+
- Keep examples focused on one concept or pattern
|
|
39
|
+
- Name examples descriptively: `basic-usage/`, `advanced-config/`, `integration-with-x/`
|
|
40
|
+
<!-- AGENTS-GENERATED:END organization -->
|
|
41
|
+
|
|
42
|
+
<!-- AGENTS-GENERATED:START code-style -->
|
|
43
|
+
## Code style & conventions
|
|
44
|
+
- Examples should be educational and well-commented
|
|
45
|
+
- Use realistic but simplified scenarios
|
|
46
|
+
- Show best practices, not shortcuts
|
|
47
|
+
- Include error handling to demonstrate proper patterns
|
|
48
|
+
- Keep examples minimal - only what's needed to demonstrate the concept
|
|
49
|
+
- Avoid complex setups that distract from the main point
|
|
50
|
+
<!-- AGENTS-GENERATED:END code-style -->
|
|
51
|
+
|
|
52
|
+
<!-- AGENTS-GENERATED:START documentation -->
|
|
53
|
+
## Documentation requirements
|
|
54
|
+
- Each example needs a README with:
|
|
55
|
+
- What this example demonstrates
|
|
56
|
+
- Prerequisites and setup steps
|
|
57
|
+
- How to run the example
|
|
58
|
+
- Expected output or behavior
|
|
59
|
+
- Links to relevant documentation
|
|
60
|
+
<!-- AGENTS-GENERATED:END documentation -->
|
|
61
|
+
|
|
62
|
+
<!-- AGENTS-GENERATED:START security -->
|
|
63
|
+
## Security & safety
|
|
64
|
+
- Never include real API keys or credentials
|
|
65
|
+
- Use environment variables for sensitive config: `export API_KEY=your-key`
|
|
66
|
+
- Use sandbox/test environments when interacting with external services
|
|
67
|
+
- Include warnings for examples that make real API calls
|
|
68
|
+
<!-- AGENTS-GENERATED:END security -->
|
|
69
|
+
|
|
70
|
+
<!-- AGENTS-GENERATED:START checklist -->
|
|
71
|
+
## PR/commit checklist
|
|
72
|
+
- [ ] Example runs successfully
|
|
73
|
+
- [ ] README is complete and accurate
|
|
74
|
+
- [ ] No hardcoded credentials
|
|
75
|
+
- [ ] Code demonstrates best practices
|
|
76
|
+
- [ ] Comments explain non-obvious parts
|
|
77
|
+
- [ ] Example works with current package version
|
|
78
|
+
<!-- AGENTS-GENERATED:END checklist -->
|
|
79
|
+
|
|
80
|
+
<!-- AGENTS-GENERATED:START examples -->
|
|
81
|
+
## Patterns to Follow
|
|
82
|
+
> **Prefer looking at real code in this repo over generic examples.**
|
|
83
|
+
> See **Golden Samples** section above for files that demonstrate correct patterns.
|
|
84
|
+
<!-- AGENTS-GENERATED:END examples -->
|
|
85
|
+
|
|
86
|
+
<!-- AGENTS-GENERATED:START help -->
|
|
87
|
+
## When stuck
|
|
88
|
+
- Check similar examples for patterns
|
|
89
|
+
- Ensure the example is self-contained
|
|
90
|
+
- Test the example from scratch (fresh environment)
|
|
91
|
+
- Check root AGENTS.md for project conventions
|
|
92
|
+
<!-- AGENTS-GENERATED:END help -->
|
|
93
|
+
|
|
94
|
+
## House Rules (project-specific)
|
|
95
|
+
<!-- This section is NOT auto-generated - add your project-specific rules here -->
|
|
96
|
+
{{HOUSE_RULES}}
|