@event4u/agent-config 1.23.0 → 1.25.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/analyze-reference-repo.md +3 -0
- package/.agent-src/commands/review-routing.md +7 -10
- package/.agent-src/commands/roadmap/process-full.md +41 -1
- package/.agent-src/contexts/authority/kernel-rule-edits.md +48 -0
- package/.agent-src/contexts/authority/scope-mechanics.md +15 -0
- package/.agent-src/contexts/contracts/consumer-agents-md-guide.md +127 -0
- package/.agent-src/contexts/contracts/emergency-triage-block.md +53 -0
- package/.agent-src/contexts/execution/roadmap-process-loop.md +29 -6
- package/.agent-src/rules/analysis-skill-routing.md +1 -1
- package/.agent-src/rules/artifact-drafting-protocol.md +1 -1
- package/.agent-src/rules/artifact-engagement-recording.md +1 -1
- package/.agent-src/rules/augment-source-of-truth.md +1 -1
- package/.agent-src/rules/autonomous-execution.md +1 -1
- package/.agent-src/rules/caveman-speak.md +1 -1
- package/.agent-src/rules/cli-output-handling.md +1 -1
- package/.agent-src/rules/command-suggestion-policy.md +1 -1
- package/.agent-src/rules/docs-sync.md +1 -1
- package/.agent-src/rules/guidelines.md +1 -1
- package/.agent-src/rules/improve-before-implement.md +1 -1
- package/.agent-src/rules/invite-challenge.md +1 -1
- package/.agent-src/rules/minimal-safe-diff.md +1 -1
- package/.agent-src/rules/model-recommendation.md +1 -1
- package/.agent-src/rules/no-attribution-footers.md +1 -1
- package/.agent-src/rules/no-roadmap-references.md +56 -20
- package/.agent-src/rules/onboarding-gate.md +1 -1
- package/.agent-src/rules/package-ci-checks.md +1 -1
- package/.agent-src/rules/reviewer-awareness.md +9 -2
- package/.agent-src/rules/roadmap-progress-sync.md +37 -3
- package/.agent-src/rules/scope-control.md +6 -0
- package/.agent-src/rules/security-sensitive-stop.md +1 -1
- package/.agent-src/rules/size-enforcement.md +1 -1
- package/.agent-src/rules/token-optimizer-maintenance.md +1 -1
- package/.agent-src/rules/ui-audit-gate.md +1 -1
- package/.agent-src/skills/adr-create/SKILL.md +2 -1
- package/.agent-src/skills/agents-md-thin-root/SKILL.md +125 -0
- package/.agent-src/skills/ai-council/SKILL.md +9 -7
- package/.agent-src/skills/learning-to-rule-or-skill/SKILL.md +9 -0
- package/.agent-src/skills/markitdown/SKILL.md +239 -0
- package/.agent-src/skills/review-routing/SKILL.md +3 -4
- package/.agent-src/skills/universal-project-analysis/SKILL.md +8 -0
- package/.agent-src/templates/AGENTS.md +18 -148
- package/.agent-src/templates/copilot-instructions.md +41 -17
- package/.agent-src/templates/github-workflows/pr-risk-review.yml +1 -1
- package/.agent-src/templates/scripts/pr_review_routing.py +1 -1
- package/.claude-plugin/marketplace.json +7 -5
- package/AGENTS.md +18 -205
- package/CHANGELOG.md +70 -0
- package/README.md +2 -2
- package/docs/architecture.md +13 -7
- package/docs/catalog.md +45 -29
- package/docs/contracts/agents-md-tech-stack.md +74 -0
- package/docs/contracts/linear-ai-rules-inclusion.md +1 -1
- package/docs/contracts/package-self-orientation.md +135 -0
- package/docs/contracts/rule-classification.md +4 -4
- package/docs/decisions/ADR-004-rule-governance-pruning.md +240 -0
- package/docs/getting-started.md +1 -1
- package/docs/guidelines/agent-infra/review-routing-data-format.md +1 -2
- package/package.json +1 -1
- package/scripts/_p4_migrate.py +5 -5
- package/scripts/audit_auto_rules.py +159 -0
- package/scripts/audit_likelihood.py +148 -0
- package/scripts/audit_overlap.py +145 -0
- package/scripts/build_rule_trigger_matrix.py +3 -5
- package/scripts/check_augment_description_cap.py +79 -0
- package/scripts/check_council_references.py +3 -3
- package/scripts/check_kernel_rule_bundle.py +151 -0
- package/scripts/check_references.py +21 -1
- package/scripts/compile_router.py +3 -0
- package/scripts/install.sh +0 -1
- package/scripts/lint_agents_md.py +168 -0
- package/scripts/measure_augment_budget.py +208 -0
- package/scripts/measure_markitdown_lift.py +127 -0
- package/scripts/schemas/rule.schema.json +2 -1
- package/scripts/skill_linter.py +10 -4
- package/scripts/spotcheck_thin_root.py +134 -0
- package/scripts/update_counts.py +6 -10
- package/.agent-src/rules/no-council-references.md +0 -76
- package/.agent-src/rules/review-routing-awareness.md +0 -19
- package/.agent-src/templates/copilot-review-instructions.md +0 -76
package/docs/catalog.md
CHANGED
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
# agent-config — Public Catalog
|
|
2
2
|
|
|
3
|
-
Consumer-facing catalog of all **
|
|
3
|
+
Consumer-facing catalog of all **358 public artefacts** shipped by
|
|
4
4
|
this package. Internal package-maintenance rules and deprecation shims
|
|
5
5
|
are excluded.
|
|
6
6
|
|
|
7
7
|
> **Regenerate:** `python3 scripts/generate_index.py`
|
|
8
8
|
> Auto-generated — do not edit manually.
|
|
9
9
|
|
|
10
|
-
## Skills (
|
|
10
|
+
## Skills (142)
|
|
11
11
|
|
|
12
12
|
| kind | name | extra | description |
|
|
13
13
|
|---|---|---|---|
|
|
14
|
+
| skill | [`adr-create`](../.agent-src/skills/adr-create/SKILL.md) | | Use when capturing an architectural decision — naming the file, picking the next ADR number, filling Status / Context / Decision / Consequences, and regenerating the index — even without saying 'ADR'. |
|
|
14
15
|
| skill | [`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. |
|
|
15
16
|
| skill | [`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. |
|
|
17
|
+
| skill | [`agents-md-thin-root`](../.agent-src/skills/agents-md-thin-root/SKILL.md) | | Use when editing AGENTS.md (package root) or templates/AGENTS.md (consumer) — enforces Thin-Root contract: hard char ceilings, ≥40% pointer ratio, mandatory emergency-triage block. |
|
|
16
18
|
| skill | [`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'. |
|
|
17
19
|
| skill | [`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. |
|
|
18
20
|
| skill | [`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'. |
|
|
@@ -80,6 +82,7 @@ are excluded.
|
|
|
80
82
|
| skill | [`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. |
|
|
81
83
|
| skill | [`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. |
|
|
82
84
|
| skill | [`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. |
|
|
85
|
+
| skill | [`markitdown`](../.agent-src/skills/markitdown/SKILL.md) | | Use when converting PDF, DOCX, XLSX, PPTX, EPUB, images, or audio to Markdown for LLM ingestion via the upstream markitdown-mcp server — 'extract this PDF', 'OCR this image', 'transcribe this audio'. |
|
|
83
86
|
| skill | [`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. |
|
|
84
87
|
| skill | [`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. |
|
|
85
88
|
| skill | [`merge-conflicts`](../.agent-src/skills/merge-conflicts/SKILL.md) | | Use when the user has merge conflicts or says "resolve conflicts". Understands conflict markers, resolution strategies, and verification workflow. |
|
|
@@ -91,6 +94,7 @@ are excluded.
|
|
|
91
94
|
| skill | [`override-management`](../.agent-src/skills/override-management/SKILL.md) | | Creates and manages project-level overrides for shared skills, rules, and commands — extending or replacing originals from .augment/ with project-specific behavior in agents/overrides/. |
|
|
92
95
|
| skill | [`performance`](../.agent-src/skills/performance/SKILL.md) | | Use when optimizing application performance — caching strategies, eager loading, query optimization, Redis patterns, or background job design. |
|
|
93
96
|
| skill | [`performance-analysis`](../.agent-src/skills/performance-analysis/SKILL.md) | | ONLY when user explicitly requests: performance audit, bottleneck analysis, or N+1 query detection. NOT for regular feature work. |
|
|
97
|
+
| skill | [`persona-writing`](../.agent-src/skills/persona-writing/SKILL.md) | | Use when creating or editing a persona in .agent-src.uncompressed/personas/ — voice / focus / unique questions / output expectations — even when the user just says 'add a reviewer voice for X'. |
|
|
94
98
|
| skill | [`pest-testing`](../.agent-src/skills/pest-testing/SKILL.md) | | Use when writing, generating, or improving Pest tests for Laravel — clear intent, good coverage, maintainable structure, and alignment with project testing conventions. |
|
|
95
99
|
| skill | [`php-coder`](../.agent-src/skills/php-coder/SKILL.md) | | Writes or edits PHP code — controllers, classes, type hints, SOLID refactors, modern idioms — even without naming PHP. NOT for writing tests (use pest-testing) or explaining PHP concepts. |
|
|
96
100
|
| skill | [`php-debugging`](../.agent-src/skills/php-debugging/SKILL.md) | | Use when debugging PHP with Xdebug — breakpoints, step-through, dual-container setup, IDE configuration, header-based routing — even when the user just says 'why does this blow up on request X'. |
|
|
@@ -119,8 +123,10 @@ are excluded.
|
|
|
119
123
|
| skill | [`review-routing`](../.agent-src/skills/review-routing/SKILL.md) | | Use when preparing a PR description, suggesting reviewers, or flagging risk — produces owner-mapped roles plus historical bug-pattern matches from project-local YAML. |
|
|
120
124
|
| skill | [`rice-prioritization`](../.agent-src/skills/rice-prioritization/SKILL.md) | | Use when ranking competing initiatives for a roadmap, breaking a tie between two features, or auditing a backlog for hidden low-value work via Reach × Impact × Confidence ÷ Effort. |
|
|
121
125
|
| skill | [`roadmap-management`](../.agent-src/skills/roadmap-management/SKILL.md) | | Use when the user says "create roadmap", "show roadmap", or "execute roadmap". Creates, reads, and manages roadmap files with phase tracking. |
|
|
126
|
+
| skill | [`roadmap-writing`](../.agent-src/skills/roadmap-writing/SKILL.md) | | Use when authoring or rewriting a roadmap in agents/roadmaps/ — phase prose, goal sentence, acceptance criteria, council notes — even when the user just says 'write a plan for X' or 'draft a roadmap'. |
|
|
122
127
|
| skill | [`rtk-output-filtering`](../.agent-src/skills/rtk-output-filtering/SKILL.md) | | Use when running verbose CLI commands — wraps them with rtk (Rust Token Killer) for 60-90% token savings. Covers installation, configuration, and usage patterns. |
|
|
123
128
|
| skill | [`rule-writing`](../.agent-src/skills/rule-writing/SKILL.md) | | Use when creating or editing a rule in .agent-src.uncompressed/rules/ — trigger wording, always vs auto classification, size budget — even when the user just says 'add a rule for X'. |
|
|
129
|
+
| skill | [`script-writing`](../.agent-src/skills/script-writing/SKILL.md) | | Use when adding or editing any script under `scripts/` — `--quiet` flag, `_lib/script_output` helpers, silent Taskfile wiring, Iron-Law carve-outs — even when you just say 'add a check script for X'. |
|
|
124
130
|
| skill | [`security`](../.agent-src/skills/security/SKILL.md) | | Use when applying security best practices — authentication, authorization via Policies, CSRF protection, input sanitization, rate limiting, or secure coding. |
|
|
125
131
|
| skill | [`security-audit`](../.agent-src/skills/security-audit/SKILL.md) | | ONLY when user explicitly requests: security audit, vulnerability scan, or penetration test review. NOT for regular feature work. |
|
|
126
132
|
| skill | [`sentry-integration`](../.agent-src/skills/sentry-integration/SKILL.md) | | Use when the user shares a Sentry URL, says "check Sentry", or wants to investigate production errors. Uses Sentry MCP tools for deep analysis. |
|
|
@@ -132,7 +138,7 @@ are excluded.
|
|
|
132
138
|
| skill | [`sql-writing`](../.agent-src/skills/sql-writing/SKILL.md) | | Use when writing raw SQL — MariaDB/MySQL syntax, parameterization, raw migrations, seeders with `DB::statement` — even when the user just pastes a query and asks 'why is this slow' without naming SQL. |
|
|
133
139
|
| skill | [`subagent-orchestration`](../.agent-src/skills/subagent-orchestration/SKILL.md) | | Use when orchestrating implementer/judge subagents — six modes (do-and-judge, do-in-steps, do-in-parallel, do-competitively, judge-with-debate, do-in-worktrees) — models from .agent-settings.yml. |
|
|
134
140
|
| skill | [`systematic-debugging`](../.agent-src/skills/systematic-debugging/SKILL.md) | | Use when hitting a bug, test failure, crash, or unexpected behavior — enforces reproduce → isolate → hypothesize → verify before any fix — even when the user just says 'this is broken' or 'quick fix'. |
|
|
135
|
-
| skill | [`technical-specification`](../.agent-src/skills/technical-specification/SKILL.md) | | Use when the user says "write a spec", "create RFC", or "document this decision". Writes technical specifications, RFCs, and ADRs with clear structure. |
|
|
141
|
+
| skill | [`technical-specification`](../.agent-src/skills/technical-specification/SKILL.md) | | Use when the user says "write a spec", "create RFC", "write a PRD", or "document this decision". Writes technical specifications, PRDs, RFCs, and ADRs with clear structure. |
|
|
136
142
|
| skill | [`terraform`](../.agent-src/skills/terraform/SKILL.md) | | Use when writing Terraform — AWS modules, resources, variables, outputs, remote state — even when the user just says 'provision this infra' or 'add an S3 bucket' without naming Terraform. |
|
|
137
143
|
| skill | [`terragrunt`](../.agent-src/skills/terragrunt/SKILL.md) | | Use when working with Terragrunt — DRY multi-env configs, module dependencies, remote state orchestration — even when the user just says 'deploy this to staging and prod' without naming Terragrunt. |
|
|
138
144
|
| skill | [`test-driven-development`](../.agent-src/skills/test-driven-development/SKILL.md) | | Use when implementing a feature, fixing a bug, or refactoring — write a failing test first, then the code — even if the user just says 'add this function' or 'fix this bug'. |
|
|
@@ -154,15 +160,16 @@ are excluded.
|
|
|
154
160
|
|---|---|---|---|
|
|
155
161
|
| rule | [`agent-authority`](../.agent-src/rules/agent-authority.md) | always | Priority Index for the four authority rules — Hard Floor → Permission Gate → Commit Default → Trivial-vs-Blocking; read first, route to canonical rule |
|
|
156
162
|
| rule | [`agent-docs`](../.agent-src/rules/agent-docs.md) | auto | Reading, creating, or updating agent documentation, module docs, roadmaps, or AGENTS.md |
|
|
157
|
-
| rule | [`analysis-skill-routing`](../.agent-src/rules/analysis-skill-routing.md) |
|
|
163
|
+
| rule | [`analysis-skill-routing`](../.agent-src/rules/analysis-skill-routing.md) | manual | When choosing an analysis skill, route to the narrowest matching skill instead of defaulting to broad analysis |
|
|
158
164
|
| rule | [`architecture`](../.agent-src/rules/architecture.md) | auto | Architecture rules for creating new files, classes, controllers, modules, or making structural decisions about project organization |
|
|
159
|
-
| rule | [`artifact-drafting-protocol`](../.agent-src/rules/artifact-drafting-protocol.md) | auto | Creating a new skill, rule, command, or guideline, or significantly rewriting one — runs
|
|
160
|
-
| rule | [`artifact-engagement-recording`](../.agent-src/rules/artifact-engagement-recording.md) | auto | After a /implement-ticket or /work phase-step (refine/memory/analyze/plan/implement/test/verify/report) or full task — emit one telemetry:record call
|
|
165
|
+
| rule | [`artifact-drafting-protocol`](../.agent-src/rules/artifact-drafting-protocol.md) | auto | Creating a new skill, rule, command, or guideline, or significantly rewriting one — runs mandatory Understand → Research → Draft before drafting |
|
|
166
|
+
| rule | [`artifact-engagement-recording`](../.agent-src/rules/artifact-engagement-recording.md) | auto | After a /implement-ticket or /work phase-step (refine/memory/analyze/plan/implement/test/verify/report) or full task — emit one telemetry:record call |
|
|
161
167
|
| rule | [`ask-when-uncertain`](../.agent-src/rules/ask-when-uncertain.md) | always | Ask when uncertain — don't guess, assume, or improvise |
|
|
162
|
-
| rule | [`autonomous-execution`](../.agent-src/rules/autonomous-execution.md) | auto |
|
|
168
|
+
| rule | [`autonomous-execution`](../.agent-src/rules/autonomous-execution.md) | auto | Whether to ask or act on a workflow step — trivial-vs-blocking, autonomy opt-in, commit default; Hard Floor in non-destructive-by-default |
|
|
163
169
|
| rule | [`capture-learnings`](../.agent-src/rules/capture-learnings.md) | auto | After completing a task where a repeated mistake or successful pattern appeared — capture as rule or skill |
|
|
164
|
-
| rule | [`
|
|
165
|
-
| rule | [`
|
|
170
|
+
| rule | [`caveman-speak`](../.agent-src/rules/caveman-speak.md) | auto | When caveman.speak_scope != off — compress reply prose to caveman grammar with carve-outs for numbered options, Iron-Law, code, paths, error markers |
|
|
171
|
+
| rule | [`cli-output-handling`](../.agent-src/rules/cli-output-handling.md) | auto | Running CLI commands that produce verbose output — git, tests, linters, docker, build tools, artisan, npm, composer. Wrap with rtk; tail/grep fallback |
|
|
172
|
+
| rule | [`command-suggestion-policy`](../.agent-src/rules/command-suggestion-policy.md) | auto | User prompt without /command matching an eligible slash command — surface matches as numbered options with as-is escape; never auto-executes |
|
|
166
173
|
| rule | [`commit-conventions`](../.agent-src/rules/commit-conventions.md) | auto | Git commit message format, branch naming, conventional commits, committing, pushing, or creating pull requests |
|
|
167
174
|
| rule | [`commit-policy`](../.agent-src/rules/commit-policy.md) | always | Commit policy — never commit and never ask about committing unless the user said so this turn, the roadmap authorizes it, or a commit command is invoked |
|
|
168
175
|
| rule | [`context-hygiene`](../.agent-src/rules/context-hygiene.md) | auto | When debugging, fixing errors, or running long conversations — 3-failure stop rule, tool-loop detection, fresh-chat triggers |
|
|
@@ -170,45 +177,44 @@ are excluded.
|
|
|
170
177
|
| rule | [`docker-commands`](../.agent-src/rules/docker-commands.md) | auto | Running PHP commands inside Docker containers — artisan, composer, phpstan, rector, ecs, phpunit, tests, migrations, and any CLI tool execution |
|
|
171
178
|
| rule | [`downstream-changes`](../.agent-src/rules/downstream-changes.md) | auto | After EVERY code edit, find ALL downstream changes needed to existing files, including callers, tests, imports, types, and documentation |
|
|
172
179
|
| rule | [`e2e-testing`](../.agent-src/rules/e2e-testing.md) | auto | Playwright E2E tests — locators, assertions, Page Objects, fixtures, CI, and flaky test prevention |
|
|
173
|
-
| rule | [`guidelines`](../.agent-src/rules/guidelines.md) |
|
|
174
|
-
| rule | [`improve-before-implement`](../.agent-src/rules/improve-before-implement.md) | auto | Before implementing features or architectural changes — validate the request against existing code, challenge weak requirements,
|
|
180
|
+
| rule | [`guidelines`](../.agent-src/rules/guidelines.md) | manual | Writing or reviewing code — check relevant guideline before writing or reviewing code |
|
|
181
|
+
| rule | [`improve-before-implement`](../.agent-src/rules/improve-before-implement.md) | auto | Before implementing features or architectural changes — validate the request against existing code, challenge weak requirements, suggest improvements |
|
|
182
|
+
| rule | [`invite-challenge`](../.agent-src/rules/invite-challenge.md) | auto | Before executing a complex plan or non-trivial design — ask 'am I solving the right problem?' and pause for user confirmation, even when no ambiguity |
|
|
175
183
|
| rule | [`language-and-tone`](../.agent-src/rules/language-and-tone.md) | always | Language and tone — informal German Du, English code comments, .md files always English |
|
|
176
184
|
| rule | [`laravel-translations`](../.agent-src/rules/laravel-translations.md) | auto | Laravel language files, translations, i18n, lang/de, lang/en, __() helper, localization, multilingual text |
|
|
177
185
|
| rule | [`markdown-safe-codeblocks`](../.agent-src/rules/markdown-safe-codeblocks.md) | auto | Generating markdown output that contains code blocks — prevent broken nesting |
|
|
178
|
-
| rule | [`minimal-safe-diff`](../.agent-src/rules/minimal-safe-diff.md) | auto | When writing or reviewing a diff — the smallest change that solves the stated problem; no drive-by edits,
|
|
186
|
+
| rule | [`minimal-safe-diff`](../.agent-src/rules/minimal-safe-diff.md) | auto | When writing or reviewing a diff — the smallest change that solves the stated problem; no drive-by edits, opportunistic refactors, or reformatting |
|
|
179
187
|
| rule | [`missing-tool-handling`](../.agent-src/rules/missing-tool-handling.md) | auto | When a CLI tool needed for the task is not installed — ask before working around it; do NOT install silently |
|
|
180
|
-
| rule | [`model-recommendation`](../.agent-src/rules/model-recommendation.md) | auto | Starting a new task, switching task type, or invoking a command — detect
|
|
181
|
-
| rule | [`no-attribution-footers`](../.agent-src/rules/no-attribution-footers.md) | auto | Generating PR/issue/comment/commit-message bodies — forbids
|
|
188
|
+
| rule | [`model-recommendation`](../.agent-src/rules/model-recommendation.md) | auto | Starting a new task, switching task type, or invoking a command — detect complexity and recommend optimal model (Opus/Sonnet/GPT) before work |
|
|
189
|
+
| rule | [`no-attribution-footers`](../.agent-src/rules/no-attribution-footers.md) | auto | Generating PR/issue/comment/commit-message bodies — forbids 'Generated with', 'Co-authored by', or 'Pull Request opened by' attribution footers |
|
|
182
190
|
| rule | [`no-cheap-questions`](../.agent-src/rules/no-cheap-questions.md) | always | No cheap questions — never ask what context answers, never offer Iron-Law-violating options, never stage no-trade-off choices; mode-independent (off / auto / on) |
|
|
183
|
-
| rule | [`no-
|
|
184
|
-
| rule | [`no-roadmap-references`](../.agent-src/rules/no-roadmap-references.md) | auto | Adding a link to a specific file in agents/roadmaps/ from any stable artifact (rule, skill, command, context, guideline) — roadmaps are transient; promote durable findings to agents/contexts/ instead |
|
|
191
|
+
| rule | [`no-roadmap-references`](../.agent-src/rules/no-roadmap-references.md) | auto | Linking transient files (agents/roadmaps/, agents/council-{questions,responses,sessions}/) from a stable artifact — both layers expire; promote findings |
|
|
185
192
|
| rule | [`non-destructive-by-default`](../.agent-src/rules/non-destructive-by-default.md) | always | Agent is never destructive — Hard Floor always asks for prod-trunk merges, deploys, pushes, prod data/infra, bulk deletions, and bulk-deletion/infra commits; no autonomy or roadmap bypass |
|
|
186
|
-
| rule | [`onboarding-gate`](../.agent-src/rules/onboarding-gate.md) | auto | First turn of a conversation on a project — check onboarding.onboarded in .agent-settings.yml; when false, prompt
|
|
187
|
-
| rule | [`package-ci-checks`](../.agent-src/rules/package-ci-checks.md) |
|
|
193
|
+
| rule | [`onboarding-gate`](../.agent-src/rules/onboarding-gate.md) | auto | First turn of a conversation on a project — check onboarding.onboarded in .agent-settings.yml; when false, prompt to run /onboard before any request |
|
|
194
|
+
| rule | [`package-ci-checks`](../.agent-src/rules/package-ci-checks.md) | manual | Before pushing to remote or creating a PR in the agent-config package — run all CI checks locally first |
|
|
188
195
|
| rule | [`php-coding`](../.agent-src/rules/php-coding.md) | auto | Writing or reviewing PHP code — strict types, naming, comparisons, early returns, Eloquent conventions |
|
|
189
196
|
| rule | [`preservation-guard`](../.agent-src/rules/preservation-guard.md) | auto | When merging, refactoring, compressing, or restructuring skills, rules, commands, or guidelines — prevent quality loss |
|
|
190
|
-
| rule | [`
|
|
191
|
-
| rule | [`
|
|
192
|
-
| rule | [`roadmap-progress-sync`](../.agent-src/rules/roadmap-progress-sync.md) | auto | Any touch to agents/roadmaps/ — create/rename/delete/move, edit checkboxes ([x]/[~]/[-]), add/rename/remove phases — must regenerate dashboard and archive if 0 open items, same response |
|
|
197
|
+
| rule | [`reviewer-awareness`](../.agent-src/rules/reviewer-awareness.md) | auto | When suggesting reviewers or flagging risk hotspots — anchor in paths/risk + ownership-map + bug-patterns; medium/high needs primary + secondary |
|
|
198
|
+
| rule | [`roadmap-progress-sync`](../.agent-src/rules/roadmap-progress-sync.md) | auto | Any roadmap touch (file move, checkbox flip, phase change) regens dashboard same response; archive at 0 open. Autonomous runs flip checkboxes inline |
|
|
193
199
|
| rule | [`role-mode-adherence`](../.agent-src/rules/role-mode-adherence.md) | auto | When roles.active_role is set in .agent-settings.yml — closing outputs must match the mode's contract and emit the structured mode marker |
|
|
194
200
|
| rule | [`rule-type-governance`](../.agent-src/rules/rule-type-governance.md) | auto | Creating or editing rules, or auditing rule types — decides when a rule should be always vs auto |
|
|
195
201
|
| rule | [`runtime-safety`](../.agent-src/rules/runtime-safety.md) | auto | When a skill declares execution metadata — enforce safety constraints for assisted and automated execution types |
|
|
196
202
|
| rule | [`scope-control`](../.agent-src/rules/scope-control.md) | always | Scope control — no unsolicited architectural changes, refactors, or library replacements |
|
|
197
|
-
| rule | [`security-sensitive-stop`](../.agent-src/rules/security-sensitive-stop.md) | auto | Security-sensitive paths — auth, billing, tenant boundaries, secrets,
|
|
198
|
-
| rule | [`size-enforcement`](../.agent-src/rules/size-enforcement.md) |
|
|
203
|
+
| rule | [`security-sensitive-stop`](../.agent-src/rules/security-sensitive-stop.md) | auto | Security-sensitive paths — auth, billing, tenant boundaries, secrets, uploads, integrations, webhooks, public endpoints — threat-model BEFORE editing |
|
|
204
|
+
| rule | [`size-enforcement`](../.agent-src/rules/size-enforcement.md) | manual | Creating or editing rules, skills, commands, guidelines, AGENTS.md, or copilot-instructions.md — enforce size and scope limits |
|
|
199
205
|
| rule | [`skill-improvement-trigger`](../.agent-src/rules/skill-improvement-trigger.md) | auto | After completing a meaningful task — trigger post-task learning capture if pipelines.skill_improvement is enabled |
|
|
200
206
|
| rule | [`skill-quality`](../.agent-src/rules/skill-quality.md) | auto | Creating, editing, or reviewing skills — minimum quality standard, every skill must be executable, validated, and self-contained |
|
|
201
207
|
| rule | [`slash-command-routing-policy`](../.agent-src/rules/slash-command-routing-policy.md) | auto | When user types a slash command like /create-pr, /commit, or pastes command file content |
|
|
202
208
|
| rule | [`think-before-action`](../.agent-src/rules/think-before-action.md) | auto | Before coding, modifying, or debugging — analyze first, verify with real tools, never guess or trial-and-error |
|
|
203
209
|
| rule | [`token-efficiency`](../.agent-src/rules/token-efficiency.md) | auto | When running CLI tools, fetching logs, or producing replies — redirect verbose output, minimize tool calls, keep replies concise |
|
|
204
|
-
| rule | [`token-optimizer-maintenance`](../.agent-src/rules/token-optimizer-maintenance.md) | auto | Editing a token-optimizer-cited asset (cli-output-handling, rtk-output-filtering, token-efficiency,
|
|
210
|
+
| rule | [`token-optimizer-maintenance`](../.agent-src/rules/token-optimizer-maintenance.md) | auto | Editing a token-optimizer-cited asset (cli-output-handling, rtk-output-filtering, token-efficiency, markitdown) — sync catalog same commit |
|
|
205
211
|
| rule | [`tool-safety`](../.agent-src/rules/tool-safety.md) | auto | When a skill uses external tools — enforce allowlist, deny-by-default, and no hidden credential patterns |
|
|
206
|
-
| rule | [`ui-audit-gate`](../.agent-src/rules/ui-audit-gate.md) | auto | Writing or editing UI — components, screens, partials, layouts, design tokens — require existing-ui-audit findings
|
|
212
|
+
| rule | [`ui-audit-gate`](../.agent-src/rules/ui-audit-gate.md) | auto | Writing or editing UI — components, screens, partials, layouts, design tokens — require existing-ui-audit findings before non-trivial UI change |
|
|
207
213
|
| rule | [`upstream-proposal`](../.agent-src/rules/upstream-proposal.md) | auto | After creating or significantly improving a skill, rule, guideline, or command — ask if it should be contributed upstream to the shared package |
|
|
208
214
|
| rule | [`user-interaction`](../.agent-src/rules/user-interaction.md) | auto | Asking the user a question, presenting options, or summarizing progress — numbered-options Iron Law, single-recommendation rule, progress indicators |
|
|
209
215
|
| rule | [`verify-before-complete`](../.agent-src/rules/verify-before-complete.md) | always | Verify before completion — run tests and quality tools before claiming done |
|
|
210
216
|
|
|
211
|
-
## Commands (
|
|
217
|
+
## Commands (103)
|
|
212
218
|
|
|
213
219
|
| kind | name | cluster | description |
|
|
214
220
|
|---|---|---|---|
|
|
@@ -221,6 +227,9 @@ are excluded.
|
|
|
221
227
|
| command | [`analyze-reference-repo`](../.agent-src/commands/analyze-reference-repo.md) | | Analyze an external reference repository (competitor, inspiration, peer) and produce a structured comparison + adoption plan for this project. |
|
|
222
228
|
| command | [`bug-fix`](../.agent-src/commands/bug-fix.md) | | Plan and implement a bug fix — based on investigation, with quality checks and test verification |
|
|
223
229
|
| command | [`bug-investigate`](../.agent-src/commands/bug-investigate.md) | | Investigate a bug — auto-detect ticket from branch, gather Jira/Sentry/description context, trace root cause |
|
|
230
|
+
| command | [`challenge-me:vision`](../.agent-src/commands/challenge-me/vision.md) | cluster: challenge-me | Stress-test a plan or idea by one-question-at-a-time interview until 95% confidence — emits a copyable Markdown vision pitch for tickets, roadmaps, or fresh-chat handoff. |
|
|
231
|
+
| command | [`challenge-me:with-docs`](../.agent-src/commands/challenge-me/with-docs.md) | cluster: challenge-me | Doc-aware /challenge-me — 95%-confidence interview with session glossary vs CONTEXT.md, load-bearing claim-vs-code verification, optional CONTEXT.md patch + ADR candidates in the pitch. |
|
|
232
|
+
| command | [`challenge-me`](../.agent-src/commands/challenge-me.md) | cluster: challenge-me | Challenge-me orchestrator — routes to vision, with-docs |
|
|
224
233
|
| command | [`chat-history:import`](../.agent-src/commands/chat-history/import.md) | cluster: chat-history | Surface prior chat-history sessions as a numbered table, let the user pick one, read it silently, and emit a short summary plus a resume offer — selective, user-driven cross-session import |
|
|
225
234
|
| command | [`chat-history:learn`](../.agent-src/commands/chat-history/learn.md) | cluster: chat-history | Pick a prior chat-history session and mine it for project-improving learnings — runs learning-to-rule-or-skill on the picked session, drafts proposal(s) under agents/proposals/ |
|
|
226
235
|
| command | [`chat-history:show`](../.agent-src/commands/chat-history/show.md) | cluster: chat-history | Show the status of the persistent chat-history log — file size, entry count, header fingerprint, age, and the last few entries |
|
|
@@ -235,6 +244,7 @@ are excluded.
|
|
|
235
244
|
| command | [`copilot-agents:init`](../.agent-src/commands/copilot-agents/init.md) | cluster: copilot-agents | Create AGENTS.md and .github/copilot-instructions.md from scratch in the consumer project — interactive, auto-detects stack, never leaks other projects' identifiers. |
|
|
236
245
|
| command | [`copilot-agents:optimize`](../.agent-src/commands/copilot-agents/optimize.md) | cluster: copilot-agents | Analyzes and refactors AGENTS.md and copilot-instructions.md — removes duplications, enforces line budgets, and ensures both files are optimized for their audience. |
|
|
237
246
|
| command | [`copilot-agents`](../.agent-src/commands/copilot-agents.md) | cluster: copilot-agents | Copilot agents-doc orchestrator — routes to init, optimize |
|
|
247
|
+
| command | [`cost-report`](../.agent-src/commands/cost-report.md) | | Capture token cost from the active Claude Code session, append to the local sessions store, and surface the 50/75/90/100% budget alert ladder with cost-profile suggestions. |
|
|
238
248
|
| command | [`council:default`](../.agent-src/commands/council/default.md) | cluster: council | Default council lens — neutral framing, redacted context, advisory output only. Run `/council default <input>` for prompt/roadmap/diff/files; the cluster shows a menu when invoked bare. |
|
|
239
249
|
| command | [`council:design`](../.agent-src/commands/council/design.md) | cluster: council | Run the council on a design document, ADR, or architecture proposal — surfaces hidden coupling, missing rollback, and sequencing risk before commitment. |
|
|
240
250
|
| command | [`council:optimize`](../.agent-src/commands/council/optimize.md) | cluster: council | Run the council on an optimization target — perf hot path, memory pattern, query, or an /optimize-* output — for ranked, evidence-based suggestions instead of generic advice. |
|
|
@@ -259,6 +269,7 @@ are excluded.
|
|
|
259
269
|
| command | [`fix:refs`](../.agent-src/commands/fix/refs.md) | cluster: fix | Find and fix broken cross-references in .augment/ and agents/ files |
|
|
260
270
|
| command | [`fix:seeder`](../.agent-src/commands/fix/seeder.md) | cluster: fix | Scan seeder data files for broken foreign key references — find constants used without getReference() and fix them |
|
|
261
271
|
| command | [`fix`](../.agent-src/commands/fix.md) | cluster: fix | Fix orchestrator — routes to ci, references, portability, seeder, pr-comments, pr-bot-comments, pr-developer-comments |
|
|
272
|
+
| command | [`grill-me`](../.agent-src/commands/grill-me.md) | cluster: challenge-me | Alias for /challenge-me — interactive grill-style interview that sharpens a fuzzy plan/idea into a copyable Markdown pitch |
|
|
262
273
|
| command | [`implement-ticket`](../.agent-src/commands/implement-ticket.md) | | Drive a ticket end-to-end through refine → memory → analyze → plan → implement → test → verify → report — Option-A loop over the `work_engine` Python engine, block-on-ambiguity, no auto-git. |
|
|
263
274
|
| command | [`jira-ticket`](../.agent-src/commands/jira-ticket.md) | | Read Jira ticket from branch name, analyze linked Sentry issues, implement feature or fix bug |
|
|
264
275
|
| command | [`judge:on-diff`](../.agent-src/commands/judge/on-diff.md) | cluster: judge | Run a single change through an implementer→judge loop with a two-revision ceiling, then hand back to the user |
|
|
@@ -293,9 +304,12 @@ are excluded.
|
|
|
293
304
|
| command | [`refine-ticket`](../.agent-src/commands/refine-ticket.md) | | Refine a Jira/Linear ticket before planning — rewritten ticket + Top-5 risks + persona voices, orchestrates validate-feature-fit and threat-modeling, ends with a close-prompt |
|
|
294
305
|
| command | [`review-changes`](../.agent-src/commands/review-changes.md) | | Self-review local changes before creating a PR — dispatches to four specialized judges (bug, security, tests, quality) and consolidates verdicts |
|
|
295
306
|
| command | [`review-routing`](../.agent-src/commands/review-routing.md) | | Compute reviewer roles and matched historical bug patterns for the current diff, using project-local ownership-map.yml and historical-bug-patterns.yml |
|
|
307
|
+
| command | [`roadmap:ai-council`](../.agent-src/commands/roadmap/ai-council.md) | cluster: roadmap | Challenge a roadmap with the AI council (deep tier) and refactor from convergence findings. Wraps `/council default` pinned to `--input-mode roadmap --depth deep`; patches surface as numbered options. |
|
|
296
308
|
| command | [`roadmap:create`](../.agent-src/commands/roadmap/create.md) | cluster: roadmap | Interactively create a new roadmap file in agents/roadmaps/ |
|
|
297
|
-
| command | [`roadmap:
|
|
298
|
-
| command | [`roadmap`](../.agent-src/commands/roadmap.md) | cluster: roadmap |
|
|
309
|
+
| command | [`roadmap:process-full`](../.agent-src/commands/roadmap/process-full.md) | cluster: roadmap | Autonomously process every open step across every phase of a roadmap until the file is fully closed. Largest execution scope of the /roadmap cluster — runs continuously across phase boundaries. |
|
|
310
|
+
| command | [`roadmap:process-phase`](../.agent-src/commands/roadmap/process-phase.md) | cluster: roadmap | Autonomously process every open step in the next or current phase of a roadmap, then stop. Default execution scope of the /roadmap cluster. |
|
|
311
|
+
| command | [`roadmap:process-step`](../.agent-src/commands/roadmap/process-step.md) | cluster: roadmap | Autonomously process the single next open step of a roadmap and stop. Smallest execution scope of the /roadmap cluster — one step in, one step out. |
|
|
312
|
+
| command | [`roadmap`](../.agent-src/commands/roadmap.md) | cluster: roadmap | Roadmap orchestrator — routes to create (authoring) and process-step / process-phase / process-full (autonomous execution). |
|
|
299
313
|
| command | [`rule-compliance-audit`](../.agent-src/commands/rule-compliance-audit.md) | | Audit rule trigger quality, simulate activation, detect overlaps, and find never-activating rules |
|
|
300
314
|
| command | [`set-cost-profile`](../.agent-src/commands/set-cost-profile.md) | | Change the cost_profile in .agent-settings.yml — shows each profile's meaning and applies the selection |
|
|
301
315
|
| command | [`sync-agent-settings`](../.agent-src/commands/sync-agent-settings.md) | | Sync `.agent-settings.yml` against the current template + profile — adds new sections/keys, preserves user values, shows a diff before writing |
|
|
@@ -308,7 +322,7 @@ are excluded.
|
|
|
308
322
|
| command | [`upstream-contribute`](../.agent-src/commands/upstream-contribute.md) | | Contribute a learning, skill, rule, or fix from a consumer project back to the shared agent-config package |
|
|
309
323
|
| command | [`work`](../.agent-src/commands/work.md) | | Drive a free-form prompt end-to-end through refine → score → plan → implement → test → verify → report — Option-A loop over the `work_engine` Python engine, confidence-band gated, no auto-git. |
|
|
310
324
|
|
|
311
|
-
## Guidelines (
|
|
325
|
+
## Guidelines (58)
|
|
312
326
|
|
|
313
327
|
| kind | name | category | description |
|
|
314
328
|
|---|---|---|---|
|
|
@@ -316,11 +330,13 @@ are excluded.
|
|
|
316
330
|
| guideline | [`ask-when-uncertain-demos`](../docs/guidelines/agent-infra/ask-when-uncertain-demos.md) | agent-infra | |
|
|
317
331
|
| guideline | [`asking-and-brevity-examples`](../docs/guidelines/agent-infra/asking-and-brevity-examples.md) | agent-infra | |
|
|
318
332
|
| guideline | [`break-glass-usage`](../docs/guidelines/agent-infra/break-glass-usage.md) | agent-infra | |
|
|
333
|
+
| guideline | [`carve-out-predicates`](../docs/guidelines/agent-infra/carve-out-predicates.md) | agent-infra | |
|
|
319
334
|
| guideline | [`developer-judgment`](../docs/guidelines/agent-infra/developer-judgment.md) | agent-infra | |
|
|
320
335
|
| guideline | [`direct-answers-demos`](../docs/guidelines/agent-infra/direct-answers-demos.md) | agent-infra | |
|
|
321
336
|
| guideline | [`engineering-memory-data-format`](../docs/guidelines/agent-infra/engineering-memory-data-format.md) | agent-infra | |
|
|
322
337
|
| guideline | [`language-and-tone-examples`](../docs/guidelines/agent-infra/language-and-tone-examples.md) | agent-infra | |
|
|
323
338
|
| guideline | [`layered-settings`](../docs/guidelines/agent-infra/layered-settings.md) | agent-infra | |
|
|
339
|
+
| guideline | [`mcp-request-signing`](../docs/guidelines/agent-infra/mcp-request-signing.md) | agent-infra | |
|
|
324
340
|
| guideline | [`memory-access`](../docs/guidelines/agent-infra/memory-access.md) | agent-infra | |
|
|
325
341
|
| guideline | [`naming`](../docs/guidelines/agent-infra/naming.md) | agent-infra | |
|
|
326
342
|
| guideline | [`output-patterns`](../docs/guidelines/agent-infra/output-patterns.md) | agent-infra | |
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
---
|
|
2
|
+
stability: beta
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Tech stack — deep detail
|
|
6
|
+
|
|
7
|
+
Outboarded from `AGENTS.md` Phase 2 of `road-to-augment-limit-fit` to
|
|
8
|
+
keep the front-door file under the Augment workspace-guidelines
|
|
9
|
+
budget. AGENTS.md retains a 2-3 sentence summary; everything below
|
|
10
|
+
is the long-form reference.
|
|
11
|
+
|
|
12
|
+
## Recommended ingestion path for non-text formats
|
|
13
|
+
|
|
14
|
+
PDF, DOCX, XLSX, PPTX, EPUB, image, and audio inputs route through the
|
|
15
|
+
[`markitdown`](../../.agent-src/skills/markitdown/SKILL.md) skill — a
|
|
16
|
+
thin markdown-only wrapper over Microsoft's MIT-licensed
|
|
17
|
+
`markitdown-mcp` server (peer-side install, zero Python in this
|
|
18
|
+
package). The skill ships the four-layer security defense:
|
|
19
|
+
|
|
20
|
+
1. **Skill checklist** — frontmatter declares allowed input types, max
|
|
21
|
+
sizes, and the disallow list (no remote URLs, no executables).
|
|
22
|
+
2. **Narrow API** — the skill exposes `convert(path) → markdown`; no
|
|
23
|
+
shell-out, no arbitrary file globbing.
|
|
24
|
+
3. **Docker read-only** — `markitdown-mcp` runs in a read-only
|
|
25
|
+
container with the mount restricted to the input file's directory.
|
|
26
|
+
4. **Localhost binding** — the MCP server binds to `127.0.0.1` only;
|
|
27
|
+
no exposure to the host network.
|
|
28
|
+
|
|
29
|
+
Calibrated token claim: 3-5× comprehension on text-heavy formats
|
|
30
|
+
(PDF, DOCX), 10-50× on image-heavy formats (scanned PDF, PPTX with
|
|
31
|
+
diagrams). Measure locally with
|
|
32
|
+
`python3 scripts/measure_markitdown_lift.py` against
|
|
33
|
+
`tests/fixtures/markitdown-corpus/`.
|
|
34
|
+
|
|
35
|
+
## Cognition-only floor for Wings 2–4
|
|
36
|
+
|
|
37
|
+
Wings 2 (Product + Foundation), 3 (GTM + Growth), and 4 (Money +
|
|
38
|
+
Strategy + Ops) enforce a no-SaaS-auth, no-vendor-SDK,
|
|
39
|
+
no-stage-prescription floor: cognition artifacts (markdown tables,
|
|
40
|
+
scoring rubrics, walkthroughs) must work in any host without
|
|
41
|
+
external dependencies.
|
|
42
|
+
|
|
43
|
+
Mechanical enforcement: the structural-malice check in
|
|
44
|
+
`scripts/skill_linter.py` blocks:
|
|
45
|
+
|
|
46
|
+
- Credential exfiltration patterns (env-var reads of `*_TOKEN`,
|
|
47
|
+
`*_KEY`, `*_SECRET` followed by network egress).
|
|
48
|
+
- Remote execution (subprocess to URLs, `eval` of network-fetched
|
|
49
|
+
content).
|
|
50
|
+
- Shell injection in subprocess calls (string-concat shell commands
|
|
51
|
+
with user-controlled input).
|
|
52
|
+
|
|
53
|
+
See `.agent-src.uncompressed/rules/skill-quality.md` § Structural
|
|
54
|
+
Malice Floor for the full rule.
|
|
55
|
+
|
|
56
|
+
## Distribution mechanics
|
|
57
|
+
|
|
58
|
+
- `type: library` in `composer.json`; no `app/` directory, no
|
|
59
|
+
application runtime (no Laravel, Symfony, Next.js, or other
|
|
60
|
+
framework app code).
|
|
61
|
+
- Published to Composer and npm as `event4u/agent-config` /
|
|
62
|
+
`@event4u/agent-config`.
|
|
63
|
+
- Installed into consumer projects via `scripts/install.sh` (Bash)
|
|
64
|
+
and `scripts/install.py` (Python bridge).
|
|
65
|
+
|
|
66
|
+
## See also
|
|
67
|
+
|
|
68
|
+
- [`AGENTS.md`](../../AGENTS.md) — front-door (kernel orientation only)
|
|
69
|
+
- [`docs/architecture.md`](../../docs/architecture.md) — package
|
|
70
|
+
architecture and cloud-bundle pipeline
|
|
71
|
+
- [`.agent-src.uncompressed/rules/skill-quality.md`](../../.agent-src.uncompressed/rules/skill-quality.md)
|
|
72
|
+
— Structural Malice Floor
|
|
73
|
+
- [`.agent-src/skills/markitdown/SKILL.md`](../../.agent-src/skills/markitdown/SKILL.md)
|
|
74
|
+
— markitdown skill entry point
|
|
@@ -89,7 +89,7 @@ agent that does not maintain `event4u/agent-config`.
|
|
|
89
89
|
`agent-docs`, `architecture`, `artifact-drafting-protocol`,
|
|
90
90
|
`augment-portability`, `augment-source-of-truth`, `capture-learnings`,
|
|
91
91
|
`docs-sync`, `guidelines`, `package-ci-checks`, `preservation-guard`,
|
|
92
|
-
`
|
|
92
|
+
`reviewer-awareness`, `roadmap-progress-sync`,
|
|
93
93
|
`role-mode-adherence`, `rule-type-governance`, `runtime-safety`,
|
|
94
94
|
`size-enforcement`, `skill-improvement-trigger`, `skill-quality`,
|
|
95
95
|
`tool-safety`, `upstream-proposal`.
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
---
|
|
2
|
+
stability: beta
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Package Self-Orientation
|
|
6
|
+
|
|
7
|
+
> **Beta.** Outboard target for the package-root `AGENTS.md` Thin-Root
|
|
8
|
+
> refactor (Phase 6.4 of `road-to-augment-limit-fit`). Holds the
|
|
9
|
+
> deep-detail prose that used to live inline.
|
|
10
|
+
|
|
11
|
+
## What this repo is
|
|
12
|
+
|
|
13
|
+
A **governed skill suite** for two cognition clusters — engineering
|
|
14
|
+
depth (Wing 1) and senior cross-department cognition (Wings 2–4).
|
|
15
|
+
**Depth over breadth, decisions over boilerplate, under a shared
|
|
16
|
+
Iron-Law floor** (`commit-policy`, `non-destructive-by-default`,
|
|
17
|
+
`language-and-tone`, `skill-quality`, `direct-answers`).
|
|
18
|
+
|
|
19
|
+
`type: library` distribution package — published to Composer and npm
|
|
20
|
+
as `event4u/agent-config` / `@event4u/agent-config`. No application
|
|
21
|
+
runtime. Installed via `scripts/install.sh` (Bash) and
|
|
22
|
+
`scripts/install.py` (Python bridge).
|
|
23
|
+
|
|
24
|
+
## The four wings
|
|
25
|
+
|
|
26
|
+
Four wings compose via [`cross-wing-handoff.md`](cross-wing-handoff.md)
|
|
27
|
+
(beta). Per-wing plates live under `agents/roadmaps/` and `agents/contexts/`.
|
|
28
|
+
|
|
29
|
+
| Wing | Cognition cluster |
|
|
30
|
+
|---|---|
|
|
31
|
+
| **1 — Engineering** | Code craft, debugging, refactoring, release discipline; depth-first |
|
|
32
|
+
| **2 — Product + Foundation** | Roles cluster (PM, designer, QA, EM); product discovery, prioritization, delivery shape |
|
|
33
|
+
| **3 — GTM + Growth** | CMO + marketing + sales + lifecycle; channel-agnostic positioning + funnel cognition |
|
|
34
|
+
| **4 — Money + Strategy + Ops** | CFO + COO + board-level strategy, valuation, org-design; stage-agnostic financial + operational cognition |
|
|
35
|
+
|
|
36
|
+
## Tech stack
|
|
37
|
+
|
|
38
|
+
Bash (install scripts) · Python 3.10+ (linters, compression, pytest) ·
|
|
39
|
+
Markdown (all content) · Taskfile (`task ci/sync/test`) · GitHub
|
|
40
|
+
Actions (`.github/workflows/`). Non-text inputs (PDF, DOCX, XLSX,
|
|
41
|
+
images, audio) route through the
|
|
42
|
+
[`markitdown`](../../.agent-src/skills/markitdown/SKILL.md) skill.
|
|
43
|
+
Wings 2–4 enforce a cognition-only floor (no SaaS auth, no vendor
|
|
44
|
+
SDKs) — `skill_linter.py` enforces it mechanically. Distribution
|
|
45
|
+
mechanics deep-dive: [`agents-md-tech-stack.md`](agents-md-tech-stack.md) (beta).
|
|
46
|
+
|
|
47
|
+
## Source of truth
|
|
48
|
+
|
|
49
|
+
| Directory | Purpose | Editable? |
|
|
50
|
+
|---|---|---|
|
|
51
|
+
| `.agent-src.uncompressed/` | Authoring layer — full verbose content | ✅ Yes — edit here |
|
|
52
|
+
| `.agent-src/` | Compressed output — shipped in the package, consumed by agents | ❌ No — regenerated |
|
|
53
|
+
| `.augment/` | Local projection of `.agent-src/` for Augment Code (gitignored) | ❌ No — regenerated |
|
|
54
|
+
| `.claude/`, `.cursor/`, `.clinerules/`, `.windsurfrules` | Tool-specific projections | ❌ No — regenerated |
|
|
55
|
+
| `agents/` | Package's own roadmaps, contexts, sessions | ✅ Yes |
|
|
56
|
+
|
|
57
|
+
**Never edit `.agent-src/` or `.augment/` directly.** Edit
|
|
58
|
+
`.agent-src.uncompressed/` and run `task sync` (or `task ci`) to
|
|
59
|
+
compress + regenerate the tool directories.
|
|
60
|
+
|
|
61
|
+
## Repository layout
|
|
62
|
+
|
|
63
|
+
```
|
|
64
|
+
.agent-src.uncompressed/ ← edit here
|
|
65
|
+
skills/ (141 skills)
|
|
66
|
+
rules/ (58 rules)
|
|
67
|
+
commands/ (103 commands)
|
|
68
|
+
personas/ (7 personas)
|
|
69
|
+
templates/ (AGENTS.md, copilot-instructions.md, skill.md, …)
|
|
70
|
+
contexts/
|
|
71
|
+
|
|
72
|
+
docs/guidelines/ (47 guidelines — reference material, not packaged)
|
|
73
|
+
docs/contracts/ (kernel-membership, rule-router, rule-classification, …)
|
|
74
|
+
docs/decisions/ (ADRs — kernel overrides, scope decisions)
|
|
75
|
+
.agent-src/ ← compressed output shipped in the package
|
|
76
|
+
.agent-src/router.json ← compiled router manifest (consumed at runtime)
|
|
77
|
+
.augment/ ← local projection for Augment Code (gitignored)
|
|
78
|
+
scripts/ ← install.sh, install.py, compress.py, linters
|
|
79
|
+
tests/ ← pytest (324 tests) + test_install.sh
|
|
80
|
+
agents/ ← this package's own roadmaps / sessions / contexts
|
|
81
|
+
.github/workflows/ ← CI
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
## Key rules for agents editing this repo
|
|
85
|
+
|
|
86
|
+
| Rule | File |
|
|
87
|
+
|---|---|
|
|
88
|
+
| `.agent-src/` must stay project-agnostic — no project names, domains, stacks | [`augment-portability`](../../.agent-src/rules/augment-portability.md) |
|
|
89
|
+
| Root AGENTS.md + copilot-instructions.md must stay project-agnostic too | [`augment-portability`](../../.agent-src/rules/augment-portability.md) |
|
|
90
|
+
| Edit `.agent-src.uncompressed/`, never `.agent-src/` or `.augment/` | [`augment-source-of-truth`](../../.agent-src/rules/augment-source-of-truth.md) |
|
|
91
|
+
| Skills must declare frontmatter, be self-contained, pass the linter | [`skill-quality`](../../.agent-src/rules/skill-quality.md) |
|
|
92
|
+
| Size budgets for skills, rules, commands | [`size-enforcement`](../../.agent-src/rules/size-enforcement.md) |
|
|
93
|
+
| Keep `.agent-src/` / `agents/` cross-refs in sync on add/rename/delete | [`docs-sync`](../../.agent-src/rules/docs-sync.md) |
|
|
94
|
+
| Creating a new skill/rule/command/guideline runs Understand → Research → Draft | [`artifact-drafting-protocol`](../../.agent-src/rules/artifact-drafting-protocol.md) |
|
|
95
|
+
|
|
96
|
+
## Maintainer telemetry (opt-in)
|
|
97
|
+
|
|
98
|
+
Default-off. `telemetry.artifact_engagement.enabled: true` in
|
|
99
|
+
`.agent-settings.yml` enables local-only JSONL logging. Redaction
|
|
100
|
+
floor + pipeline:
|
|
101
|
+
[`artifact-engagement-flow.md`](../../.agent-src.uncompressed/contexts/contracts/artifact-engagement-flow.md)
|
|
102
|
+
(beta). Rule:
|
|
103
|
+
[`artifact-engagement-recording`](../../.agent-src/rules/artifact-engagement-recording.md).
|
|
104
|
+
|
|
105
|
+
## Context-aware command suggestion
|
|
106
|
+
|
|
107
|
+
When a free-form prompt matches a command's purpose, the agent
|
|
108
|
+
surfaces matches as numbered options with a "run as-is" escape;
|
|
109
|
+
**nothing auto-executes**. Engine: `scripts/command_suggester/`.
|
|
110
|
+
Rule: [`command-suggestion-policy`](../../.agent-src/rules/command-suggestion-policy.md).
|
|
111
|
+
Eligibility + scoring + hardening:
|
|
112
|
+
[`adr-command-suggestion.md`](adr-command-suggestion.md) and
|
|
113
|
+
[`command-suggestion-flow.md`](../../.agent-src.uncompressed/contexts/contracts/command-suggestion-flow.md)
|
|
114
|
+
(beta).
|
|
115
|
+
|
|
116
|
+
## Multi-agent tool support
|
|
117
|
+
|
|
118
|
+
`task generate-tools` projects `.agent-src/` into Augment Code, Claude
|
|
119
|
+
Code (Agent Skills standard), Cursor, Cline, Windsurf, Gemini CLI,
|
|
120
|
+
and Claude.ai cloud bundles. Skills follow
|
|
121
|
+
[agentskills.io](https://agentskills.io); commands are converted to
|
|
122
|
+
Claude Code Skills with `disable-model-invocation: true`. Per-tool
|
|
123
|
+
layout + cloud-bundle pipeline:
|
|
124
|
+
[`docs/architecture.md`](../architecture.md#cloud-bundle-pipeline).
|
|
125
|
+
|
|
126
|
+
## Contributing
|
|
127
|
+
|
|
128
|
+
1. Edit inside `.agent-src.uncompressed/` or `scripts/` or `tests/` —
|
|
129
|
+
never in `.agent-src/`, `.augment/`, `.claude/`, `.cursor/`, etc.
|
|
130
|
+
2. Run `task ci` locally. It must exit 0.
|
|
131
|
+
3. Commit in logical chunks with Conventional Commits.
|
|
132
|
+
4. Open a PR against `main`.
|
|
133
|
+
|
|
134
|
+
User-facing story: [`README.md`](../../README.md). Architecture
|
|
135
|
+
deep-dive: [`docs/architecture.md`](../architecture.md).
|
|
@@ -116,8 +116,7 @@ existing skills under `.agent-src.uncompressed/skills/`.
|
|
|
116
116
|
| model-recommendation | 2909 | `set-cost-profile` | Routing procedure |
|
|
117
117
|
| onboarding-gate | 4881 | `onboard` | Mechanical: meta-rule about /onboard |
|
|
118
118
|
| package-ci-checks | 1342 | `lint-skills` | Repo-specific procedure |
|
|
119
|
-
|
|
|
120
|
-
| reviewer-awareness | 3573 | `review-routing` | Merges with above into one skill |
|
|
119
|
+
| reviewer-awareness | 3573 | `review-routing` | Skill exists; consolidates former `review-routing-awareness` (2026-05-08, see `agents/contexts/adr-auto-rule-consolidation.md`) |
|
|
121
120
|
| skill-improvement-trigger | 1597 | `skill-improvement-pipeline` | Trigger procedure |
|
|
122
121
|
| slash-command-routing-policy | 3218 | `command-routing` | Routing procedure |
|
|
123
122
|
| ui-audit-gate | 3285 | `existing-ui-audit` | Audit procedure |
|
|
@@ -151,8 +150,9 @@ Reference / examples / mechanics. Body migrates into
|
|
|
151
150
|
1. **Kernel swap ADR (P2.1).** `agent-authority` ↔
|
|
152
151
|
`autonomous-execution`. See `kernel-membership.md` § 5.2 for the
|
|
153
152
|
three resolution variants; this file syncs once the ADR lands.
|
|
154
|
-
2. **`reviewer-awareness` + `review-routing-awareness` merge.**
|
|
155
|
-
|
|
153
|
+
2. **`reviewer-awareness` + `review-routing-awareness` merge.** ✅ resolved
|
|
154
|
+
2026-05-08 — merged into `reviewer-awareness` per
|
|
155
|
+
`agents/contexts/adr-auto-rule-consolidation.md`.
|
|
156
156
|
3. **`onboarding-gate` migration shape.** The rule fires only on the
|
|
157
157
|
first turn; the migrated form must keep that trigger latch.
|
|
158
158
|
Router state-machine primitives (once / every-turn / on-mode-
|