@event4u/agent-config 1.19.0 → 1.21.0
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/commands/agent-handoff.md +14 -10
- package/.agent-src/commands/agents.md +1 -1
- package/.agent-src/commands/bug-fix.md +1 -1
- package/.agent-src/commands/bug-investigate.md +2 -2
- package/.agent-src/commands/chat-history/import.md +166 -0
- package/.agent-src/commands/chat-history/learn.md +178 -0
- package/.agent-src/commands/chat-history/show.md +17 -18
- package/.agent-src/commands/chat-history.md +26 -25
- package/.agent-src/commands/compress.md +12 -0
- package/.agent-src/commands/context/create.md +2 -2
- package/.agent-src/commands/context.md +1 -1
- package/.agent-src/commands/copilot-agents.md +1 -1
- package/.agent-src/commands/council/default.md +21 -12
- package/.agent-src/commands/council.md +1 -1
- package/.agent-src/commands/create-pr.md +28 -8
- package/.agent-src/commands/e2e-heal.md +1 -1
- package/.agent-src/commands/e2e-plan.md +1 -1
- package/.agent-src/commands/feature/dev.md +3 -3
- package/.agent-src/commands/feature.md +1 -1
- package/.agent-src/commands/fix/seeder.md +2 -2
- package/.agent-src/commands/fix.md +1 -1
- package/.agent-src/commands/jira-ticket.md +1 -1
- package/.agent-src/commands/judge.md +2 -2
- package/.agent-src/commands/memory.md +1 -1
- package/.agent-src/commands/mode.md +5 -5
- package/.agent-src/commands/module.md +1 -1
- package/.agent-src/commands/onboard.md +4 -4
- package/.agent-src/commands/optimize/augmentignore.md +1 -1
- package/.agent-src/commands/optimize-prompt.md +61 -0
- package/.agent-src/commands/optimize.md +1 -1
- package/.agent-src/commands/override.md +1 -1
- package/.agent-src/commands/review-changes.md +1 -1
- package/.agent-src/commands/review-routing.md +1 -1
- package/.agent-src/commands/roadmap.md +1 -1
- package/.agent-src/commands/set-cost-profile.md +3 -3
- package/.agent-src/commands/sync-agent-settings.md +2 -2
- package/.agent-src/commands/sync-gitignore.md +1 -1
- package/.agent-src/commands/tests/create.md +2 -2
- package/.agent-src/commands/tests.md +1 -1
- package/.agent-src/commands/threat-model.md +4 -4
- package/.agent-src/contexts/authority/commit-mechanics.md +14 -1
- package/.agent-src/contexts/authority/destructive-mechanics.md +14 -1
- package/.agent-src/contexts/authority/scope-mechanics.md +5 -0
- package/.agent-src/contexts/communication/rules-auto/guidelines-mechanics.md +76 -0
- package/.agent-src/contexts/communication/rules-auto/skill-quality-mechanics.md +76 -0
- package/.agent-src/contexts/communication/rules-auto/slash-command-routing-policy-mechanics.md +4 -4
- package/.agent-src/contexts/communication/rules-auto/think-before-action-mechanics.md +98 -0
- package/.agent-src/contexts/communication/rules-auto/token-efficiency-mechanics.md +93 -0
- package/.agent-src/contexts/communication/rules-auto/user-interaction-mechanics.md +125 -9
- package/.agent-src/contexts/execution/autonomy-mechanics.md +44 -0
- package/.agent-src/contexts/model-recommendations.md +2 -2
- package/.agent-src/contexts/override-system.md +1 -1
- package/.agent-src/personas/product-owner.md +2 -2
- package/.agent-src/personas/qa.md +1 -1
- package/.agent-src/rules/agent-authority.md +5 -6
- package/.agent-src/rules/agent-docs.md +11 -53
- package/.agent-src/rules/analysis-skill-routing.md +10 -40
- package/.agent-src/rules/architecture.md +6 -1
- package/.agent-src/rules/artifact-drafting-protocol.md +5 -0
- package/.agent-src/rules/artifact-engagement-recording.md +23 -59
- package/.agent-src/rules/ask-when-uncertain.md +24 -47
- package/.agent-src/rules/augment-portability.md +14 -62
- package/.agent-src/rules/augment-source-of-truth.md +10 -1
- package/.agent-src/rules/autonomous-execution.md +17 -98
- package/.agent-src/rules/capture-learnings.md +9 -80
- package/.agent-src/rules/cli-output-handling.md +12 -42
- package/.agent-src/rules/command-suggestion-policy.md +25 -73
- package/.agent-src/rules/commit-conventions.md +9 -58
- package/.agent-src/rules/commit-policy.md +16 -47
- package/.agent-src/rules/context-hygiene.md +5 -0
- package/.agent-src/rules/direct-answers.md +21 -42
- package/.agent-src/rules/docker-commands.md +11 -45
- package/.agent-src/rules/docs-sync.md +10 -56
- package/.agent-src/rules/downstream-changes.md +5 -0
- package/.agent-src/rules/e2e-testing.md +9 -44
- package/.agent-src/rules/guidelines.md +13 -75
- package/.agent-src/rules/improve-before-implement.md +10 -2
- package/.agent-src/rules/language-and-tone.md +35 -69
- package/.agent-src/rules/laravel-translations.md +11 -40
- package/.agent-src/rules/markdown-safe-codeblocks.md +4 -0
- package/.agent-src/rules/minimal-safe-diff.md +4 -0
- package/.agent-src/rules/missing-tool-handling.md +4 -0
- package/.agent-src/rules/model-recommendation.md +9 -61
- package/.agent-src/rules/no-attribution-footers.md +53 -0
- package/.agent-src/rules/no-cheap-questions.md +11 -27
- package/.agent-src/rules/no-council-references.md +76 -0
- package/.agent-src/rules/no-roadmap-references.md +8 -1
- package/.agent-src/rules/non-destructive-by-default.md +13 -43
- package/.agent-src/rules/onboarding-gate.md +9 -117
- package/.agent-src/rules/package-ci-checks.md +10 -37
- package/.agent-src/rules/php-coding.md +10 -55
- package/.agent-src/rules/preservation-guard.md +9 -0
- package/.agent-src/rules/review-routing-awareness.md +9 -97
- package/.agent-src/rules/reviewer-awareness.md +8 -83
- package/.agent-src/rules/roadmap-progress-sync.md +7 -170
- package/.agent-src/rules/role-mode-adherence.md +6 -2
- package/.agent-src/rules/rule-type-governance.md +8 -66
- package/.agent-src/rules/runtime-safety.md +5 -0
- package/.agent-src/rules/scope-control.md +17 -62
- package/.agent-src/rules/security-sensitive-stop.md +7 -1
- package/.agent-src/rules/size-enforcement.md +6 -1
- package/.agent-src/rules/skill-improvement-trigger.md +9 -49
- package/.agent-src/rules/skill-quality.md +7 -64
- package/.agent-src/rules/slash-command-routing-policy.md +11 -63
- package/.agent-src/rules/think-before-action.md +22 -87
- package/.agent-src/rules/token-efficiency.md +10 -74
- package/.agent-src/rules/token-optimizer-maintenance.md +68 -0
- package/.agent-src/rules/tool-safety.md +4 -0
- package/.agent-src/rules/ui-audit-gate.md +25 -61
- package/.agent-src/rules/upstream-proposal.md +9 -67
- package/.agent-src/rules/user-interaction.md +25 -95
- package/.agent-src/rules/verify-before-complete.md +1 -1
- package/.agent-src/skills/agent-docs-writing/SKILL.md +1 -1
- package/.agent-src/skills/ai-council/SKILL.md +69 -5
- package/.agent-src/skills/analysis-autonomous-mode/SKILL.md +1 -1
- package/.agent-src/skills/analysis-skill-router/SKILL.md +3 -3
- package/.agent-src/skills/artisan-commands/SKILL.md +2 -2
- package/.agent-src/skills/authz-review/SKILL.md +1 -1
- package/.agent-src/skills/aws-infrastructure/SKILL.md +5 -5
- package/.agent-src/skills/blast-radius-analyzer/SKILL.md +8 -8
- package/.agent-src/skills/bug-analyzer/SKILL.md +5 -5
- package/.agent-src/skills/code-refactoring/SKILL.md +4 -4
- package/.agent-src/skills/code-review/SKILL.md +2 -2
- package/.agent-src/skills/command-writing/SKILL.md +11 -0
- package/.agent-src/skills/composer-packages/SKILL.md +2 -2
- package/.agent-src/skills/context-authoring/SKILL.md +11 -0
- package/.agent-src/skills/context-document/SKILL.md +1 -1
- package/.agent-src/skills/copilot-agents-optimization/SKILL.md +23 -0
- package/.agent-src/skills/copilot-config/SKILL.md +1 -1
- package/.agent-src/skills/dcf-modeling/SKILL.md +89 -0
- package/.agent-src/skills/dependency-upgrade/SKILL.md +2 -2
- package/.agent-src/skills/devcontainer/SKILL.md +2 -2
- package/.agent-src/skills/developer-like-execution/SKILL.md +1 -1
- package/.agent-src/skills/docker/SKILL.md +1 -1
- package/.agent-src/skills/dto-creator/SKILL.md +1 -1
- package/.agent-src/skills/estimate-ticket/SKILL.md +2 -2
- package/.agent-src/skills/fe-design/SKILL.md +4 -4
- package/.agent-src/skills/feature-planning/SKILL.md +5 -5
- package/.agent-src/skills/funnel-analysis/SKILL.md +100 -0
- package/.agent-src/skills/laravel/SKILL.md +1 -1
- package/.agent-src/skills/laravel-notifications/SKILL.md +5 -5
- package/.agent-src/skills/laravel-pennant/SKILL.md +1 -1
- package/.agent-src/skills/laravel-pulse/SKILL.md +4 -4
- package/.agent-src/skills/laravel-reverb/SKILL.md +2 -2
- package/.agent-src/skills/laravel-scheduling/SKILL.md +1 -1
- package/.agent-src/skills/md-language-check/SKILL.md +1 -1
- package/.agent-src/skills/migration-creator/SKILL.md +7 -7
- package/.agent-src/skills/multi-tenancy/SKILL.md +8 -8
- package/.agent-src/skills/okr-tree-modeling/SKILL.md +93 -0
- package/.agent-src/skills/performance-analysis/SKILL.md +3 -3
- package/.agent-src/skills/pest-testing/SKILL.md +6 -6
- package/.agent-src/skills/php-service/SKILL.md +2 -2
- package/.agent-src/skills/project-analysis-hypothesis-driven/SKILL.md +3 -3
- package/.agent-src/skills/project-analysis-react/SKILL.md +1 -1
- package/.agent-src/skills/project-analysis-symfony/SKILL.md +1 -1
- package/.agent-src/skills/project-analysis-zend-laminas/SKILL.md +2 -2
- package/.agent-src/skills/project-analyzer/SKILL.md +4 -4
- package/.agent-src/skills/prompt-optimizer/SKILL.md +108 -0
- package/.agent-src/skills/readme-reviewer/SKILL.md +1 -1
- package/.agent-src/skills/rice-prioritization/SKILL.md +100 -0
- package/.agent-src/skills/rule-writing/SKILL.md +33 -0
- package/.agent-src/skills/sentry-integration/SKILL.md +1 -1
- package/.agent-src/skills/skill-writing/SKILL.md +14 -0
- package/.agent-src/skills/subagent-orchestration/SKILL.md +34 -2
- package/.agent-src/skills/terraform/SKILL.md +2 -2
- package/.agent-src/skills/terragrunt/SKILL.md +8 -8
- package/.agent-src/skills/test-performance/SKILL.md +5 -5
- package/.agent-src/skills/threat-modeling/SKILL.md +2 -2
- package/.agent-src/skills/token-optimizer/SKILL.md +110 -0
- package/.agent-src/skills/unit-economics-modeling/SKILL.md +104 -0
- package/.agent-src/skills/universal-project-analysis/SKILL.md +1 -1
- package/.agent-src/skills/using-git-worktrees/SKILL.md +1 -0
- package/.agent-src/templates/AGENTS.md +1 -1
- package/.agent-src/templates/agent-settings.md +25 -41
- package/.agent-src/templates/contexts/tenant-boundaries.md +2 -2
- package/.agent-src/templates/contexts.md +1 -1
- package/.agent-src/templates/copilot-instructions.md +21 -0
- package/.agent-src/templates/copilot-review-instructions.md +76 -0
- package/.agent-src/templates/features.md +1 -1
- package/.agent-src/templates/rule.md +127 -0
- package/.agent-src/templates/scripts/work_engine/hook_bootstrap.py +7 -5
- package/.agent-src/templates/scripts/work_engine/hooks/__init__.py +0 -4
- package/.agent-src/templates/scripts/work_engine/hooks/builtin/__init__.py +0 -4
- package/.agent-src/templates/scripts/work_engine/hooks/builtin/_chat_history_base.py +7 -51
- package/.agent-src/templates/scripts/work_engine/hooks/builtin/chat_history_append.py +1 -2
- package/.agent-src/templates/scripts/work_engine/hooks/builtin/chat_history_halt_append.py +1 -2
- package/.agent-src/templates/scripts/work_engine/hooks/builtin/memory_visibility.py +2 -3
- package/.agent-src/templates/skill.md +30 -1
- package/.claude-plugin/marketplace.json +11 -4
- package/AGENTS.md +71 -3
- package/CHANGELOG.md +180 -3
- package/README.md +24 -23
- package/config/agent-settings.template.yml +63 -23
- package/config/gitignore-block.txt +11 -4
- package/docs/architecture.md +84 -3
- package/docs/catalog.md +23 -11
- package/docs/contracts/adr-chat-history-split.md +10 -1
- package/docs/contracts/agent-memory-contract.md +1 -1
- package/docs/contracts/command-clusters.md +1 -1
- package/docs/contracts/context-paths.md +2 -1
- package/docs/contracts/cross-wing-handoff.md +133 -0
- package/docs/contracts/file-ownership-matrix.json +678 -609
- package/docs/contracts/hook-architecture-v1.md +8 -1
- package/docs/contracts/iron-law-overrides.txt +25 -0
- package/docs/contracts/kernel-membership.md +273 -0
- package/docs/contracts/load-context-schema.md +26 -11
- package/docs/contracts/memory-visibility-v1.md +8 -24
- package/docs/contracts/pilot/agent-authority.md +24 -0
- package/docs/contracts/pilot/direct-answers.md +70 -0
- package/docs/contracts/pilot/language-and-tone.md +63 -0
- package/docs/contracts/rule-classification.md +170 -0
- package/docs/contracts/rule-router.md +153 -0
- package/docs/customization.md +18 -7
- package/docs/decisions/ADR-001-kernel-swap-deferred.md +109 -0
- package/docs/decisions/ADR-002-kernel-bucket-overrides.md +124 -0
- package/docs/decisions/ADR-rule-kernel-and-router.md +122 -0
- package/docs/getting-started.md +19 -27
- package/docs/guidelines/agent-infra/ask-when-uncertain-demos.md +1 -1
- package/docs/guidelines/agent-infra/roadmap-progress-mechanics.md +176 -0
- package/docs/guidelines/agent-infra/rule-type-governance.md +73 -0
- package/docs/guidelines/agent-infra/size-and-scope.md +13 -2
- package/docs/guidelines/agent-infra/skill-quality-checklist.md +119 -0
- package/docs/guidelines/augment-portability-patterns.md +68 -0
- package/docs/guidelines/php/php-coding-patterns.md +62 -0
- package/docs/hook-payload-capture.md +221 -0
- package/docs/migrations/commands-1.15.0.md +17 -12
- package/docs/skills-catalog.md +5 -4
- package/llms.txt +4 -3
- package/package.json +1 -1
- package/scripts/_p43_bodies.py +235 -0
- package/scripts/_p43_compress.py +118 -0
- package/scripts/_p4_migrate.py +199 -0
- package/scripts/_pilot_council_question.py +57 -0
- package/scripts/_pilot_measure.py +53 -0
- package/scripts/agent-config +1 -1
- package/scripts/ai_council/_default_prices.py +4 -4
- package/scripts/ai_council/clients.py +1 -1
- package/scripts/ai_council/modes.py +3 -4
- package/scripts/ai_council/pricing.py +10 -9
- package/scripts/ai_council/session.py +107 -5
- package/scripts/build_linear_digest.py +3 -5
- package/scripts/build_rule_trigger_matrix.py +1 -9
- package/scripts/chat_history.py +952 -596
- package/scripts/check_always_budget.py +39 -6
- package/scripts/check_compressed_paths.py +213 -0
- package/scripts/check_compression.py +15 -0
- package/scripts/check_context_paths.py +1 -0
- package/scripts/check_council_layout.py +105 -0
- package/scripts/check_council_references.py +145 -0
- package/scripts/check_portability.py +2 -0
- package/scripts/check_references.py +14 -2
- package/scripts/check_token_optimizer_freshness.py +131 -0
- package/scripts/compile_router.py +148 -0
- package/scripts/compress.py +219 -11
- package/scripts/council_cli.py +63 -9
- package/scripts/council_prune.py +81 -0
- package/scripts/count_token_optimizer_usage.sh +54 -0
- package/scripts/hook_manifest.yaml +33 -0
- package/scripts/hooks/augment-chat-history.sh +10 -0
- package/scripts/hooks/cowork-dispatcher.sh +98 -0
- package/scripts/hooks/dispatch_hook.py +35 -0
- package/scripts/hooks_status.py +12 -1
- package/scripts/install-hooks.sh +2 -2
- package/scripts/install.sh +81 -2
- package/scripts/iron_law_sha.py +98 -0
- package/scripts/lint_handoffs.py +214 -0
- package/scripts/lint_hook_manifest.py +2 -1
- package/scripts/lint_load_context.py +35 -5
- package/scripts/measure_rule_budget.py +314 -0
- package/scripts/prototype_lint_contradictions.py +150 -0
- package/scripts/redact_hook_capture.py +148 -0
- package/scripts/schemas/rule.schema.json +55 -6
- package/scripts/schemas/skill.schema.json +5 -0
- package/scripts/skill_linter.py +359 -7
- package/scripts/smoke_path_resolution.py +93 -0
- package/scripts/update_prices.py +3 -3
- package/scripts/validate_frontmatter.py +41 -1
- package/.agent-src/commands/chat-history/checkpoint.md +0 -126
- package/.agent-src/commands/chat-history/clear.md +0 -103
- package/.agent-src/commands/chat-history/resume.md +0 -183
- package/.agent-src/contexts/communication/rules-auto/artifact-engagement-recording-mechanics.md +0 -72
- package/.agent-src/contexts/communication/rules-auto/augment-portability-mechanics.md +0 -79
- package/.agent-src/contexts/communication/rules-auto/cli-output-handling-mechanics.md +0 -87
- package/.agent-src/contexts/communication/rules-auto/command-suggestion-policy-mechanics.md +0 -62
- package/.agent-src/contexts/communication/rules-auto/docs-sync-mechanics.md +0 -78
- package/.agent-src/contexts/communication/rules-auto/package-ci-checks-mechanics.md +0 -85
- package/.agent-src/contexts/communication/rules-auto/review-routing-awareness-mechanics.md +0 -65
- package/.agent-src/contexts/communication/rules-auto/roadmap-progress-sync-mechanics.md +0 -78
- package/.agent-src/contexts/communication/rules-auto/ui-audit-gate-mechanics.md +0 -53
- package/.agent-src/rules/chat-history-cadence.md +0 -143
- package/.agent-src/rules/chat-history-ownership.md +0 -124
- package/.agent-src/rules/chat-history-visibility.md +0 -97
- package/.agent-src/templates/scripts/work_engine/hooks/builtin/chat_history_heartbeat.py +0 -50
- package/.agent-src/templates/scripts/work_engine/hooks/builtin/chat_history_turn_check.py +0 -49
- package/scripts/check_phase_coupling.py +0 -148
- /package/{docs → .agent-src/contexts}/contracts/artifact-engagement-flow.md +0 -0
- /package/{docs → .agent-src/contexts}/contracts/command-suggestion-flow.md +0 -0
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# Php Coding
|
|
2
|
+
|
|
3
|
+
> Writing or reviewing PHP code — strict types, naming, comparisons, early returns, Eloquent conventions
|
|
4
|
+
|
|
5
|
+
_Origin: migrated from `.agent-src.uncompressed/rules/php-coding.md` per P4.2 of `road-to-kernel-and-router.md`._
|
|
6
|
+
|
|
7
|
+
# PHP Coding Rules
|
|
8
|
+
|
|
9
|
+
- Use `declare(strict_types=1)` in every **new** PHP file. Not required when modifying existing files that don't have it.
|
|
10
|
+
- If the project has a `Math` helper class, use it for ALL business calculations. Never use native PHP arithmetic operators (`+`, `-`, `*`, `/`) for business calculations. Search for the `Math` class in the project.
|
|
11
|
+
- Never use `var_dump()`, `print_r()`, or `dd()` — they are disallowed by PHPStan config. Exception: legacy projects where these are already used and no alternative is feasible.
|
|
12
|
+
- Never use `float` for money — use `decimal` or the `Math` helper.
|
|
13
|
+
- Always use `===` / `!==` (strict comparison), Yoda style: `null === $var`.
|
|
14
|
+
- Early return over nested if/else.
|
|
15
|
+
- No one-liner if statements.
|
|
16
|
+
- Single quotes for strings without interpolation. `sprintf()` for complex strings.
|
|
17
|
+
- Variables: `camelCase`. Array keys: `snake_case`. Constants: `UPPER_SNAKE_CASE`.
|
|
18
|
+
- Typed properties, parameters, and return types — always.
|
|
19
|
+
- Constructor property promotion where it makes sense.
|
|
20
|
+
|
|
21
|
+
## Eloquent Models — Attribute Access
|
|
22
|
+
|
|
23
|
+
Read `eloquent.access_style` from `.agent-settings.yml` to determine the preferred style.
|
|
24
|
+
Default: `getters_setters`. See the `eloquent` skill for the full reference table and examples.
|
|
25
|
+
|
|
26
|
+
- **`getters_setters`** (strict): Every attribute has a typed getter + fluent setter. Inside the model: `getAttribute('column_name')`/`setAttribute('column_name', $value)`. Outside: always getters/setters. If a getter doesn't exist yet, create it first.
|
|
27
|
+
- **`get_attribute`**: Use `getAttribute('column_name')`/`setAttribute('column_name', $value)` everywhere, no getters/setters needed.
|
|
28
|
+
- **`magic_properties`**: Laravel default `$model->column_name` everywhere.
|
|
29
|
+
|
|
30
|
+
### Relationship Getters
|
|
31
|
+
|
|
32
|
+
- Every relationship MUST have a typed getter method **above** the relationship method.
|
|
33
|
+
- **Inside the getter:** use `$this->getAttribute('relationship_name')`, NEVER `$this->relationship_name`.
|
|
34
|
+
- **Outside the model:** ALWAYS use the getter (`$model->getEquipment()`), NEVER access the magic property (`$model->equipment`).
|
|
35
|
+
- Use `instanceof` checks instead of `null ===` when checking relationship results.
|
|
36
|
+
|
|
37
|
+
## Eloquent Models — Observers over `booted()`
|
|
38
|
+
|
|
39
|
+
- Do NOT use `booted()` / `boot()` for model lifecycle hooks (saving, saved, deleted, etc.).
|
|
40
|
+
- Use a dedicated **Observer** class registered via `#[ObservedBy]` attribute.
|
|
41
|
+
- This keeps models slim and lifecycle logic testable and discoverable.
|
|
42
|
+
|
|
43
|
+
## PHPStan
|
|
44
|
+
|
|
45
|
+
- Always fix the root cause. Do NOT add entries to `phpstan-baseline.neon`.
|
|
46
|
+
- Adding `ignoreErrors` to `phpstan.neon` is allowed for **structural toolchain limitations** (e.g., Pest runtime bindings). NOT for individual code issues. **If unsure → ask the user.**
|
|
47
|
+
- If a fix is truly impossible (confirmed false positive), use an inline ignore as last resort:
|
|
48
|
+
```php
|
|
49
|
+
// @phpstan-ignore-next-line — false positive: reason here
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Testing
|
|
53
|
+
|
|
54
|
+
- Always write tests in **Pest**, not PHPUnit class syntax — unless the user explicitly asks for PHPUnit.
|
|
55
|
+
- Pest tests in `tests/Unit/` automatically use `UnitTestCase` as the base class (configured in `tests/Pest.php`).
|
|
56
|
+
|
|
57
|
+
## PHPDoc
|
|
58
|
+
|
|
59
|
+
- Only add PHPDoc when type hints are insufficient (e.g. generic arrays: `@param array<int, MyObject> $items`).
|
|
60
|
+
- Do NOT add PHPDoc that just repeats the method signature.
|
|
61
|
+
- One docblock per method — never split into multiple `/** */` blocks.
|
|
62
|
+
- Tag order: `@param` → `@return` → `@throws`.
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
# Hook payload capture guide
|
|
2
|
+
|
|
3
|
+
**Purpose:** walk through the live-session payload capture for one platform
|
|
4
|
+
in roughly 5 minutes, so the corresponding entry in
|
|
5
|
+
[`agents/contexts/chat-history-platform-hooks.md`](../agents/contexts/chat-history-platform-hooks.md)
|
|
6
|
+
can move from `docs-verified` to `payload-verified`.
|
|
7
|
+
|
|
8
|
+
**Scope:** Cursor · Cline · Windsurf · Gemini CLI. Augment Code and Claude
|
|
9
|
+
Code already shipped as `docs-verified` in Phase 1 of the now-archived
|
|
10
|
+
[`road-to-verified-chat-history-platforms.md`](../agents/roadmaps/archive/road-to-verified-chat-history-platforms.md).
|
|
11
|
+
Cowork is upstream-blocked separately
|
|
12
|
+
([`#40495`](https://github.com/anthropics/claude-code/issues/40495)) and
|
|
13
|
+
not in scope here.
|
|
14
|
+
|
|
15
|
+
**Why this is opportunistic:** the payload-verified upgrade is a nice-to-have.
|
|
16
|
+
The shipping `docs-verified` extractors already match the vendor docs —
|
|
17
|
+
captures are insurance against silent vendor-side schema drift. Pick one
|
|
18
|
+
platform when convenient; do not run all four in one sitting unless you
|
|
19
|
+
already have all four IDEs installed and licensed.
|
|
20
|
+
|
|
21
|
+
## Pre-flight (one-time, ~30 seconds)
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
cd /path/to/agent-config
|
|
25
|
+
|
|
26
|
+
# Confirm the dispatcher is wired in this project (idempotent — safe to rerun).
|
|
27
|
+
# Replace <platform> with cursor / cline / windsurf / gemini as appropriate
|
|
28
|
+
# when you reach that platform's section.
|
|
29
|
+
python3 scripts/install.py --<platform>
|
|
30
|
+
|
|
31
|
+
# Confirm the trampoline + project-scope hooks file landed.
|
|
32
|
+
./agent-config hooks:status | grep -E "^[ ✓✅⚠️❌·] (cursor|cline|windsurf|gemini)"
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
`hooks:status` should report `installed` for the platform you just wired
|
|
36
|
+
(or `missing` if the project-scope file did not land — in that case rerun
|
|
37
|
+
the install with `--force`).
|
|
38
|
+
|
|
39
|
+
## Common capture loop (steps reused on every platform)
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
# 1. Pick a per-platform capture dir (gitignored; never committed).
|
|
43
|
+
export AGENT_HOOK_CAPTURE_DIR="$HOME/.agent-config-captures/<platform>"
|
|
44
|
+
mkdir -p "$AGENT_HOOK_CAPTURE_DIR"
|
|
45
|
+
|
|
46
|
+
# 2. Restart / reload the platform so it picks up the env var.
|
|
47
|
+
# Per-platform commands below.
|
|
48
|
+
|
|
49
|
+
# 3. Run ONE short, boring session in the platform.
|
|
50
|
+
# Recommended prompt: "echo hello" or "what time is it".
|
|
51
|
+
# Goal is to capture the envelope shape, not interesting content.
|
|
52
|
+
|
|
53
|
+
# 4. Confirm capture files exist.
|
|
54
|
+
ls -1 "$AGENT_HOOK_CAPTURE_DIR" | head
|
|
55
|
+
|
|
56
|
+
# 5. Redact (replaces user-content fields with <REDACTED>;
|
|
57
|
+
# envelope keys preserved).
|
|
58
|
+
python3 scripts/redact_hook_capture.py "$AGENT_HOOK_CAPTURE_DIR" --strict
|
|
59
|
+
|
|
60
|
+
# 6. Pick the smallest representative file.
|
|
61
|
+
ls -1Sr "$AGENT_HOOK_CAPTURE_DIR"/*.redacted.json | head -1
|
|
62
|
+
|
|
63
|
+
# 7. cat it; copy the JSON; paste into the archived roadmap section
|
|
64
|
+
# (see § Where to paste below).
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
The redaction step is non-negotiable. The goal is to lock schemas, not to
|
|
68
|
+
archive conversations.
|
|
69
|
+
|
|
70
|
+
## Per-platform notes
|
|
71
|
+
|
|
72
|
+
### Cursor (~5 min)
|
|
73
|
+
|
|
74
|
+
- **Install:** `python3 scripts/install.py --cursor` (project) or
|
|
75
|
+
`--cursor-user-hooks` (covers every project you open).
|
|
76
|
+
- **Restart:** quit Cursor (Cmd+Q on macOS), then relaunch from the
|
|
77
|
+
shell where you exported `AGENT_HOOK_CAPTURE_DIR` so the env var
|
|
78
|
+
propagates to the renderer process. Reopening a window from the
|
|
79
|
+
Dock will not inherit the env.
|
|
80
|
+
- **Trigger event:** type a prompt in Cursor's agent panel and let it
|
|
81
|
+
finish. Expected captures: one `sessionStart`, one
|
|
82
|
+
`beforeSubmitPrompt`, one `afterAgentResponse` and/or `stop`,
|
|
83
|
+
zero or more `postToolUse`.
|
|
84
|
+
- **File pattern:** `cursor__afterAgentResponse__<ts>__<pid>.json` is
|
|
85
|
+
the most useful one to paste.
|
|
86
|
+
- **CLI vs IDE:** Cursor CLI fires only
|
|
87
|
+
`beforeShellExecution`/`afterShellExecution` — for the
|
|
88
|
+
per-turn payload you need the IDE.
|
|
89
|
+
|
|
90
|
+
### Cline (~5 min)
|
|
91
|
+
|
|
92
|
+
- **Install:** `python3 scripts/install.py --cline` (project) or
|
|
93
|
+
`--cline-user-hooks` (user-scope, covers every workspace).
|
|
94
|
+
- **Restart:** in VS Code or JetBrains, run "Developer: Reload
|
|
95
|
+
Window" (Cmd+Shift+P) from a terminal where the env is exported.
|
|
96
|
+
Cline reads hooks at task start, so a fresh task is required —
|
|
97
|
+
closing and reopening the side panel is not enough.
|
|
98
|
+
- **Trigger event:** start a new Cline task and let one turn complete.
|
|
99
|
+
Cline calls them "tasks" not "sessions"; the equivalent boundaries
|
|
100
|
+
are `TaskStart` → `UserPromptSubmit` → `PostToolUse`* →
|
|
101
|
+
`TaskComplete`.
|
|
102
|
+
- **File pattern:** `cline__TaskComplete__<ts>__<pid>.json` if you let
|
|
103
|
+
the task finish; `cline__UserPromptSubmit__<ts>__<pid>.json` is also
|
|
104
|
+
acceptable (carries the `prompt` envelope).
|
|
105
|
+
- **Windows caveat:** hooks are unsupported on Windows
|
|
106
|
+
([`cline/cline#8073`](https://github.com/cline/cline/issues/8073));
|
|
107
|
+
capture from macOS or Linux.
|
|
108
|
+
|
|
109
|
+
### Windsurf (~5 min)
|
|
110
|
+
|
|
111
|
+
- **Install:** `python3 scripts/install.py --windsurf` (project) or
|
|
112
|
+
`--windsurf-user-hooks` (user-scope at `~/.codeium/windsurf/hooks.json`).
|
|
113
|
+
- **Restart:** quit Cascade fully, then relaunch from the shell with
|
|
114
|
+
the env exported. The `pre_user_prompt` event fires on every turn —
|
|
115
|
+
no full restart needed once Cascade is up, but the *first* turn after
|
|
116
|
+
launch must be the captured one.
|
|
117
|
+
- **Trigger event:** ask Cascade one short question and let it answer.
|
|
118
|
+
Expected captures: `pre_user_prompt`,
|
|
119
|
+
`post_cascade_response_with_transcript`. The
|
|
120
|
+
`_with_transcript` variant is the more useful one to paste because it
|
|
121
|
+
carries the full response inline.
|
|
122
|
+
- **File pattern:** `windsurf__post_cascade_response_with_transcript__<ts>__<pid>.json`.
|
|
123
|
+
- **Async caveat:** `post_cascade_response` fires asynchronously off
|
|
124
|
+
the critical path. The capture file might land a second or two after
|
|
125
|
+
the response renders — wait briefly before running the redact step.
|
|
126
|
+
|
|
127
|
+
### Gemini CLI (~5 min)
|
|
128
|
+
|
|
129
|
+
- **Install:** `python3 scripts/install.py --gemini` (project) or
|
|
130
|
+
`--gemini-user-hooks` (user-scope at `~/.gemini/settings.json`).
|
|
131
|
+
- **Restart:** Gemini CLI is invoked per command — no daemon to
|
|
132
|
+
restart. Just open a new shell with `AGENT_HOOK_CAPTURE_DIR`
|
|
133
|
+
exported and run the next session there.
|
|
134
|
+
- **Trigger event:** any short Gemini CLI session
|
|
135
|
+
(`gemini "what time is it"` or similar). Hooks fire on
|
|
136
|
+
`SessionStart` → `BeforeAgent` → `AfterTool`* → `AfterAgent` →
|
|
137
|
+
`SessionEnd`.
|
|
138
|
+
- **File pattern:** `gemini__AfterAgent__<ts>__<pid>.json` carries the
|
|
139
|
+
per-turn close envelope and is the recommended paste target.
|
|
140
|
+
- **Advisory hooks:** `SessionStart` and `SessionEnd` are advisory only
|
|
141
|
+
in Gemini CLI — do not be alarmed if those captures look thinner than
|
|
142
|
+
the others.
|
|
143
|
+
|
|
144
|
+
## Where to paste the redacted payload
|
|
145
|
+
|
|
146
|
+
The roadmap is now archived. Paste under the matching phase:
|
|
147
|
+
|
|
148
|
+
[`agents/roadmaps/archive/road-to-verified-chat-history-platforms.md`](../agents/roadmaps/archive/road-to-verified-chat-history-platforms.md)
|
|
149
|
+
|
|
150
|
+
- Cursor → § Phase 2 — Cursor
|
|
151
|
+
- Cline → § Phase 3 — Cline
|
|
152
|
+
- Windsurf → § Phase 4 — Windsurf
|
|
153
|
+
- Gemini CLI → § Phase 5 — Gemini CLI
|
|
154
|
+
|
|
155
|
+
In the chosen phase, paste the redacted JSON inside a fenced
|
|
156
|
+
`json` block under a heading like `### <Platform> payload shape (captured 2026-MM-DD)`,
|
|
157
|
+
then flip the `[ ] Optional upgrade — payload-verified` checkbox to
|
|
158
|
+
`[x]`.
|
|
159
|
+
|
|
160
|
+
Then update the matching row in
|
|
161
|
+
[`agents/contexts/chat-history-platform-hooks.md`](../agents/contexts/chat-history-platform-hooks.md):
|
|
162
|
+
the `Verification` column moves from `docs-verified` to
|
|
163
|
+
`payload-verified`.
|
|
164
|
+
|
|
165
|
+
If the captured shape diverges from the docs-verified extractor
|
|
166
|
+
branch, that is the trigger for a code patch — open a tiny new roadmap
|
|
167
|
+
under `agents/roadmaps/` for the divergence work, do **not** edit the
|
|
168
|
+
archived roadmap to track new code work
|
|
169
|
+
(see [`no-roadmap-references`](../.agent-src/rules/no-roadmap-references.md)).
|
|
170
|
+
|
|
171
|
+
## Final verify
|
|
172
|
+
|
|
173
|
+
After pasting and flipping the checkbox:
|
|
174
|
+
|
|
175
|
+
```bash
|
|
176
|
+
# Lint gates must stay green.
|
|
177
|
+
python3 scripts/lint_hook_manifest.py
|
|
178
|
+
python3 scripts/check_references.py
|
|
179
|
+
python3 scripts/check_portability.py
|
|
180
|
+
|
|
181
|
+
# Tests still green.
|
|
182
|
+
python3 -m pytest tests/hooks/ -q
|
|
183
|
+
|
|
184
|
+
# Optional: regenerate the dashboard if the archived roadmap's
|
|
185
|
+
# checkbox change should bubble up. Iron Law from
|
|
186
|
+
# `roadmap-progress-sync` says yes if it does.
|
|
187
|
+
./agent-config roadmap:progress
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
Per
|
|
191
|
+
[`commit-policy`](../.agent-src/rules/commit-policy.md):
|
|
192
|
+
do **not** commit unless explicitly told to. The user owns the commit
|
|
193
|
+
step.
|
|
194
|
+
|
|
195
|
+
## Cleanup after capture
|
|
196
|
+
|
|
197
|
+
```bash
|
|
198
|
+
# Raw captures (not redacted) contain real prompt content.
|
|
199
|
+
# Either delete the directory or leave it for repeat captures.
|
|
200
|
+
rm -rf "$AGENT_HOOK_CAPTURE_DIR"
|
|
201
|
+
|
|
202
|
+
# Or keep redacted ones only:
|
|
203
|
+
# find "$AGENT_HOOK_CAPTURE_DIR" -type f ! -name '*.redacted.json' -delete
|
|
204
|
+
|
|
205
|
+
# Unset the env var when done so subsequent sessions do not capture.
|
|
206
|
+
unset AGENT_HOOK_CAPTURE_DIR
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
The capture directory is gitignored project-wide; raw captures are
|
|
210
|
+
never accidentally committed. The redaction step is still mandatory
|
|
211
|
+
before paste because the redacted output goes into a tracked file
|
|
212
|
+
(the archived roadmap) and would otherwise leak.
|
|
213
|
+
|
|
214
|
+
## Sources
|
|
215
|
+
|
|
216
|
+
- Capture engine: [`scripts/hooks/dispatch_hook.py`](../scripts/hooks/dispatch_hook.py) — `_maybe_capture_payload`
|
|
217
|
+
- Redactor: [`scripts/redact_hook_capture.py`](../scripts/redact_hook_capture.py)
|
|
218
|
+
- Per-platform install logic: [`scripts/install.py`](../scripts/install.py) — search `ensure_<platform>_bridge` / `ensure_<platform>_user_hooks`
|
|
219
|
+
- Platform matrix + payload schemas: [`agents/contexts/chat-history-platform-hooks.md`](../agents/contexts/chat-history-platform-hooks.md)
|
|
220
|
+
- Hook architecture: [`docs/contracts/hook-architecture-v1.md`](contracts/hook-architecture-v1.md)
|
|
221
|
+
- Archived roadmap with per-phase paste sections: [`agents/roadmaps/archive/road-to-verified-chat-history-platforms.md`](../agents/roadmaps/archive/road-to-verified-chat-history-platforms.md)
|
|
@@ -85,18 +85,23 @@ the deprecation cycle for Phase 1 closes. Tracked in
|
|
|
85
85
|
[`agents/roadmaps/archive/road-to-governance-cleanup.md`](../../agents/roadmaps/archive/road-to-governance-cleanup.md)
|
|
86
86
|
§ F2.
|
|
87
87
|
|
|
88
|
-
## Related rule split — `chat-history` (post-1.15.0)
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
`
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
`chat-history
|
|
88
|
+
## Related rule split — `chat-history` (post-1.15.0, superseded)
|
|
89
|
+
|
|
90
|
+
> **Superseded · 2026-05-04** by
|
|
91
|
+
> [`agents/contexts/chat-history-platform-hooks.md`](../../agents/contexts/chat-history-platform-hooks.md).
|
|
92
|
+
> The three sibling rules (`chat-history-ownership`,
|
|
93
|
+
> `chat-history-cadence`, `chat-history-visibility`) and the heartbeat
|
|
94
|
+
> marker no longer exist. Persistence is now a pure platform-hook
|
|
95
|
+
> contract — `session_start` auto-adopts foreign sessions silently;
|
|
96
|
+
> the agent never reads or writes `agents/.agent-chat-history` cooperatively.
|
|
97
|
+
> Manual recovery lever: `./agent-config chat-history:adopt`.
|
|
98
|
+
|
|
99
|
+
For historical context: the monolithic `rules/chat-history.md` was
|
|
100
|
+
first split into three sibling `always` rules in the post-1.15.0
|
|
101
|
+
optimization phase, recorded in
|
|
102
|
+
[`docs/contracts/adr-chat-history-split.md`](../contracts/adr-chat-history-split.md)
|
|
103
|
+
(also marked superseded). The hook-only roadmap then collapsed all
|
|
104
|
+
three rules into structural-only artefacts.
|
|
100
105
|
|
|
101
106
|
## Rollback
|
|
102
107
|
|
package/docs/skills-catalog.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Skills Catalog
|
|
2
2
|
|
|
3
|
-
All **
|
|
3
|
+
All **129 skills** available in this package, in alphabetical order.
|
|
4
4
|
Click a skill name to open its SKILL.md and read the full guidance.
|
|
5
5
|
|
|
6
6
|
> **Regenerate:** `python3 scripts/generate_catalog.py`
|
|
@@ -10,6 +10,7 @@ Click a skill name to open its SKILL.md and read the full guidance.
|
|
|
10
10
|
|---|---|
|
|
11
11
|
| [`adversarial-review`](../.agent-src/skills/adversarial-review/SKILL.md) | ONLY when user explicitly requests adversarial review, devil's advocate analysis, stress-testing a plan, or 'poke holes in this' — NOT for regular code review or design feedback. |
|
|
12
12
|
| [`agent-docs-writing`](../.agent-src/skills/agent-docs-writing/SKILL.md) | Use when reading, creating, or updating agent documentation, module docs, roadmaps, or AGENTS.md. Understands the full .augment/, agents/, and copilot-instructions structure. |
|
|
13
|
+
| [`ai-council`](../.agent-src/skills/ai-council/SKILL.md) | Use when polling external AIs (OpenAI, Anthropic) outside the host session for a neutral second opinion on a roadmap, diff, prompt, or file set — or 'cross-check with another model'. |
|
|
13
14
|
| [`analysis-autonomous-mode`](../.agent-src/skills/analysis-autonomous-mode/SKILL.md) | 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. |
|
|
14
15
|
| [`analysis-skill-router`](../.agent-src/skills/analysis-skill-router/SKILL.md) | 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'. |
|
|
15
16
|
| [`api-design`](../.agent-src/skills/api-design/SKILL.md) | 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. |
|
|
@@ -18,7 +19,7 @@ Click a skill name to open its SKILL.md and read the full guidance.
|
|
|
18
19
|
| [`artisan-commands`](../.agent-src/skills/artisan-commands/SKILL.md) | Use when creating or modifying Artisan commands. Covers clear signatures, safe execution flow, helpful output, and project conventions for console tooling. |
|
|
19
20
|
| [`authz-review`](../.agent-src/skills/authz-review/SKILL.md) | Use when reviewing authorization end-to-end — route → gate → policy → query scope → response filter — before changes to permissions, tenants, ownership, or admin flows. |
|
|
20
21
|
| [`aws-infrastructure`](../.agent-src/skills/aws-infrastructure/SKILL.md) | Use when working with AWS resources — ECS Fargate, ECR, EFS, Secrets Manager, gomplate templates, multi-env deployments — even when the user says 'deploy to staging' without naming AWS. |
|
|
21
|
-
| [`blade-ui`](../.agent-src/skills/blade-ui/SKILL.md) |
|
|
22
|
+
| [`blade-ui`](../.agent-src/skills/blade-ui/SKILL.md) | Use when the project's frontend stack is Blade — dispatched by `directives/ui/{apply,review,polish}.py`. Covers views, components, partials, layouts, and view logic. |
|
|
22
23
|
| [`blast-radius-analyzer`](../.agent-src/skills/blast-radius-analyzer/SKILL.md) | Use BEFORE editing shared code — enumerates every call site, event consumer, queue worker, API client, migration, and test that a planned change will touch, with a file:line citation per dependency. |
|
|
23
24
|
| [`bug-analyzer`](../.agent-src/skills/bug-analyzer/SKILL.md) | Use when the user shares a Sentry error, Jira bug ticket, or error description and wants root cause analysis. Also for proactive bug hunting and code audits for hidden bugs. |
|
|
24
25
|
| [`check-refs`](../.agent-src/skills/check-refs/SKILL.md) | Use when verifying cross-references between skills, rules, commands, guidelines, and context documents are not broken after edits, renames, or deletions. |
|
|
@@ -49,7 +50,7 @@ Click a skill name to open its SKILL.md and read the full guidance.
|
|
|
49
50
|
| [`feature-planning`](../.agent-src/skills/feature-planning/SKILL.md) | Use when the user says "plan a feature", "brainstorm", "explore this idea", or wants to go from idea to structured plan and roadmap. |
|
|
50
51
|
| [`file-editor`](../.agent-src/skills/file-editor/SKILL.md) | Use when opening edited files in the user's IDE. Reads settings from .agent-settings.yml to determine IDE and whether auto-open is enabled. |
|
|
51
52
|
| [`finishing-a-development-branch`](../.agent-src/skills/finishing-a-development-branch/SKILL.md) | Use when the feature is implementation-complete and the next step is 'ship it' — verifies, cleans up, and routes to merge/PR/park/discard — even when the user just says 'I'm done, what now?'. |
|
|
52
|
-
| [`flux`](../.agent-src/skills/flux/SKILL.md) |
|
|
53
|
+
| [`flux`](../.agent-src/skills/flux/SKILL.md) | Use when the project uses `livewire/flux` — dispatched by `directives/ui/{apply,review,polish}.py`. Covers Flux components, slots, variants, and form primitives. |
|
|
53
54
|
| [`git-workflow`](../.agent-src/skills/git-workflow/SKILL.md) | Use when working with Git — branch naming, commit messages, PR creation, rebasing, or the code review process — even when the user says 'push this' or 'merge the branch' without naming Git. |
|
|
54
55
|
| [`github-ci`](../.agent-src/skills/github-ci/SKILL.md) | Use when working with GitHub Actions — workflow YAML, quality gates, test matrices, deployment triggers, reusable workflows — even when the user just says 'my CI is failing' or 'add a check'. |
|
|
55
56
|
| [`grafana`](../.agent-src/skills/grafana/SKILL.md) | Use when working with Grafana — dashboards, Loki LogQL queries, alerting rules, monitoring panels — even when the user just says 'build me a dashboard' or 'query the logs' without naming Grafana. |
|
|
@@ -72,7 +73,7 @@ Click a skill name to open its SKILL.md and read the full guidance.
|
|
|
72
73
|
| [`laravel-validation`](../.agent-src/skills/laravel-validation/SKILL.md) | Use when writing validation — Form Requests, rules, custom rule objects, request-boundary design — even when the user just says 'validate this input' or 'check the request' without naming it. |
|
|
73
74
|
| [`learning-to-rule-or-skill`](../.agent-src/skills/learning-to-rule-or-skill/SKILL.md) | Use when a repeated learning, mistake, or successful pattern should be turned into a new rule or skill. Also use after completing a task to capture learnings from the work. |
|
|
74
75
|
| [`lint-skills`](../.agent-src/skills/lint-skills/SKILL.md) | Use when running the package's skill linter against all skills and rules to validate frontmatter, required sections, and execution metadata. |
|
|
75
|
-
| [`livewire`](../.agent-src/skills/livewire/SKILL.md) |
|
|
76
|
+
| [`livewire`](../.agent-src/skills/livewire/SKILL.md) | Use when the project's frontend stack is Livewire — dispatched by `directives/ui/{apply,review,polish}.py`. Covers reactive state, events, lifecycle hooks, and component/view separation. |
|
|
76
77
|
| [`logging-monitoring`](../.agent-src/skills/logging-monitoring/SKILL.md) | Use when working with logging or monitoring — Sentry error tracking, Grafana/Loki log aggregation, structured logging channels, or monitoring helpers. |
|
|
77
78
|
| [`mcp`](../.agent-src/skills/mcp/SKILL.md) | Use when working with MCP (Model Context Protocol) servers — their tools, capabilities, and best practices for effective agent workflows. |
|
|
78
79
|
| [`md-language-check`](../.agent-src/skills/md-language-check/SKILL.md) | Use BEFORE saving any .md under .augment/, .agent-src*/, or agents/ — scans umlauts, German function words, and quoted German phrases outside DE:/EN: anchor blocks. Hard gate per language-and-tone. |
|
package/llms.txt
CHANGED
|
@@ -8,6 +8,7 @@ Catalog: docs/skills-catalog.md
|
|
|
8
8
|
|
|
9
9
|
adversarial-review: ONLY when user explicitly requests adversarial review, devil's advocate analysis, stress-testing a plan, or 'poke holes in this' — NOT for regular code review or design feedback.
|
|
10
10
|
agent-docs-writing: Use when reading, creating, or updating agent documentation, module docs, roadmaps, or AGENTS.md. Understands the full .augment/, agents/, and copilot-instructions structure.
|
|
11
|
+
ai-council: Use when polling external AIs (OpenAI, Anthropic) outside the host session for a neutral second opinion on a roadmap, diff, prompt, or file set — or 'cross-check with another model'.
|
|
11
12
|
analysis-autonomous-mode: 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.
|
|
12
13
|
analysis-skill-router: 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'.
|
|
13
14
|
api-design: 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.
|
|
@@ -16,7 +17,7 @@ api-testing: Use when writing API endpoint tests — integration tests, contract
|
|
|
16
17
|
artisan-commands: Use when creating or modifying Artisan commands. Covers clear signatures, safe execution flow, helpful output, and project conventions for console tooling.
|
|
17
18
|
authz-review: Use when reviewing authorization end-to-end — route → gate → policy → query scope → response filter — before changes to permissions, tenants, ownership, or admin flows.
|
|
18
19
|
aws-infrastructure: Use when working with AWS resources — ECS Fargate, ECR, EFS, Secrets Manager, gomplate templates, multi-env deployments — even when the user says 'deploy to staging' without naming AWS.
|
|
19
|
-
blade-ui:
|
|
20
|
+
blade-ui: Use when the project's frontend stack is Blade — dispatched by `directives/ui/{apply,review,polish}.py`. Covers views, components, partials, layouts, and view logic.
|
|
20
21
|
blast-radius-analyzer: Use BEFORE editing shared code — enumerates every call site, event consumer, queue worker, API client, migration, and test that a planned change will touch, with a file:line citation per dependency.
|
|
21
22
|
bug-analyzer: Use when the user shares a Sentry error, Jira bug ticket, or error description and wants root cause analysis. Also for proactive bug hunting and code audits for hidden bugs.
|
|
22
23
|
check-refs: Use when verifying cross-references between skills, rules, commands, guidelines, and context documents are not broken after edits, renames, or deletions.
|
|
@@ -47,7 +48,7 @@ fe-design: Reference for frontend-design heuristics — component architecture,
|
|
|
47
48
|
feature-planning: Use when the user says "plan a feature", "brainstorm", "explore this idea", or wants to go from idea to structured plan and roadmap.
|
|
48
49
|
file-editor: Use when opening edited files in the user's IDE. Reads settings from .agent-settings.yml to determine IDE and whether auto-open is enabled.
|
|
49
50
|
finishing-a-development-branch: Use when the feature is implementation-complete and the next step is 'ship it' — verifies, cleans up, and routes to merge/PR/park/discard — even when the user just says 'I'm done, what now?'.
|
|
50
|
-
flux:
|
|
51
|
+
flux: Use when the project uses `livewire/flux` — dispatched by `directives/ui/{apply,review,polish}.py`. Covers Flux components, slots, variants, and form primitives.
|
|
51
52
|
git-workflow: Use when working with Git — branch naming, commit messages, PR creation, rebasing, or the code review process — even when the user says 'push this' or 'merge the branch' without naming Git.
|
|
52
53
|
github-ci: Use when working with GitHub Actions — workflow YAML, quality gates, test matrices, deployment triggers, reusable workflows — even when the user just says 'my CI is failing' or 'add a check'.
|
|
53
54
|
grafana: Use when working with Grafana — dashboards, Loki LogQL queries, alerting rules, monitoring panels — even when the user just says 'build me a dashboard' or 'query the logs' without naming Grafana.
|
|
@@ -70,7 +71,7 @@ laravel-scheduling: Use when configuring Laravel task scheduling — cron expres
|
|
|
70
71
|
laravel-validation: Use when writing validation — Form Requests, rules, custom rule objects, request-boundary design — even when the user just says 'validate this input' or 'check the request' without naming it.
|
|
71
72
|
learning-to-rule-or-skill: Use when a repeated learning, mistake, or successful pattern should be turned into a new rule or skill. Also use after completing a task to capture learnings from the work.
|
|
72
73
|
lint-skills: Use when running the package's skill linter against all skills and rules to validate frontmatter, required sections, and execution metadata.
|
|
73
|
-
livewire:
|
|
74
|
+
livewire: Use when the project's frontend stack is Livewire — dispatched by `directives/ui/{apply,review,polish}.py`. Covers reactive state, events, lifecycle hooks, and component/view separation.
|
|
74
75
|
logging-monitoring: Use when working with logging or monitoring — Sentry error tracking, Grafana/Loki log aggregation, structured logging channels, or monitoring helpers.
|
|
75
76
|
mcp: Use when working with MCP (Model Context Protocol) servers — their tools, capabilities, and best practices for effective agent workflows.
|
|
76
77
|
md-language-check: Use BEFORE saving any .md under .augment/, .agent-src*/, or agents/ — scans umlauts, German function words, and quoted German phrases outside DE:/EN: anchor blocks. Hard gate per language-and-tone.
|
package/package.json
CHANGED