@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,234 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: agent-docs-writing
|
|
3
|
+
description: "Use when reading, creating, or updating agent documentation, module docs, roadmaps, or AGENTS.md. Understands the full .augment/, agents/, and copilot-instructions structure."
|
|
4
|
+
source: package
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# agent-docs
|
|
8
|
+
|
|
9
|
+
## When to use
|
|
10
|
+
|
|
11
|
+
Use this skill when:
|
|
12
|
+
- Navigating the documentation structure to find relevant information
|
|
13
|
+
- Creating or updating agent documentation after changes
|
|
14
|
+
- Setting up documentation for a new module or package
|
|
15
|
+
- Understanding what documentation exists and where
|
|
16
|
+
|
|
17
|
+
Do NOT use when:
|
|
18
|
+
- Creating code or making technical changes (use coding skills)
|
|
19
|
+
- Looking for coding guidelines (use `guidelines` skill)
|
|
20
|
+
|
|
21
|
+
## Documentation hierarchy
|
|
22
|
+
|
|
23
|
+
The documentation is organized in layers, from cross-project to module-specific:
|
|
24
|
+
|
|
25
|
+
### Layer 1: `.augment/` — Cross-project (identical in all repos)
|
|
26
|
+
|
|
27
|
+
```
|
|
28
|
+
.augment/
|
|
29
|
+
├── rules/ ← Always-active rules (coding, docker, scope, language, etc.)
|
|
30
|
+
├── commands/ ← Slash commands (fix-ci, create-pr, quality-fix, etc.)
|
|
31
|
+
├── skills/ ← Reusable skill definitions (coder, code-refactoring, etc.)
|
|
32
|
+
├── contexts/ ← Shared contexts about the agent system itself
|
|
33
|
+
├── templates/ ← Templates for features, roadmaps, contexts
|
|
34
|
+
└── guidelines/ ← Coding guidelines by language
|
|
35
|
+
└── php/ ← PHP guidelines (controllers, eloquent, patterns, etc.)
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
**Purpose:** Universal agent behavior that applies to ALL projects and packages.
|
|
39
|
+
**Language:** English.
|
|
40
|
+
**Key rule:** This directory is **identical** across repos. Never add project-specific content here.
|
|
41
|
+
**Templates** are the single source of truth for document structure — never store templates in `agents/`.
|
|
42
|
+
|
|
43
|
+
### Layer 2: `AGENTS.md` — Project-level entry point
|
|
44
|
+
|
|
45
|
+
Located in the project root. Contains:
|
|
46
|
+
- Project description and tech stack
|
|
47
|
+
- Development setup (Docker, env files, Makefile targets)
|
|
48
|
+
- Testing conventions
|
|
49
|
+
- Quality tool configuration
|
|
50
|
+
- Links to `./agents/` for detailed docs
|
|
51
|
+
|
|
52
|
+
**Purpose:** First file an agent reads. Provides the full project context.
|
|
53
|
+
**Not every project has this** — packages may only have `./agents/`.
|
|
54
|
+
|
|
55
|
+
### Layer 3: `.github/copilot-instructions.md` — Coding standards
|
|
56
|
+
|
|
57
|
+
Located in `.github/`. Contains:
|
|
58
|
+
- Architecture rules
|
|
59
|
+
- PHP coding standards
|
|
60
|
+
- Naming conventions
|
|
61
|
+
- Eloquent & database rules
|
|
62
|
+
- API development rules
|
|
63
|
+
|
|
64
|
+
**Purpose:** Coding standards shared with GitHub Copilot and other AI tools.
|
|
65
|
+
**Not every project has this** — check if it exists before referencing it.
|
|
66
|
+
|
|
67
|
+
### Layer 4: `agents/overrides/` — Project-level overrides
|
|
68
|
+
|
|
69
|
+
```
|
|
70
|
+
agents/overrides/
|
|
71
|
+
├── rules/ ← Override .augment/rules/*.md
|
|
72
|
+
├── skills/ ← Override .augment/skills/*/SKILL.md
|
|
73
|
+
├── commands/ ← Override .augment/commands/*.md
|
|
74
|
+
├── guidelines/ ← Override .augment/guidelines/**/*.md
|
|
75
|
+
└── templates/ ← Override .augment/templates/*.md
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
**Purpose:** Project-specific customizations of shared `.augment/` resources (which are delivered as a package).
|
|
79
|
+
**Mechanism:** Each override file has a `Mode` header — `extend` (additive) or `replace` (full swap).
|
|
80
|
+
**Key rule:** Never modify `.augment/` directly — always use overrides for project-specific needs.
|
|
81
|
+
**See:** `.augment/contexts/override-system.md` for naming conventions and format.
|
|
82
|
+
|
|
83
|
+
### Layer 5: `./agents/` — Project-specific documentation
|
|
84
|
+
|
|
85
|
+
```
|
|
86
|
+
agents/
|
|
87
|
+
├── database-setup.md ← DB architecture, connections, tenancy
|
|
88
|
+
├── testing.md ← Test suites, conventions, seeders
|
|
89
|
+
├── dto.md ← DTO patterns and base classes
|
|
90
|
+
├── services-and-repos.md ← Service layer conventions
|
|
91
|
+
├── overrides/ ← Project-level overrides (see Layer 4)
|
|
92
|
+
├── features/ ← Feature plans (project-wide)
|
|
93
|
+
│ └── {feature-name}.md
|
|
94
|
+
├── roadmaps/ ← Multi-step change plans
|
|
95
|
+
│ └── {roadmap-name}.md
|
|
96
|
+
│ └── current.md
|
|
97
|
+
└── contexts/ ← Context documents (codebase area snapshots)
|
|
98
|
+
└── {context-name}.md
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
**Purpose:** Project-specific architecture, conventions, and domain knowledge.
|
|
102
|
+
**Structure rule:** Structural docs directly in `agents/`, features/roadmaps in subdirectories.
|
|
103
|
+
**Templates** live in `.augment/templates/`, NOT in `agents/` subdirectories.
|
|
104
|
+
|
|
105
|
+
### Layer 6: `app/Modules/*/agents/` — Module-specific documentation
|
|
106
|
+
|
|
107
|
+
```
|
|
108
|
+
app/Modules/ClientSoftware/
|
|
109
|
+
├── agents/
|
|
110
|
+
│ ├── module-description.md
|
|
111
|
+
│ ├── features/ ← Module-scoped feature plans
|
|
112
|
+
│ │ └── {feature-name}.md
|
|
113
|
+
│ ├── roadmaps/ ← Module-scoped roadmaps
|
|
114
|
+
│ │ └── {roadmap-name}.md
|
|
115
|
+
│ └── contexts/ ← Module-scoped context documents
|
|
116
|
+
│ └── {context-name}.md
|
|
117
|
+
└── Docs/
|
|
118
|
+
└── technical-docs.md
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
**Purpose:** Documentation scoped to a specific module.
|
|
122
|
+
**When to create:** When a module has its own conventions, complex domain logic, or active roadmaps.
|
|
123
|
+
|
|
124
|
+
### Layer 7: `Docs/` — Technical documentation
|
|
125
|
+
|
|
126
|
+
```
|
|
127
|
+
Docs/ ← Project-level technical docs
|
|
128
|
+
app/Modules/*/Docs/ ← Module-level technical docs
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
**Purpose:** Technical documentation for humans (setup guides, architecture diagrams, API docs).
|
|
132
|
+
**Difference from `agents/`:** `Docs/` is for human readers, `agents/` is optimized for AI agents.
|
|
133
|
+
|
|
134
|
+
### Layer 8: Package documentation
|
|
135
|
+
|
|
136
|
+
```
|
|
137
|
+
{package-root}/
|
|
138
|
+
├── agents/
|
|
139
|
+
│ ├── package-description.md
|
|
140
|
+
│ └── roadmaps/
|
|
141
|
+
└── AGENTS.md (optional)
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
**Purpose:** Same structure as projects, but for Composer packages.
|
|
145
|
+
|
|
146
|
+
## Reading order
|
|
147
|
+
|
|
148
|
+
When starting work, read documentation in this order:
|
|
149
|
+
|
|
150
|
+
1. `AGENTS.md` (if it exists) — project overview
|
|
151
|
+
2. `.github/copilot-instructions.md` (if it exists) — coding standards
|
|
152
|
+
4. `agents/overrides/` — check for project-level overrides of skills/rules/commands
|
|
153
|
+
5. `./agents/` — project-specific docs relevant to the task
|
|
154
|
+
6. `app/Modules/{Module}/agents/` — if working on a module
|
|
155
|
+
7. `agents/features/` or module `agents/features/` — if related feature plan exists
|
|
156
|
+
8. `agents/roadmaps/` or module `agents/roadmaps/` — if continuing existing work
|
|
157
|
+
|
|
158
|
+
## Procedure: Create or update agent docs
|
|
159
|
+
|
|
160
|
+
1. **Identify trigger** — What changed? (see table below)
|
|
161
|
+
2. **Locate target** — Find the correct file in the documentation hierarchy.
|
|
162
|
+
3. **Update content** — Edit or create the doc. English only in `.md` files.
|
|
163
|
+
4. **Verify** — Confirm the doc is consistent with surrounding files and cross-references are valid.
|
|
164
|
+
|
|
165
|
+
| Trigger | Action |
|
|
166
|
+
|---|---|
|
|
167
|
+
| New module created | Create `app/Modules/{Module}/agents/` with module description |
|
|
168
|
+
| Significant multi-step change | Ask user about creating a roadmap in `agents/roadmaps/` |
|
|
169
|
+
| New convention introduced | Update relevant doc in `./agents/` or `.augment/guidelines/` |
|
|
170
|
+
| Database schema changed | Update `agents/docs/database-setup.md` |
|
|
171
|
+
|
|
172
|
+
## When to update documentation
|
|
173
|
+
|
|
174
|
+
After making changes, check if docs need updating:
|
|
175
|
+
|
|
176
|
+
- **Roadmap step completed** → mark `[x]` in the roadmap file
|
|
177
|
+
- **Structural changes** → update affected docs in `./agents/`
|
|
178
|
+
- **New patterns** → update or create guideline docs
|
|
179
|
+
|
|
180
|
+
## Doc sync check (after code changes)
|
|
181
|
+
|
|
182
|
+
After completing a significant code change, run this mental checklist:
|
|
183
|
+
|
|
184
|
+
| What changed | Doc to check |
|
|
185
|
+
|---|---|
|
|
186
|
+
| Database schema (migration) | `agents/docs/database-setup.md` |
|
|
187
|
+
| New API endpoint | OpenAPI annotations, `AGENTS.md` API section |
|
|
188
|
+
| New module created | Create `app/Modules/{Module}/agents/` |
|
|
189
|
+
| Service/repository signature changed | Check if referenced in `agents/docs/services-and-repos.md` |
|
|
190
|
+
| New environment variable | `.env.example`, `AGENTS.md` environment section |
|
|
191
|
+
| Docker/compose change | `agents/docs/docker.md`, `Makefile` documentation |
|
|
192
|
+
| New Artisan command | `AGENTS.md` commands section |
|
|
193
|
+
| New pattern/convention introduced | Relevant guideline in `.augment/guidelines/` |
|
|
194
|
+
|
|
195
|
+
**When unsure** — ask with numbered options:
|
|
196
|
+
```
|
|
197
|
+
> 1. Yes — update the docs
|
|
198
|
+
> 2. No — leave as-is
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
Do NOT auto-update docs without the user's knowledge. Flag what needs updating and let the user decide.
|
|
202
|
+
|
|
203
|
+
## Rules
|
|
204
|
+
|
|
205
|
+
- All `.md` files must be in **English**.
|
|
206
|
+
- Do NOT create docs unless there's a real need.
|
|
207
|
+
- Do NOT duplicate content that's already in `AGENTS.md` or `.github/copilot-instructions.md`.
|
|
208
|
+
- Do NOT write docs just to document what you did — only document things others need to know.
|
|
209
|
+
- If unsure whether a doc needs updating, **ask the user**.
|
|
210
|
+
|
|
211
|
+
## Output format
|
|
212
|
+
|
|
213
|
+
1. Created or updated documentation file(s) in the correct location
|
|
214
|
+
2. Summary of what changed and why
|
|
215
|
+
|
|
216
|
+
## Gotcha
|
|
217
|
+
|
|
218
|
+
- Don't create documentation files unless explicitly requested — the scope-control rule overrides this skill.
|
|
219
|
+
- Always check if a doc already exists before creating a new one — duplicates are worse than gaps.
|
|
220
|
+
- AGENTS.md and copilot-instructions.md have different audiences — don't copy content between them.
|
|
221
|
+
- Module docs go in `app/Modules/*/agents/`, NOT in the central `agents/` directory.
|
|
222
|
+
|
|
223
|
+
## Do NOT
|
|
224
|
+
|
|
225
|
+
- Do NOT create docs unless there's a real need (new module, significant change).
|
|
226
|
+
- Do NOT duplicate information already in AGENTS.md or copilot-instructions.md.
|
|
227
|
+
- Do NOT write docs just to document what you did — only document things others need to know.
|
|
228
|
+
|
|
229
|
+
## Auto-trigger keywords
|
|
230
|
+
|
|
231
|
+
- agent documentation
|
|
232
|
+
- docs structure
|
|
233
|
+
- when to read docs
|
|
234
|
+
- documentation maintenance
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: analysis-autonomous-mode
|
|
3
|
+
description: "ONLY when user explicitly requests autonomous analysis, deep investigation, multi-step research, or 'dig into this end-to-end without asking me each step' — NOT for normal feature work."
|
|
4
|
+
source: package
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# analysis-autonomous-mode
|
|
8
|
+
|
|
9
|
+
## Mission
|
|
10
|
+
|
|
11
|
+
Act as an autonomous engineering system that coordinates specialist analysis skills.
|
|
12
|
+
|
|
13
|
+
You are the **brain** — you decide WHAT to analyze, WHICH skill to activate, WHEN to
|
|
14
|
+
switch strategies, and HOW to synthesize findings into actionable results.
|
|
15
|
+
|
|
16
|
+
You do NOT perform deep analysis yourself. You route to specialists and merge their output.
|
|
17
|
+
|
|
18
|
+
## When to use
|
|
19
|
+
|
|
20
|
+
Use this skill when:
|
|
21
|
+
|
|
22
|
+
- A broad investigation is needed and the right analysis path is unclear
|
|
23
|
+
- Multiple problem classes may be involved (bugs + performance + security)
|
|
24
|
+
- The user asks for a full project audit or deep investigation
|
|
25
|
+
- You need to coordinate multiple analysis passes without duplication
|
|
26
|
+
|
|
27
|
+
Do NOT use when:
|
|
28
|
+
|
|
29
|
+
- Only one narrow skill is clearly needed (use it directly)
|
|
30
|
+
- A small isolated code change with fully known context
|
|
31
|
+
- Writing code, tests, or documentation (use the appropriate skill)
|
|
32
|
+
|
|
33
|
+
## Routing
|
|
34
|
+
|
|
35
|
+
**Always use `analysis-skill-router` first** to decide which analysis skill handles the request.
|
|
36
|
+
|
|
37
|
+
The router selects by scope, framework, and problem shape. Key routes:
|
|
38
|
+
|
|
39
|
+
| Scope | Route to |
|
|
40
|
+
|---|---|
|
|
41
|
+
| Unknown system / full audit | `universal-project-analysis` |
|
|
42
|
+
| Discovery-focused | `project-analysis-core` |
|
|
43
|
+
| Root-cause / multi-hypothesis | `project-analysis-hypothesis-driven` |
|
|
44
|
+
| Laravel | `project-analysis-laravel` |
|
|
45
|
+
| Symfony | `project-analysis-symfony` |
|
|
46
|
+
| Zend/Laminas | `project-analysis-zend-laminas` |
|
|
47
|
+
| Node/Express | `project-analysis-node-express` |
|
|
48
|
+
| React | `project-analysis-react` |
|
|
49
|
+
| Next.js | `project-analysis-nextjs` |
|
|
50
|
+
| Bug-focused | `bug-analyzer` |
|
|
51
|
+
| Performance bottleneck | `performance-analysis` |
|
|
52
|
+
| Security concern | `security-audit` |
|
|
53
|
+
| Documentation | `project-analyzer` |
|
|
54
|
+
|
|
55
|
+
**Rule:** Route to the narrowest matching skill. Do NOT default to `universal-project-analysis`.
|
|
56
|
+
|
|
57
|
+
### Phase 2 — Establish context before specializing
|
|
58
|
+
|
|
59
|
+
Before activating any specialist:
|
|
60
|
+
|
|
61
|
+
1. Detect stack and framework
|
|
62
|
+
2. Detect exact versions (`composer.lock`, `package-lock.json`)
|
|
63
|
+
3. Identify key packages
|
|
64
|
+
4. Identify entrypoints and affected flow
|
|
65
|
+
5. Read project docs (`AGENTS.md`, `agents/`, module docs)
|
|
66
|
+
6. If no obvious README → search for `.md` files (`find . -name "*.md" -maxdepth 3`) — docs are sometimes hidden in non-standard locations
|
|
67
|
+
|
|
68
|
+
Never send a specialist in blind.
|
|
69
|
+
|
|
70
|
+
### Phase 3 — Activate specialist(s)
|
|
71
|
+
|
|
72
|
+
Route to the primary skill. Monitor findings for signals to chain additional skills:
|
|
73
|
+
|
|
74
|
+
- Bug found during performance analysis → chain `bug-analyzer`
|
|
75
|
+
- Package misuse found during bug hunting → chain `universal-project-analysis`
|
|
76
|
+
- Auth weakness found during code review → chain `security-audit`
|
|
77
|
+
- N+1 query found during bug analysis → chain `performance-analysis`
|
|
78
|
+
|
|
79
|
+
### Phase 4 — Synthesize findings
|
|
80
|
+
|
|
81
|
+
Merge all specialist findings into ONE prioritized output:
|
|
82
|
+
|
|
83
|
+
1. Confirmed root causes (with evidence)
|
|
84
|
+
2. Contributing factors
|
|
85
|
+
3. Risks not yet proven but worth checking
|
|
86
|
+
4. Concrete fixes (ordered by priority)
|
|
87
|
+
5. Recommended next steps
|
|
88
|
+
|
|
89
|
+
Never dump isolated observations without synthesis.
|
|
90
|
+
|
|
91
|
+
## Procedure: Autonomous investigation loop
|
|
92
|
+
|
|
93
|
+
When running a broad investigation, repeat until confident:
|
|
94
|
+
|
|
95
|
+
```
|
|
96
|
+
1. Assess current understanding
|
|
97
|
+
2. Identify biggest unknown
|
|
98
|
+
3. Choose specialist skill to fill that gap
|
|
99
|
+
4. Execute analysis
|
|
100
|
+
5. Evaluate result — did it answer the question?
|
|
101
|
+
6. Update mental model
|
|
102
|
+
7. Decide: narrow down or broaden scope?
|
|
103
|
+
8. If confident → synthesize and present
|
|
104
|
+
If not → loop back to step 2
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
## Adaptation rules
|
|
108
|
+
|
|
109
|
+
| Signal | Action |
|
|
110
|
+
|---|---|
|
|
111
|
+
| Hypothesis fails | Pivot — try alternative explanation |
|
|
112
|
+
| New evidence appears | Re-evaluate all conclusions |
|
|
113
|
+
| Stuck in one skill | Broaden — switch to `universal-project-analysis` |
|
|
114
|
+
| Clear pattern recognized | Narrow — go deep with the right specialist |
|
|
115
|
+
| 3 failed attempts | Stop — summarize state, ask user for direction |
|
|
116
|
+
|
|
117
|
+
## Learning from past analyses
|
|
118
|
+
|
|
119
|
+
After completing an investigation, extract reusable patterns:
|
|
120
|
+
|
|
121
|
+
- **Root cause type** — classify (config issue, version mismatch, package misuse, async bug, etc.)
|
|
122
|
+
- **Detection signal** — what symptom led to the root cause?
|
|
123
|
+
- **Framework-specific** — is this a known pattern for this framework version?
|
|
124
|
+
|
|
125
|
+
When starting a NEW investigation, compare against known patterns:
|
|
126
|
+
|
|
127
|
+
- If similar symptoms → suggest likely root cause early
|
|
128
|
+
- If same framework + version → check known pitfalls first
|
|
129
|
+
- If same package → check changelog and known issues first
|
|
130
|
+
|
|
131
|
+
This accelerates future investigations and reduces repeated mistakes.
|
|
132
|
+
|
|
133
|
+
## Escalation rules
|
|
134
|
+
|
|
135
|
+
**Narrow → Broad** when:
|
|
136
|
+
|
|
137
|
+
- Focused path cannot explain the symptom
|
|
138
|
+
- Framework/package assumptions are unverified
|
|
139
|
+
- Issue spans architecture boundaries
|
|
140
|
+
- Evidence suggests multiple interacting causes
|
|
141
|
+
|
|
142
|
+
**Broad → Narrow** when:
|
|
143
|
+
|
|
144
|
+
- Enough context exists to test a focused hypothesis
|
|
145
|
+
- Symptoms clearly point to one problem class
|
|
146
|
+
- Code and docs reveal likely failure mechanism
|
|
147
|
+
|
|
148
|
+
## Conflict resolution
|
|
149
|
+
|
|
150
|
+
When specialist findings conflict:
|
|
151
|
+
|
|
152
|
+
1. Trust direct code evidence over assumptions
|
|
153
|
+
2. Trust version-specific official docs over memory
|
|
154
|
+
3. Trust reproducible execution logic over generic best practices
|
|
155
|
+
4. Separate confirmed facts from plausible hypotheses
|
|
156
|
+
5. Explicitly mark uncertainty instead of forcing a conclusion
|
|
157
|
+
|
|
158
|
+
## Output format
|
|
159
|
+
|
|
160
|
+
### Investigation Summary
|
|
161
|
+
- What was analyzed, which skills were used, why
|
|
162
|
+
|
|
163
|
+
### System Context
|
|
164
|
+
- Stack, framework + version, key packages, affected flow
|
|
165
|
+
|
|
166
|
+
### Confirmed Findings
|
|
167
|
+
For each finding: Issue / Severity / Root Cause / Evidence / Fix / Confidence
|
|
168
|
+
|
|
169
|
+
### Contributing Risks
|
|
170
|
+
Plausible but not fully confirmed concerns.
|
|
171
|
+
|
|
172
|
+
### Recommended Fix Order
|
|
173
|
+
Prioritized by: production impact → exploitability → user-facing breakage → effort vs value
|
|
174
|
+
|
|
175
|
+
## Gotcha
|
|
176
|
+
|
|
177
|
+
- Don't run autonomously for more than 10 steps without checking in with the user.
|
|
178
|
+
- The model tends to go deep on one branch instead of exploring breadth-first — force yourself to consider alternatives.
|
|
179
|
+
- Save intermediate findings — if the context resets, all analysis is lost.
|
|
180
|
+
|
|
181
|
+
## Do NOT
|
|
182
|
+
|
|
183
|
+
- Do NOT perform deep analysis yourself — route to specialists
|
|
184
|
+
- Do NOT run every skill by default without a reason
|
|
185
|
+
- Do NOT stay in one skill when evidence points elsewhere
|
|
186
|
+
- Do NOT mix confirmed findings with guesses
|
|
187
|
+
- Do NOT output fragmented observations without synthesis
|
|
188
|
+
- Do NOT follow a fixed workflow blindly — adapt to what you learn
|
|
189
|
+
- Do NOT stop after the first explanation — verify it
|
|
190
|
+
|
|
191
|
+
## References
|
|
192
|
+
|
|
193
|
+
- **Self-Refine** — [arxiv.org/abs/2303.17651](https://arxiv.org/abs/2303.17651)
|
|
194
|
+
Iterative self-improvement through self-generated feedback. This
|
|
195
|
+
skill adapts the pattern by routing the critique step to domain
|
|
196
|
+
specialists instead of a monolithic self-critique.
|
|
197
|
+
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: analysis-skill-router
|
|
3
|
+
description: "Use when picking which analysis or project-analysis-* skill fits a request — routes by scope, framework, and symptom — even if the user just says 'analyze this' or 'dig into the codebase'."
|
|
4
|
+
source: package
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# analysis-skill-router
|
|
8
|
+
|
|
9
|
+
## When to use
|
|
10
|
+
|
|
11
|
+
Use this skill when:
|
|
12
|
+
|
|
13
|
+
* A request may need deep analysis
|
|
14
|
+
* It is unclear which analysis skill should be used
|
|
15
|
+
* Multiple analysis skills could plausibly apply
|
|
16
|
+
* The stack/framework is known but the correct analysis path is unclear
|
|
17
|
+
* `analysis-autonomous-mode` needs a routing decision
|
|
18
|
+
|
|
19
|
+
Do NOT use when:
|
|
20
|
+
|
|
21
|
+
* The correct specialist skill is already obvious
|
|
22
|
+
* The task is not an analysis task
|
|
23
|
+
* The task is normal implementation work without investigation needs
|
|
24
|
+
|
|
25
|
+
## Procedure
|
|
26
|
+
|
|
27
|
+
### 1. Identify request scope
|
|
28
|
+
|
|
29
|
+
Classify the request as one of:
|
|
30
|
+
|
|
31
|
+
* full project analysis
|
|
32
|
+
* architecture review
|
|
33
|
+
* broad multi-layer debugging
|
|
34
|
+
* framework-specific deep analysis
|
|
35
|
+
* narrow root-cause analysis
|
|
36
|
+
* performance/security specialist analysis
|
|
37
|
+
* simple local code issue
|
|
38
|
+
|
|
39
|
+
### 2. Check whether deep analysis is justified
|
|
40
|
+
|
|
41
|
+
Use deep analysis only if at least one is true:
|
|
42
|
+
|
|
43
|
+
* the user explicitly asks for broad analysis
|
|
44
|
+
* the system is unclear or unknown
|
|
45
|
+
* the issue spans multiple layers
|
|
46
|
+
* architecture reconstruction is required
|
|
47
|
+
* the cause is not local and not obvious
|
|
48
|
+
|
|
49
|
+
If none apply → do NOT route to a broad analysis skill.
|
|
50
|
+
|
|
51
|
+
### 3. Detect framework or system type
|
|
52
|
+
|
|
53
|
+
Check whether the request clearly targets:
|
|
54
|
+
|
|
55
|
+
* Laravel, Symfony, Zend/Laminas, Node/Express, React, Next.js
|
|
56
|
+
* unknown / mixed stack
|
|
57
|
+
|
|
58
|
+
### 4. Route to the correct skill
|
|
59
|
+
|
|
60
|
+
#### Broad / unknown system
|
|
61
|
+
|
|
62
|
+
* full project analysis or unclear stack → `universal-project-analysis`
|
|
63
|
+
* unknown system, discovery-focused → `project-analysis-core`
|
|
64
|
+
|
|
65
|
+
#### Root-cause analysis
|
|
66
|
+
|
|
67
|
+
* concrete multi-cause problem → `project-analysis-hypothesis-driven`
|
|
68
|
+
* bug-focused but not full-project → `bug-analyzer`
|
|
69
|
+
|
|
70
|
+
#### Backend framework analysis
|
|
71
|
+
|
|
72
|
+
* Laravel → `project-analysis-laravel`
|
|
73
|
+
* Symfony → `project-analysis-symfony`
|
|
74
|
+
* Zend/Laminas → `project-analysis-zend-laminas`
|
|
75
|
+
* Node/Express → `project-analysis-node-express`
|
|
76
|
+
|
|
77
|
+
#### Frontend / rendering analysis
|
|
78
|
+
|
|
79
|
+
* React state/render/hooks issues → `project-analysis-react`
|
|
80
|
+
* Next.js SSR/client/cache/hydration issues → `project-analysis-nextjs`
|
|
81
|
+
|
|
82
|
+
#### Specialist follow-up routing
|
|
83
|
+
|
|
84
|
+
* performance bottleneck → `performance-analysis`
|
|
85
|
+
* security concern → `security-audit`
|
|
86
|
+
|
|
87
|
+
### 5. Validate routing quality
|
|
88
|
+
|
|
89
|
+
Check:
|
|
90
|
+
|
|
91
|
+
* the chosen skill is narrower than the broadest possible option
|
|
92
|
+
* full-project analysis is actually justified if selected
|
|
93
|
+
* framework-specific skill matches the explicit framework
|
|
94
|
+
* no simpler specialist skill was skipped
|
|
95
|
+
|
|
96
|
+
## Output format
|
|
97
|
+
|
|
98
|
+
1. Selected skill
|
|
99
|
+
2. Reason for selection
|
|
100
|
+
3. Why broader alternatives were not chosen
|
|
101
|
+
4. Optional chained specialist skills
|
|
102
|
+
|
|
103
|
+
## Routing heuristics
|
|
104
|
+
|
|
105
|
+
**Choose `universal-project-analysis` only if:** user explicitly wants full audit, architecture must be reconstructed, stack is unclear, multiple subsystems involved.
|
|
106
|
+
|
|
107
|
+
**Choose `project-analysis-core` if:** broad discovery needed, framework deep-dive not yet justified.
|
|
108
|
+
|
|
109
|
+
**Choose `project-analysis-hypothesis-driven` if:** problem is concrete, multiple causes plausible, main job is explanation not discovery.
|
|
110
|
+
|
|
111
|
+
**Choose framework-specific analysis if:** framework is explicit, failure pattern is framework-shaped.
|
|
112
|
+
|
|
113
|
+
**Do NOT route broadly if:** one component or file is enough, fix is obvious and local, task is implementation not investigation.
|
|
114
|
+
|
|
115
|
+
## Examples
|
|
116
|
+
|
|
117
|
+
**"Analyze this whole Laravel project"** → `universal-project-analysis` → chain `project-analysis-laravel`
|
|
118
|
+
**"Hydration mismatch in Next.js"** → `project-analysis-nextjs` (no full-project needed)
|
|
119
|
+
**"Bug could be cache, queue, or version mismatch"** → `project-analysis-hypothesis-driven`
|
|
120
|
+
**"Change one React component"** → no analysis skill, use implementation skill
|
|
121
|
+
|
|
122
|
+
## Gotcha
|
|
123
|
+
|
|
124
|
+
* The most expensive skill is often not the best skill.
|
|
125
|
+
* Broad analysis feels safe but reduces sharpness when the problem is already localized.
|
|
126
|
+
* Framework-specific routing should happen as early as possible once the framework is explicit.
|
|
127
|
+
|
|
128
|
+
## Do NOT
|
|
129
|
+
|
|
130
|
+
* Do NOT default to `universal-project-analysis`
|
|
131
|
+
* Do NOT use full-project analysis for normal feature work
|
|
132
|
+
* Do NOT choose a generic skill when a framework-specific one clearly fits
|
|
133
|
+
* Do NOT route to deep analysis when a simple specialist skill is enough
|
|
134
|
+
* Do NOT confuse discovery with root-cause investigation
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: api-design
|
|
3
|
+
description: "Use when designing APIs, planning endpoints, REST conventions, versioning, or deprecation — even when the user just says 'expose this as an endpoint' without naming API design."
|
|
4
|
+
source: package
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# api-design
|
|
8
|
+
|
|
9
|
+
## When to use
|
|
10
|
+
|
|
11
|
+
Use this skill when designing new API endpoints, restructuring existing APIs, or deciding about versioning and deprecation.
|
|
12
|
+
|
|
13
|
+
Do NOT use when:
|
|
14
|
+
- Implementing an already-designed endpoint (use `api-endpoint` skill)
|
|
15
|
+
- Writing tests for APIs (use `api-testing` skill)
|
|
16
|
+
|
|
17
|
+
## Procedure: Design an API
|
|
18
|
+
|
|
19
|
+
1. **Gather context** — read `agents/contexts/api-versioning.md`, `agents/docs/api-resources.md`, `agents/docs/query-filter.md`, `agents/docs/controller.md`, and guideline `php/api-design.md`.
|
|
20
|
+
2. **Identify the resource** — determine the domain entity, its attributes, and relationships. Check existing models and resources for field naming patterns.
|
|
21
|
+
3. **Define endpoints** — list each endpoint with HTTP method, URL path, request body, query parameters, and response structure. Follow existing route file patterns.
|
|
22
|
+
4. **Decide versioning** — determine whether this extends the current version or requires a new version (see decision table below).
|
|
23
|
+
5. **Design error responses** — define 4xx/5xx responses matching the project's existing error format.
|
|
24
|
+
6. **Validate against existing patterns** — compare your design with 2-3 similar existing endpoints. Flag any inconsistencies.
|
|
25
|
+
7. **Run adversarial review** — use `adversarial-review` skill to check for breaking changes, consistency issues, and missing error cases.
|
|
26
|
+
|
|
27
|
+
## Versioning decisions
|
|
28
|
+
|
|
29
|
+
### URL-based versioning
|
|
30
|
+
|
|
31
|
+
Routes versioned via URL prefix: `/api/v1/...`, `/api/v2/...`
|
|
32
|
+
|
|
33
|
+
```
|
|
34
|
+
routes/api/v1/projects.php → /api/v1/projects
|
|
35
|
+
routes/api/v2/projects.php → /api/v2/projects
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### Automatic fallback
|
|
39
|
+
|
|
40
|
+
If a route doesn't exist in the requested version, the system falls back to the next older version. Configured in `config/app.php`:
|
|
41
|
+
|
|
42
|
+
```php
|
|
43
|
+
'api_versioning' => [
|
|
44
|
+
'versions' => 'v2,v1', // newest first
|
|
45
|
+
],
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### When to create a new version
|
|
49
|
+
|
|
50
|
+
| Change type | Action |
|
|
51
|
+
|---|---|
|
|
52
|
+
| Add optional field | Extend current version |
|
|
53
|
+
| Add new endpoint | Add to current version |
|
|
54
|
+
| Remove/rename field | New version |
|
|
55
|
+
| Change field type | New version |
|
|
56
|
+
| Change validation rules | New version |
|
|
57
|
+
|
|
58
|
+
> If an existing client would break without code changes → **new version required**.
|
|
59
|
+
|
|
60
|
+
### Deprecation workflow
|
|
61
|
+
|
|
62
|
+
1. **Mark as deprecated** — add headers: `Deprecation: true`, `Sunset: YYYY-MM-DD`, `Link: <successor>`
|
|
63
|
+
2. **Document** — add to API changelog with sunset date
|
|
64
|
+
3. **Monitor usage** — track clients still using deprecated endpoints
|
|
65
|
+
4. **Remove** — after sunset date, remove route + controller + docs
|
|
66
|
+
|
|
67
|
+
Minimum 3 months between deprecation and removal.
|
|
68
|
+
|
|
69
|
+
## Design review
|
|
70
|
+
|
|
71
|
+
Before presenting an API design, run the **`adversarial-review`** skill.
|
|
72
|
+
Focus on: Breaking changes? Consistency? Error responses?
|
|
73
|
+
|
|
74
|
+
## Output format
|
|
75
|
+
|
|
76
|
+
1. Endpoint specification — method, path, request/response structure
|
|
77
|
+
2. Versioning decision with rationale
|
|
78
|
+
3. Error response format following existing project patterns
|
|
79
|
+
|
|
80
|
+
## Gotcha
|
|
81
|
+
|
|
82
|
+
- Consistency beats "better" design — check existing patterns first.
|
|
83
|
+
- Always include pagination on list endpoints.
|
|
84
|
+
- Max nesting depth: 2 levels (`/users/{id}/orders/{id}`).
|
|
85
|
+
- Don't version internal APIs only your own frontend consumes.
|
|
86
|
+
- Deprecation without migration path is useless — always provide the replacement.
|
|
87
|
+
- Don't duplicate controllers for new versions — use fallback logic.
|
|
88
|
+
|
|
89
|
+
## Do NOT
|
|
90
|
+
|
|
91
|
+
- Do NOT introduce a new response format in an established API — match existing patterns.
|
|
92
|
+
- Do NOT create v2 endpoints without a deprecation plan for v1.
|
|
93
|
+
- Do NOT skip pagination on list endpoints.
|
|
94
|
+
|
|
95
|
+
## Auto-trigger keywords
|
|
96
|
+
|
|
97
|
+
- API design
|
|
98
|
+
- REST API
|
|
99
|
+
- endpoint design
|
|
100
|
+
- resource structure
|
|
101
|
+
- response format
|
|
102
|
+
- API versioning
|
|
103
|
+
- deprecation
|
|
104
|
+
- breaking changes
|