@event4u/agent-config 8.4.1 → 8.6.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/.claude-plugin/marketplace.json +1 -1
- package/CHANGELOG.md +92 -0
- package/README.md +17 -5
- package/dist/agent-src/README.md +1 -1
- package/dist/agent-src/commands/{analyze-reference-repo.md → analyze/reference-repo.md} +3 -1
- package/dist/agent-src/commands/analyze.md +9 -6
- package/dist/agent-src/commands/{bug-fix.md → bug/fix.md} +3 -1
- package/dist/agent-src/commands/{bug-investigate.md → bug/investigate.md} +4 -2
- package/dist/agent-src/commands/bug.md +59 -0
- package/dist/agent-src/commands/{set-cost-profile.md → cost/profile.md} +9 -6
- package/dist/agent-src/commands/{cost-report.md → cost/report.md} +38 -17
- package/dist/agent-src/commands/cost.md +57 -0
- package/dist/agent-src/commands/evals/{review-changes.json → review.json} +12 -8
- package/dist/agent-src/commands/{quality-fix.md → fix/quality.md} +5 -2
- package/dist/agent-src/commands/fix.md +7 -4
- package/dist/agent-src/commands/optimize/project.md +250 -0
- package/dist/agent-src/commands/{optimize-prompt.md → optimize/prompt.md} +3 -2
- package/dist/agent-src/commands/optimize.md +17 -12
- package/dist/agent-src/commands/{package-reset.md → package/reset.md} +2 -0
- package/dist/agent-src/commands/{package-test.md → package/test.md} +3 -1
- package/dist/agent-src/commands/package.md +56 -0
- package/dist/agent-src/commands/{project-analyze.md → project/analyze.md} +10 -8
- package/dist/agent-src/commands/{project-health.md → project/health.md} +2 -0
- package/dist/agent-src/commands/project.md +60 -0
- package/dist/agent-src/commands/{review-changes.md → review/changes.md} +26 -24
- package/dist/agent-src/commands/{review-routing.md → review/routing.md} +21 -17
- package/dist/agent-src/commands/review.md +61 -0
- package/dist/agent-src/commands/security-audit-config.md +24 -23
- package/dist/agent-src/commands/{sync-agent-settings.md → sync/agent-settings.md} +11 -7
- package/dist/agent-src/commands/{sync-gitignore → sync/gitignore}/fix.md +36 -27
- package/dist/agent-src/commands/{sync-gitignore.md → sync/gitignore.md} +22 -21
- package/dist/agent-src/commands/sync.md +58 -0
- package/dist/agent-src/commands/{e2e-heal.md → tests/e2e-heal.md} +5 -2
- package/dist/agent-src/commands/{e2e-plan.md → tests/e2e-plan.md} +5 -2
- package/dist/agent-src/commands/tests.md +11 -5
- package/dist/agent-src/contexts/augment-infrastructure.md +3 -3
- package/dist/agent-src/contexts/execution/auto-dispatch-classification.md +30 -0
- package/dist/agent-src/contexts/execution/orchestration-telemetry.md +15 -1
- package/dist/agent-src/contexts/execution/subagent-steering.md +54 -1
- package/dist/agent-src/contexts/execution/toolchain-resolver.md +1 -1
- package/dist/agent-src/contexts/model-recommendations.md +19 -0
- package/dist/agent-src/contexts/skills-and-commands.md +2 -2
- package/dist/agent-src/contexts/subagent-configuration.md +8 -0
- package/dist/agent-src/rules/external-reference-deep-dive.md +1 -1
- package/dist/agent-src/skills/finishing-a-development-branch/SKILL.md +2 -2
- package/dist/agent-src/skills/judge-artifact-completeness/SKILL.md +1 -1
- package/dist/agent-src/skills/judge-bug-hunter/SKILL.md +1 -1
- package/dist/agent-src/skills/judge-code-quality/SKILL.md +1 -1
- package/dist/agent-src/skills/judge-security-auditor/SKILL.md +1 -1
- package/dist/agent-src/skills/judge-synthesis/SKILL.md +1 -1
- package/dist/agent-src/skills/judge-test-coverage/SKILL.md +1 -1
- package/dist/agent-src/skills/markitdown/SKILL.md +1 -1
- package/dist/agent-src/skills/mobile-e2e-strategy/SKILL.md +5 -5
- package/dist/agent-src/skills/prompt-optimizer/SKILL.md +2 -2
- package/dist/agent-src/skills/quality-tools/SKILL.md +1 -1
- package/dist/agent-src/skills/repomix-packer/SKILL.md +1 -1
- package/dist/agent-src/skills/requesting-code-review/SKILL.md +2 -2
- package/dist/agent-src/skills/verify-repair-loop/SKILL.md +2 -2
- package/dist/agent-src/templates/agent-settings.md +1 -1
- package/dist/agent-src/templates/agents/agent-project-settings.example.yml +2 -2
- package/dist/agent-src/templates/scripts/work_engine/stack/runner.ts +1 -1
- package/dist/cli/commands/config.js +44 -0
- package/dist/cli/commands/config.js.map +1 -0
- package/dist/cli/commands/uiServe.js +1 -0
- package/dist/cli/commands/uiServe.js.map +1 -1
- package/dist/cli/help.js +38 -0
- package/dist/cli/help.js.map +1 -0
- package/dist/cli/initRouting.js +16 -1
- package/dist/cli/initRouting.js.map +1 -1
- package/dist/cli/main.js +43 -37
- package/dist/cli/main.js.map +1 -1
- package/dist/cli/registry.js +45 -44
- package/dist/cli/registry.js.map +1 -1
- package/dist/discovery/deprecation-report.md +1 -1
- package/dist/discovery/discovery-manifest.json +419 -210
- package/dist/discovery/discovery-manifest.json.sha256 +1 -1
- package/dist/discovery/discovery-manifest.summary.md +4 -4
- package/dist/discovery/orphan-report.md +1 -1
- package/dist/discovery/packs.json +31 -25
- package/dist/discovery/trust-report.md +2 -2
- package/dist/discovery/workspaces.json +30 -24
- package/dist/install/install.mjs +6064 -159
- package/dist/install/selectedTools.js +39 -10
- package/dist/install/selectedTools.js.map +1 -1
- package/dist/mcp/registry-manifest.json +3 -3
- package/dist/server/app.js +15 -3
- package/dist/server/app.js.map +1 -1
- package/dist/server/routes/ping.js +16 -0
- package/dist/server/routes/ping.js.map +1 -1
- package/dist/server/routes/settings.js +42 -6
- package/dist/server/routes/settings.js.map +1 -1
- package/dist/server/routes/settingsChanges.js +55 -0
- package/dist/server/routes/settingsChanges.js.map +1 -0
- package/dist/server/routes/userMd.js +7 -2
- package/dist/server/routes/userMd.js.map +1 -1
- package/dist/server/routes/wizard.js +76 -14
- package/dist/server/routes/wizard.js.map +1 -1
- package/dist/server/writeRoot.js +17 -0
- package/dist/server/writeRoot.js.map +1 -1
- package/dist/shared/settingsSurface.js +120 -0
- package/dist/shared/settingsSurface.js.map +1 -0
- package/dist/ui/assets/index-BPFMZWUs.css +1 -0
- package/dist/ui/assets/index-BiEZiZ31.js +40 -0
- package/dist/ui/assets/index-BiEZiZ31.js.map +1 -0
- package/dist/ui/index.html +15 -2
- package/docs/CLAIMS.md +27 -15
- package/docs/architecture.md +1 -1
- package/docs/catalog.md +37 -31
- package/docs/command-flows.md +22 -16
- package/docs/contracts/command-clusters.md +39 -9
- package/docs/contracts/file-ownership-matrix.json +21 -0
- package/docs/contracts/frontmatter-contract.md +1 -1
- package/docs/contracts/gui-wizard.md +16 -4
- package/docs/contracts/iron-law-overrides.txt +1 -0
- package/docs/contracts/rule-classification.md +2 -2
- package/docs/contracts/settings-api.md +58 -2
- package/docs/contracts/surface-matrix.md +5 -0
- package/docs/cookbook.md +7 -7
- package/docs/decisions/ADR-114-commit-policy-iron-law-override.md +74 -0
- package/docs/decisions/ADR-115-command-cluster-consolidation-phase-4.md +91 -0
- package/docs/decisions/ADR-116-memory-tripwire-activation-path.md +125 -0
- package/docs/decisions/INDEX.md +3 -0
- package/docs/featured-commands.md +1 -1
- package/docs/featured-skills.md +4 -4
- package/docs/flows.md +2 -2
- package/docs/getting-started-by-role.md +1 -1
- package/docs/getting-started-laravel.md +1 -1
- package/docs/getting-started.md +6 -3
- package/docs/governance-advantage.md +1 -1
- package/docs/guidelines/agent-infra/5w2h-analysis.md +1 -1
- package/docs/guidelines/agent-infra/ios-simulator-guide.md +1 -1
- package/docs/proof.md +12 -2
- package/package.json +3 -1
- package/src/agent-src/README.md +1 -1
- package/src/agent-src/templates/scripts/work_engine/stack/runner.ts +1 -1
- package/src/config/agent-settings.template.yml +1 -1
- package/src/install/selectedTools.ts +38 -10
- package/src/scripts/_cli/cmd_converge.ts +38 -0
- package/src/scripts/_cli/cmd_doctor.ts +113 -2
- package/src/scripts/_cli/cmd_explain.ts +2 -2
- package/src/scripts/_cli/cmd_export.ts +3 -3
- package/src/scripts/_cli/cmd_fleet.ts +13 -1
- package/src/scripts/_cli/cmd_migrate.ts +3 -3
- package/src/scripts/_cli/cmd_prune.ts +2 -2
- package/src/scripts/_cli/cmd_refresh.ts +4 -4
- package/src/scripts/_cli/cmd_settings_check.ts +2 -2
- package/src/scripts/_cli/cmd_settings_migrate.ts +2 -2
- package/src/scripts/_cli/cmd_sync.ts +2 -2
- package/src/scripts/_cli/cmd_uninstall.ts +2 -2
- package/src/scripts/_cli/cmd_update.ts +8 -8
- package/src/scripts/_cli/cmd_upgrade.ts +4 -3
- package/src/scripts/_cli/cmd_validate.ts +3 -3
- package/src/scripts/_cli/cmd_versions.ts +2 -2
- package/src/scripts/_cli/explain_last/assumptions.ts +2 -2
- package/src/scripts/_cli/explain_last/council.ts +2 -2
- package/src/scripts/_cli/explain_last/halt.ts +2 -2
- package/src/scripts/_cli/explain_last/index.ts +2 -2
- package/src/scripts/_cli/explain_last/inputs.ts +4 -4
- package/src/scripts/_cli/explain_last/memory.ts +2 -2
- package/src/scripts/_cli/explain_last/provider.ts +2 -2
- package/src/scripts/_cli/explain_last/render.ts +2 -2
- package/src/scripts/_cli/explain_last/route.ts +2 -2
- package/src/scripts/_cli/explain_last/scrubber.ts +2 -2
- package/src/scripts/_cli/explain_last/sections/assumptions.ts +2 -2
- package/src/scripts/_cli/explain_last/sections/council.ts +2 -2
- package/src/scripts/_cli/explain_last/sections/halt.ts +2 -2
- package/src/scripts/_cli/explain_last/sections/header.ts +2 -2
- package/src/scripts/_cli/explain_last/sections/index.ts +1 -1
- package/src/scripts/_cli/explain_last/sections/inputs.ts +2 -2
- package/src/scripts/_cli/explain_last/sections/memory.ts +2 -2
- package/src/scripts/_cli/explain_last/sections/pack.ts +2 -2
- package/src/scripts/_cli/explain_last/sections/provider.ts +2 -2
- package/src/scripts/_cli/explain_last/sections/route.ts +2 -2
- package/src/scripts/_cli/explain_last/state_loader.ts +2 -2
- package/src/scripts/_dispatch.bash +20 -1
- package/src/scripts/_lib/agent_settings.ts +1 -1
- package/src/scripts/_lib/agent_src.ts +7 -7
- package/src/scripts/_lib/agents_overlay.ts +1 -1
- package/src/scripts/_lib/auto_dispatch.ts +63 -0
- package/src/scripts/_lib/bench_ab_cache.ts +1 -1
- package/src/scripts/_lib/bench_ab_scoring.ts +1 -1
- package/src/scripts/_lib/bench_ab_scoring_v2.ts +3 -3
- package/src/scripts/_lib/bench_cost.ts +1 -1
- package/src/scripts/_lib/bench_quality.ts +3 -3
- package/src/scripts/_lib/bench_report.ts +4 -4
- package/src/scripts/_lib/bench_telegraph.ts +1 -1
- package/src/scripts/_lib/bench_telegraph_report.ts +4 -4
- package/src/scripts/_lib/changelog_eras.ts +1 -1
- package/src/scripts/_lib/claude_desktop_bundler.ts +1 -1
- package/src/scripts/_lib/cli_wrapper.ts +1 -1
- package/src/scripts/_lib/fs_atomic.ts +1 -1
- package/src/scripts/_lib/global_deploy_inventory.ts +1 -1
- package/src/scripts/_lib/install_layout.ts +1 -1
- package/src/scripts/_lib/install_regenerator.ts +1 -1
- package/src/scripts/_lib/installed_lock.ts +1 -1
- package/src/scripts/_lib/installed_tools.ts +1 -1
- package/src/scripts/_lib/json_pointers.ts +1 -1
- package/src/scripts/_lib/knowledge_global.ts +1 -1
- package/src/scripts/_lib/knowledge_global_promote.ts +2 -2
- package/src/scripts/_lib/knowledge_global_redaction.ts +2 -2
- package/src/scripts/_lib/link_crypto.ts +4 -4
- package/src/scripts/_lib/linked_projects.ts +4 -4
- package/src/scripts/_lib/model_tier.ts +1 -1
- package/src/scripts/_lib/module_detection.ts +2 -2
- package/src/scripts/_lib/pin_resolver.ts +1 -1
- package/src/scripts/_lib/script_output.ts +1 -1
- package/src/scripts/_lib/security_lint.ts +1 -1
- package/src/scripts/_lib/subagent_routing.ts +24 -0
- package/src/scripts/_lib/subagent_steering.ts +213 -3
- package/src/scripts/_lib/surface_tiers.ts +1 -1
- package/src/scripts/_lib/text_similarity.ts +1 -1
- package/src/scripts/_lib/update_check.ts +2 -2
- package/src/scripts/_lib/user_global_paths.ts +1 -1
- package/src/scripts/_lib/value_ladder.ts +1 -1
- package/src/scripts/_lib/value_report.ts +1 -1
- package/src/scripts/_lib/zip_min.ts +2 -2
- package/src/scripts/adoption_report.ts +3 -3
- package/src/scripts/adoption_snapshot.ts +3 -3
- package/src/scripts/adoption_status.ts +2 -2
- package/src/scripts/adr/regenerate_index.ts +3 -3
- package/src/scripts/ai_council/_default_prices.ts +2 -3
- package/src/scripts/ai_council/advisors.ts +1 -1
- package/src/scripts/ai_council/airgap.ts +1 -1
- package/src/scripts/ai_council/budget_guard.ts +1 -1
- package/src/scripts/ai_council/bundler.ts +1 -1
- package/src/scripts/ai_council/cli_hints.ts +1 -1
- package/src/scripts/ai_council/clients.ts +5 -5
- package/src/scripts/ai_council/compile_corpus.ts +1 -1
- package/src/scripts/ai_council/confidence_gate.ts +1 -1
- package/src/scripts/ai_council/config.ts +1 -1
- package/src/scripts/ai_council/consensus.ts +1 -1
- package/src/scripts/ai_council/events_log.ts +1 -1
- package/src/scripts/ai_council/learn_low_impact_preview.ts +1 -1
- package/src/scripts/ai_council/low_impact_corpus.ts +1 -1
- package/src/scripts/ai_council/low_impact_intake.ts +1 -1
- package/src/scripts/ai_council/modes.ts +1 -1
- package/src/scripts/ai_council/orchestrator.ts +3 -3
- package/src/scripts/ai_council/pricing.ts +2 -2
- package/src/scripts/ai_council/probation_gate.ts +2 -2
- package/src/scripts/ai_council/project_context.ts +1 -1
- package/src/scripts/ai_council/prompts.ts +1 -1
- package/src/scripts/ai_council/redact_low_impact_entry.ts +2 -2
- package/src/scripts/ai_council/session.ts +1 -1
- package/src/scripts/ai_council/shadow_dispatch.ts +1 -1
- package/src/scripts/ai_council/solo_dispatch.ts +1 -1
- package/src/scripts/analysis_freshness.ts +2 -2
- package/src/scripts/annotate_discovery.ts +2 -2
- package/src/scripts/apply_modules_config.ts +2 -2
- package/src/scripts/audit_adr_coverage.ts +3 -3
- package/src/scripts/audit_auto_rules.ts +2 -2
- package/src/scripts/audit_cloud_compatibility.ts +3 -3
- package/src/scripts/audit_command_surface.ts +2 -2
- package/src/scripts/audit_initial_context.ts +7 -6
- package/src/scripts/audit_likelihood.ts +5 -5
- package/src/scripts/audit_mcp_tools.ts +3 -3
- package/src/scripts/audit_overlap.ts +2 -2
- package/src/scripts/audit_skill_descriptions.ts +2 -2
- package/src/scripts/audit_skill_overlap.ts +5 -5
- package/src/scripts/audit_user_type_axis.ts +4 -4
- package/src/scripts/backfill_model_tier.ts +1 -1
- package/src/scripts/bench_ab_cache_dispatch.ts +2 -2
- package/src/scripts/bench_ab_clone.ts +2 -2
- package/src/scripts/bench_ab_diff.ts +3 -3
- package/src/scripts/bench_ab_integrity.ts +2 -2
- package/src/scripts/bench_ab_run.ts +4 -4
- package/src/scripts/bench_ab_task_runner.ts +1 -1
- package/src/scripts/bench_ab_tracka_run.ts +2 -2
- package/src/scripts/bench_ab_v2_run.ts +1 -1
- package/src/scripts/bench_ab_v2_stats.ts +2 -2
- package/src/scripts/bench_baseline_ready.ts +1 -1
- package/src/scripts/bench_condense_memory.ts +4 -4
- package/src/scripts/bench_drift_check.ts +3 -3
- package/src/scripts/bench_per_tool.ts +1 -1
- package/src/scripts/bench_rtk_savings.ts +4 -4
- package/src/scripts/bench_run.ts +4 -4
- package/src/scripts/bench_runner.ts +1 -1
- package/src/scripts/build_cloud_bundle.ts +3 -3
- package/src/scripts/build_discovery_manifest.ts +13 -15
- package/src/scripts/build_linear_digest.ts +2 -2
- package/src/scripts/build_mcp_registry_manifest.ts +3 -3
- package/src/scripts/build_proof.ts +6 -0
- package/src/scripts/build_rule_trigger_matrix.ts +2 -2
- package/src/scripts/capture_showcase_session.ts +3 -3
- package/src/scripts/chat_history.ts +1 -1
- package/src/scripts/check_always_budget.ts +1 -1
- package/src/scripts/check_artefact_checksums.ts +4 -4
- package/src/scripts/check_artefact_count_messaging.ts +197 -0
- package/src/scripts/check_augment_description_cap.ts +3 -3
- package/src/scripts/check_augmentignore.ts +1 -1
- package/src/scripts/check_beta_review_markers.ts +3 -3
- package/src/scripts/check_bite_sized_granularity.ts +1 -1
- package/src/scripts/check_cluster_patterns.ts +47 -3
- package/src/scripts/check_command_count_messaging.ts +2 -2
- package/src/scripts/check_condensation.ts +2 -2
- package/src/scripts/check_condensed_paths.ts +6 -6
- package/src/scripts/check_context_paths.ts +1 -1
- package/src/scripts/check_council_config_location.ts +3 -3
- package/src/scripts/check_council_layout.ts +2 -2
- package/src/scripts/check_council_references.ts +2 -2
- package/src/scripts/check_discovery_determinism.ts +3 -3
- package/src/scripts/check_gate_paths.ts +4 -4
- package/src/scripts/check_iron_law_prominence.ts +2 -2
- package/src/scripts/check_kernel_rule_bundle.ts +3 -3
- package/src/scripts/check_knowledge_cards.ts +4 -4
- package/src/scripts/check_knowledge_pages.ts +1 -1
- package/src/scripts/check_md_language.ts +3 -3
- package/src/scripts/check_memory.ts +3 -3
- package/src/scripts/check_memory_proposal.ts +2 -2
- package/src/scripts/check_module_management_neutral.ts +1 -1
- package/src/scripts/check_no_conflict_markers.ts +1 -1
- package/src/scripts/check_no_external_sources.ts +1 -1
- package/src/scripts/check_no_local_settings_committed.ts +2 -2
- package/src/scripts/check_no_new_legacy_path.ts +3 -3
- package/src/scripts/check_no_roadmap_refs.ts +3 -3
- package/src/scripts/check_one_off_location.ts +3 -3
- package/src/scripts/check_overlay_cascade_subdirs.ts +3 -3
- package/src/scripts/check_portability.ts +3 -3
- package/src/scripts/check_proposal.ts +0 -0
- package/src/scripts/check_public_catalog_links.ts +1 -1
- package/src/scripts/check_public_links.ts +2 -2
- package/src/scripts/check_references.ts +3 -3
- package/src/scripts/check_release_includes_discovery.ts +2 -2
- package/src/scripts/check_release_pr_shape.ts +2 -2
- package/src/scripts/check_release_published.ts +1 -1
- package/src/scripts/check_release_trunk_sync.ts +3 -3
- package/src/scripts/check_reply_consistency.ts +1 -1
- package/src/scripts/check_roadmap_trackable.ts +2 -2
- package/src/scripts/check_role_doc_links.ts +2 -2
- package/src/scripts/check_safety_floor_untouched.ts +3 -3
- package/src/scripts/check_skill_requires.ts +2 -2
- package/src/scripts/check_structural_breaking.ts +2 -2
- package/src/scripts/check_surface_tiers.ts +2 -2
- package/src/scripts/check_template_pin_drift.ts +1 -1
- package/src/scripts/check_test_coverage_diff.ts +2 -2
- package/src/scripts/check_token_optimizer_freshness.ts +3 -3
- package/src/scripts/check_trigger_evals.ts +2 -2
- package/src/scripts/check_update_banner.ts +1 -1
- package/src/scripts/ci_status.ts +0 -0
- package/src/scripts/ci_summary.ts +3 -3
- package/src/scripts/ci_time_ratio.ts +1 -1
- package/src/scripts/command_suggester/cooldown.ts +1 -1
- package/src/scripts/command_suggester/index.ts +1 -1
- package/src/scripts/command_suggester/loader.ts +1 -1
- package/src/scripts/command_suggester/match.ts +1 -1
- package/src/scripts/command_suggester/rank.ts +1 -1
- package/src/scripts/command_suggester/render.ts +1 -1
- package/src/scripts/command_suggester/sanitize.ts +1 -1
- package/src/scripts/command_suggester/settings.ts +1 -1
- package/src/scripts/command_suggester/types.ts +0 -0
- package/src/scripts/compile_router.ts +4 -4
- package/src/scripts/condense.ts +3 -3
- package/src/scripts/condense_memory.ts +1 -1
- package/src/scripts/config/index.ts +1 -1
- package/src/scripts/config/packs.ts +1 -1
- package/src/scripts/config/presets.ts +1 -1
- package/src/scripts/config/profile_explain.ts +1 -1
- package/src/scripts/config/profiles.ts +1 -1
- package/src/scripts/config/session_profiles.ts +1 -1
- package/src/scripts/context_hygiene_hook.ts +2 -2
- package/src/scripts/cost_by_conversation.ts +1 -1
- package/src/scripts/cost_summary.ts +2 -2
- package/src/scripts/council_cli.ts +1 -1
- package/src/scripts/council_prune.ts +1 -1
- package/src/scripts/cross_repo_retrieve.ts +2 -2
- package/src/scripts/discovery_stats.ts +3 -3
- package/src/scripts/evidence_report.ts +4 -4
- package/src/scripts/extract_audit_patterns.ts +2 -2
- package/src/scripts/first_run_gate_hook.ts +1 -1
- package/src/scripts/gen_discovery_baseline.ts +2 -2
- package/src/scripts/generate_capabilities_index.ts +2 -2
- package/src/scripts/generate_capability_matrix.ts +2 -2
- package/src/scripts/generate_catalog.ts +2 -2
- package/src/scripts/generate_command_flows.ts +2 -2
- package/src/scripts/generate_cookbook.ts +1 -1
- package/src/scripts/generate_index.ts +3 -3
- package/src/scripts/generate_ownership_matrix.ts +2 -2
- package/src/scripts/generate_pack_manifests.ts +2 -2
- package/src/scripts/generate_role_experiences_catalog.ts +3 -3
- package/src/scripts/hooks/block_no_verify.ts +2 -2
- package/src/scripts/hooks/dispatch_hook.ts +2 -2
- package/src/scripts/hooks/dispatch_issues.ts +1 -1
- package/src/scripts/hooks/envelope.ts +1 -1
- package/src/scripts/hooks/replay_hook.ts +1 -1
- package/src/scripts/hooks/state_io.ts +1 -1
- package/src/scripts/hooks_doctor.ts +1 -1
- package/src/scripts/hooks_status.ts +1 -1
- package/src/scripts/injection_scan_hook.ts +1 -1
- package/src/scripts/install.ts +145 -3
- package/src/scripts/inventory_abstraction_budget.ts +5 -5
- package/src/scripts/inventory_frontmatter.ts +1 -1
- package/src/scripts/inventory_meta_layers.ts +1 -1
- package/src/scripts/iron_law_sha.ts +1 -1
- package/src/scripts/knowledge_global_cli.ts +3 -3
- package/src/scripts/linked_projects_list.ts +1 -1
- package/src/scripts/lint_agent_security.ts +4 -4
- package/src/scripts/lint_agent_skill_names.ts +1 -1
- package/src/scripts/lint_agents_layout.ts +2 -2
- package/src/scripts/lint_agents_md.ts +3 -3
- package/src/scripts/lint_archived_skills.ts +2 -2
- package/src/scripts/lint_artefact_frontmatter.ts +2 -2
- package/src/scripts/lint_bench_ab.ts +2 -2
- package/src/scripts/lint_bench_corpus.ts +1 -1
- package/src/scripts/lint_command_flow_coverage.ts +1 -1
- package/src/scripts/lint_command_routing.ts +2 -2
- package/src/scripts/lint_command_tiers.ts +1 -1
- package/src/scripts/lint_command_verbs.ts +4 -4
- package/src/scripts/lint_commit_subjects.ts +2 -2
- package/src/scripts/lint_context_spine_usage.ts +3 -3
- package/src/scripts/lint_discovery_manifest.ts +4 -4
- package/src/scripts/lint_discovery_vocabulary.ts +2 -2
- package/src/scripts/lint_empty_roadmaps.ts +3 -3
- package/src/scripts/lint_eval_freshness.ts +2 -2
- package/src/scripts/lint_examples.ts +2 -2
- package/src/scripts/lint_explain_trace.ts +2 -2
- package/src/scripts/lint_featured_skills.ts +0 -0
- package/src/scripts/lint_flows.ts +5 -5
- package/src/scripts/lint_framework_leakage.ts +1 -1
- package/src/scripts/lint_framework_leakage_allowlist.json +10 -2
- package/src/scripts/lint_frontmatter_boilerplate.ts +2 -2
- package/src/scripts/lint_ghostwriter_source.ts +3 -3
- package/src/scripts/lint_global_paths.ts +1 -1
- package/src/scripts/lint_handoffs.ts +1 -1
- package/src/scripts/lint_hidden_unicode.ts +1 -1
- package/src/scripts/lint_hook_concern_budget.ts +2 -2
- package/src/scripts/lint_hook_manifest.ts +2 -2
- package/src/scripts/lint_instruction_smuggling.ts +1 -1
- package/src/scripts/lint_load_context.ts +2 -2
- package/src/scripts/lint_marketplace.ts +1 -1
- package/src/scripts/lint_marketplace_install_completeness.ts +2 -2
- package/src/scripts/lint_mcp_config_security.ts +1 -1
- package/src/scripts/lint_mcp_registry_manifest.ts +1 -1
- package/src/scripts/lint_media_policy_linkage.ts +3 -3
- package/src/scripts/lint_missions.ts +3 -3
- package/src/scripts/lint_model_tier_coverage.ts +3 -3
- package/src/scripts/lint_namespace.ts +2 -2
- package/src/scripts/lint_namespace_collisions.ts +2 -2
- package/src/scripts/lint_new_skill_gate.ts +3 -3
- package/src/scripts/lint_no_new_atomic_commands.ts +9 -6
- package/src/scripts/lint_no_python_twin_rationale.ts +102 -0
- package/src/scripts/lint_one_off_age.ts +2 -2
- package/src/scripts/lint_orchestration_dsl.ts +3 -3
- package/src/scripts/lint_orchestrator_auto_detect.ts +1 -1
- package/src/scripts/lint_pack_boundaries.ts +2 -2
- package/src/scripts/lint_pack_dependencies.ts +2 -2
- package/src/scripts/lint_pack_first_win.ts +2 -2
- package/src/scripts/lint_persona_governance.ts +3 -3
- package/src/scripts/lint_positioning.ts +1 -1
- package/src/scripts/lint_profile_overlay_set_only.ts +2 -2
- package/src/scripts/lint_readme_jargon.ts +2 -2
- package/src/scripts/lint_readme_size.ts +2 -2
- package/src/scripts/lint_regression.ts +3 -3
- package/src/scripts/lint_roadmap_ci_steps.ts +3 -3
- package/src/scripts/lint_roadmap_complexity.ts +1 -1
- package/src/scripts/lint_roadmap_later_disposition.ts +2 -2
- package/src/scripts/lint_role_experiences.ts +2 -2
- package/src/scripts/lint_rule_interactions.ts +1 -1
- package/src/scripts/lint_rule_tiers.ts +1 -1
- package/src/scripts/lint_showcase_sessions.ts +2 -2
- package/src/scripts/lint_skill_frontmatter_safety.ts +1 -1
- package/src/scripts/lint_skill_originality.ts +1 -1
- package/src/scripts/lint_skill_tools.ts +3 -3
- package/src/scripts/lint_ticket_buildable.ts +2 -2
- package/src/scripts/lint_topics_yaml.ts +3 -3
- package/src/scripts/lint_trust_coherence.ts +3 -3
- package/src/scripts/lint_value_dashboard.ts +3 -3
- package/src/scripts/lint_workflow_security.ts +3 -3
- package/src/scripts/lint_workspace_boundary.ts +2 -2
- package/src/scripts/mcp_parity_smoke.ts +1 -1
- package/src/scripts/mcp_render.ts +1 -1
- package/src/scripts/mcp_server/catalog.ts +1 -1
- package/src/scripts/mcp_server/index.ts +1 -1
- package/src/scripts/mcp_server/metadata.ts +1 -1
- package/src/scripts/mcp_server/prompts.ts +1 -1
- package/src/scripts/mcp_server/resources.ts +1 -1
- package/src/scripts/mcp_server/server.ts +1 -1
- package/src/scripts/mcp_server/telemetry.ts +1 -1
- package/src/scripts/mcp_server/tools.ts +1 -1
- package/src/scripts/mcp_telemetry_health.ts +1 -1
- package/src/scripts/mcp_telemetry_query.ts +3 -3
- package/src/scripts/mcp_telemetry_store.ts +3 -3
- package/src/scripts/measure_augment_budget.ts +2 -2
- package/src/scripts/measure_density.ts +2 -2
- package/src/scripts/measure_frugality_savings.ts +3 -3
- package/src/scripts/measure_markitdown_lift.ts +1 -1
- package/src/scripts/measure_patterns.ts +1 -1
- package/src/scripts/measure_projection_bytes.ts +1 -1
- package/src/scripts/measure_rule_budget.ts +1 -1
- package/src/scripts/measure_skill_reduction.ts +1 -1
- package/src/scripts/memory_hash.ts +1 -1
- package/src/scripts/memory_lookup.ts +6 -6
- package/src/scripts/memory_report.ts +1 -1
- package/src/scripts/memory_signal.ts +1 -1
- package/src/scripts/memory_status.ts +2 -2
- package/src/scripts/migrate_command_suggestions.ts +1 -1
- package/src/scripts/migrate_frontmatter_defaults.ts +1 -1
- package/src/scripts/mine_session.ts +3 -3
- package/src/scripts/minimal_safe_diff_hook.ts +2 -2
- package/src/scripts/move_artefact.ts +3 -3
- package/src/scripts/new_skill.ts +3 -3
- package/src/scripts/onboarding_gate_hook.ts +2 -2
- package/src/scripts/pack_mcp_content.ts +1 -1
- package/src/scripts/parity/replay.ts +3 -2
- package/src/scripts/pattern_share.ts +2 -2
- package/src/scripts/plan_physical_move.ts +3 -3
- package/src/scripts/prediction-pool/poisson_sim.ts +2 -2
- package/src/scripts/prediction-pool/pool_winsim.ts +2 -2
- package/src/scripts/prediction-pool/score_ev.ts +2 -2
- package/src/scripts/print_required_checks.ts +2 -2
- package/src/scripts/probe_projection_fidelity.ts +2 -2
- package/src/scripts/probe_skill_registration.ts +2 -2
- package/src/scripts/profile_staleness_hook.ts +2 -2
- package/src/scripts/profile_use.ts +2 -2
- package/src/scripts/project_thin_rules.ts +3 -3
- package/src/scripts/propose_modules_config.ts +2 -2
- package/src/scripts/prototype_lint_contradictions.ts +2 -2
- package/src/scripts/prove_pack_extractable.ts +1 -1
- package/src/scripts/readme_linter.ts +4 -4
- package/src/scripts/redact_hook_capture.ts +2 -2
- package/src/scripts/refine_ticket_detect.ts +1 -1
- package/src/scripts/release.ts +30 -19
- package/src/scripts/render_benchmark_md.ts +2 -2
- package/src/scripts/render_value_md.ts +2 -2
- package/src/scripts/roadmap_progress_hook.ts +1 -1
- package/src/scripts/router_telemetry.ts +1 -1
- package/src/scripts/run_skill_evals.ts +2 -2
- package/src/scripts/runtime_dispatcher.ts +1 -1
- package/src/scripts/runtime_handler.ts +1 -1
- package/src/scripts/runtime_registry.ts +3 -3
- package/src/scripts/score_skill_selection.ts +1 -1
- package/src/scripts/security_audit_config.ts +2 -2
- package/src/scripts/skill_collision_clusters.ts +1 -1
- package/src/scripts/skill_discovery.ts +1 -1
- package/src/scripts/skill_linter.ts +8 -7
- package/src/scripts/skill_overlap.ts +2 -2
- package/src/scripts/skill_preview.ts +1 -1
- package/src/scripts/skill_tools/audit_persona_coverage.ts +3 -3
- package/src/scripts/skill_tools/audit_user_type_coverage.ts +3 -3
- package/src/scripts/skill_tools/index.ts +1 -1
- package/src/scripts/skill_tools/run_block_d_eval.ts +3 -3
- package/src/scripts/skill_tools/score_skill_relevance.ts +3 -3
- package/src/scripts/skill_tools/suggest_skill_for_task.ts +3 -3
- package/src/scripts/skill_trigger_eval.ts +2 -2
- package/src/scripts/skill_usage_collect.ts +2 -2
- package/src/scripts/skill_usage_report.ts +2 -2
- package/src/scripts/smoke_path_resolution.ts +2 -2
- package/src/scripts/smoke_quickstart.ts +4 -4
- package/src/scripts/snapshot_agent_outputs.ts +2 -2
- package/src/scripts/spotcheck_thin_root.ts +2 -2
- package/src/scripts/surface-tiers.yml +1 -0
- package/src/scripts/sync_agent_settings.ts +2 -2
- package/src/scripts/sync_github_metadata.ts +4 -4
- package/src/scripts/sync_gitignore.ts +3 -3
- package/src/scripts/sync_yaml_rt.ts +2 -2
- package/src/scripts/telegraph_stats.ts +1 -1
- package/src/scripts/tool_registry.ts +2 -2
- package/src/scripts/tools/adapter_errors.ts +1 -1
- package/src/scripts/tools/base_adapter.ts +1 -1
- package/src/scripts/tools/github_adapter.ts +1 -1
- package/src/scripts/tools/jira_adapter.ts +1 -1
- package/src/scripts/trigger_coverage.ts +2 -2
- package/src/scripts/update_counts.ts +68 -6
- package/src/scripts/update_prices.ts +3 -3
- package/src/scripts/validate_agent_settings.ts +3 -3
- package/src/scripts/validate_decision_engine.ts +2 -2
- package/src/scripts/validate_discovery_manifest.ts +3 -3
- package/src/scripts/validate_frontmatter.ts +5 -5
- package/src/scripts/validate_pack_yaml.ts +0 -0
- package/src/scripts/validate_safe_paths.ts +2 -2
- package/src/scripts/validate_telegraph_carveouts.ts +3 -3
- package/src/scripts/verify_before_complete_hook.ts +2 -2
- package/src/scripts/verify_physical_move.ts +2 -2
- package/src/scripts/wrapper_freshness_hook.ts +3 -3
- package/src/server/schemas/settings.ts +426 -0
- package/src/shared/settingsSurface.ts +184 -0
- package/src/shared/userMd/formAdapter.ts +86 -0
- package/src/shared/userMd/schema.ts +59 -0
- package/src/shared/userMd/utils.ts +91 -0
- package/dist/agent-src/commands/optimize-project.md +0 -243
- package/dist/ui/assets/index-BbWWuFrF.css +0 -1
- package/dist/ui/assets/index-UjcTG_9O.js +0 -40
- package/dist/ui/assets/index-UjcTG_9O.js.map +0 -1
|
@@ -3,12 +3,12 @@ model_tier: medium
|
|
|
3
3
|
name: fix
|
|
4
4
|
disable-model-invocation: true
|
|
5
5
|
pack: engineering-base
|
|
6
|
-
intent: "Fix-workflow dispatcher — ci, pr-comments, refs, seeder, portability, comments"
|
|
7
|
-
routes_to: [fix-ci, fix-pr-comments, fix-refs, fix-seeder, fix-portability, fix-comments]
|
|
6
|
+
intent: "Fix-workflow dispatcher — ci, pr-comments, refs, seeder, portability, comments, quality"
|
|
7
|
+
routes_to: [fix-ci, fix-pr-comments, fix-refs, fix-seeder, fix-portability, fix-comments, fix-quality]
|
|
8
8
|
replaces: []
|
|
9
9
|
tier: 1
|
|
10
10
|
visibility: advanced
|
|
11
|
-
description: Fix orchestrator — routes to ci, references, portability, seeder, pr-comments
|
|
11
|
+
description: Fix orchestrator — routes to ci, references, portability, seeder, pr-comments, comments, quality
|
|
12
12
|
cluster: fix
|
|
13
13
|
type: orchestrator
|
|
14
14
|
auto_detect: true
|
|
@@ -37,9 +37,10 @@ with a single entry point + sub-command dispatch.
|
|
|
37
37
|
| `/fix seeder` | `commands/fix/seeder.md` | Scan seeder data files for broken FK references |
|
|
38
38
|
| `/fix pr-comments` | `commands/fix/pr-comments.md` | Fix and reply to all open review comments — **bot + human, classified per comment**; dedupes by comment id + reply marker |
|
|
39
39
|
| `/fix comments` | `commands/fix/comments.md` | Review the **code comments** in the current branch's diff and simplify, shorten, or remove each one (≠ `pr-comments`, which targets GitHub review threads) |
|
|
40
|
+
| `/fix quality` | `commands/fix/quality.md` | Run the quality pipeline (type-checker / linter / formatter, PHP and/or JS/TS) and fix every error — auto-detects language from changed files |
|
|
40
41
|
|
|
41
42
|
Sub-command names match the locked contract in
|
|
42
|
-
[`docs/contracts/command-clusters.md`](
|
|
43
|
+
[`docs/contracts/command-clusters.md`](../../docs/contracts/command-clusters.md).
|
|
43
44
|
|
|
44
45
|
## Non-interactive & auto-detection
|
|
45
46
|
|
|
@@ -55,6 +56,7 @@ the `auto_detect` kill-switch, rollback). Detection table:
|
|
|
55
56
|
| PR review comments are the target (any "address review", PR # in context) | `fix/pr-comments` (it then resolves bot/human/both) | HIGH |
|
|
56
57
|
| Source-code comments are the target ("simplify/clean up the comments in my branch", "trim comment noise") | `fix/comments` | HIGH |
|
|
57
58
|
| Seeder / FK breakage named | `fix/seeder` | HIGH |
|
|
59
|
+
| Type-checker / linter / formatter errors in context ("fix the quality errors", PHPStan/tsc/eslint output) | `fix/quality` | HIGH |
|
|
58
60
|
| Project-specific leakage in shared package named | `fix/portability` | MEDIUM |
|
|
59
61
|
| No clear signal, or ≥ 2 conflict | — | LOW → menu (interactive) / `ambiguous_routing` (CI) |
|
|
60
62
|
|
|
@@ -80,6 +82,7 @@ into it and removed.
|
|
|
80
82
|
> 4. seeder — scan seeders for broken FK references
|
|
81
83
|
> 5. pr-comments — address open review comments (bot / human / both)
|
|
82
84
|
> 6. comments — simplify / shorten / remove code comments in the branch diff
|
|
85
|
+
> 7. quality — run the quality pipeline and fix every error
|
|
83
86
|
|
|
84
87
|
## Rules
|
|
85
88
|
|
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
---
|
|
2
|
+
model_tier: high
|
|
3
|
+
name: optimize-project
|
|
4
|
+
pack: meta
|
|
5
|
+
tier: 2
|
|
6
|
+
visibility: internal
|
|
7
|
+
sub: project
|
|
8
|
+
cluster: optimize
|
|
9
|
+
skills: [project-analyzer, decision-review, roadmap-writing]
|
|
10
|
+
description: "Project-wide optimization sweep — inventory roadmaps, ADRs, agent folders (incl. modules), challenge stale decisions with the user in the loop, emit new roadmap(s). E.g. 'optimize this project'."
|
|
11
|
+
suggestion:
|
|
12
|
+
eligible: true
|
|
13
|
+
trigger_description: "optimize this project, optimize the project, what should we improve based on current state, challenge our old decisions, are our roadmaps and ADRs still right, optimiere das Projekt, hinterfrag unsere alten Entscheidungen"
|
|
14
|
+
trigger_context: "user wants a project-wide review that questions existing state (roadmaps, ADRs, decisions, structures) and ends in new roadmap(s) — NOT a bug fix, NOT a single-decision audit (/analyze:decision), NOT agent-layer tooling (/optimize)"
|
|
15
|
+
workspaces:
|
|
16
|
+
- engineering
|
|
17
|
+
- agent-config-maintainer
|
|
18
|
+
packs:
|
|
19
|
+
- meta
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
# /optimize-project
|
|
23
|
+
|
|
24
|
+
Project-wide optimization loop: **inventory → challenge → interview →
|
|
25
|
+
roadmap(s)**. Analyzes the project it runs in (package or consumer),
|
|
26
|
+
questions the existing state — roadmaps, ADRs, decisions, structures,
|
|
27
|
+
and in this package e.g. token consumption, memory, learnings — asks
|
|
28
|
+
the user when flipping an old decision would be a real improvement, and
|
|
29
|
+
ends by emitting one or more NEW roadmaps via `/roadmap:create`.
|
|
30
|
+
|
|
31
|
+
This is a **coordinator** over existing primitives — it composes, never
|
|
32
|
+
reimplements: `/project-health`-style inventory, `/challenge-me`
|
|
33
|
+
interview mechanics, `/analyze:decision`-style decision challenge,
|
|
34
|
+
`/roadmap:create` output.
|
|
35
|
+
|
|
36
|
+
> Looking for agent-layer tooling (skills, agents-dir, augmentignore,
|
|
37
|
+
> rtk filters)? That is the [`/optimize`](optimize.md)
|
|
38
|
+
> cluster — a different surface. This command optimizes the **project**,
|
|
39
|
+
> not the agent layer.
|
|
40
|
+
|
|
41
|
+
## When to invoke
|
|
42
|
+
|
|
43
|
+
- "Optimize this project" / "optimiere das Projekt".
|
|
44
|
+
- "What should we improve based on the current state?"
|
|
45
|
+
- "Challenge our old decisions" / "are our roadmaps and ADRs still right?"
|
|
46
|
+
- Periodic hygiene: many roadmaps have accumulated, decisions feel
|
|
47
|
+
stale, structures grew organically and nobody has questioned them.
|
|
48
|
+
|
|
49
|
+
Do NOT invoke for: a single named bug ("fix this"), a single decision
|
|
50
|
+
audit (route to `/analyze:decision`), a code-only analysis
|
|
51
|
+
(`/project-analyze`), or AGENTS.md / agent-layer work (`/agents`,
|
|
52
|
+
`/optimize`).
|
|
53
|
+
|
|
54
|
+
## Steps
|
|
55
|
+
|
|
56
|
+
### Step 0 — Scope detection (read-only)
|
|
57
|
+
|
|
58
|
+
1. Detect the target type:
|
|
59
|
+
- **Package mode** — this repo IS `event4u/agent-config` (marker:
|
|
60
|
+
`src/config/budgets.yml` + `dist/agent-src/` present). Optimization
|
|
61
|
+
surface additionally includes token budget, memory index,
|
|
62
|
+
learnings/knowledge corpus, lint debt.
|
|
63
|
+
- **Consumer mode** — any other project with an `agents/` tree
|
|
64
|
+
and/or installed agent layer. Optimization surface = workflows,
|
|
65
|
+
structures, docs, roadmaps, decisions.
|
|
66
|
+
2. Resolve module roots via
|
|
67
|
+
`scripts/_lib/agent_settings.ts::enumerate_modules()` (Laravel shape:
|
|
68
|
+
`app/Modules/*/agents/`); fall back to `modules.root_paths` in
|
|
69
|
+
`.agent-settings.yml`.
|
|
70
|
+
3. Exclusions are hard: never analyze `vendor/`, `node_modules/`,
|
|
71
|
+
`dist/`, or any generated projection (`.augment/`, `.claude/`,
|
|
72
|
+
`.cursor/`).
|
|
73
|
+
|
|
74
|
+
### Step 1 — Inventory (read-only, parallel)
|
|
75
|
+
|
|
76
|
+
Gather without creating or modifying anything:
|
|
77
|
+
|
|
78
|
+
- **Roadmaps** — `agents/roadmaps/` (+ per-module roadmap dirs): counts
|
|
79
|
+
per disposition (active / `later/` / `skipped/` / `archive/`),
|
|
80
|
+
per-roadmap open/done/deferred checkbox counts, staleness
|
|
81
|
+
(mtime > 60 days with open items), complete-but-unarchived.
|
|
82
|
+
- **Decisions** — ADR dirs (`docs/adr/`, `docs/decisions/`,
|
|
83
|
+
`agents/decisions/`): count, age distribution, `status:` fields,
|
|
84
|
+
superseded chains.
|
|
85
|
+
- **Agent folders** — `agents/` root + every module `agents/` folder:
|
|
86
|
+
docs, features, contexts; orphaned or stale files (referencing
|
|
87
|
+
deleted code).
|
|
88
|
+
- **Memory / learnings** (if present) — memory index size, knowledge
|
|
89
|
+
cards, low-impact decisions corpus; entries whose subject no longer
|
|
90
|
+
exists in the repo.
|
|
91
|
+
- **Package mode only** — current budget usage vs cap
|
|
92
|
+
(`src/config/budgets.yml`), kernel share, corpus size trends, known
|
|
93
|
+
lint debt, honest-null / don't-relitigate lock inventory (from memory
|
|
94
|
+
index + `agents/settings/contexts/`).
|
|
95
|
+
|
|
96
|
+
Emit a compact inventory report (counts + flagged items), in the
|
|
97
|
+
user's language. Present findings incrementally, not as one dump.
|
|
98
|
+
|
|
99
|
+
### Step 2 — Findings & challenge candidates
|
|
100
|
+
|
|
101
|
+
Classify everything flagged in Step 1 into three buckets:
|
|
102
|
+
|
|
103
|
+
1. **Mechanical optimizations** — no decision needed, just work: stale
|
|
104
|
+
roadmap cleanup, complete-but-unarchived roadmaps, dead references,
|
|
105
|
+
missing module docs, memory entries pointing at deleted code.
|
|
106
|
+
2. **Decision-challenge candidates** — an existing decision (ADR, lock,
|
|
107
|
+
council verdict, structural convention) whose original assumptions
|
|
108
|
+
may no longer hold. For each candidate record: *the decision · the
|
|
109
|
+
original assumption · what changed since · the expected gain from
|
|
110
|
+
flipping · the flip cost/blast radius*. A candidate without a
|
|
111
|
+
concrete "what changed" is not a candidate — drop it.
|
|
112
|
+
3. **Structural / process improvements** — recurring friction visible
|
|
113
|
+
in the inventory (e.g. roadmap sprawl, duplicate contexts, token
|
|
114
|
+
hot-spots in package mode).
|
|
115
|
+
|
|
116
|
+
Rank candidates by expected impact vs. effort. **Cap the
|
|
117
|
+
decision-challenge list at the top 5** (override: `--max-questions=N`).
|
|
118
|
+
Everything below the cap is carried into Step 4 as "further candidates"
|
|
119
|
+
— never silently dropped.
|
|
120
|
+
|
|
121
|
+
Before a candidate built on a claim about the current state enters the
|
|
122
|
+
interview, verify the claim against the real source (grep, file read,
|
|
123
|
+
live git/CI state) per
|
|
124
|
+
[`source-discovery-gate`](../../rules/source-discovery-gate.md) —
|
|
125
|
+
never challenge a decision based on a remembered or assumed fact.
|
|
126
|
+
|
|
127
|
+
### Step 3 — Challenge interview (user-gated, budgeted)
|
|
128
|
+
|
|
129
|
+
One question per turn, numbered options with a recommendation —
|
|
130
|
+
the `/challenge-me` mechanics, per
|
|
131
|
+
[`ask-when-uncertain`](../../rules/ask-when-uncertain.md) and
|
|
132
|
+
[`user-interaction`](../../rules/user-interaction.md).
|
|
133
|
+
|
|
134
|
+
Per candidate, present:
|
|
135
|
+
|
|
136
|
+
```
|
|
137
|
+
> **Decision:** <what was decided, where it is recorded>
|
|
138
|
+
> **Then:** <original assumption>
|
|
139
|
+
> **Now:** <what changed — with evidence source>
|
|
140
|
+
> **Gain if flipped:** <expected improvement> · **Cost:** <blast radius>
|
|
141
|
+
>
|
|
142
|
+
> 1. Keep — assumptions still hold
|
|
143
|
+
> 2. Flip — schedule the change in the output roadmap
|
|
144
|
+
> 3. Re-evaluate via council — genuinely contested, worth a multi-model pass
|
|
145
|
+
> 4. Defer — park as "further candidate"
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
Hard rules for this step:
|
|
149
|
+
|
|
150
|
+
- **Locked decisions are never silently flipped.** An honest-null
|
|
151
|
+
verdict, a "don't relitigate" note, a budget-canon line, or a locked
|
|
152
|
+
council convergence follows
|
|
153
|
+
[`decision-revisit-gate`](../../rules/decision-revisit-gate.md):
|
|
154
|
+
check the lock's mechanism/scope actually matches the proposed change
|
|
155
|
+
and its recorded revisit-conditions first; if it truly blocks, the
|
|
156
|
+
only flip path offered is option 3 (council re-eval) — "Flip" is not
|
|
157
|
+
offered for locks.
|
|
158
|
+
- **Session budget:** at most 5 interview questions by default
|
|
159
|
+
(`--max-questions=N` to override). Budget exhausted → remaining
|
|
160
|
+
candidates go to Step 4 as "further candidates".
|
|
161
|
+
- Interview answers are adopted immediately; never re-argue a settled
|
|
162
|
+
answer.
|
|
163
|
+
|
|
164
|
+
### Step 4 — Synthesize → roadmap(s)
|
|
165
|
+
|
|
166
|
+
1. Group the accepted work — mechanical optimizations + flipped
|
|
167
|
+
decisions + structural improvements — into **one or more roadmaps by
|
|
168
|
+
concern** (keep k small; one roadmap per coherent theme, not one per
|
|
169
|
+
finding).
|
|
170
|
+
2. For each group, route to [`/roadmap:create`](roadmap/create.md)
|
|
171
|
+
with a structured seed: goal, findings (with evidence), accepted
|
|
172
|
+
decisions from the interview, "further candidates" section for the
|
|
173
|
+
uninterviewed remainder.
|
|
174
|
+
3. Council re-evals chosen in the interview (option 3) land as an
|
|
175
|
+
explicit first step in the matching roadmap — do NOT auto-run the
|
|
176
|
+
council from here.
|
|
177
|
+
4. Regenerate the roadmap dashboard in the same reply
|
|
178
|
+
(`./agent-config roadmap:progress`) per
|
|
179
|
+
[`roadmap-progress-sync`](../../rules/roadmap-progress-sync.md).
|
|
180
|
+
5. **Hand back and stop.** Per
|
|
181
|
+
[`scope-control § Authoring vs. implementation`](../../rules/scope-control.md)
|
|
182
|
+
the roadmap is the deliverable — never auto-offer
|
|
183
|
+
`/roadmap:process-*` or start executing.
|
|
184
|
+
|
|
185
|
+
## Output
|
|
186
|
+
|
|
187
|
+
1. **Inventory report** (Step 1) — compact counts + flagged items.
|
|
188
|
+
2. **Findings report** (Step 2) — three buckets, ranked, with the
|
|
189
|
+
challenge-candidate cards.
|
|
190
|
+
3. **Interview** (Step 3) — one question per turn, ≤ budget.
|
|
191
|
+
4. **Roadmap file(s)** (Step 4) — the only files this command creates,
|
|
192
|
+
via `/roadmap:create`, plus the dashboard regen.
|
|
193
|
+
|
|
194
|
+
## Rules
|
|
195
|
+
|
|
196
|
+
- **Read-only until Step 4.** The only writes are the new roadmap
|
|
197
|
+
file(s) and the dashboard regen. No code edits, no doc rewrites, no
|
|
198
|
+
deletion — cleanup work becomes roadmap steps, not inline actions.
|
|
199
|
+
- **Never edit or delete existing roadmaps / ADRs / decisions** — a
|
|
200
|
+
flipped decision becomes a roadmap step ("supersede ADR-NNN with …"),
|
|
201
|
+
never an in-place edit from this command.
|
|
202
|
+
- **No commits, no push, no PR** — [`commit-policy`](../../rules/commit-policy.md).
|
|
203
|
+
- **Never silently flip a lock** — [`decision-revisit-gate`](../../rules/decision-revisit-gate.md).
|
|
204
|
+
- **One question per turn**, recommendation line under every options
|
|
205
|
+
block.
|
|
206
|
+
- Mirror the user's language in all reports and questions.
|
|
207
|
+
|
|
208
|
+
## Gotchas
|
|
209
|
+
|
|
210
|
+
- **Unbounded interview** — without the question budget the
|
|
211
|
+
decision-flip loop can eat the session. The cap is load-bearing;
|
|
212
|
+
don't lift it silently.
|
|
213
|
+
- **Re-litigating without new evidence** — a challenge candidate needs
|
|
214
|
+
a concrete "what changed". "I would decide differently today" is not
|
|
215
|
+
evidence; check the lock's recorded revisit-conditions first.
|
|
216
|
+
- **Scope bleed into `/optimize`** — token/skill/agents-dir tooling
|
|
217
|
+
findings in package mode are reported, but their execution routes to
|
|
218
|
+
the `/optimize` cluster sub-commands inside the output roadmap.
|
|
219
|
+
- **Roadmap sprawl as output** — emitting five roadmaps for one theme
|
|
220
|
+
recreates the problem this command exists to fix. Group by concern.
|
|
221
|
+
- **Vendor noise** — module enumeration must come from
|
|
222
|
+
`enumerate_modules()`, never from a bare glob that catches `vendor/`.
|
|
223
|
+
|
|
224
|
+
## Do NOT
|
|
225
|
+
|
|
226
|
+
- Do NOT execute any of the found optimizations in this command's turn
|
|
227
|
+
— the roadmap is the deliverable.
|
|
228
|
+
- Do NOT auto-run a council session; record it as a roadmap step.
|
|
229
|
+
- Do NOT offer "Flip" on locked decisions — council re-eval only.
|
|
230
|
+
- Do NOT create analysis files (that is `/project-analyze`); this
|
|
231
|
+
command creates roadmaps only.
|
|
232
|
+
- Do NOT re-ask a settled interview answer.
|
|
233
|
+
|
|
234
|
+
## See also
|
|
235
|
+
|
|
236
|
+
- [`/optimize`](optimize.md) — agent-layer tooling
|
|
237
|
+
cluster (skills, agents-dir, augmentignore, rtk); cross-linked on
|
|
238
|
+
purpose — closest name, different surface.
|
|
239
|
+
- [`/project-analyze`](project-analyze.md) — deep code/stack
|
|
240
|
+
analysis with analysis-file output.
|
|
241
|
+
- [`/project-health`](project-health.md) — quick read-only
|
|
242
|
+
counts, no challenge loop.
|
|
243
|
+
- [`/analyze:decision`](analyze/decision.md)
|
|
244
|
+
— single-decision audit; this command sweeps and hands hot ones to
|
|
245
|
+
the interview.
|
|
246
|
+
- [`/challenge-me with-docs`](challenge-me/with-docs.md)
|
|
247
|
+
— the interview mechanics this command borrows, applied to a seed
|
|
248
|
+
instead of the project state.
|
|
249
|
+
- [`decision-revisit-gate`](../../rules/decision-revisit-gate.md) —
|
|
250
|
+
the lock-flip discipline Step 3 enforces.
|
|
@@ -4,6 +4,7 @@ name: optimize-prompt
|
|
|
4
4
|
pack: meta
|
|
5
5
|
tier: 2
|
|
6
6
|
visibility: internal
|
|
7
|
+
sub: prompt
|
|
7
8
|
cluster: optimize
|
|
8
9
|
description: "Optimize a raw prompt for ChatGPT, Claude, Gemini, or another AI via the 4-D methodology — BASIC vs DETAIL auto-detect, one clarifying question per turn, returns the polished prompt."
|
|
9
10
|
skills: [prompt-optimizer]
|
|
@@ -19,7 +20,7 @@ packs:
|
|
|
19
20
|
|
|
20
21
|
# /optimize-prompt
|
|
21
22
|
|
|
22
|
-
Entry point for the [`prompt-optimizer`](
|
|
23
|
+
Entry point for the [`prompt-optimizer`](../../skills/prompt-optimizer/SKILL.md) skill (persona: **Lyra**). Use when the user wants a polished prompt to paste into an external AI — not when they want the answer that prompt would produce.
|
|
23
24
|
|
|
24
25
|
## Welcome
|
|
25
26
|
|
|
@@ -53,7 +54,7 @@ Three input shapes:
|
|
|
53
54
|
|
|
54
55
|
### 2. Delegate to the skill
|
|
55
56
|
|
|
56
|
-
Load [`prompt-optimizer`](
|
|
57
|
+
Load [`prompt-optimizer`](../../skills/prompt-optimizer/SKILL.md) and follow its `## Procedure` verbatim. The skill owns mode detection, the 4-D methodology, the output format, and gotchas.
|
|
57
58
|
|
|
58
59
|
### 3. Hand back
|
|
59
60
|
|
|
@@ -3,18 +3,18 @@ model_tier: medium
|
|
|
3
3
|
name: optimize
|
|
4
4
|
disable-model-invocation: true
|
|
5
5
|
pack: meta
|
|
6
|
-
intent: "Optimization dispatcher — skills, rtk, augmentignore, agents-dir"
|
|
7
|
-
routes_to: [optimize-skills, optimize-rtk, optimize-augmentignore, optimize-agents-dir]
|
|
6
|
+
intent: "Optimization dispatcher — skills, rtk, augmentignore, agents-dir, project sweep, prompt"
|
|
7
|
+
routes_to: [optimize-skills, optimize-rtk, optimize-augmentignore, optimize-agents-dir, optimize-project, optimize-prompt]
|
|
8
8
|
replaces: []
|
|
9
9
|
tier: 1
|
|
10
10
|
visibility: advanced
|
|
11
|
-
description: Optimize orchestrator — routes to skills, agents-dir, augmentignore, rtk-filters
|
|
11
|
+
description: Optimize orchestrator — routes to skills, agents-dir, augmentignore, rtk-filters, project (project-wide sweep), prompt (AI-prompt polish)
|
|
12
12
|
cluster: optimize
|
|
13
13
|
type: orchestrator
|
|
14
14
|
suggestion:
|
|
15
15
|
eligible: true
|
|
16
|
-
trigger_description: "optimize my skills, manage agents directory, tune augmentignore, optimize rtk filters"
|
|
17
|
-
trigger_context: "maintainer auditing
|
|
16
|
+
trigger_description: "optimize my skills, manage agents directory, tune augmentignore, optimize rtk filters, optimize this project, optimize this prompt"
|
|
17
|
+
trigger_context: "maintainer auditing/trimming the agent layer, running a project-wide optimization sweep, or polishing an AI prompt (NOT AGENTS.md — that's /agents)"
|
|
18
18
|
workspaces:
|
|
19
19
|
- agent-config-maintainer
|
|
20
20
|
packs:
|
|
@@ -23,15 +23,13 @@ packs:
|
|
|
23
23
|
|
|
24
24
|
# /optimize
|
|
25
25
|
|
|
26
|
-
Top-level orchestrator for the `/optimize` family
|
|
26
|
+
Top-level orchestrator for the `/optimize` family — spanning three scopes:
|
|
27
|
+
the **agent layer** (skills, agents-dir, augmentignore, rtk), the **project**
|
|
28
|
+
(`project` — challenge-and-roadmap sweep over roadmaps/ADRs/decisions), and a
|
|
29
|
+
**single prompt** (`prompt`).
|
|
27
30
|
|
|
28
31
|
> Looking for `AGENTS.md` operations (init, refactor, audit)? Those
|
|
29
32
|
> live under [`/agents`](agents.md) (`init / optimize / audit`).
|
|
30
|
-
>
|
|
31
|
-
> Looking for **project-wide** optimization (roadmaps, ADRs, decisions,
|
|
32
|
-
> structures — challenge-and-roadmap loop)? That is the standalone
|
|
33
|
-
> [`/optimize-project`](optimize-project.md) — this cluster only covers
|
|
34
|
-
> the agent layer.
|
|
35
33
|
|
|
36
34
|
## Sub-commands
|
|
37
35
|
|
|
@@ -41,9 +39,11 @@ Top-level orchestrator for the `/optimize` family.
|
|
|
41
39
|
| `/optimize agents-dir` | `commands/optimize/agents-dir.md` | Manage the `agents/` directory — `--scaffold` / `--audit` / `--fix` (interactive wizard if no flag) |
|
|
42
40
|
| `/optimize augmentignore` | `commands/optimize/augmentignore.md` | Create or refine `.augmentignore` based on actual stack |
|
|
43
41
|
| `/optimize rtk` | `commands/optimize/rtk.md` | Create or refine project-local rtk filters |
|
|
42
|
+
| `/optimize project` | `commands/optimize/project.md` | Project-wide optimization sweep — inventory roadmaps/ADRs/agent folders, challenge stale decisions, emit new roadmap(s) |
|
|
43
|
+
| `/optimize prompt` | `commands/optimize/prompt.md` | Optimize a raw prompt for ChatGPT/Claude/Gemini via the 4-D methodology |
|
|
44
44
|
|
|
45
45
|
Sub-command names match the locked contract in
|
|
46
|
-
[`docs/contracts/command-clusters.md`](
|
|
46
|
+
[`docs/contracts/command-clusters.md`](../../docs/contracts/command-clusters.md).
|
|
47
47
|
|
|
48
48
|
## Dispatch
|
|
49
49
|
|
|
@@ -57,11 +57,16 @@ Sub-command names match the locked contract in
|
|
|
57
57
|
> 2. agents-dir — scaffold / audit / fix the `agents/` tree
|
|
58
58
|
> 3. augmentignore — create or refine `.augmentignore`
|
|
59
59
|
> 4. rtk — create or refine project-local rtk filters
|
|
60
|
+
> 5. project — project-wide sweep (roadmaps, ADRs, decisions → new roadmaps)
|
|
61
|
+
> 6. prompt — polish a raw AI prompt (4-D methodology)
|
|
60
62
|
|
|
61
63
|
## Rules
|
|
62
64
|
|
|
63
65
|
- **Suggest only — never auto-apply.** All `/optimize` sub-commands are
|
|
64
66
|
audit-grade: they report and propose, but the user approves every change.
|
|
67
|
+
- **Scope check before routing.** Agent-layer subs (1–4) never touch project
|
|
68
|
+
code or roadmaps; `project` never rewrites the agent layer; `prompt` only
|
|
69
|
+
returns a rewritten prompt.
|
|
65
70
|
- **Do NOT chain sub-commands.** One `/optimize <sub>` per turn.
|
|
66
71
|
- If the user invokes `/optimize` with no argument, **show the menu** — do
|
|
67
72
|
not guess which sub-command they meant.
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
---
|
|
2
2
|
model_tier: medium
|
|
3
3
|
name: package-test
|
|
4
|
-
pack:
|
|
4
|
+
pack: meta
|
|
5
5
|
tier: 2
|
|
6
6
|
visibility: internal
|
|
7
|
+
sub: test
|
|
8
|
+
cluster: package
|
|
7
9
|
skills: [composer, npm, python-packages, go-modules, cargo-packages]
|
|
8
10
|
description: /package-test
|
|
9
11
|
suggestion:
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
---
|
|
2
|
+
model_tier: medium
|
|
3
|
+
name: package
|
|
4
|
+
disable-model-invocation: true
|
|
5
|
+
pack: meta
|
|
6
|
+
intent: "Package dispatcher — test the package install or reset the installed state"
|
|
7
|
+
routes_to: [package-test, package-reset]
|
|
8
|
+
replaces: []
|
|
9
|
+
tier: 2
|
|
10
|
+
visibility: internal
|
|
11
|
+
description: Package orchestrator — routes to test (verify the package install) and reset (restore installed state)
|
|
12
|
+
cluster: package
|
|
13
|
+
type: orchestrator
|
|
14
|
+
suggestion:
|
|
15
|
+
eligible: false
|
|
16
|
+
rationale: "Package-internal maintenance surface — only deliberate invocation."
|
|
17
|
+
workspaces:
|
|
18
|
+
- agent-config-maintainer
|
|
19
|
+
packs:
|
|
20
|
+
- meta
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
# /package
|
|
24
|
+
|
|
25
|
+
Top-level orchestrator for the `/package` family — maintenance of the
|
|
26
|
+
agent-config package installation itself.
|
|
27
|
+
|
|
28
|
+
## Sub-commands
|
|
29
|
+
|
|
30
|
+
| Sub-command | Routes to | Purpose |
|
|
31
|
+
|---|---|---|
|
|
32
|
+
| `/package test` | `commands/package/test.md` | Test the package — verify the install/projection pipeline end-to-end |
|
|
33
|
+
| `/package reset` | `commands/package/reset.md` | Reset the installed package state (destructive — confirmation-gated) |
|
|
34
|
+
|
|
35
|
+
Sub-command names match the locked contract in
|
|
36
|
+
[`docs/contracts/command-clusters.md`](../../docs/contracts/command-clusters.md).
|
|
37
|
+
|
|
38
|
+
## Dispatch
|
|
39
|
+
|
|
40
|
+
1. Parse the user's argument: `/package <sub-command> [args]`.
|
|
41
|
+
2. Look up the sub-command in the table above.
|
|
42
|
+
3. Load the body of the corresponding `commands/package/<sub>.md` file and
|
|
43
|
+
follow its `## Instructions` (or `## Steps`) section verbatim.
|
|
44
|
+
4. If the sub-command is unknown or missing, print the menu and ask — do not
|
|
45
|
+
guess:
|
|
46
|
+
|
|
47
|
+
> 1. test — verify the package install pipeline
|
|
48
|
+
> 2. reset — reset installed package state (destructive, confirmation-gated)
|
|
49
|
+
|
|
50
|
+
## Rules
|
|
51
|
+
|
|
52
|
+
- **`reset` is destructive.** It never runs without the explicit confirmation
|
|
53
|
+
gate its sub-command defines.
|
|
54
|
+
- **Do NOT chain sub-commands.** One `/package <sub>` per turn.
|
|
55
|
+
- If the user invokes `/package` with no argument, **show the menu** — do not
|
|
56
|
+
guess which sub-command they meant.
|
|
@@ -4,6 +4,8 @@ name: project-analyze
|
|
|
4
4
|
pack: engineering-base
|
|
5
5
|
tier: 2
|
|
6
6
|
visibility: internal
|
|
7
|
+
sub: analyze
|
|
8
|
+
cluster: project
|
|
7
9
|
skills: [project-analyzer]
|
|
8
10
|
description: Full project analysis — detect stack, inventory modules, audit docs, create missing contexts
|
|
9
11
|
suggestion:
|
|
@@ -23,7 +25,7 @@ packs:
|
|
|
23
25
|
This is a **multi-phase, interactive analysis**. Walk through each phase, show findings,
|
|
24
26
|
and ask before creating any documents.
|
|
25
27
|
|
|
26
|
-
###
|
|
28
|
+
### 1. Project detection
|
|
27
29
|
|
|
28
30
|
Gather in parallel:
|
|
29
31
|
- `composer.json` → PHP version, framework, key packages
|
|
@@ -92,7 +94,7 @@ Per `verbosity.routine_confirmations` (default `false`):
|
|
|
92
94
|
> 2. Stop here — keep the overview only
|
|
93
95
|
```
|
|
94
96
|
|
|
95
|
-
###
|
|
97
|
+
### 2. Architecture mapping
|
|
96
98
|
|
|
97
99
|
Analyze the directory structure:
|
|
98
100
|
|
|
@@ -130,7 +132,7 @@ CODE INVENTORY:
|
|
|
130
132
|
═══════════════════════════════════════════════
|
|
131
133
|
```
|
|
132
134
|
|
|
133
|
-
###
|
|
135
|
+
### 3. Module inventory (if modules exist)
|
|
134
136
|
|
|
135
137
|
If `enumerate_modules()` returns any modules (Laravel shape: `app/Modules/` exists), analyze each module:
|
|
136
138
|
|
|
@@ -150,7 +152,7 @@ MODULES:
|
|
|
150
152
|
═══════════════════════════════════════════════
|
|
151
153
|
```
|
|
152
154
|
|
|
153
|
-
###
|
|
155
|
+
### 4. Agent docs audit
|
|
154
156
|
|
|
155
157
|
Scan all existing agent docs:
|
|
156
158
|
|
|
@@ -177,7 +179,7 @@ AGENT DOCS AUDIT:
|
|
|
177
179
|
═══════════════════════════════════════════════
|
|
178
180
|
```
|
|
179
181
|
|
|
180
|
-
###
|
|
182
|
+
### 5. Business domains
|
|
181
183
|
|
|
182
184
|
Identify domains from models, services, routes, and directory structure.
|
|
183
185
|
For each domain: map models → services → controllers → jobs → events.
|
|
@@ -215,7 +217,7 @@ Per `verbosity.routine_confirmations` (default `false`):
|
|
|
215
217
|
For each confirmed domain, create `agents/evidence/analysis/domains/{domain}.md` using the template
|
|
216
218
|
from the `project-analyzer` skill.
|
|
217
219
|
|
|
218
|
-
###
|
|
220
|
+
### 6. API surface & service map
|
|
219
221
|
|
|
220
222
|
List all endpoints per version. Map all services with dependencies.
|
|
221
223
|
|
|
@@ -254,7 +256,7 @@ Create:
|
|
|
254
256
|
- `agents/evidence/analysis/api/contracts.md`
|
|
255
257
|
- `agents/evidence/analysis/services/service-map.md`
|
|
256
258
|
|
|
257
|
-
###
|
|
259
|
+
### 7. Write analysis files
|
|
258
260
|
|
|
259
261
|
Write all remaining analysis files that haven't been created yet:
|
|
260
262
|
|
|
@@ -278,7 +280,7 @@ Per `verbosity.routine_confirmations` (default `false`):
|
|
|
278
280
|
> 2. Skip
|
|
279
281
|
```
|
|
280
282
|
|
|
281
|
-
###
|
|
283
|
+
### 8. Gap analysis & action plan
|
|
282
284
|
|
|
283
285
|
```
|
|
284
286
|
───────────────────────────────────────────────
|
|
@@ -4,6 +4,8 @@ name: project-health
|
|
|
4
4
|
pack: engineering-base
|
|
5
5
|
tier: 2
|
|
6
6
|
visibility: internal
|
|
7
|
+
sub: health
|
|
8
|
+
cluster: project
|
|
7
9
|
skills: [quality-tools]
|
|
8
10
|
description: Quick project health check — show status of docs, modules, contexts, and roadmaps without creating anything
|
|
9
11
|
suggestion:
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
---
|
|
2
|
+
model_tier: medium
|
|
3
|
+
name: project
|
|
4
|
+
disable-model-invocation: true
|
|
5
|
+
pack: engineering-base
|
|
6
|
+
intent: "Project dispatcher — full analysis or quick health check"
|
|
7
|
+
routes_to: [project-analyze, project-health]
|
|
8
|
+
replaces: []
|
|
9
|
+
tier: 2
|
|
10
|
+
visibility: internal
|
|
11
|
+
description: Project orchestrator — routes to analyze (full audit) and health (read-only status check)
|
|
12
|
+
cluster: project
|
|
13
|
+
type: orchestrator
|
|
14
|
+
suggestion:
|
|
15
|
+
eligible: true
|
|
16
|
+
trigger_description: "analyze this project, check the project state, how healthy is this repo"
|
|
17
|
+
trigger_context: "user asks about the project as a whole without picking full-audit vs quick-check"
|
|
18
|
+
workspaces:
|
|
19
|
+
- agent-config-maintainer
|
|
20
|
+
packs:
|
|
21
|
+
- meta
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
# /project
|
|
25
|
+
|
|
26
|
+
Top-level orchestrator for the `/project` family — project-wide inspection.
|
|
27
|
+
|
|
28
|
+
> Looking for a **project-wide optimization sweep** (challenge roadmaps,
|
|
29
|
+
> ADRs, decisions, emit new roadmaps)? That is
|
|
30
|
+
> [`/optimize project`](optimize/project.md).
|
|
31
|
+
|
|
32
|
+
## Sub-commands
|
|
33
|
+
|
|
34
|
+
| Sub-command | Routes to | Purpose |
|
|
35
|
+
|---|---|---|
|
|
36
|
+
| `/project analyze` | `commands/project/analyze.md` | Full project analysis — detect stack, inventory modules, audit docs, create missing contexts |
|
|
37
|
+
| `/project health` | `commands/project/health.md` | Quick health check — status of docs, modules, contexts, roadmaps; creates nothing |
|
|
38
|
+
|
|
39
|
+
Sub-command names match the locked contract in
|
|
40
|
+
[`docs/contracts/command-clusters.md`](../../docs/contracts/command-clusters.md).
|
|
41
|
+
|
|
42
|
+
## Dispatch
|
|
43
|
+
|
|
44
|
+
1. Parse the user's argument: `/project <sub-command> [args]`.
|
|
45
|
+
2. Look up the sub-command in the table above.
|
|
46
|
+
3. Load the body of the corresponding `commands/project/<sub>.md` file and
|
|
47
|
+
follow its `## Instructions` (or `## Steps`) section verbatim.
|
|
48
|
+
4. If the sub-command is unknown or missing, print the menu and ask — do not
|
|
49
|
+
guess:
|
|
50
|
+
|
|
51
|
+
> 1. analyze — full project audit (writes missing contexts)
|
|
52
|
+
> 2. health — read-only status check (creates nothing)
|
|
53
|
+
|
|
54
|
+
## Rules
|
|
55
|
+
|
|
56
|
+
- **`health` is read-only.** It never creates or modifies files; `analyze`
|
|
57
|
+
may create missing context docs and says so before writing.
|
|
58
|
+
- **Do NOT chain sub-commands.** One `/project <sub>` per turn.
|
|
59
|
+
- If the user invokes `/project` with no argument, **show the menu** — do not
|
|
60
|
+
guess which sub-command they meant.
|