@event4u/agent-config 1.9.1
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/.agent-src/README.md +64 -0
- package/.agent-src/commands/agent-handoff.md +64 -0
- package/.agent-src/commands/agent-status.md +83 -0
- package/.agent-src/commands/agents-audit.md +243 -0
- package/.agent-src/commands/agents-cleanup.md +169 -0
- package/.agent-src/commands/agents-prepare.md +137 -0
- package/.agent-src/commands/analyze-reference-repo.md +191 -0
- package/.agent-src/commands/bug-fix.md +181 -0
- package/.agent-src/commands/bug-investigate.md +175 -0
- package/.agent-src/commands/commit.md +121 -0
- package/.agent-src/commands/compress.md +177 -0
- package/.agent-src/commands/config-agent-settings.md +126 -0
- package/.agent-src/commands/context-create.md +167 -0
- package/.agent-src/commands/context-refactor.md +170 -0
- package/.agent-src/commands/copilot-agents-init.md +150 -0
- package/.agent-src/commands/copilot-agents-optimize.md +251 -0
- package/.agent-src/commands/create-pr-description.md +112 -0
- package/.agent-src/commands/create-pr.md +76 -0
- package/.agent-src/commands/do-and-judge.md +114 -0
- package/.agent-src/commands/do-in-steps.md +84 -0
- package/.agent-src/commands/e2e-heal.md +98 -0
- package/.agent-src/commands/e2e-plan.md +85 -0
- package/.agent-src/commands/estimate-ticket.md +80 -0
- package/.agent-src/commands/feature-dev.md +111 -0
- package/.agent-src/commands/feature-explore.md +180 -0
- package/.agent-src/commands/feature-plan.md +288 -0
- package/.agent-src/commands/feature-refactor.md +181 -0
- package/.agent-src/commands/feature-roadmap.md +184 -0
- package/.agent-src/commands/fix-ci.md +48 -0
- package/.agent-src/commands/fix-portability.md +97 -0
- package/.agent-src/commands/fix-pr-bot-comments.md +146 -0
- package/.agent-src/commands/fix-pr-comments.md +58 -0
- package/.agent-src/commands/fix-pr-developer-comments.md +152 -0
- package/.agent-src/commands/fix-references.md +94 -0
- package/.agent-src/commands/fix-seeder.md +146 -0
- package/.agent-src/commands/implement-ticket.md +133 -0
- package/.agent-src/commands/jira-ticket.md +71 -0
- package/.agent-src/commands/judge.md +86 -0
- package/.agent-src/commands/memory-add.md +130 -0
- package/.agent-src/commands/memory-full.md +97 -0
- package/.agent-src/commands/memory-promote.md +144 -0
- package/.agent-src/commands/mode.md +121 -0
- package/.agent-src/commands/module-create.md +132 -0
- package/.agent-src/commands/module-explore.md +157 -0
- package/.agent-src/commands/optimize-agents.md +139 -0
- package/.agent-src/commands/optimize-augmentignore.md +262 -0
- package/.agent-src/commands/optimize-rtk-filters.md +120 -0
- package/.agent-src/commands/optimize-skills.md +121 -0
- package/.agent-src/commands/override-create.md +97 -0
- package/.agent-src/commands/override-manage.md +96 -0
- package/.agent-src/commands/package-reset.md +154 -0
- package/.agent-src/commands/package-test.md +154 -0
- package/.agent-src/commands/prepare-for-review.md +91 -0
- package/.agent-src/commands/project-analyze.md +300 -0
- package/.agent-src/commands/project-health.md +95 -0
- package/.agent-src/commands/propose-memory.md +108 -0
- package/.agent-src/commands/quality-fix.md +106 -0
- package/.agent-src/commands/refine-ticket.md +81 -0
- package/.agent-src/commands/review-changes.md +130 -0
- package/.agent-src/commands/review-routing.md +111 -0
- package/.agent-src/commands/roadmap-create.md +110 -0
- package/.agent-src/commands/roadmap-execute.md +68 -0
- package/.agent-src/commands/rule-compliance-audit.md +139 -0
- package/.agent-src/commands/tests-create.md +73 -0
- package/.agent-src/commands/tests-execute.md +58 -0
- package/.agent-src/commands/threat-model.md +115 -0
- package/.agent-src/commands/update-form-request-messages.md +189 -0
- package/.agent-src/commands/upstream-contribute.md +171 -0
- package/.agent-src/contexts/augment-infrastructure.md +181 -0
- package/.agent-src/contexts/documentation-hierarchy.md +142 -0
- package/.agent-src/contexts/model-recommendations.md +142 -0
- package/.agent-src/contexts/override-system.md +187 -0
- package/.agent-src/contexts/skills-and-commands.md +154 -0
- package/.agent-src/contexts/subagent-configuration.md +62 -0
- package/.agent-src/guidelines/agent-infra/agent-interaction-and-decision-quality.md +110 -0
- package/.agent-src/guidelines/agent-infra/break-glass-usage.md +113 -0
- package/.agent-src/guidelines/agent-infra/developer-judgment.md +82 -0
- package/.agent-src/guidelines/agent-infra/engineering-memory-data-format.md +117 -0
- package/.agent-src/guidelines/agent-infra/layered-settings.md +158 -0
- package/.agent-src/guidelines/agent-infra/memory-access.md +121 -0
- package/.agent-src/guidelines/agent-infra/naming.md +69 -0
- package/.agent-src/guidelines/agent-infra/output-patterns.md +117 -0
- package/.agent-src/guidelines/agent-infra/review-routing-data-format.md +144 -0
- package/.agent-src/guidelines/agent-infra/role-contracts.md +211 -0
- package/.agent-src/guidelines/agent-infra/role-mode-router.md +89 -0
- package/.agent-src/guidelines/agent-infra/runtime-layer.md +89 -0
- package/.agent-src/guidelines/agent-infra/self-improvement-pipeline.md +135 -0
- package/.agent-src/guidelines/agent-infra/size-and-scope.md +189 -0
- package/.agent-src/guidelines/agent-infra/tool-integration.md +73 -0
- package/.agent-src/guidelines/docs/readme-size-and-splitting.md +153 -0
- package/.agent-src/guidelines/e2e/playwright.md +363 -0
- package/.agent-src/guidelines/php/api-design.md +115 -0
- package/.agent-src/guidelines/php/artisan-commands.md +81 -0
- package/.agent-src/guidelines/php/blade-ui.md +78 -0
- package/.agent-src/guidelines/php/controllers.md +90 -0
- package/.agent-src/guidelines/php/database.md +111 -0
- package/.agent-src/guidelines/php/eloquent.md +208 -0
- package/.agent-src/guidelines/php/flux.md +80 -0
- package/.agent-src/guidelines/php/general.md +191 -0
- package/.agent-src/guidelines/php/git.md +96 -0
- package/.agent-src/guidelines/php/jobs.md +111 -0
- package/.agent-src/guidelines/php/livewire.md +71 -0
- package/.agent-src/guidelines/php/logging.md +79 -0
- package/.agent-src/guidelines/php/naming.md +89 -0
- package/.agent-src/guidelines/php/patterns/dependency-injection.md +57 -0
- package/.agent-src/guidelines/php/patterns/dtos.md +199 -0
- package/.agent-src/guidelines/php/patterns/events.md +67 -0
- package/.agent-src/guidelines/php/patterns/factory.md +53 -0
- package/.agent-src/guidelines/php/patterns/pipelines.md +66 -0
- package/.agent-src/guidelines/php/patterns/policies.md +66 -0
- package/.agent-src/guidelines/php/patterns/repositories.md +122 -0
- package/.agent-src/guidelines/php/patterns/service-layer.md +64 -0
- package/.agent-src/guidelines/php/patterns/strategy.md +69 -0
- package/.agent-src/guidelines/php/patterns.md +28 -0
- package/.agent-src/guidelines/php/performance.md +92 -0
- package/.agent-src/guidelines/php/resources.md +100 -0
- package/.agent-src/guidelines/php/security.md +110 -0
- package/.agent-src/guidelines/php/sql.md +97 -0
- package/.agent-src/guidelines/php/validations.md +119 -0
- package/.agent-src/guidelines/php/websocket.md +100 -0
- package/.agent-src/personas/README.md +104 -0
- package/.agent-src/personas/ai-agent.md +77 -0
- package/.agent-src/personas/critical-challenger.md +73 -0
- package/.agent-src/personas/developer.md +73 -0
- package/.agent-src/personas/product-owner.md +78 -0
- package/.agent-src/personas/qa.md +67 -0
- package/.agent-src/personas/senior-engineer.md +77 -0
- package/.agent-src/personas/stakeholder.md +78 -0
- package/.agent-src/rules/agent-docs.md +61 -0
- package/.agent-src/rules/analysis-skill-routing.md +48 -0
- package/.agent-src/rules/architecture.md +62 -0
- package/.agent-src/rules/artifact-drafting-protocol.md +73 -0
- package/.agent-src/rules/ask-when-uncertain.md +52 -0
- package/.agent-src/rules/augment-portability.md +38 -0
- package/.agent-src/rules/augment-source-of-truth.md +128 -0
- package/.agent-src/rules/capture-learnings.md +89 -0
- package/.agent-src/rules/cli-output-handling.md +94 -0
- package/.agent-src/rules/commit-conventions.md +64 -0
- package/.agent-src/rules/context-hygiene.md +90 -0
- package/.agent-src/rules/docker-commands.md +55 -0
- package/.agent-src/rules/docs-sync.md +79 -0
- package/.agent-src/rules/downstream-changes.md +70 -0
- package/.agent-src/rules/e2e-testing.md +53 -0
- package/.agent-src/rules/guidelines.md +90 -0
- package/.agent-src/rules/improve-before-implement.md +94 -0
- package/.agent-src/rules/language-and-tone.md +104 -0
- package/.agent-src/rules/laravel-translations.md +48 -0
- package/.agent-src/rules/markdown-safe-codeblocks.md +18 -0
- package/.agent-src/rules/minimal-safe-diff.md +87 -0
- package/.agent-src/rules/missing-tool-handling.md +62 -0
- package/.agent-src/rules/model-recommendation.md +70 -0
- package/.agent-src/rules/package-ci-checks.md +80 -0
- package/.agent-src/rules/php-coding.md +63 -0
- package/.agent-src/rules/preservation-guard.md +29 -0
- package/.agent-src/rules/review-routing-awareness.md +125 -0
- package/.agent-src/rules/reviewer-awareness.md +92 -0
- package/.agent-src/rules/roadmap-progress-sync.md +56 -0
- package/.agent-src/rules/role-mode-adherence.md +54 -0
- package/.agent-src/rules/rule-type-governance.md +46 -0
- package/.agent-src/rules/runtime-safety.md +42 -0
- package/.agent-src/rules/scope-control.md +40 -0
- package/.agent-src/rules/security-sensitive-stop.md +77 -0
- package/.agent-src/rules/size-enforcement.md +29 -0
- package/.agent-src/rules/skill-improvement-trigger.md +58 -0
- package/.agent-src/rules/skill-quality.md +110 -0
- package/.agent-src/rules/slash-commands.md +30 -0
- package/.agent-src/rules/think-before-action.md +91 -0
- package/.agent-src/rules/token-efficiency.md +99 -0
- package/.agent-src/rules/tool-safety.md +36 -0
- package/.agent-src/rules/upstream-proposal.md +76 -0
- package/.agent-src/rules/user-interaction.md +79 -0
- package/.agent-src/rules/verify-before-complete.md +120 -0
- package/.agent-src/scripts/scan-seeder-violations.php +145 -0
- package/.agent-src/scripts/update_roadmap_progress.py +244 -0
- package/.agent-src/skills/adversarial-review/SKILL.md +149 -0
- package/.agent-src/skills/agent-docs-writing/SKILL.md +234 -0
- package/.agent-src/skills/analysis-autonomous-mode/SKILL.md +197 -0
- package/.agent-src/skills/analysis-skill-router/SKILL.md +134 -0
- package/.agent-src/skills/api-design/SKILL.md +104 -0
- package/.agent-src/skills/api-endpoint/SKILL.md +185 -0
- package/.agent-src/skills/api-testing/SKILL.md +206 -0
- package/.agent-src/skills/artisan-commands/SKILL.md +78 -0
- package/.agent-src/skills/authz-review/SKILL.md +171 -0
- package/.agent-src/skills/aws-infrastructure/SKILL.md +152 -0
- package/.agent-src/skills/blade-ui/SKILL.md +75 -0
- package/.agent-src/skills/blast-radius-analyzer/SKILL.md +185 -0
- package/.agent-src/skills/bug-analyzer/SKILL.md +256 -0
- package/.agent-src/skills/check-refs/SKILL.md +72 -0
- package/.agent-src/skills/code-refactoring/SKILL.md +200 -0
- package/.agent-src/skills/code-review/SKILL.md +214 -0
- package/.agent-src/skills/command-routing/SKILL.md +96 -0
- package/.agent-src/skills/command-writing/SKILL.md +143 -0
- package/.agent-src/skills/composer-packages/SKILL.md +172 -0
- package/.agent-src/skills/context-authoring/SKILL.md +157 -0
- package/.agent-src/skills/context-document/SKILL.md +153 -0
- package/.agent-src/skills/conventional-commits-writing/SKILL.md +70 -0
- package/.agent-src/skills/copilot-agents-optimization/SKILL.md +220 -0
- package/.agent-src/skills/copilot-config/SKILL.md +203 -0
- package/.agent-src/skills/dashboard-design/SKILL.md +116 -0
- package/.agent-src/skills/data-flow-mapper/SKILL.md +160 -0
- package/.agent-src/skills/database/SKILL.md +91 -0
- package/.agent-src/skills/dependency-upgrade/SKILL.md +204 -0
- package/.agent-src/skills/description-assist/SKILL.md +169 -0
- package/.agent-src/skills/design-review/SKILL.md +228 -0
- package/.agent-src/skills/devcontainer/SKILL.md +121 -0
- package/.agent-src/skills/developer-like-execution/SKILL.md +276 -0
- package/.agent-src/skills/docker/SKILL.md +245 -0
- package/.agent-src/skills/dto-creator/SKILL.md +117 -0
- package/.agent-src/skills/eloquent/SKILL.md +92 -0
- package/.agent-src/skills/eloquent/evals/last-run.json +99 -0
- package/.agent-src/skills/eloquent/evals/triggers.json +16 -0
- package/.agent-src/skills/estimate-ticket/SKILL.md +186 -0
- package/.agent-src/skills/estimate-ticket/evals/output-schema.yml +20 -0
- package/.agent-src/skills/estimate-ticket/evals/triggers.json +18 -0
- package/.agent-src/skills/fe-design/SKILL.md +223 -0
- package/.agent-src/skills/feature-planning/SKILL.md +226 -0
- package/.agent-src/skills/file-editor/SKILL.md +129 -0
- package/.agent-src/skills/finishing-a-development-branch/SKILL.md +200 -0
- package/.agent-src/skills/flux/SKILL.md +64 -0
- package/.agent-src/skills/git-workflow/SKILL.md +102 -0
- package/.agent-src/skills/github-ci/SKILL.md +122 -0
- package/.agent-src/skills/grafana/SKILL.md +168 -0
- package/.agent-src/skills/guideline-writing/SKILL.md +147 -0
- package/.agent-src/skills/jira-integration/SKILL.md +182 -0
- package/.agent-src/skills/jobs-events/SKILL.md +87 -0
- package/.agent-src/skills/judge-bug-hunter/SKILL.md +157 -0
- package/.agent-src/skills/judge-code-quality/SKILL.md +158 -0
- package/.agent-src/skills/judge-security-auditor/SKILL.md +167 -0
- package/.agent-src/skills/judge-test-coverage/SKILL.md +154 -0
- package/.agent-src/skills/laravel/SKILL.md +195 -0
- package/.agent-src/skills/laravel-horizon/SKILL.md +169 -0
- package/.agent-src/skills/laravel-mail/SKILL.md +193 -0
- package/.agent-src/skills/laravel-middleware/SKILL.md +185 -0
- package/.agent-src/skills/laravel-notifications/SKILL.md +168 -0
- package/.agent-src/skills/laravel-pennant/SKILL.md +188 -0
- package/.agent-src/skills/laravel-pulse/SKILL.md +160 -0
- package/.agent-src/skills/laravel-reverb/SKILL.md +205 -0
- package/.agent-src/skills/laravel-scheduling/SKILL.md +167 -0
- package/.agent-src/skills/laravel-validation/SKILL.md +71 -0
- package/.agent-src/skills/learning-to-rule-or-skill/SKILL.md +249 -0
- package/.agent-src/skills/lint-skills/SKILL.md +72 -0
- package/.agent-src/skills/livewire/SKILL.md +79 -0
- package/.agent-src/skills/logging-monitoring/SKILL.md +100 -0
- package/.agent-src/skills/mcp/SKILL.md +193 -0
- package/.agent-src/skills/merge-conflicts/SKILL.md +158 -0
- package/.agent-src/skills/migration-creator/SKILL.md +160 -0
- package/.agent-src/skills/module-management/SKILL.md +154 -0
- package/.agent-src/skills/multi-tenancy/SKILL.md +129 -0
- package/.agent-src/skills/openapi/SKILL.md +154 -0
- package/.agent-src/skills/override-management/SKILL.md +186 -0
- package/.agent-src/skills/performance/SKILL.md +69 -0
- package/.agent-src/skills/performance-analysis/SKILL.md +118 -0
- package/.agent-src/skills/pest-testing/SKILL.md +321 -0
- package/.agent-src/skills/php-coder/SKILL.md +78 -0
- package/.agent-src/skills/php-coder/evals/triggers.json +16 -0
- package/.agent-src/skills/php-debugging/SKILL.md +184 -0
- package/.agent-src/skills/php-service/SKILL.md +96 -0
- package/.agent-src/skills/playwright-testing/SKILL.md +244 -0
- package/.agent-src/skills/project-analysis-core/SKILL.md +138 -0
- package/.agent-src/skills/project-analysis-hypothesis-driven/SKILL.md +130 -0
- package/.agent-src/skills/project-analysis-laravel/SKILL.md +119 -0
- package/.agent-src/skills/project-analysis-nextjs/SKILL.md +123 -0
- package/.agent-src/skills/project-analysis-node-express/SKILL.md +111 -0
- package/.agent-src/skills/project-analysis-react/SKILL.md +119 -0
- package/.agent-src/skills/project-analysis-symfony/SKILL.md +111 -0
- package/.agent-src/skills/project-analysis-zend-laminas/SKILL.md +108 -0
- package/.agent-src/skills/project-analyzer/SKILL.md +341 -0
- package/.agent-src/skills/project-docs/SKILL.md +137 -0
- package/.agent-src/skills/quality-tools/SKILL.md +411 -0
- package/.agent-src/skills/readme-reviewer/SKILL.md +187 -0
- package/.agent-src/skills/readme-writing/SKILL.md +142 -0
- package/.agent-src/skills/readme-writing-package/SKILL.md +185 -0
- package/.agent-src/skills/receiving-code-review/SKILL.md +190 -0
- package/.agent-src/skills/refine-ticket/SKILL.md +310 -0
- package/.agent-src/skills/refine-ticket/detection-map.yml +124 -0
- package/.agent-src/skills/refine-ticket/evals/output-schema.yml +16 -0
- package/.agent-src/skills/refine-ticket/evals/triggers.json +16 -0
- package/.agent-src/skills/requesting-code-review/SKILL.md +199 -0
- package/.agent-src/skills/review-routing/SKILL.md +195 -0
- package/.agent-src/skills/roadmap-management/SKILL.md +303 -0
- package/.agent-src/skills/rtk-output-filtering/SKILL.md +184 -0
- package/.agent-src/skills/rule-writing/SKILL.md +148 -0
- package/.agent-src/skills/security/SKILL.md +79 -0
- package/.agent-src/skills/security-audit/SKILL.md +123 -0
- package/.agent-src/skills/sentry-integration/SKILL.md +170 -0
- package/.agent-src/skills/sequential-thinking/SKILL.md +158 -0
- package/.agent-src/skills/skill-improvement-pipeline/SKILL.md +155 -0
- package/.agent-src/skills/skill-management/SKILL.md +121 -0
- package/.agent-src/skills/skill-reviewer/SKILL.md +218 -0
- package/.agent-src/skills/skill-writing/SKILL.md +291 -0
- package/.agent-src/skills/skill-writing/evals/triggers.json +16 -0
- package/.agent-src/skills/sql-writing/SKILL.md +74 -0
- package/.agent-src/skills/subagent-orchestration/SKILL.md +190 -0
- package/.agent-src/skills/systematic-debugging/SKILL.md +244 -0
- package/.agent-src/skills/technical-specification/SKILL.md +185 -0
- package/.agent-src/skills/terraform/SKILL.md +137 -0
- package/.agent-src/skills/terragrunt/SKILL.md +217 -0
- package/.agent-src/skills/test-driven-development/SKILL.md +252 -0
- package/.agent-src/skills/test-performance/SKILL.md +172 -0
- package/.agent-src/skills/threat-modeling/SKILL.md +189 -0
- package/.agent-src/skills/traefik/SKILL.md +319 -0
- package/.agent-src/skills/universal-project-analysis/SKILL.md +179 -0
- package/.agent-src/skills/upstream-contribute/SKILL.md +255 -0
- package/.agent-src/skills/using-git-worktrees/SKILL.md +148 -0
- package/.agent-src/skills/validate-feature-fit/SKILL.md +113 -0
- package/.agent-src/skills/verify-before-complete/SKILL.md +188 -0
- package/.agent-src/skills/websocket/SKILL.md +75 -0
- package/.agent-src/templates/AGENTS.md +146 -0
- package/.agent-src/templates/agent-settings.md +256 -0
- package/.agent-src/templates/agents/.gitattributes.fragment +16 -0
- package/.agent-src/templates/agents/agent-project-settings.example.yml +138 -0
- package/.agent-src/templates/agents/memory/architecture-decisions.example.yml +95 -0
- package/.agent-src/templates/agents/memory/domain-invariants.example.yml +80 -0
- package/.agent-src/templates/agents/memory/historical-patterns.example.yml +82 -0
- package/.agent-src/templates/agents/memory/incident-learnings.example.yml +113 -0
- package/.agent-src/templates/agents/memory/ownership.example.yml +75 -0
- package/.agent-src/templates/agents/memory/product-rules.example.yml +87 -0
- package/.agent-src/templates/agents/proposal.example.md +143 -0
- package/.agent-src/templates/command.md +84 -0
- package/.agent-src/templates/contexts/auth-model.md +59 -0
- package/.agent-src/templates/contexts/data-sensitivity.md +60 -0
- package/.agent-src/templates/contexts/deployment-order.md +72 -0
- package/.agent-src/templates/contexts/observability.md +64 -0
- package/.agent-src/templates/contexts/tenant-boundaries.md +68 -0
- package/.agent-src/templates/contexts.md +116 -0
- package/.agent-src/templates/copilot-instructions.md +115 -0
- package/.agent-src/templates/features.md +125 -0
- package/.agent-src/templates/github-workflows/memory-hygiene.yml +133 -0
- package/.agent-src/templates/github-workflows/pr-risk-review.yml +123 -0
- package/.agent-src/templates/github-workflows/proposal-drift.yml +118 -0
- package/.agent-src/templates/overrides/command.md +24 -0
- package/.agent-src/templates/overrides/guideline.md +21 -0
- package/.agent-src/templates/overrides/rule.md +19 -0
- package/.agent-src/templates/overrides/skill.md +24 -0
- package/.agent-src/templates/overrides/template.md +21 -0
- package/.agent-src/templates/persona.md +99 -0
- package/.agent-src/templates/roadmaps.md +109 -0
- package/.agent-src/templates/scripts/README.md +195 -0
- package/.agent-src/templates/scripts/check_memory.py +283 -0
- package/.agent-src/templates/scripts/check_memory_proposal.py +180 -0
- package/.agent-src/templates/scripts/historical-bug-patterns.example.yml +84 -0
- package/.agent-src/templates/scripts/implement_ticket/__init__.py +57 -0
- package/.agent-src/templates/scripts/implement_ticket/__main__.py +9 -0
- package/.agent-src/templates/scripts/implement_ticket/cli.py +171 -0
- package/.agent-src/templates/scripts/implement_ticket/delivery_state.py +130 -0
- package/.agent-src/templates/scripts/implement_ticket/dispatcher.py +134 -0
- package/.agent-src/templates/scripts/implement_ticket/persona_policy.py +85 -0
- package/.agent-src/templates/scripts/implement_ticket/steps/__init__.py +49 -0
- package/.agent-src/templates/scripts/implement_ticket/steps/analyze.py +98 -0
- package/.agent-src/templates/scripts/implement_ticket/steps/implement.py +145 -0
- package/.agent-src/templates/scripts/implement_ticket/steps/memory.py +136 -0
- package/.agent-src/templates/scripts/implement_ticket/steps/plan.py +175 -0
- package/.agent-src/templates/scripts/implement_ticket/steps/refine.py +140 -0
- package/.agent-src/templates/scripts/implement_ticket/steps/report.py +195 -0
- package/.agent-src/templates/scripts/implement_ticket/steps/test.py +180 -0
- package/.agent-src/templates/scripts/implement_ticket/steps/verify.py +170 -0
- package/.agent-src/templates/scripts/memory_hash.py +75 -0
- package/.agent-src/templates/scripts/memory_lookup.py +216 -0
- package/.agent-src/templates/scripts/memory_report.py +184 -0
- package/.agent-src/templates/scripts/memory_signal.py +167 -0
- package/.agent-src/templates/scripts/memory_status.py +156 -0
- package/.agent-src/templates/scripts/ownership-map.example.yml +87 -0
- package/.agent-src/templates/scripts/pr-risk-config.example.yml +76 -0
- package/.agent-src/templates/scripts/pr_review_routing.py +340 -0
- package/.agent-src/templates/scripts/pr_risk_review.py +211 -0
- package/.agent-src/templates/skill.md +136 -0
- package/.augment-plugin/marketplace.json +32 -0
- package/.augment-plugin/plugin.json +21 -0
- package/.claude-plugin/marketplace.json +119 -0
- package/AGENTS.md +121 -0
- package/CHANGELOG.md +279 -0
- package/CONTRIBUTING.md +176 -0
- package/LICENSE +21 -0
- package/README.md +357 -0
- package/bin/install.php +38 -0
- package/composer.json +29 -0
- package/config/agent-settings.template.yml +96 -0
- package/config/profiles/balanced.ini +10 -0
- package/config/profiles/full.ini +10 -0
- package/config/profiles/minimal.ini +10 -0
- package/docs/architecture.md +144 -0
- package/docs/customization.md +88 -0
- package/docs/development.md +171 -0
- package/docs/getting-started.md +130 -0
- package/docs/github-topics.md +84 -0
- package/docs/installation.md +376 -0
- package/docs/mcp.md +133 -0
- package/docs/quality.md +98 -0
- package/docs/skills-catalog.md +136 -0
- package/docs/troubleshooting.md +167 -0
- package/llms.txt +130 -0
- package/package.json +31 -0
- package/scripts/audit_skill_descriptions.py +168 -0
- package/scripts/check_compression.py +221 -0
- package/scripts/check_memory.py +341 -0
- package/scripts/check_memory_proposal.py +180 -0
- package/scripts/check_portability.py +320 -0
- package/scripts/check_proposal.py +269 -0
- package/scripts/check_references.py +400 -0
- package/scripts/ci_summary.py +131 -0
- package/scripts/compress.py +671 -0
- package/scripts/compress.sh +18 -0
- package/scripts/first-run.sh +109 -0
- package/scripts/generate_catalog.py +116 -0
- package/scripts/install +151 -0
- package/scripts/install-hooks.sh +29 -0
- package/scripts/install.py +487 -0
- package/scripts/install.sh +637 -0
- package/scripts/install_anthropic_key.sh +101 -0
- package/scripts/inventory_frontmatter.py +164 -0
- package/scripts/lint_marketplace.py +142 -0
- package/scripts/lint_regression.py +232 -0
- package/scripts/mcp_render.py +159 -0
- package/scripts/measure_patterns.py +376 -0
- package/scripts/memory_hash.py +75 -0
- package/scripts/memory_lookup.py +441 -0
- package/scripts/memory_report.py +336 -0
- package/scripts/memory_signal.py +210 -0
- package/scripts/memory_status.py +195 -0
- package/scripts/postinstall.sh +60 -0
- package/scripts/readme_linter.py +580 -0
- package/scripts/refine_ticket_detect.py +623 -0
- package/scripts/requirements-evals.txt +7 -0
- package/scripts/runtime_dispatcher.py +265 -0
- package/scripts/runtime_handler.py +148 -0
- package/scripts/runtime_registry.py +166 -0
- package/scripts/schemas/command.schema.json +32 -0
- package/scripts/schemas/persona.schema.json +42 -0
- package/scripts/schemas/rule.schema.json +28 -0
- package/scripts/schemas/skill.schema.json +73 -0
- package/scripts/setup.sh +230 -0
- package/scripts/setup_eval_venv.sh +58 -0
- package/scripts/skill_linter.py +2175 -0
- package/scripts/skill_trigger_eval.py +651 -0
- package/scripts/tool_registry.py +146 -0
- package/scripts/tools/__init__.py +1 -0
- package/scripts/tools/adapter_errors.py +63 -0
- package/scripts/tools/base_adapter.py +91 -0
- package/scripts/tools/github_adapter.py +128 -0
- package/scripts/tools/jira_adapter.py +115 -0
- package/scripts/update_counts.py +147 -0
- package/scripts/validate_frontmatter.py +424 -0
- package/templates/consumer-settings/README.md +46 -0
- package/templates/consumer-settings/augment-settings.json +12 -0
- package/templates/consumer-settings/claude-settings.json +9 -0
- package/templates/consumer-settings/copilot-settings.json +14 -0
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: review-changes
|
|
3
|
+
skills: [code-review, subagent-orchestration, judge-bug-hunter, judge-security-auditor, judge-test-coverage, judge-code-quality]
|
|
4
|
+
description: Self-review local changes before creating a PR — dispatches to four specialized judges (bug, security, tests, quality) and consolidates verdicts
|
|
5
|
+
disable-model-invocation: true
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# review-changes
|
|
9
|
+
|
|
10
|
+
## Instructions
|
|
11
|
+
|
|
12
|
+
Review all uncommitted and committed-but-not-pushed changes against
|
|
13
|
+
the default branch (`main`) by dispatching to four specialized judge
|
|
14
|
+
sub-skills and consolidating their verdicts.
|
|
15
|
+
|
|
16
|
+
### 1. Gather the diff
|
|
17
|
+
|
|
18
|
+
- `git diff origin/main..HEAD --stat` — overview of changed files
|
|
19
|
+
- `git diff origin/main..HEAD` — full committed-but-not-pushed diff
|
|
20
|
+
- `git diff --stat` + `git diff` — unstaged changes on top
|
|
21
|
+
|
|
22
|
+
If both diffs are empty, **stop** — nothing to review.
|
|
23
|
+
|
|
24
|
+
### 2. Resolve the judge model
|
|
25
|
+
|
|
26
|
+
Read `.agent-settings.yml`:
|
|
27
|
+
|
|
28
|
+
- `subagents.judge_model` → empty = one tier above the session model
|
|
29
|
+
|
|
30
|
+
Unknown alias → stop. Never silently fall back.
|
|
31
|
+
|
|
32
|
+
### 3. Dispatch to the four judges
|
|
33
|
+
|
|
34
|
+
Each judge receives **the same diff plus the task context** (ticket,
|
|
35
|
+
PR body, commit messages) and runs independently. The judges are:
|
|
36
|
+
|
|
37
|
+
| Sub-skill | Focus |
|
|
38
|
+
|---|---|
|
|
39
|
+
| [`judge-bug-hunter`](../skills/judge-bug-hunter/SKILL.md) | Correctness, null-safety, edge cases, races, error handling |
|
|
40
|
+
| [`judge-security-auditor`](../skills/judge-security-auditor/SKILL.md) | AuthZ/AuthN, injection, secrets, unsafe deserialization, SSRF, XSS |
|
|
41
|
+
| [`judge-test-coverage`](../skills/judge-test-coverage/SKILL.md) | Missing assertions, uncovered branches, over-mocking, regression-test gaps |
|
|
42
|
+
| [`judge-code-quality`](../skills/judge-code-quality/SKILL.md) | Naming, SRP, DRY, dead code, consistency with codebase conventions |
|
|
43
|
+
|
|
44
|
+
Pick dispatch mode based on diff size and environment:
|
|
45
|
+
|
|
46
|
+
- **Sequential** (default, simplest) — run bug-hunter → security-auditor
|
|
47
|
+
→ test-coverage → code-quality, collect each verdict
|
|
48
|
+
- **Parallel** — if `subagents.max_parallel` in `.agent-settings.yml` is
|
|
49
|
+
≥ 4 and subagent dispatch is available, run all four concurrently
|
|
50
|
+
following the `do-in-parallel` pattern in
|
|
51
|
+
[`subagent-orchestration`](../skills/subagent-orchestration/SKILL.md);
|
|
52
|
+
the four judges operate on the same diff but produce independent
|
|
53
|
+
reports, so no shared-state risk
|
|
54
|
+
|
|
55
|
+
Each judge returns its own `Judge / Model / Target / Verdict /
|
|
56
|
+
Issues` block in the format defined by that skill.
|
|
57
|
+
|
|
58
|
+
### 4. Consolidate
|
|
59
|
+
|
|
60
|
+
Produce one combined report:
|
|
61
|
+
|
|
62
|
+
- List each judge's verdict side by side
|
|
63
|
+
- Merge issues into a single severity-sorted table (🔴 → 🟡 → 🟢),
|
|
64
|
+
tagged with the judge that raised each one
|
|
65
|
+
- Highlight any finding that multiple judges flagged — those are the
|
|
66
|
+
highest-confidence items
|
|
67
|
+
|
|
68
|
+
### 5. Decide next steps
|
|
69
|
+
|
|
70
|
+
- If **any** judge returned `reject` → stop; the approach must change
|
|
71
|
+
before proceeding
|
|
72
|
+
- If **any** judge returned `revise` → fix 🔴 findings automatically,
|
|
73
|
+
ask before fixing 🟡 findings, report 🟢 as suggestions
|
|
74
|
+
- If all four returned `apply` → the diff is ready; report and stop
|
|
75
|
+
|
|
76
|
+
### 6. Quality tools (optional)
|
|
77
|
+
|
|
78
|
+
After the consolidated report, ask:
|
|
79
|
+
|
|
80
|
+
```
|
|
81
|
+
> 1. Yes — run quality tools (formatter, static analyzer, linters)
|
|
82
|
+
> 2. No — review done
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
If yes, hand off to the project's quality workflow (e.g. `/quality-fix`
|
|
86
|
+
or the equivalent configured command).
|
|
87
|
+
|
|
88
|
+
## Backward compatibility
|
|
89
|
+
|
|
90
|
+
- Invocation is unchanged: `/review-changes` with no arguments still
|
|
91
|
+
reviews the full uncommitted-plus-committed-not-pushed diff
|
|
92
|
+
- A user who invokes `/review-changes` on a diff that has no test
|
|
93
|
+
files still gets coverage feedback — `judge-test-coverage` treats
|
|
94
|
+
"production changed, no test changed" as its primary finding
|
|
95
|
+
- Project-specific syntax checks (e.g. `php -l`, linter pre-pass) are
|
|
96
|
+
out of scope for the judges and belong in the optional step 6
|
|
97
|
+
quality tools hand-off
|
|
98
|
+
|
|
99
|
+
## Use this command when
|
|
100
|
+
|
|
101
|
+
- Preparing a self-review before opening a PR
|
|
102
|
+
- Stress-testing a local branch with the same four lenses a reviewer
|
|
103
|
+
would apply
|
|
104
|
+
- Sanity-checking a diff before handing it to `/create-pr`
|
|
105
|
+
|
|
106
|
+
## Do NOT
|
|
107
|
+
|
|
108
|
+
- NEVER apply fixes without showing the consolidated report first
|
|
109
|
+
- NEVER skip a judge because the diff "looks fine" — each judge must
|
|
110
|
+
produce its own verdict
|
|
111
|
+
- NEVER merge two judges' outputs into a single block — the user
|
|
112
|
+
needs to see which lens raised each finding
|
|
113
|
+
- NEVER commit or push from this command — review only
|
|
114
|
+
- NEVER run on an empty diff; fail fast
|
|
115
|
+
|
|
116
|
+
## See also
|
|
117
|
+
|
|
118
|
+
- [`subagent-orchestration`](../skills/subagent-orchestration/SKILL.md) — dispatch and model-pairing rules
|
|
119
|
+
- [`/do-and-judge`](do-and-judge.md) — implementer + judge loop for a single change
|
|
120
|
+
- [`/judge`](judge.md) — standalone judge, no review-changes dispatch
|
|
121
|
+
- [`code-review`](../skills/code-review/SKILL.md) — human-oriented review patterns (tone, feedback handling)
|
|
122
|
+
- [`role-contracts`](../guidelines/agent-infra/role-contracts.md#reviewer) — Reviewer mode output contract (Summary / Risks / Findings / Required actions / Verdict)
|
|
123
|
+
|
|
124
|
+
## References
|
|
125
|
+
|
|
126
|
+
- **LLM-as-a-Judge** — [arxiv.org/abs/2306.05685](https://arxiv.org/abs/2306.05685)
|
|
127
|
+
MT-Bench and Chatbot Arena — judging LLM outputs with LLM judges.
|
|
128
|
+
This command adapts the pattern by dispatching to four specialized
|
|
129
|
+
judges (bug, security, tests, quality) instead of a single generic
|
|
130
|
+
judge, and consolidating their verdicts.
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: review-routing
|
|
3
|
+
skills: [review-routing, reviewer-awareness, review-routing-awareness]
|
|
4
|
+
description: Compute reviewer roles and matched historical bug patterns for the current diff, using project-local ownership-map.yml and historical-bug-patterns.yml
|
|
5
|
+
disable-model-invocation: true
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# review-routing
|
|
9
|
+
|
|
10
|
+
## Instructions
|
|
11
|
+
|
|
12
|
+
Produce a review-routing block for the current diff — owner-mapped
|
|
13
|
+
reviewer roles plus any matched historical bug patterns — so the author
|
|
14
|
+
knows *who* to request and *what* to test before opening a PR.
|
|
15
|
+
|
|
16
|
+
Dispatches to [`review-routing`](../skills/review-routing/SKILL.md) for
|
|
17
|
+
the core resolution logic. The rules
|
|
18
|
+
[`reviewer-awareness`](../rules/reviewer-awareness.md) and
|
|
19
|
+
[`review-routing-awareness`](../rules/review-routing-awareness.md) govern
|
|
20
|
+
the output format and data handling.
|
|
21
|
+
|
|
22
|
+
### 1. Gather the diff
|
|
23
|
+
|
|
24
|
+
- **Default** — use `git diff --name-only origin/main...HEAD` (or the
|
|
25
|
+
configured trunk branch from `.agent-settings.yml`).
|
|
26
|
+
- **Explicit** — if the user provides a base and head ref, honour them.
|
|
27
|
+
- **Empty diff** — stop with _"no changes, routing skipped"_.
|
|
28
|
+
|
|
29
|
+
### 2. Dispatch to the skill
|
|
30
|
+
|
|
31
|
+
Invoke [`review-routing`](../skills/review-routing/SKILL.md) with the
|
|
32
|
+
changed-file list. The skill:
|
|
33
|
+
|
|
34
|
+
1. Loads `ownership-map.yml` and `historical-bug-patterns.yml` (both
|
|
35
|
+
optional, package-agnostic paths).
|
|
36
|
+
2. Matches every file against ownership globs (first match wins).
|
|
37
|
+
3. Walks every pattern against the diff.
|
|
38
|
+
4. Computes overall severity (`high` wins).
|
|
39
|
+
5. Returns the structured block.
|
|
40
|
+
|
|
41
|
+
If neither data file exists, the skill returns the generic fallback
|
|
42
|
+
from [`reviewer-awareness`](../rules/reviewer-awareness.md). That is
|
|
43
|
+
valid output — do not invent owners.
|
|
44
|
+
|
|
45
|
+
### 3. Present the result
|
|
46
|
+
|
|
47
|
+
Paste the skill's structured block verbatim under a short header:
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
## Review Routing (from project data)
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Append, if present:
|
|
54
|
+
|
|
55
|
+
- **Staleness warning** — ownership map > 6 months old.
|
|
56
|
+
- **Required tests** — extracted from matched historical patterns, as a
|
|
57
|
+
follow-up checklist the author must honour before claiming completion
|
|
58
|
+
([`verify-before-complete`](../rules/verify-before-complete.md)).
|
|
59
|
+
|
|
60
|
+
### 4. Decide next step
|
|
61
|
+
|
|
62
|
+
After the block, ask:
|
|
63
|
+
|
|
64
|
+
```
|
|
65
|
+
> 1. Add this routing block to my PR description
|
|
66
|
+
> 2. Request these reviewers now (via gh / GitLab CLI)
|
|
67
|
+
> 3. Re-run after I update the ownership map
|
|
68
|
+
> 4. Stop here — routing block is the deliverable
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
- On **1**: hand off to
|
|
72
|
+
[`create-pr-description`](../skills/create-pr-description/SKILL.md).
|
|
73
|
+
- On **2**: respect CODEOWNERS — request the *roles* resolved to people
|
|
74
|
+
by the consumer's own mapping, never invent usernames.
|
|
75
|
+
- On **3**: the user wants to curate the map first. Stop.
|
|
76
|
+
- On **4**: save the block, stop.
|
|
77
|
+
|
|
78
|
+
## Use this command when
|
|
79
|
+
|
|
80
|
+
- About to open a PR and unsure who should review it.
|
|
81
|
+
- Preparing a PR description and want owner-mapped reviewers in it.
|
|
82
|
+
- Running a sanity check against historical patterns before claiming
|
|
83
|
+
completion.
|
|
84
|
+
- CI needs the routing block for a sticky PR comment.
|
|
85
|
+
|
|
86
|
+
## Do NOT
|
|
87
|
+
|
|
88
|
+
- NEVER invent owners for paths not in the ownership map — use the
|
|
89
|
+
generic fallback and say so.
|
|
90
|
+
- NEVER emit individual GitHub usernames in the routing block; the
|
|
91
|
+
block contains **roles**, CODEOWNERS contains **people**.
|
|
92
|
+
- NEVER downgrade a historical-pattern match because "the author said
|
|
93
|
+
it's fine" — pattern severity is set in the YAML, not negotiated per
|
|
94
|
+
PR.
|
|
95
|
+
- NEVER modify `ownership-map.yml` or `historical-bug-patterns.yml` as
|
|
96
|
+
a side effect of this command.
|
|
97
|
+
- NEVER run this command on a PR with zero changed files — it produces
|
|
98
|
+
meaningless noise.
|
|
99
|
+
|
|
100
|
+
## See also
|
|
101
|
+
|
|
102
|
+
- [`review-routing`](../skills/review-routing/SKILL.md) — the resolver
|
|
103
|
+
- [`reviewer-awareness`](../rules/reviewer-awareness.md) — role vocabulary
|
|
104
|
+
- [`review-routing-awareness`](../rules/review-routing-awareness.md) —
|
|
105
|
+
data-source rules
|
|
106
|
+
- [`review-routing-data-format`](../guidelines/agent-infra/review-routing-data-format.md)
|
|
107
|
+
— YAML schemas
|
|
108
|
+
- [`create-pr-description`](../skills/create-pr-description/SKILL.md) —
|
|
109
|
+
consumes the routing block
|
|
110
|
+
- [`verify-before-complete`](../rules/verify-before-complete.md) —
|
|
111
|
+
consumes the `required_test` list
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: roadmap-create
|
|
3
|
+
skills: [agent-docs-writing]
|
|
4
|
+
description: Interactively create a new roadmap file in agents/roadmaps/
|
|
5
|
+
disable-model-invocation: true
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# roadmap-create
|
|
9
|
+
|
|
10
|
+
## Instructions
|
|
11
|
+
|
|
12
|
+
### 1. Determine location
|
|
13
|
+
|
|
14
|
+
Ask the user (in their language) where the roadmap should be created:
|
|
15
|
+
|
|
16
|
+
> 1. Project root (`agents/roadmaps/`)
|
|
17
|
+
> 2. In a module (`app/Modules/{Name}/agents/roadmaps/`)
|
|
18
|
+
|
|
19
|
+
If the user picks a module → ask which module (list available modules if needed).
|
|
20
|
+
Create the `agents/roadmaps/` directory if it doesn't exist at the chosen location.
|
|
21
|
+
|
|
22
|
+
### 2. Read the roadmap template
|
|
23
|
+
|
|
24
|
+
- Read `.augment/templates/roadmaps.md` for the roadmap structure.
|
|
25
|
+
- Use its structure as the basis for the new roadmap.
|
|
26
|
+
|
|
27
|
+
### 3. Gather content interactively
|
|
28
|
+
|
|
29
|
+
Ask the user (in their language) step by step:
|
|
30
|
+
|
|
31
|
+
1. **Title / goal**: What is the goal of this roadmap? (one sentence)
|
|
32
|
+
2. **Context**: What context is important? (module, affected classes, Jira tickets, etc.)
|
|
33
|
+
3. **Phases**: What phases does the roadmap have? (e.g. "Phase 1: Preparation, Phase 2: Migration, Phase 3: Cleanup")
|
|
34
|
+
4. For each phase → What steps belong in Phase {N}?
|
|
35
|
+
|
|
36
|
+
After each input, show what you've captured and ask the user (in their language) to confirm or adjust.
|
|
37
|
+
|
|
38
|
+
**Important:** The user may answer in any language, but the roadmap file must be written in **English**.
|
|
39
|
+
Translate user input to English when writing the file.
|
|
40
|
+
|
|
41
|
+
### 4. Build the roadmap file
|
|
42
|
+
|
|
43
|
+
Use the template structure:
|
|
44
|
+
|
|
45
|
+
```markdown
|
|
46
|
+
# Roadmap: {title}
|
|
47
|
+
|
|
48
|
+
> {One sentence goal}
|
|
49
|
+
|
|
50
|
+
## Prerequisites
|
|
51
|
+
|
|
52
|
+
- [ ] Read `AGENTS.md` and relevant module docs
|
|
53
|
+
- [ ] {any specific prerequisites}
|
|
54
|
+
|
|
55
|
+
## Context
|
|
56
|
+
|
|
57
|
+
{Context from user input}
|
|
58
|
+
|
|
59
|
+
## Phase 1: {name}
|
|
60
|
+
|
|
61
|
+
- [ ] **Step 1:** {description}
|
|
62
|
+
- [ ] **Step 2:** {description}
|
|
63
|
+
- [ ] ...
|
|
64
|
+
|
|
65
|
+
## Phase 2: {name}
|
|
66
|
+
|
|
67
|
+
- [ ] **Step 1:** {description}
|
|
68
|
+
- [ ] ...
|
|
69
|
+
|
|
70
|
+
## Acceptance Criteria
|
|
71
|
+
|
|
72
|
+
- [ ] {criteria}
|
|
73
|
+
- [ ] All quality gates pass (PHPStan, Rector, tests)
|
|
74
|
+
|
|
75
|
+
## Notes
|
|
76
|
+
|
|
77
|
+
{Optional notes}
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
### 5. Review loop
|
|
81
|
+
|
|
82
|
+
Show the complete roadmap to the user and ask (in their language) if anything should be added or changed.
|
|
83
|
+
|
|
84
|
+
- If yes → apply changes, show again.
|
|
85
|
+
- Repeat until the user says it's done.
|
|
86
|
+
|
|
87
|
+
### 6. Save the file
|
|
88
|
+
|
|
89
|
+
- Generate a filename from the title: kebab-case, e.g. `optimize-webhook-jobs.md`.
|
|
90
|
+
- Save to the chosen location.
|
|
91
|
+
- Show the final path.
|
|
92
|
+
|
|
93
|
+
### 7. Update the progress dashboard
|
|
94
|
+
|
|
95
|
+
Run `task roadmap-progress` so the new roadmap shows up in
|
|
96
|
+
`agents/roadmaps-progress.md`. Mention the new overall count to the user.
|
|
97
|
+
|
|
98
|
+
### 8. Offer execution
|
|
99
|
+
|
|
100
|
+
After saving, ask the user (in their language) whether to start executing the roadmap immediately.
|
|
101
|
+
|
|
102
|
+
If yes → switch to the `roadmap-execute` command workflow with the newly created file.
|
|
103
|
+
|
|
104
|
+
### Rules
|
|
105
|
+
|
|
106
|
+
- **Do NOT auto-generate content** — always ask the user for input.
|
|
107
|
+
- **Do NOT commit or push.**
|
|
108
|
+
- **Write the roadmap in English** (per project convention for `.md` files).
|
|
109
|
+
- Follow the roadmap template from `.augment/templates/roadmaps.md`.
|
|
110
|
+
- Keep the file focused: 500–1000 lines max. If larger, suggest splitting.
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: roadmap-execute
|
|
3
|
+
skills: [agent-docs-writing]
|
|
4
|
+
description: Read and interactively execute a roadmap from agents/roadmaps/
|
|
5
|
+
disable-model-invocation: true
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# roadmap-execute
|
|
9
|
+
|
|
10
|
+
## Instructions
|
|
11
|
+
|
|
12
|
+
### 1. Find the roadmap
|
|
13
|
+
|
|
14
|
+
- List all roadmap files: `agents/roadmaps/*.md` (project root) and `app/Modules/*/agents/roadmaps/*.md` (modules).
|
|
15
|
+
- Exclude `template.md`.
|
|
16
|
+
- If only one roadmap exists → use it (confirm with user).
|
|
17
|
+
- If multiple exist → present a numbered list and let the user choose.
|
|
18
|
+
- If none exist → tell the user and suggest running `roadmap-create`.
|
|
19
|
+
|
|
20
|
+
### 2. Read and understand the roadmap
|
|
21
|
+
|
|
22
|
+
- Read the full roadmap file.
|
|
23
|
+
- Identify the **phases** and **steps/tasks** within each phase.
|
|
24
|
+
- Determine which steps are already completed (look for checkboxes `[x]`, status markers, or "done" notes).
|
|
25
|
+
- Present a summary to the user:
|
|
26
|
+
> "Roadmap: {title}"
|
|
27
|
+
> "Phase 1: {name} — 3/5 Schritte erledigt"
|
|
28
|
+
> "Phase 2: {name} — noch nicht begonnen"
|
|
29
|
+
> "Next open step: {step description}"
|
|
30
|
+
|
|
31
|
+
### 3. Execute step by step
|
|
32
|
+
|
|
33
|
+
For each open step:
|
|
34
|
+
|
|
35
|
+
1. **Summarize** what needs to be done (in the user's language).
|
|
36
|
+
2. **Analyze** the codebase to understand what's needed for this step.
|
|
37
|
+
3. **Present a plan** — what files to change, what approach to take.
|
|
38
|
+
4. **Ask for confirmation**: "Should I implement this step?"
|
|
39
|
+
- If yes → implement, run quality checks, mark step as done in the roadmap file.
|
|
40
|
+
- If no / skip → move to the next step.
|
|
41
|
+
- If the user wants to stop → stop and summarize progress.
|
|
42
|
+
|
|
43
|
+
### 4. After each step
|
|
44
|
+
|
|
45
|
+
- Update the roadmap file: mark the completed step (e.g. `[x]` or add a completion note).
|
|
46
|
+
- Run quality tools if code was changed (PHPStan at minimum).
|
|
47
|
+
- Run `task roadmap-progress` so `agents/roadmaps-progress.md` reflects the new state.
|
|
48
|
+
- Ask: "Continue with the next step?"
|
|
49
|
+
|
|
50
|
+
### 5. After all steps in a phase
|
|
51
|
+
|
|
52
|
+
- Summarize what was accomplished in the phase.
|
|
53
|
+
- Ask: "Phase {N} complete. Continue with Phase {N+1}?"
|
|
54
|
+
|
|
55
|
+
### 6. When done (or stopped)
|
|
56
|
+
|
|
57
|
+
- Summarize total progress: steps completed, steps remaining.
|
|
58
|
+
- Update the roadmap file with the current status.
|
|
59
|
+
- Run `task roadmap-progress` one last time so the dashboard matches the final state.
|
|
60
|
+
- **If ALL steps are done** → trigger the completion & archiving workflow from the `roadmap-management` skill.
|
|
61
|
+
|
|
62
|
+
### Rules
|
|
63
|
+
|
|
64
|
+
- **Do NOT commit or push** — only apply local changes and update the roadmap file.
|
|
65
|
+
- **Always ask before implementing** a step — never auto-execute.
|
|
66
|
+
- **Run quality checks** after each code change.
|
|
67
|
+
- If a step is unclear or too large, suggest breaking it down further.
|
|
68
|
+
- If a step reveals a problem not covered in the roadmap, flag it to the user.
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: rule-compliance-audit
|
|
3
|
+
description: Audit rule trigger quality, simulate activation, detect overlaps, and find never-activating rules
|
|
4
|
+
disable-model-invocation: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# rule-compliance-audit
|
|
8
|
+
|
|
9
|
+
## Instructions
|
|
10
|
+
|
|
11
|
+
### 1. Inventory all rules
|
|
12
|
+
|
|
13
|
+
Read every `.md` file in `.agent-src.uncompressed/rules/`. For each rule, extract:
|
|
14
|
+
|
|
15
|
+
- **Name** (filename without `.md`)
|
|
16
|
+
- **Type** (`always` or `auto`)
|
|
17
|
+
- **alwaysApply** (`true` or `false`)
|
|
18
|
+
- **Description** (the trigger description)
|
|
19
|
+
|
|
20
|
+
Display:
|
|
21
|
+
|
|
22
|
+
```
|
|
23
|
+
═══════════════════════════════════════════════
|
|
24
|
+
🔍 RULE COMPLIANCE AUDIT
|
|
25
|
+
═══════════════════════════════════════════════
|
|
26
|
+
|
|
27
|
+
Rules: {total} ({always_count} always, {auto_count} auto)
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### 2. Trigger quality check (auto-rules only)
|
|
31
|
+
|
|
32
|
+
For each auto-rule, evaluate the `description` field:
|
|
33
|
+
|
|
34
|
+
**Strong trigger** ✅ — contains:
|
|
35
|
+
- Specific keywords a user would type (e.g., "PHPStan", "commit", "Docker")
|
|
36
|
+
- Concrete action verbs (e.g., "creating", "editing", "running")
|
|
37
|
+
- Specific file types or paths (e.g., ".augment/", "Blade views")
|
|
38
|
+
|
|
39
|
+
**Weak trigger** ⚠️ — has ANY of:
|
|
40
|
+
- Only abstract nouns ("quality", "best practices", "patterns")
|
|
41
|
+
- No concrete keywords that match user prompts
|
|
42
|
+
- Overlaps significantly with another rule's description
|
|
43
|
+
- Too broad ("when working with code")
|
|
44
|
+
|
|
45
|
+
Display per rule:
|
|
46
|
+
|
|
47
|
+
```
|
|
48
|
+
✅ {name}: "{description}" — keywords: {extracted keywords}
|
|
49
|
+
⚠️ {name}: "{description}" — WEAK: {reason}
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### 3. Trigger simulation
|
|
53
|
+
|
|
54
|
+
For each auto-rule, generate **3 realistic user prompts** that SHOULD activate the rule.
|
|
55
|
+
Then check: does the description contain enough keywords to match?
|
|
56
|
+
|
|
57
|
+
Display:
|
|
58
|
+
|
|
59
|
+
```
|
|
60
|
+
───────────────────────────────────────────────
|
|
61
|
+
TRIGGER SIMULATION
|
|
62
|
+
───────────────────────────────────────────────
|
|
63
|
+
|
|
64
|
+
{rule-name}:
|
|
65
|
+
Description: "{description}"
|
|
66
|
+
Test prompts:
|
|
67
|
+
1. "{prompt}" → {✅ would match | ⚠️ might miss}
|
|
68
|
+
2. "{prompt}" → {✅ would match | ⚠️ might miss}
|
|
69
|
+
3. "{prompt}" → {✅ would match | ⚠️ might miss}
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Only show rules where at least 1 prompt might miss.
|
|
73
|
+
|
|
74
|
+
### 4. Overlap detection
|
|
75
|
+
|
|
76
|
+
Compare all rule descriptions pairwise. Flag pairs where:
|
|
77
|
+
- >50% keyword overlap
|
|
78
|
+
- Same domain but different scope (one should be merged or narrowed)
|
|
79
|
+
|
|
80
|
+
```
|
|
81
|
+
───────────────────────────────────────────────
|
|
82
|
+
OVERLAP ANALYSIS
|
|
83
|
+
───────────────────────────────────────────────
|
|
84
|
+
|
|
85
|
+
⚠️ {rule-a} ↔ {rule-b}: overlapping keywords: {list}
|
|
86
|
+
Recommendation: {merge | narrow scope | keep separate because...}
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
If no overlaps found: `✅ No significant overlaps detected.`
|
|
90
|
+
|
|
91
|
+
### 5. Always-rule health check
|
|
92
|
+
|
|
93
|
+
For each always-rule, check:
|
|
94
|
+
- **Size** — >100 lines = ⚠️ (token cost on every request)
|
|
95
|
+
- **Specificity** — does it apply to ALL tasks? If not, should it be auto instead?
|
|
96
|
+
|
|
97
|
+
```
|
|
98
|
+
───────────────────────────────────────────────
|
|
99
|
+
ALWAYS-RULE HEALTH
|
|
100
|
+
───────────────────────────────────────────────
|
|
101
|
+
|
|
102
|
+
{name}: {line_count} lines — {✅ healthy | ⚠️ large (>100 lines) | ⚠️ could be auto}
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
### 6. Summary and recommendations
|
|
106
|
+
|
|
107
|
+
```
|
|
108
|
+
═══════════════════════════════════════════════
|
|
109
|
+
📊 AUDIT SUMMARY
|
|
110
|
+
═══════════════════════════════════════════════
|
|
111
|
+
|
|
112
|
+
Total rules: {total}
|
|
113
|
+
Strong triggers: {count} ✅
|
|
114
|
+
Weak triggers: {count} ⚠️
|
|
115
|
+
Overlapping pairs: {count}
|
|
116
|
+
Large always-rules: {count}
|
|
117
|
+
|
|
118
|
+
Recommendations:
|
|
119
|
+
{numbered list of concrete actions}
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
Present recommendations as numbered options:
|
|
123
|
+
|
|
124
|
+
```
|
|
125
|
+
> 1. Fix weak trigger: {rule} — suggested description: "{improved}"
|
|
126
|
+
> 2. Narrow overlap: {rule-a} vs {rule-b} — {action}
|
|
127
|
+
> 3. Convert to auto: {rule} — only applies to {specific context}
|
|
128
|
+
> 4. No changes needed ✅
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
Wait for user to pick which recommendations to apply.
|
|
132
|
+
|
|
133
|
+
## Rules
|
|
134
|
+
|
|
135
|
+
- **Do NOT modify any files** until the user approves recommendations.
|
|
136
|
+
- **Do NOT run any scripts** — this is a pure analysis command.
|
|
137
|
+
- **Be honest about uncertainty** — if a trigger might or might not match, say "might miss".
|
|
138
|
+
- **Always-rules are expensive** — flag any that could safely be auto.
|
|
139
|
+
- **Auto-rules that never activate are dead weight** — flag them clearly.
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: tests-create
|
|
3
|
+
skills: [pest-testing]
|
|
4
|
+
description: Write meaningful tests for the changes in the current branch
|
|
5
|
+
disable-model-invocation: true
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# tests-create
|
|
9
|
+
|
|
10
|
+
## Instructions
|
|
11
|
+
|
|
12
|
+
### 1. Detect the test framework
|
|
13
|
+
|
|
14
|
+
- Check if **Pest** is installed: look for `pestphp/pest` in `composer.json` or `vendor/bin/pest`.
|
|
15
|
+
- If Pest is available → write **Pest tests**.
|
|
16
|
+
- If Pest is not installed → write **PHPUnit tests**.
|
|
17
|
+
- Check existing tests in the project (`tests/` directory) to match the style and conventions already in use.
|
|
18
|
+
|
|
19
|
+
### 2. Identify what changed
|
|
20
|
+
|
|
21
|
+
- Run `git diff origin/main..HEAD --name-only` or `git diff origin/master..HEAD --name-only` (depending on project) to get all changed
|
|
22
|
+
files.
|
|
23
|
+
- Focus on **PHP files with business logic** — skip config files, migrations, views, etc.
|
|
24
|
+
- Read each changed file and understand what was added or modified.
|
|
25
|
+
|
|
26
|
+
### 3. Understand the code before writing tests
|
|
27
|
+
|
|
28
|
+
- Use `codebase-retrieval` to understand the classes, their dependencies, and how they're used.
|
|
29
|
+
- Read existing tests for the same or related classes to match patterns.
|
|
30
|
+
- Understand what the method is supposed to do, not just what it does.
|
|
31
|
+
|
|
32
|
+
### 4. Write meaningful tests
|
|
33
|
+
|
|
34
|
+
**DO write tests that:**
|
|
35
|
+
|
|
36
|
+
- Test the **actual business logic** and expected behavior.
|
|
37
|
+
- Cover **edge cases**: null values, empty strings, boundary values, invalid input.
|
|
38
|
+
- Test **error handling**: what happens when things go wrong?
|
|
39
|
+
- Test **different code paths**: if/else branches, early returns, fallback behavior.
|
|
40
|
+
- Verify **return values and side effects** that matter.
|
|
41
|
+
- Use descriptive test names that explain the scenario (e.g. `it returns fallback status when input is empty`).
|
|
42
|
+
|
|
43
|
+
**Do NOT write tests that:**
|
|
44
|
+
|
|
45
|
+
- Assert trivial things like parameter count, method existence, or class name.
|
|
46
|
+
- Just repeat the implementation as assertions (testing that `1+1` returns `2` when the code literally does `1+1`).
|
|
47
|
+
- Test framework internals or getter/setter boilerplate.
|
|
48
|
+
- Test private methods directly — test through the public API.
|
|
49
|
+
- Have no real assertion value (e.g. "it does not throw" without meaningful setup).
|
|
50
|
+
|
|
51
|
+
### 5. Test structure
|
|
52
|
+
|
|
53
|
+
- One test file per class/service being tested.
|
|
54
|
+
- Place tests in the matching directory structure under `tests/` (mirror the source structure).
|
|
55
|
+
- Group related tests with `describe` blocks (Pest) or separate test methods (PHPUnit).
|
|
56
|
+
- Use data providers for testing multiple input/output combinations.
|
|
57
|
+
- Mock external dependencies (database, HTTP, file system) — don't test infrastructure.
|
|
58
|
+
|
|
59
|
+
### 6. Verify
|
|
60
|
+
|
|
61
|
+
- Run the tests locally in the PHP container to make sure they pass.
|
|
62
|
+
- If a test fails, fix it — don't just delete it.
|
|
63
|
+
|
|
64
|
+
### Rules
|
|
65
|
+
|
|
66
|
+
- **Do NOT commit or push.**
|
|
67
|
+
- **Quality over quantity** — 5 meaningful tests beat 20 trivial ones.
|
|
68
|
+
- If a class is hard to test (too many dependencies, global state), flag it and suggest a refactoring approach instead of writing brittle
|
|
69
|
+
tests.
|
|
70
|
+
|
|
71
|
+
## See also
|
|
72
|
+
|
|
73
|
+
- [`role-contracts`](../guidelines/agent-infra/role-contracts.md#tester) — Tester mode output contract (Behaviour under test / Edge cases / Negative paths / Reproduction / Coverage gaps)
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: tests-execute
|
|
3
|
+
skills: [pest-testing]
|
|
4
|
+
description: Run PHP tests inside the Docker container
|
|
5
|
+
disable-model-invocation: true
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# tests-execute
|
|
9
|
+
|
|
10
|
+
## Instructions
|
|
11
|
+
|
|
12
|
+
### 1. Detect the test runner
|
|
13
|
+
|
|
14
|
+
Check in this order — use the **first match**:
|
|
15
|
+
|
|
16
|
+
1. **Makefile** exists → look for test targets (`make test`, `make test-unit`, etc.)
|
|
17
|
+
2. **Taskfile.yml** exists → look for test tasks (`task test`, `task test-unit`, etc.)
|
|
18
|
+
3. **`artisan` exists** → Laravel project → `php artisan test`
|
|
19
|
+
4. **`vendor/bin/pest` exists** → Pest → `vendor/bin/pest`
|
|
20
|
+
5. **Fallback** → PHPUnit → `vendor/bin/phpunit`
|
|
21
|
+
|
|
22
|
+
**Prefer Makefile/Taskfile targets** over raw commands — they handle container access,
|
|
23
|
+
environment variables, and parallel settings automatically.
|
|
24
|
+
|
|
25
|
+
### 2. Run the tests
|
|
26
|
+
|
|
27
|
+
- If using Makefile/Taskfile targets → run from host (they handle Docker internally).
|
|
28
|
+
- If using raw commands → execute **inside the PHP Docker container** (`docker compose exec -T <service> ...`).
|
|
29
|
+
Detect the PHP service name from `docker-compose.yml` / `compose.yaml` (see `rules/docker-commands.md`).
|
|
30
|
+
- If the user provided a specific test file or filter, pass it through:
|
|
31
|
+
- Pest/Artisan: `--filter="test name"` or `tests/path/to/TestFile.php`
|
|
32
|
+
- PHPUnit: `--filter="test name"` or `tests/path/to/TestFile.php`
|
|
33
|
+
- If no specific test is requested, run the full test suite.
|
|
34
|
+
|
|
35
|
+
### 3. Analyze results
|
|
36
|
+
|
|
37
|
+
- If all tests pass → report success with a short summary.
|
|
38
|
+
- If tests fail:
|
|
39
|
+
- Show the failing test name, expected vs actual values, and the relevant code.
|
|
40
|
+
- Analyze the failure — is it a bug in the code or a bug in the test?
|
|
41
|
+
- **Ask the user** with numbered options:
|
|
42
|
+
```
|
|
43
|
+
> 1. Fix the code — the test is correct
|
|
44
|
+
> 2. Fix the test — the code is correct
|
|
45
|
+
> 3. Skip — I'll handle this myself
|
|
46
|
+
```
|
|
47
|
+
- If the user says fix it, apply the fix and re-run.
|
|
48
|
+
|
|
49
|
+
### 4. Re-run until green
|
|
50
|
+
|
|
51
|
+
- After any fix, re-run the failing tests to verify.
|
|
52
|
+
- Repeat until all tests pass.
|
|
53
|
+
|
|
54
|
+
### Rules
|
|
55
|
+
|
|
56
|
+
- **Do NOT commit or push.**
|
|
57
|
+
- **Always ask before changing test assertions** — the test might be correct and the code wrong.
|
|
58
|
+
- If tests are slow (>2 min), suggest running only the affected test file instead of the full suite.
|