@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,124 @@
|
|
|
1
|
+
# Output Structure
|
|
2
|
+
|
|
3
|
+
## Root File
|
|
4
|
+
|
|
5
|
+
Root AGENTS.md (~50-80 lines) contains agent-optimized sections:
|
|
6
|
+
|
|
7
|
+
| Section | Purpose | Format |
|
|
8
|
+
|---------|---------|--------|
|
|
9
|
+
| **Commands (verified)** | Executable commands with time estimates | Table with ~Time column |
|
|
10
|
+
| **File Map** | Directory purposes for navigation | `dir/ -> purpose` format |
|
|
11
|
+
| **Golden Samples** | Canonical patterns to follow | Table: For / Reference / Key patterns |
|
|
12
|
+
| **Utilities List** | Existing helpers to reuse | Table: Need / Use / Location |
|
|
13
|
+
| **Heuristics** | Quick decision rules | Table: When / Do |
|
|
14
|
+
| **Boundaries** | Always/Ask/Never rules | Three-tier list |
|
|
15
|
+
| **Codebase State** | Migrations, tech debt, known issues | Bullet list |
|
|
16
|
+
| **Terminology** | Domain-specific terms | Table: Term / Means |
|
|
17
|
+
| **Scope Index** | Links to scoped files | List with descriptions |
|
|
18
|
+
|
|
19
|
+
## Scoped Files
|
|
20
|
+
|
|
21
|
+
Scoped AGENTS.md files cover six core areas (per [GitHub best practices](https://github.blog/ai-and-ml/github-copilot/how-to-write-a-great-agents-md-lessons-from-over-2500-repositories/)):
|
|
22
|
+
1. **Commands** - Executable build, test, lint commands
|
|
23
|
+
2. **Testing** - Test conventions and execution
|
|
24
|
+
3. **Project Structure** - Architecture and key files
|
|
25
|
+
4. **Code Style** - Formatting and conventions
|
|
26
|
+
5. **Git Workflow** - Commit/PR guidelines
|
|
27
|
+
6. **Boundaries** - Always do / Ask first / Never do
|
|
28
|
+
|
|
29
|
+
Additional recommended sections:
|
|
30
|
+
- Overview
|
|
31
|
+
- Setup/Prerequisites
|
|
32
|
+
- Security
|
|
33
|
+
- Good vs Bad examples
|
|
34
|
+
- When stuck
|
|
35
|
+
- House Rules (for scoped overrides)
|
|
36
|
+
- **Approved learnings** — index entries linking to `docs/feedback/feedback_<slug>.md` (one line per learning, see [feedback-memory-schema.md](feedback-memory-schema.md))
|
|
37
|
+
|
|
38
|
+
### AGENTS.md is an index, not a rule dump
|
|
39
|
+
|
|
40
|
+
When session learnings are approved (via `/retro` or similar), the **prose lives in `docs/feedback/feedback_<slug>.md`** following the [feedback memory schema](feedback-memory-schema.md). AGENTS.md only carries a one-line link per learning under `## Approved learnings`. This keeps AGENTS.md compact (the agent-harness conformance rule) while preserving full audit trail in `docs/feedback/`.
|
|
41
|
+
|
|
42
|
+
Place `## Approved learnings` **after `## Key Decisions` and before `## Boundaries`** in the section order, and put it **outside** any `<!-- AGENTS-GENERATED:START ... -->` markers — this section is managed by retro-skill, not by `generate-agents.sh`, so it must survive `--update` runs.
|
|
43
|
+
|
|
44
|
+
If the approved-learnings index would push AGENTS.md over the harness 150-line cap (`AH-02`), prune inactive entries or move to a scoped `AGENTS.md` rather than letting the index grow unbounded.
|
|
45
|
+
|
|
46
|
+
## When to Customize vs Auto-Generate
|
|
47
|
+
|
|
48
|
+
### Auto-Generate These Sections
|
|
49
|
+
|
|
50
|
+
These sections are factual and extractable - let scripts handle them:
|
|
51
|
+
|
|
52
|
+
| Section | Why Auto-Generate |
|
|
53
|
+
|---------|-------------------|
|
|
54
|
+
| **Commands** | Extract from Makefile/package.json - always accurate |
|
|
55
|
+
| **File Map** | Directory listing is objective |
|
|
56
|
+
| **Scope Index** | Detectable from filesystem structure |
|
|
57
|
+
| **Language/Framework** | Detectable from config files |
|
|
58
|
+
| **Test Commands** | Extract from CI config |
|
|
59
|
+
|
|
60
|
+
### Manually Curate These Sections
|
|
61
|
+
|
|
62
|
+
These sections require human judgment - preserve them during updates:
|
|
63
|
+
|
|
64
|
+
| Section | Why Manual |
|
|
65
|
+
|---------|------------|
|
|
66
|
+
| **Golden Samples** | Requires taste - which file exemplifies good patterns? |
|
|
67
|
+
| **Heuristics** | Decision rules come from team experience |
|
|
68
|
+
| **Boundaries** | Always/Ask/Never rules reflect team policy |
|
|
69
|
+
| **Codebase State** | Tech debt awareness requires context |
|
|
70
|
+
| **Terminology** | Domain knowledge is human insight |
|
|
71
|
+
| **Architecture Decisions** | Why choices were made isn't extractable |
|
|
72
|
+
|
|
73
|
+
### Override Best Practices
|
|
74
|
+
|
|
75
|
+
When updating existing AGENTS.md files, preserve custom content:
|
|
76
|
+
|
|
77
|
+
**1. Use `--update` flag:**
|
|
78
|
+
```bash
|
|
79
|
+
scripts/generate-agents.sh /path/to/project --update
|
|
80
|
+
```
|
|
81
|
+
This preserves content outside `<!-- GENERATED:START -->` / `<!-- GENERATED:END -->` markers.
|
|
82
|
+
|
|
83
|
+
**2. Place custom content outside markers:**
|
|
84
|
+
```markdown
|
|
85
|
+
<!-- GENERATED:START -->
|
|
86
|
+
## Commands (auto-generated)
|
|
87
|
+
| Command | Purpose |
|
|
88
|
+
|---------|---------|
|
|
89
|
+
| `make test` | Run tests |
|
|
90
|
+
<!-- GENERATED:END -->
|
|
91
|
+
|
|
92
|
+
## Custom Heuristics (preserved)
|
|
93
|
+
| When | Do |
|
|
94
|
+
|------|-----|
|
|
95
|
+
| Adding endpoint | Create OpenAPI spec first |
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
**3. Use scoped overrides for exceptions:**
|
|
99
|
+
```
|
|
100
|
+
project/
|
|
101
|
+
├── AGENTS.md # Global rules
|
|
102
|
+
└── legacy/
|
|
103
|
+
└── AGENTS.md # "Ignore linting in this directory"
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
**4. Review diffs before committing:**
|
|
107
|
+
```bash
|
|
108
|
+
# After regenerating
|
|
109
|
+
git diff AGENTS.md
|
|
110
|
+
# Ensure custom sections weren't overwritten
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
## Directory Coverage
|
|
114
|
+
|
|
115
|
+
When creating AGENTS.md files, create them in ALL key directories:
|
|
116
|
+
|
|
117
|
+
| Directory | Purpose |
|
|
118
|
+
|-----------|---------|
|
|
119
|
+
| Root | Precedence, architecture overview |
|
|
120
|
+
| `Classes/` or `src/` | Source code patterns |
|
|
121
|
+
| `Configuration/` or `config/` | Framework config |
|
|
122
|
+
| `Documentation/` or `docs/` | Doc standards |
|
|
123
|
+
| `Resources/` or `assets/` | Templates, assets |
|
|
124
|
+
| `Tests/` | Testing patterns |
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
# Scripts Guide
|
|
2
|
+
|
|
3
|
+
Complete reference for all AGENTS.md generator scripts.
|
|
4
|
+
|
|
5
|
+
## Generating AGENTS.md Files
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
scripts/generate-agents.sh /path/to/project
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Options:
|
|
12
|
+
- `--dry-run` - Preview changes without writing files
|
|
13
|
+
- `--verbose` - Show detailed output
|
|
14
|
+
- `--style=thin` - Use thin root template (~30 lines, default)
|
|
15
|
+
- `--style=verbose` - Use verbose root template (~100-200 lines)
|
|
16
|
+
- `--update` - Update existing files only (preserves human edits outside generated markers)
|
|
17
|
+
- `--claude-shim` - Generate CLAUDE.md that imports AGENTS.md (root only, use `--symlinks` instead)
|
|
18
|
+
- `--symlinks` - Create CLAUDE.md and GEMINI.md symlinks at every level (root + subdirectories). Enables Claude Code on-demand loading and Gemini CLI native loading. **Recommended** for cross-agent compatibility.
|
|
19
|
+
- `--force` - Regenerate even if files exist
|
|
20
|
+
|
|
21
|
+
## Validating Structure
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
scripts/validate-structure.sh /path/to/project
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Options:
|
|
28
|
+
- `--check-freshness, -f` - Also check if files are up to date with git commits
|
|
29
|
+
- `--verbose, -v` - Show detailed output
|
|
30
|
+
|
|
31
|
+
## Checking Freshness
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
scripts/check-freshness.sh /path/to/project
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
This script:
|
|
38
|
+
- Extracts the "Last updated" date from the AGENTS.md header
|
|
39
|
+
- Checks git commits since that date for files in the relevant scope
|
|
40
|
+
- Reports if there are commits that might require AGENTS.md updates
|
|
41
|
+
|
|
42
|
+
Options:
|
|
43
|
+
- `--verbose, -v` - Show commit details and changed files
|
|
44
|
+
- `--threshold=DAYS` - Days threshold to consider stale (default: 7)
|
|
45
|
+
|
|
46
|
+
Example with full validation:
|
|
47
|
+
```bash
|
|
48
|
+
scripts/validate-structure.sh /path/to/project --check-freshness --verbose
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Detecting Project Type
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
scripts/detect-project.sh /path/to/project
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Detects project language, version, and build tools.
|
|
58
|
+
|
|
59
|
+
## Detecting Scopes
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
scripts/detect-scopes.sh /path/to/project
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Identifies directories that should have scoped AGENTS.md files.
|
|
66
|
+
|
|
67
|
+
## Extracting Commands
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
scripts/extract-commands.sh /path/to/project
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
Extracts build commands from Makefile, package.json, composer.json, or go.mod.
|
|
74
|
+
|
|
75
|
+
## Extracting Documentation
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
scripts/extract-documentation.sh /path/to/project
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
Extracts information from README.md, CONTRIBUTING.md, SECURITY.md, and other documentation.
|
|
82
|
+
|
|
83
|
+
## Extracting Platform Files
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
scripts/extract-platform-files.sh /path/to/project
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
Extracts information from .github/, .gitlab/, CODEOWNERS, dependabot.yml, etc.
|
|
90
|
+
|
|
91
|
+
## Extracting IDE Settings
|
|
92
|
+
|
|
93
|
+
```bash
|
|
94
|
+
scripts/extract-ide-settings.sh /path/to/project
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
Extracts information from .editorconfig, .vscode/, .idea/, etc.
|
|
98
|
+
|
|
99
|
+
## Extracting AI Agent Configs
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
scripts/extract-agent-configs.sh /path/to/project
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
Extracts information from .cursor/, .claude/, copilot-instructions.md, etc.
|
|
106
|
+
|
|
107
|
+
## Verifying Content Accuracy
|
|
108
|
+
|
|
109
|
+
**CRITICAL: Always run this before considering AGENTS.md files complete.**
|
|
110
|
+
|
|
111
|
+
```bash
|
|
112
|
+
scripts/verify-content.sh /path/to/project
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
This script:
|
|
116
|
+
- Checks if documented files actually exist
|
|
117
|
+
- Verifies Makefile targets are real
|
|
118
|
+
- Compares module/script counts against actual files
|
|
119
|
+
- Reports undocumented files that should be added
|
|
120
|
+
- Reports documented files that don't exist
|
|
121
|
+
|
|
122
|
+
Options:
|
|
123
|
+
- `--verbose, -v` - Show detailed verification output
|
|
124
|
+
- `--fix` - Suggest fixes for common issues
|
|
125
|
+
|
|
126
|
+
**This verification step is MANDATORY when updating existing AGENTS.md files.**
|
|
127
|
+
|
|
128
|
+
## Verifying Commands Work
|
|
129
|
+
|
|
130
|
+
To prevent "command rot" (documented commands that no longer work):
|
|
131
|
+
|
|
132
|
+
```bash
|
|
133
|
+
scripts/verify-commands.sh /path/to/project
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
This script:
|
|
137
|
+
- Extracts commands from AGENTS.md tables and code blocks
|
|
138
|
+
- Verifies npm/yarn scripts exist in package.json
|
|
139
|
+
- Verifies make targets exist in Makefile
|
|
140
|
+
- Verifies composer scripts exist in composer.json
|
|
141
|
+
- Updates "Last verified" timestamp on success
|
|
142
|
+
|
|
143
|
+
Options:
|
|
144
|
+
- `VERBOSE=true` - Show detailed output
|
|
145
|
+
- `DRY_RUN=true` - Don't update timestamp
|
|
146
|
+
|
|
147
|
+
**Why this matters:** Research shows broken commands waste 500+ tokens as agents debug non-existent commands. Verified commands enable confident execution.
|
|
148
|
+
|
|
149
|
+
## Post-Generation Validation Checklist
|
|
150
|
+
|
|
151
|
+
**After generating AGENTS.md files, ALWAYS validate the output:**
|
|
152
|
+
|
|
153
|
+
```bash
|
|
154
|
+
# 1. Run structure validation
|
|
155
|
+
scripts/validate-structure.sh /path/to/project --verbose
|
|
156
|
+
|
|
157
|
+
# 2. Verify content accuracy
|
|
158
|
+
scripts/verify-content.sh /path/to/project
|
|
159
|
+
|
|
160
|
+
# 3. Verify commands work
|
|
161
|
+
scripts/verify-commands.sh /path/to/project
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
**Validation criteria:**
|
|
165
|
+
|
|
166
|
+
| Check | Pass Criteria | Common Issues |
|
|
167
|
+
|-------|---------------|---------------|
|
|
168
|
+
| **Thin root** | Root AGENTS.md <= 80 lines | Duplicated scope content in root |
|
|
169
|
+
| **All scopes covered** | Every major directory has AGENTS.md | Missing `Tests/`, `Configuration/` |
|
|
170
|
+
| **No duplication** | Content appears in ONE location | Commands duplicated in root + scope |
|
|
171
|
+
| **Commands verified** | All documented commands execute | Typos, renamed targets |
|
|
172
|
+
| **Files exist** | All referenced files are real | Hallucinated paths |
|
|
173
|
+
| **Links valid** | All cross-references resolve | Broken relative paths |
|
|
174
|
+
|
|
175
|
+
**Never consider generation complete until all checks pass.**
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
# Verification Guide
|
|
2
|
+
|
|
3
|
+
**NEVER trust existing AGENTS.md content as accurate.** Always verify documented information against the actual codebase.
|
|
4
|
+
|
|
5
|
+
## Mandatory Verification Steps
|
|
6
|
+
|
|
7
|
+
1. **Extract actual state from source files:**
|
|
8
|
+
- List all modules/files with their actual docstrings
|
|
9
|
+
- List all scripts and their actual purposes
|
|
10
|
+
- Extract actual Makefile/package.json commands
|
|
11
|
+
- List actual test files and structure
|
|
12
|
+
|
|
13
|
+
2. **Compare extracted state against documented state:**
|
|
14
|
+
- Check if documented files actually exist
|
|
15
|
+
- Check if documented commands actually work
|
|
16
|
+
- Check if module descriptions match actual docstrings
|
|
17
|
+
- Check if counts (modules, scripts, tests) are accurate
|
|
18
|
+
|
|
19
|
+
3. **Identify and fix discrepancies:**
|
|
20
|
+
- Remove documentation for non-existent files
|
|
21
|
+
- Add documentation for undocumented files
|
|
22
|
+
- Correct inaccurate descriptions
|
|
23
|
+
- Update outdated counts and references
|
|
24
|
+
|
|
25
|
+
4. **Preserve unverifiable content:**
|
|
26
|
+
- Keep manually-written context that can't be extracted
|
|
27
|
+
- Keep subjective guidance and best practices
|
|
28
|
+
- Mark preserved content appropriately
|
|
29
|
+
|
|
30
|
+
## What to Verify
|
|
31
|
+
|
|
32
|
+
| Category | Verification Method |
|
|
33
|
+
|----------|---------------------|
|
|
34
|
+
| Module list | `ls <dir>/*.py` + read docstrings |
|
|
35
|
+
| Script list | `ls scripts/*.sh` + read headers |
|
|
36
|
+
| Commands | `grep` Makefile targets **AND run them** |
|
|
37
|
+
| Test files | `ls tests/*.py` |
|
|
38
|
+
| Data files | `ls *.json` in project root |
|
|
39
|
+
| Config files | Check actual existence |
|
|
40
|
+
| **File names** | **EXACT match required** (not just existence) |
|
|
41
|
+
| **Numeric values** | PHPStan level, coverage %, etc. from actual configs |
|
|
42
|
+
|
|
43
|
+
## Critical: Exact Name Matching
|
|
44
|
+
|
|
45
|
+
File names in AGENTS.md must match actual filenames **exactly**:
|
|
46
|
+
|
|
47
|
+
| Documented | Actual | Status |
|
|
48
|
+
|------------|--------|--------|
|
|
49
|
+
| `CowriterAjaxController.php` | `AjaxController.php` | **WRONG** - name mismatch |
|
|
50
|
+
| `AjaxController.php` | `AjaxController.php` | Correct |
|
|
51
|
+
|
|
52
|
+
**Real-world example from t3x-cowriter review:**
|
|
53
|
+
- AGENTS.md documented `Controller/CowriterAjaxController.php`
|
|
54
|
+
- Actual file was `Controller/AjaxController.php`
|
|
55
|
+
- This mismatch confused agents trying to find the file
|
|
56
|
+
|
|
57
|
+
## Critical: Command Verification
|
|
58
|
+
|
|
59
|
+
Commands documented in AGENTS.md must actually work when run:
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
# BAD: Document without testing
|
|
63
|
+
make test-mutation # May not exist!
|
|
64
|
+
|
|
65
|
+
# GOOD: Verify before documenting
|
|
66
|
+
make -n test-mutation 2>/dev/null && echo "EXISTS" || echo "MISSING"
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
**Real-world example from t3x-cowriter review:**
|
|
70
|
+
- AGENTS.md documented `make test-mutation` and `make phpstan`
|
|
71
|
+
- Neither target existed (actual was `make typecheck`)
|
|
72
|
+
- Agents failed when trying to run documented commands
|
|
73
|
+
|
|
74
|
+
## Example Verification Commands
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
# Extract actual module docstrings
|
|
78
|
+
for f in cli_audit/*.py; do head -20 "$f" | grep -A5 '"""'; done
|
|
79
|
+
|
|
80
|
+
# List actual scripts
|
|
81
|
+
ls scripts/*.sh
|
|
82
|
+
|
|
83
|
+
# Extract Makefile targets
|
|
84
|
+
grep -E '^[a-z_-]+:' Makefile*
|
|
85
|
+
|
|
86
|
+
# List actual test files
|
|
87
|
+
ls tests/*.py tests/**/*.py
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
## Anti-Patterns to Avoid
|
|
91
|
+
|
|
92
|
+
- **WRONG:** Updating only dates and counts based on git commits
|
|
93
|
+
- **WRONG:** Trusting that existing AGENTS.md was created correctly
|
|
94
|
+
- **WRONG:** Copying file lists without verifying they exist
|
|
95
|
+
- **WRONG:** Using extracted command output without running it
|
|
96
|
+
- **RIGHT:** Extract -> Compare -> Fix discrepancies -> Validate
|
|
97
|
+
|
|
98
|
+
## Agent-Optimized Design
|
|
99
|
+
|
|
100
|
+
This skill generates AGENTS.md files optimized for AI coding agent efficiency based on:
|
|
101
|
+
- [Research showing 16.58% token reduction with good AGENTS.md](https://arxiv.org/html/2601.20404)
|
|
102
|
+
- [GitHub best practices from 2,500+ repositories](https://github.blog/ai-and-ml/github-copilot/how-to-write-a-great-agents-md-lessons-from-over-2500-repositories/)
|
|
103
|
+
- Multi-agent collaborative design (Claude + Gemini discussion)
|
|
104
|
+
|
|
105
|
+
### Key Design Principles
|
|
106
|
+
|
|
107
|
+
1. **Structured over Prose** - Tables and maps parse faster than paragraphs
|
|
108
|
+
2. **Verified Commands** - Commands that don't work waste 500+ tokens debugging
|
|
109
|
+
3. **Pointer Principle** - Point to files, don't duplicate content
|
|
110
|
+
4. **Time Estimates** - Help agents choose appropriate test scope
|
|
111
|
+
5. **Golden Samples** - One example file beats pages of explanation
|
|
112
|
+
6. **Heuristics Tables** - Eliminate decision ambiguity
|
|
113
|
+
|
|
114
|
+
### Token-Saving Sections
|
|
115
|
+
|
|
116
|
+
| Section | Saves | How |
|
|
117
|
+
|---------|-------|-----|
|
|
118
|
+
| Commands (verified) | 500+ tokens | No debugging broken commands |
|
|
119
|
+
| File Map | 3-5 search cycles | Direct navigation |
|
|
120
|
+
| Golden Samples | Full rewrites | Correct patterns first time |
|
|
121
|
+
| Utilities List | Duplicate code | Reuse existing helpers |
|
|
122
|
+
| Heuristics | User correction cycles | Autonomous decisions |
|
|
123
|
+
| Codebase State | Breaking changes | Avoid legacy/migration code |
|
|
124
|
+
|
|
125
|
+
## Capabilities
|
|
126
|
+
|
|
127
|
+
- **Thin root files** (~50 lines) with precedence rules and agent-optimized tables
|
|
128
|
+
- **Scoped files** for subsystems (backend/, frontend/, internal/, cmd/)
|
|
129
|
+
- **Auto-extracted commands** from Makefile, package.json, composer.json, go.mod
|
|
130
|
+
- **Language-specific templates** for Go, PHP, TypeScript, Python, hybrid projects
|
|
131
|
+
- **Freshness checking** - Detects if AGENTS.md files are outdated by comparing their "Last updated" date with git commits
|
|
132
|
+
- **Automatic timestamps** - All generated files include creation/update dates in the header
|
|
133
|
+
- **Documentation extraction** - Parses README.md, CONTRIBUTING.md, SECURITY.md, CHANGELOG.md
|
|
134
|
+
- **Platform file extraction** - Parses .github/, .gitlab/ templates, CODEOWNERS, dependabot.yml
|
|
135
|
+
- **IDE settings extraction** - Parses .editorconfig, .vscode/, .idea/, .phpstorm/
|
|
136
|
+
- **AI agent config extraction** - Parses .cursor/, .claude/, .windsurf/, copilot-instructions.md
|
|
137
|
+
- **Extraction summary** - Verbose mode shows all detected settings and their sources
|