@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,170 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: context-refactor
|
|
3
|
+
skills: [agent-docs-writing]
|
|
4
|
+
description: Analyze, update, and extend an existing context document
|
|
5
|
+
disable-model-invocation: true
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# context-refactor
|
|
9
|
+
|
|
10
|
+
## Instructions
|
|
11
|
+
|
|
12
|
+
### 1. Find the context
|
|
13
|
+
|
|
14
|
+
- List all context documents in `agents/contexts/`.
|
|
15
|
+
- Also check module-level `app/Modules/*/agents/contexts/`.
|
|
16
|
+
|
|
17
|
+
If only one context exists, ask if that's the one to refactor.
|
|
18
|
+
If the user has a context file open in their editor, use that one.
|
|
19
|
+
If multiple exist, show a list:
|
|
20
|
+
|
|
21
|
+
```
|
|
22
|
+
📂 Existing context documents:
|
|
23
|
+
|
|
24
|
+
# Name Ort Typ Letzte Aktualisierung
|
|
25
|
+
─ ────────────────────── ─────────────────── ───────────── ─────────────────────
|
|
26
|
+
1 client-software.md Modul: ClientSoftware Module 2026-03-15
|
|
27
|
+
2 import-pipeline.md Projekt-Root Domain 2026-03-10
|
|
28
|
+
3 probaus-api.md Projekt-Root Integration 2026-02-28
|
|
29
|
+
|
|
30
|
+
Which context do you want to update? (number or name)
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
If no contexts exist:
|
|
34
|
+
```
|
|
35
|
+
ℹ️ No context documents found. Create one first with /context-create.
|
|
36
|
+
```
|
|
37
|
+
Stop.
|
|
38
|
+
|
|
39
|
+
### 2. Load and display the context
|
|
40
|
+
|
|
41
|
+
- Read the selected context file completely.
|
|
42
|
+
- Display a summary:
|
|
43
|
+
|
|
44
|
+
```
|
|
45
|
+
═══════════════════════════════════════════════
|
|
46
|
+
✏️ CONTEXT: {title}
|
|
47
|
+
═══════════════════════════════════════════════
|
|
48
|
+
|
|
49
|
+
📊 Typ: {type}
|
|
50
|
+
📅 Last updated: {last updated}
|
|
51
|
+
📦 Module: {module or "project-wide"}
|
|
52
|
+
|
|
53
|
+
───────────────────────────────────────────────
|
|
54
|
+
CURRENT CONTENT:
|
|
55
|
+
───────────────────────────────────────────────
|
|
56
|
+
|
|
57
|
+
Key Files: {count}
|
|
58
|
+
Key Classes: {count}
|
|
59
|
+
DB Tables: {count}
|
|
60
|
+
API Endpoints: {count}
|
|
61
|
+
Known Issues: {count}
|
|
62
|
+
|
|
63
|
+
═══════════════════════════════════════════════
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
### 3. Re-analyze the code
|
|
67
|
+
|
|
68
|
+
Re-analyze the documented area to find changes:
|
|
69
|
+
|
|
70
|
+
- Check if documented files still exist.
|
|
71
|
+
- Look for new files/classes that aren't documented.
|
|
72
|
+
- Verify database tables and endpoints are still accurate.
|
|
73
|
+
- Check for new tests.
|
|
74
|
+
|
|
75
|
+
**Show findings:**
|
|
76
|
+
|
|
77
|
+
```
|
|
78
|
+
🔍 Re-analysis complete:
|
|
79
|
+
|
|
80
|
+
✅ Still current:
|
|
81
|
+
• ImportService — unchanged
|
|
82
|
+
• 8 Models — all present
|
|
83
|
+
|
|
84
|
+
⚠️ Outdated / changed:
|
|
85
|
+
• ProcessImportCommand — new parameters added
|
|
86
|
+
• ImportUploadType — 2 new enum values
|
|
87
|
+
|
|
88
|
+
🆕 New (not documented):
|
|
89
|
+
• ImportValidationService (newly added)
|
|
90
|
+
• api/v1/imports/validate endpoint
|
|
91
|
+
|
|
92
|
+
❌ Removed:
|
|
93
|
+
• OldImportHelper — no longer exists
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
### 4. Ask what to do
|
|
97
|
+
|
|
98
|
+
```
|
|
99
|
+
What do you want to adjust?
|
|
100
|
+
|
|
101
|
+
1. 🔄 Auto-update everything (based on the analysis)
|
|
102
|
+
2. ✏️ Manually edit specific sections
|
|
103
|
+
3. ➕ Add new areas
|
|
104
|
+
4. 🗑️ Remove outdated entries
|
|
105
|
+
5. 💬 Something else
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
**Option 1 — Auto-update:**
|
|
109
|
+
- Remove entries for deleted files/classes.
|
|
110
|
+
- Add entries for new files/classes.
|
|
111
|
+
- Update changed entries.
|
|
112
|
+
- Show all changes for confirmation before applying.
|
|
113
|
+
|
|
114
|
+
**Option 2 — Manual edit:**
|
|
115
|
+
Show section list:
|
|
116
|
+
```
|
|
117
|
+
Which section?
|
|
118
|
+
|
|
119
|
+
1. Overview
|
|
120
|
+
2. Key Files
|
|
121
|
+
3. Key Classes & Services
|
|
122
|
+
4. Database
|
|
123
|
+
5. API Endpoints
|
|
124
|
+
6. Dependencies
|
|
125
|
+
7. Patterns & Conventions
|
|
126
|
+
8. Known Issues / Technical Debt
|
|
127
|
+
9. Notes
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
**Option 3 — Add new areas:**
|
|
131
|
+
- Ask what to add.
|
|
132
|
+
- Analyze the relevant code.
|
|
133
|
+
- Add new sections or entries.
|
|
134
|
+
|
|
135
|
+
### 5. Apply changes
|
|
136
|
+
|
|
137
|
+
- Update the context file.
|
|
138
|
+
- Update `Last Updated` to today's date.
|
|
139
|
+
- Show a diff summary:
|
|
140
|
+
|
|
141
|
+
```
|
|
142
|
+
───────────────────────────────────────────────
|
|
143
|
+
CHANGES:
|
|
144
|
+
───────────────────────────────────────────────
|
|
145
|
+
|
|
146
|
+
🆕 Added: 3 Key Files, 1 Service, 1 Endpoint
|
|
147
|
+
✏️ Updated: 2 Classes, 1 Known Issue
|
|
148
|
+
🗑️ Removed: 1 obsolete service
|
|
149
|
+
📅 Last Updated: 2026-03-20
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
### 6. Ask for additions
|
|
153
|
+
|
|
154
|
+
```
|
|
155
|
+
Anything else to add?
|
|
156
|
+
|
|
157
|
+
1. ➕ Yes — document another area
|
|
158
|
+
2. 🔍 Investigate a specific class/service in detail
|
|
159
|
+
3. ✅ No, done
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
If option 1 or 2 → loop back to analysis and update.
|
|
163
|
+
|
|
164
|
+
### Rules
|
|
165
|
+
|
|
166
|
+
- **Do NOT commit or push.**
|
|
167
|
+
- **Always re-analyze the code** before updating — don't just edit text.
|
|
168
|
+
- **Show changes before applying** — the user should confirm.
|
|
169
|
+
- **Preserve user-written notes and context** — don't overwrite manual additions.
|
|
170
|
+
- **Update `Last Updated`** after every change.
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: copilot-agents-init
|
|
3
|
+
description: Create AGENTS.md and .github/copilot-instructions.md from scratch in the consumer project — interactive, auto-detects stack, never leaks other projects' identifiers.
|
|
4
|
+
skills: [copilot-config, copilot-agents-optimization, agent-docs-writing]
|
|
5
|
+
disable-model-invocation: true
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# /copilot-agents-init
|
|
9
|
+
|
|
10
|
+
Interactive initializer that **creates** `AGENTS.md` and
|
|
11
|
+
`.github/copilot-instructions.md` in the consumer project from the
|
|
12
|
+
package-shipped templates (`.augment/templates/AGENTS.md` and
|
|
13
|
+
`.augment/templates/copilot-instructions.md`), filling in placeholders
|
|
14
|
+
based on auto-detected stack + user answers.
|
|
15
|
+
|
|
16
|
+
Use when either file is missing, or the user wants to start over with a
|
|
17
|
+
clean scaffold. For tuning an existing file, use `/copilot-agents-optimize`.
|
|
18
|
+
|
|
19
|
+
## Steps
|
|
20
|
+
|
|
21
|
+
### 1. Precondition checks
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
ls AGENTS.md .github/copilot-instructions.md 2>/dev/null
|
|
25
|
+
ls .augment/templates/AGENTS.md .augment/templates/copilot-instructions.md
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Outcomes:
|
|
29
|
+
|
|
30
|
+
| State | Action |
|
|
31
|
+
|---|---|
|
|
32
|
+
| Both targets missing | Proceed |
|
|
33
|
+
| One exists, other missing | Ask whether to fill only the missing one |
|
|
34
|
+
| Both exist | Ask confirmation — offer `/copilot-agents-optimize` instead |
|
|
35
|
+
| Template missing | Abort with "package not installed" hint |
|
|
36
|
+
|
|
37
|
+
### 2. Auto-detect stack
|
|
38
|
+
|
|
39
|
+
Read (in this order) and record what is found:
|
|
40
|
+
|
|
41
|
+
- `composer.json` → framework (Laravel / Symfony), PHP version, package name
|
|
42
|
+
- `package.json` → framework (Next.js / React / Vue / Node), engines
|
|
43
|
+
- `pyproject.toml` / `requirements.txt` → Python framework + version
|
|
44
|
+
- `Gemfile` → Rails
|
|
45
|
+
- `go.mod`, `Cargo.toml`, `pom.xml`, `build.gradle` → language/framework
|
|
46
|
+
|
|
47
|
+
Secondary signals:
|
|
48
|
+
|
|
49
|
+
- `Dockerfile`, `docker-compose.yml` → containerized setup
|
|
50
|
+
- `Makefile`, `Taskfile.yml`, `package.json` scripts → dev commands
|
|
51
|
+
- `phpunit.xml` / `pest.config` / `jest.config` / `vitest.config` / `pytest.ini` → test framework
|
|
52
|
+
- `phpstan.neon`, `rector.php`, `eslint.config.js`, `ruff.toml` → quality tools
|
|
53
|
+
|
|
54
|
+
Present a numbered table so the user can confirm or correct:
|
|
55
|
+
|
|
56
|
+
```
|
|
57
|
+
Detected:
|
|
58
|
+
> 1. Language: {lang} — correct? yes / edit
|
|
59
|
+
> 2. Framework: {framework} — correct? yes / edit
|
|
60
|
+
> 3. Database: {db} — correct? yes / skip / edit
|
|
61
|
+
> 4. Test framework: {tests} — correct? yes / edit
|
|
62
|
+
> 5. Dev commands: {commands} — correct? yes / edit
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### 3. Gather remaining answers
|
|
66
|
+
|
|
67
|
+
Ask for values that cannot be auto-detected — one question at a time,
|
|
68
|
+
always with numbered options where applicable:
|
|
69
|
+
|
|
70
|
+
1. **Project name** — default = `{{repo_name}}` from git remote or
|
|
71
|
+
directory name.
|
|
72
|
+
2. **One-line description** — used in copilot-instructions.md.
|
|
73
|
+
3. **Architecture style** — e.g. "Controllers thin, logic in services,
|
|
74
|
+
validation via FormRequests". Offer `/optimize-agents` style presets
|
|
75
|
+
based on detected framework.
|
|
76
|
+
4. **User-facing strings strategy** — translation files? hardcoded?
|
|
77
|
+
default per framework.
|
|
78
|
+
5. **Additional conventions** — free text, optional.
|
|
79
|
+
|
|
80
|
+
### 4. Generate files
|
|
81
|
+
|
|
82
|
+
Read the templates, substitute placeholders:
|
|
83
|
+
|
|
84
|
+
| Placeholder | Source |
|
|
85
|
+
|---|---|
|
|
86
|
+
| `{{project_name}}` | Step 3.1 |
|
|
87
|
+
| `{{project_description}}` | Step 3.2 |
|
|
88
|
+
| `{{project_description_oneline}}` | Short version of 3.2 |
|
|
89
|
+
| `{{primary_language}}`, `{{framework}}`, `{{database}}`, `{{test_framework}}`, `{{code_style_tool}}` | Step 2 |
|
|
90
|
+
| `{{dev_start_command}}`, `{{dev_test_command}}` | Step 2 Makefile / scripts |
|
|
91
|
+
| `{{project_structure_notes}}`, `{{testing_notes}}`, `{{quality_tools_notes}}` | Offer framework-specific defaults, let user edit |
|
|
92
|
+
| `{{architecture_notes}}`, `{{coding_standards}}`, `{{framework_conventions}}` | Offer defaults + user edits |
|
|
93
|
+
| `{{test_all_command}}`, `{{test_targeted_command}}`, `{{testing_extra_notes}}` | From detected test framework |
|
|
94
|
+
| `{{user_facing_strings_strategy}}` | Step 3.4 |
|
|
95
|
+
| `{{target_language_level}}` | e.g. "PHP 8.2 / Laravel 11" |
|
|
96
|
+
|
|
97
|
+
Remove the HTML comments starting with `<!-- AGENTS.md — entry point …`
|
|
98
|
+
and `<!-- copilot-instructions.md — read by GitHub Copilot …` — they are
|
|
99
|
+
instructions for the human user and no longer needed once filled.
|
|
100
|
+
|
|
101
|
+
Keep the **example** HTML comments (those starting with `<!-- Replace with
|
|
102
|
+
your actual stack. Examples:`) — they help future maintenance.
|
|
103
|
+
|
|
104
|
+
### 5. Portability verification
|
|
105
|
+
|
|
106
|
+
Before writing, scan the generated content for forbidden identifiers:
|
|
107
|
+
|
|
108
|
+
- Any project name from `agents/` module docs except the one chosen in 3.1
|
|
109
|
+
- Any reference to vendor-specific internal tools not in the user's stack
|
|
110
|
+
- Any identifier listed in `FORBIDDEN_IDENTIFIERS` in
|
|
111
|
+
`scripts/check_portability.py` (the package ships a blocklist of
|
|
112
|
+
legacy/adjacent project names that must never leak into consumer files)
|
|
113
|
+
- The package's own name (e.g. the shared-config package itself), unless
|
|
114
|
+
the consumer project explicitly depends on it
|
|
115
|
+
|
|
116
|
+
If any hit is found, flag it and ask for a replacement. This mirrors what
|
|
117
|
+
`scripts/check_portability.py` enforces for package files.
|
|
118
|
+
|
|
119
|
+
### 6. Write files
|
|
120
|
+
|
|
121
|
+
Write to `AGENTS.md` and `.github/copilot-instructions.md` (create
|
|
122
|
+
`.github/` if missing). Report:
|
|
123
|
+
|
|
124
|
+
```
|
|
125
|
+
✅ AGENTS.md written (X lines)
|
|
126
|
+
✅ .github/copilot-instructions.md written (Y lines)
|
|
127
|
+
|
|
128
|
+
Next steps:
|
|
129
|
+
1. Review both files and refine sections that say "document your …"
|
|
130
|
+
2. Commit them as part of the project's initial agent setup
|
|
131
|
+
3. Run `/copilot-agents-optimize` periodically to deduplicate against .augment/
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
### 7. Follow-ups
|
|
135
|
+
|
|
136
|
+
If `agents/` directory does not exist, suggest running `/agents-prepare`.
|
|
137
|
+
If `.agent-settings.yml` does not exist, suggest running `/config-agent-settings`.
|
|
138
|
+
|
|
139
|
+
## Rules
|
|
140
|
+
|
|
141
|
+
- **Never copy from the package's own root `AGENTS.md` or
|
|
142
|
+
`.github/copilot-instructions.md`.** Those are meta docs about the
|
|
143
|
+
package, not templates.
|
|
144
|
+
- **Always start from `.augment/templates/`** — that is the only portable
|
|
145
|
+
source.
|
|
146
|
+
- **Refuse to overwrite** existing files without explicit `--force` or
|
|
147
|
+
interactive confirmation.
|
|
148
|
+
- **Never embed identifiers from other projects** — if the consumer's repo
|
|
149
|
+
is `acme/widget`, the generated file must say `acme/widget`, not any
|
|
150
|
+
name encountered while scaffolding the shared package.
|
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: copilot-agents-optimize
|
|
3
|
+
description: Analyzes and refactors AGENTS.md and copilot-instructions.md — removes duplications, enforces line budgets, and ensures both files are optimized for their audience.
|
|
4
|
+
skills: [copilot-agents-optimization, copilot-config, agent-docs-writing]
|
|
5
|
+
disable-model-invocation: true
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# /copilot-agents-optimize
|
|
9
|
+
|
|
10
|
+
Analyzes and refactors `AGENTS.md` and `.github/copilot-instructions.md` against the `.augment/` ecosystem.
|
|
11
|
+
|
|
12
|
+
## Steps
|
|
13
|
+
|
|
14
|
+
### 1. Measure current state
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
wc -l AGENTS.md .github/copilot-instructions.md
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Report line counts with budget status:
|
|
21
|
+
|
|
22
|
+
| File | Lines | Budget | Status |
|
|
23
|
+
|---|---|---|---|
|
|
24
|
+
| `AGENTS.md` | {n} | ≤ 500 ideal, max 1000 | 🟢/🟡/🔴 |
|
|
25
|
+
| `copilot-instructions.md` | {n} | ≤ 500 ideal, max 1000 | 🟢/🟡/🔴 |
|
|
26
|
+
|
|
27
|
+
### 2. Scan for duplications
|
|
28
|
+
|
|
29
|
+
Read both files and compare against `.augment/` content:
|
|
30
|
+
|
|
31
|
+
**Check against rules:**
|
|
32
|
+
```bash
|
|
33
|
+
ls .augment/rules/*.md
|
|
34
|
+
```
|
|
35
|
+
For each rule, check if AGENTS.md or copilot-instructions.md duplicates its content.
|
|
36
|
+
|
|
37
|
+
**Check against guidelines:**
|
|
38
|
+
```bash
|
|
39
|
+
find .augment/guidelines/ -name '*.md'
|
|
40
|
+
```
|
|
41
|
+
For each guideline, check if either file repeats the same conventions.
|
|
42
|
+
|
|
43
|
+
**Check against skills:**
|
|
44
|
+
```bash
|
|
45
|
+
ls .augment/skills/*/SKILL.md
|
|
46
|
+
```
|
|
47
|
+
For each skill, check if either file contains domain knowledge that belongs in the skill.
|
|
48
|
+
|
|
49
|
+
**Check between the two files:**
|
|
50
|
+
Compare sections — anything duplicated between AGENTS.md and copilot-instructions.md
|
|
51
|
+
that isn't required for Copilot's self-containment.
|
|
52
|
+
|
|
53
|
+
### 2.5. Scan for legacy identifiers and stack mismatches
|
|
54
|
+
|
|
55
|
+
Before deduplicating, verify the content still **applies to the current
|
|
56
|
+
project**. Files drift in three ways:
|
|
57
|
+
|
|
58
|
+
- **Legacy leakage** — identifiers from a former, forked, or adjacent
|
|
59
|
+
project (renamed repo, split monorepo, content copied from a sibling).
|
|
60
|
+
- **Stack mismatch** — the file claims tech the project no longer uses
|
|
61
|
+
(e.g. "Laravel 11 + MariaDB" in a repo that is now a pure Python
|
|
62
|
+
library).
|
|
63
|
+
- **Dead commands** — Make targets, Artisan commands, docker services
|
|
64
|
+
that no longer exist.
|
|
65
|
+
|
|
66
|
+
**A. Legacy-identifier scan**
|
|
67
|
+
|
|
68
|
+
Use the package's portability blocklist as the baseline:
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
python3 -c "import sys; sys.path.insert(0, 'scripts'); \
|
|
72
|
+
from check_portability import FORBIDDEN_IDENTIFIERS; \
|
|
73
|
+
[print(i) for i in FORBIDDEN_IDENTIFIERS]" 2>/dev/null
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
Plus any identifier from `agents/` module docs that does NOT match the
|
|
77
|
+
current project name (see step 2.5.B to determine the current project).
|
|
78
|
+
|
|
79
|
+
For each identifier, grep both files and report **every** hit:
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
for ident in "${forbidden_identifiers[@]}"; do
|
|
83
|
+
grep -n -iE "\b${ident}\b" AGENTS.md .github/copilot-instructions.md
|
|
84
|
+
done
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
Every hit is a 🔴 **blocker** — these must be fixed or removed before any
|
|
88
|
+
other optimization. Leaking another project's name into the consumer's
|
|
89
|
+
own docs is the failure mode that made this step exist.
|
|
90
|
+
|
|
91
|
+
**B. Stack-coherence scan**
|
|
92
|
+
|
|
93
|
+
Auto-detect the real stack (same logic as `/copilot-agents-init` step 2):
|
|
94
|
+
|
|
95
|
+
| Source file | Signal |
|
|
96
|
+
|---|---|
|
|
97
|
+
| `composer.json` | PHP, Laravel/Symfony, package name, PHP version |
|
|
98
|
+
| `package.json` | Node, Next.js/React/Vue, engines |
|
|
99
|
+
| `pyproject.toml` / `requirements.txt` | Python + framework |
|
|
100
|
+
| `Gemfile` | Ruby on Rails |
|
|
101
|
+
| `go.mod`, `Cargo.toml`, `pom.xml`, `build.gradle` | Language |
|
|
102
|
+
| `docker-compose.yml` | Service names actually used |
|
|
103
|
+
| `Makefile` / `Taskfile.yml` / `package.json` scripts | Dev commands |
|
|
104
|
+
|
|
105
|
+
Compare each claim in AGENTS.md / copilot-instructions.md against the
|
|
106
|
+
detected stack. Flag mismatches:
|
|
107
|
+
|
|
108
|
+
| Claim in doc | Reality | Severity |
|
|
109
|
+
|---|---|---|
|
|
110
|
+
| "Laravel 11" | no `laravel/framework` in composer.json | 🔴 |
|
|
111
|
+
| "MariaDB" | no DB driver or docker service | 🟡 |
|
|
112
|
+
| service name `db` | `docker-compose.yml` has `mariadb` only | 🟡 |
|
|
113
|
+
| `make start` | `Makefile` absent OR target missing | 🔴 |
|
|
114
|
+
| "PHP 8.2" | `composer.json` requires `^8.1` | 🟡 |
|
|
115
|
+
|
|
116
|
+
**C. Dead-command scan**
|
|
117
|
+
|
|
118
|
+
Extract every invoked command from both files:
|
|
119
|
+
|
|
120
|
+
```bash
|
|
121
|
+
grep -oE '(make|task|composer|npm|pnpm|yarn|php artisan|python|./)[a-zA-Z0-9 _:./-]+' \
|
|
122
|
+
AGENTS.md .github/copilot-instructions.md | sort -u
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
For each hit, verify it exists:
|
|
126
|
+
|
|
127
|
+
- `make X` → `grep -q "^${X}:" Makefile`
|
|
128
|
+
- `task X` → `task --list-all` contains X
|
|
129
|
+
- `composer X` → `composer.json` `scripts` contains X
|
|
130
|
+
- `php artisan X` → `php artisan list --no-ansi` contains X (skip if no
|
|
131
|
+
container — just note "unverified")
|
|
132
|
+
- `npm/pnpm/yarn X` → `package.json` `scripts` contains X
|
|
133
|
+
|
|
134
|
+
Commands that no longer resolve are 🟡 stale — propose a replacement or
|
|
135
|
+
removal.
|
|
136
|
+
|
|
137
|
+
### 3. Present findings
|
|
138
|
+
|
|
139
|
+
Show a table of issues found, **grouped by severity**. Blockers from
|
|
140
|
+
step 2.5 come first:
|
|
141
|
+
|
|
142
|
+
| # | File | Section | Issue | Severity | Action |
|
|
143
|
+
|---|---|---|---|---|---|
|
|
144
|
+
| 1 | AGENTS.md | "Quick Setup" | Mentions a forbidden identifier from the blocklist | 🔴 | Replace or remove |
|
|
145
|
+
| 2 | copilot | "Tech stack" | Claims Laravel 11, project is Python | 🔴 | Full rewrite |
|
|
146
|
+
| 3 | AGENTS.md | "Commands" | `make start` target not in Makefile | 🟡 | Update or remove |
|
|
147
|
+
| 4 | AGENTS.md | "Coding Standards" | Duplicates `.augment/rules/php-coding.md` | 🟢 | Remove, add reference |
|
|
148
|
+
| 5 | copilot | "SOLID Principles" | Duplicates `.augment/rules/architecture.md` | 🟢 | Keep (Copilot needs it) |
|
|
149
|
+
| 6 | copilot | "Trailing commas" | Auto-enforced by ECS | 🟢 | Remove |
|
|
150
|
+
|
|
151
|
+
Classify each issue:
|
|
152
|
+
|
|
153
|
+
| Action | Meaning |
|
|
154
|
+
|---|---|
|
|
155
|
+
| **Replace** | Legacy identifier → swap for the correct current name |
|
|
156
|
+
| **Rewrite** | Entire section no longer matches reality — rewrite from stack detection |
|
|
157
|
+
| **Remove** | Content exists in `.augment/` and the file can reference it, or command is dead |
|
|
158
|
+
| **Keep** | Content is needed self-contained (copilot-instructions.md) |
|
|
159
|
+
| **Compress** | Content is valid but too verbose — shorten |
|
|
160
|
+
| **Extract** | Move to a dedicated file in `agents/` and link |
|
|
161
|
+
| **Update** | Content is outdated or references have changed |
|
|
162
|
+
|
|
163
|
+
If the 🔴 blockers exceed a reasonable rewrite effort (e.g. the entire
|
|
164
|
+
"Tech stack" and "Commands" sections are wrong), offer
|
|
165
|
+
`/copilot-agents-init` as an alternative instead of patching in place:
|
|
166
|
+
|
|
167
|
+
> ⚠️ Detected severe drift: {N} blockers, including a completely wrong
|
|
168
|
+
> tech stack.
|
|
169
|
+
>
|
|
170
|
+
> 1. Continue optimizing (patch in place — may require large rewrites)
|
|
171
|
+
> 2. Back up current files and run `/copilot-agents-init` for a clean scaffold
|
|
172
|
+
> 3. Abort
|
|
173
|
+
|
|
174
|
+
### 4. Ask for confirmation
|
|
175
|
+
|
|
176
|
+
> Found {n} optimizations:
|
|
177
|
+
> - {x} duplicates to remove (AGENTS.md)
|
|
178
|
+
> - {y} sections to compress
|
|
179
|
+
> - {z} sections to extract to `agents/`
|
|
180
|
+
>
|
|
181
|
+
> 1. Apply all changes
|
|
182
|
+
> 2. Confirm each change individually
|
|
183
|
+
> 3. Only optimize AGENTS.md
|
|
184
|
+
> 4. Only optimize copilot-instructions.md
|
|
185
|
+
|
|
186
|
+
### 5. Apply changes
|
|
187
|
+
|
|
188
|
+
For each approved change:
|
|
189
|
+
|
|
190
|
+
1. **Remove duplicates** — Delete the section, add a reference line if needed
|
|
191
|
+
2. **Compress** — Rewrite verbose sections as concise tables/bullets
|
|
192
|
+
3. **Extract** — Create file in `agents/`, move content, add link in original
|
|
193
|
+
4. **Update** — Fix outdated references, paths, or descriptions
|
|
194
|
+
|
|
195
|
+
After each file is modified, verify:
|
|
196
|
+
- Line count is within budget
|
|
197
|
+
- No broken references
|
|
198
|
+
- Self-containment preserved for copilot-instructions.md
|
|
199
|
+
|
|
200
|
+
### 6. Verify cross-references
|
|
201
|
+
|
|
202
|
+
Check that all references in both files are valid:
|
|
203
|
+
|
|
204
|
+
```bash
|
|
205
|
+
# Find all markdown links in both files
|
|
206
|
+
grep -oE '\[.*\]\(.*\)' AGENTS.md .github/copilot-instructions.md
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
For each link, verify the target file exists.
|
|
210
|
+
|
|
211
|
+
### 7. Report results
|
|
212
|
+
|
|
213
|
+
> ✅ Optimization complete:
|
|
214
|
+
>
|
|
215
|
+
> | File | Before | After | Δ |
|
|
216
|
+
> |---|---|---|---|
|
|
217
|
+
> | `AGENTS.md` | {old} lines | {new} lines | -{diff} |
|
|
218
|
+
> | `copilot-instructions.md` | {old} lines | {new} lines | -{diff} |
|
|
219
|
+
>
|
|
220
|
+
> **Removed duplicates:** {n}
|
|
221
|
+
> **Compressed sections:** {n}
|
|
222
|
+
> **Extracted content:** {n} (to `agents/`)
|
|
223
|
+
|
|
224
|
+
### 8. Suggest follow-ups
|
|
225
|
+
|
|
226
|
+
If issues were found that need manual attention:
|
|
227
|
+
|
|
228
|
+
> ⚠️ Manual review recommended:
|
|
229
|
+
> - {issue description}
|
|
230
|
+
|
|
231
|
+
If `.augment/` content is missing that both files reference:
|
|
232
|
+
|
|
233
|
+
> 💡 Missing `.augment/` content:
|
|
234
|
+
> - {missing skill/rule/guideline}
|
|
235
|
+
|
|
236
|
+
## Rules
|
|
237
|
+
|
|
238
|
+
- **Step 2.5 is mandatory.** Never skip the portability + stack scan —
|
|
239
|
+
that is the step that catches the "legacy identifier from another
|
|
240
|
+
project" failure mode. Duplication cleanup without this scan means the
|
|
241
|
+
command approves stale, wrong content.
|
|
242
|
+
- **🔴 blockers are fixed first.** Don't deduplicate a section that is
|
|
243
|
+
about to be rewritten anyway.
|
|
244
|
+
- **NEVER strip strong language** — "Do NOT", "NEVER", "MUST" are load-bearing words.
|
|
245
|
+
See the Iron Laws in `/optimize-agents` — they apply here too.
|
|
246
|
+
- **NEVER remove examples** from `copilot-instructions.md` — Copilot Code Review cannot
|
|
247
|
+
read other files, so examples must be self-contained.
|
|
248
|
+
- **`copilot-instructions.md` MUST remain self-contained** — it cannot reference `.augment/`
|
|
249
|
+
files because Copilot Code Review has no access to them. Only Copilot Chat can read other files.
|
|
250
|
+
- **`AGENTS.md` MAY reference `.augment/`** — it is read by tools that can follow links.
|
|
251
|
+
- **Ask before removing** — present findings first, apply after approval.
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: create-pr-description
|
|
3
|
+
skills: [git-workflow]
|
|
4
|
+
description: Generate a PR description as a copyable markdown block — used standalone or by create-pr
|
|
5
|
+
disable-model-invocation: true
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# create-pr-description
|
|
9
|
+
|
|
10
|
+
## Input
|
|
11
|
+
|
|
12
|
+
The user may or may not provide a PR URL or branch name.
|
|
13
|
+
|
|
14
|
+
## Instructions
|
|
15
|
+
|
|
16
|
+
### 1. Detect PR / Branch
|
|
17
|
+
|
|
18
|
+
1. If the user provides a GitHub PR URL → use that PR to get the changed files via API.
|
|
19
|
+
2. If no URL → **auto-detect:**
|
|
20
|
+
- Get current branch (`git branch --show-current`).
|
|
21
|
+
- Search for an open PR on that branch via GitHub API
|
|
22
|
+
(`GET /repos/{owner}/{repo}/pulls?head={owner}:{branch}&state=open`).
|
|
23
|
+
- If exactly one PR found → use it (get files via `/pulls/{number}/files`).
|
|
24
|
+
- If no PR found → use `git diff origin/{default}..HEAD --stat` for the branch diff.
|
|
25
|
+
3. **Never** reuse a PR number from earlier in the conversation.
|
|
26
|
+
|
|
27
|
+
### 2. Gather context
|
|
28
|
+
|
|
29
|
+
- **Jira ticket**: Extract ticket ID from branch name (e.g. `fix/DEV-4673-description` → `DEV-4673`).
|
|
30
|
+
- If found → fetch via Jira API (`GET /issue/{ticketId}`).
|
|
31
|
+
- If not found → ask the user for a ticket number. Proceed without if none.
|
|
32
|
+
- **Diff summary**: `git diff origin/{default}..HEAD --stat` for changed files.
|
|
33
|
+
- **Commit messages**: `git log origin/{default}..HEAD --format="%s"` for what was done.
|
|
34
|
+
- **PR template**: **MUST** read `.github/pull_request_template.md`. This is mandatory, not optional.
|
|
35
|
+
- **Read key changed files** to understand what was done — look for migrations, new classes,
|
|
36
|
+
modified services, route changes, config changes.
|
|
37
|
+
- **Check roadmap/agent docs** that describe the feature intent (if they exist).
|
|
38
|
+
|
|
39
|
+
### 3. Build the PR title
|
|
40
|
+
|
|
41
|
+
- Format: `{TICKET-ID}: {summary}` (e.g. `DEV-4673: Fix absence working time calculation`).
|
|
42
|
+
- Use the Jira ticket summary if available, otherwise derive from commits.
|
|
43
|
+
- If no ticket: use the most descriptive commit message or ask the user.
|
|
44
|
+
|
|
45
|
+
### 4. Build the PR body
|
|
46
|
+
|
|
47
|
+
**ALWAYS** use the PR template (`.github/pull_request_template.md`). Fill in its sections:
|
|
48
|
+
|
|
49
|
+
- **Jira badge**: Replace `{TICKET-NUMBER}` with the actual ticket ID.
|
|
50
|
+
- **Description**: Summarize the changes in 2-5 sentences. Explain *what* changed and *why*.
|
|
51
|
+
Use the Jira ticket description and commit messages as input.
|
|
52
|
+
- **Type of change**: Check the appropriate checkbox(es) based on the changes.
|
|
53
|
+
- **Checklist**: Leave as-is (the developer fills this in).
|
|
54
|
+
- **Links**: Replace `{TICKET-NUMBER}` with the actual ticket ID.
|
|
55
|
+
- **Screenshots**: Leave as `...` unless the user provides screenshots.
|
|
56
|
+
|
|
57
|
+
If no PR template exists, use this structure:
|
|
58
|
+
|
|
59
|
+
```markdown
|
|
60
|
+
## Jira
|
|
61
|
+
[{TICKET-ID}]({JIRA_BASE_URL}/browse/{TICKET-ID})
|
|
62
|
+
|
|
63
|
+
## Changes
|
|
64
|
+
- Bullet list of what was changed and why
|
|
65
|
+
|
|
66
|
+
### Migrations
|
|
67
|
+
- List new/changed migrations (if any)
|
|
68
|
+
|
|
69
|
+
### Tests
|
|
70
|
+
- List new/changed tests (if any)
|
|
71
|
+
|
|
72
|
+
## How to test
|
|
73
|
+
- Steps to verify the changes
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
### 5. Present as copyable block
|
|
77
|
+
|
|
78
|
+
Show the **title** and **body** separately, each in a fenced code block so the user can copy them:
|
|
79
|
+
|
|
80
|
+
```
|
|
81
|
+
📋 PR Title:
|
|
82
|
+
```
|
|
83
|
+
{title}
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
📋 PR Body:
|
|
87
|
+
```markdown
|
|
88
|
+
{body}
|
|
89
|
+
```
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
### 6. Ask for feedback
|
|
93
|
+
|
|
94
|
+
Ask with numbered options:
|
|
95
|
+
|
|
96
|
+
```
|
|
97
|
+
> 1. Looks good — done
|
|
98
|
+
> 2. Adjust — I'll tell you what to change
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
### Rules
|
|
103
|
+
|
|
104
|
+
- **All output in the user's language** — but the PR body itself is in **English**.
|
|
105
|
+
- **Always show the result before any further action** — never create a PR directly from this command.
|
|
106
|
+
- **Always use the PR template** — read `.github/pull_request_template.md` and fill its sections. NEVER invent a custom structure.
|
|
107
|
+
- **Be concise** in the description — no filler text, no restating the ticket title as a sentence.
|
|
108
|
+
- **Group related changes** in the description — don't list every file, list logical changes.
|
|
109
|
+
- **Mark breaking changes** clearly if the diff shows API contract changes (new/removed fields,
|
|
110
|
+
changed endpoints, changed response structure).
|
|
111
|
+
- **Mention file/class names** where helpful, but don't list every single file.
|
|
112
|
+
- **Highlight things reviewers should pay attention to** — complex logic, edge cases, trade-offs.
|