Use when reviewing UI for accessibility — WCAG 2.2 AA, keyboard nav, focus, ARIA, contrast, screen-reader semantics — even on 'is this a11y-OK?' or 'mach das barrierefrei'.
日本語の概要は準備中です。原文の説明を表示しています。
Use when optimizing AGENTS.md or copilot-instructions.md — deduplicates against .augment/ content, enforces line budgets, and focuses each file on its audience.
インストール方法を見るインストールする前に、エージェントに与えられる指示の中身を確認できます。
Use this skill when:
/docs-optimize to refactor AGENTS.md and copilot-instructions.md.augment/ (new skills, rules, guidelines) that may make content in these files redundantDo NOT use when:
Before changing anything, read and understand:
AGENTS.md — current content, line count, what's duplicated vs. unique..github/copilot-instructions.md — same analysis..augment/ — which skills, rules, and guidelines already cover topics from the files above.
3b. Scan the playbooks too, not only .augment/. A packages/<n>/AGENTS.md may
duplicate a playbook rather than a shipped rule, and dedup against .augment/ alone
misses it entirely — the content is not in .augment/ at all. Run
findRestatedSteps (src/scripts/derive_playbooks.ts) over each workspace file: a line
carrying a playbook's invokes id outside a link is a restatement to replace with a
pointer. The same id inside a link label is the shape the contract wants — see
agents-md-thin-root § Workspace files..augment/?Only after this analysis, proceed with optimization.
AGENTS.md — Project Entry Point for AI Agents| Property | Value |
|---|---|
| Audience | Augment Agent, other AI agents |
Can read .augment/? | ✅ Yes — can follow references |
| Size budget | ≤ 3,000 chars (package root; consumer template ≤ 2,500) — enforced by lint_agents_md.ts; see size-and-scope.md |
| Purpose | Project-specific setup, Docker, testing, quality tools |
What belongs here:
What does NOT belong here:
.augment/rules/ and .augment/guidelines/).augment/rules/architecture.md)../../../docs/guidelines/php/).augment/rules/scope-control.md).augment/rules/language-and-tone.md)app/Modules/README.md).github/copilot-instructions.md — Self-Contained for Copilot| Property | Value |
|---|---|
| Audience | GitHub Copilot (Code Review bot + Chat) |
Can read .augment/? | ❌ Code Review cannot, ✅ Chat can |
| Line budget | < 150 lines (ideal < 60); Copilot Code Review reads only the first 4,000 chars |
| Purpose | Coding standards, review rules, architecture constraints |
What belongs here:
What does NOT belong here:
.augment/rules/ ← Canonical for behavior rules
.augment/guidelines/ ← Canonical for coding conventions
.augment/skills/ ← Canonical for domain expertise
agents/ ← Canonical for project-specific docs
copilot-instructions.md must duplicate essential rules because Copilot Code Review
cannot read other files. But keep duplicated content:
AGENTS.md should never duplicate .augment/ content because Augment Agent can read
both. Instead, reference with a table:
| What | Where |
|---|---|
| PHP coding rules | `.augment/rules/php-coding.md` |
| Controller guidelines | `../../../docs/guidelines/php/controllers.md` |
| File | 🟢 Good | 🟡 Warning | 🔴 Over budget |
|---|---|---|---|
AGENTS.md | ≤ 2,800 chars | 2,801–3,000 chars | > 3,000 chars — lint_agents_md.ts fails (consumer template: warn 2,300 / fail 2,500) |
copilot-instructions.md | < 60 lines | 60–150 lines | > 150 lines, or key rules past the 4,000-char Copilot read window |
agents/ — Move project-specific details to dedicated files in agents/
and link from AGENTS.md (e.g., agents/reference/docs/database-setup.md, agents/reference/docs/testing.md).augment/, remove from AGENTS.md.augment/guidelines/Duplication is not the only way these files go wrong. They also lie about the project over time:
make start in the docs, but Makefile no
longer has that target.Before deduplicating, run three scans:
FORBIDDEN_IDENTIFIERS blocklist (see scripts/check_portability.ts)
plus any project names from agents/ module docs that don't match
the current project.composer.json / package.json / pyproject.toml / etc. and flag
any claim that no longer matches reality.make X, task X, composer X,
php artisan X, or npm X still resolves.Every hit from scan 1 is a 🔴 blocker: leaking another project's name into a consumer's own docs is the failure mode this skill exists to prevent. Fix or remove those BEFORE any dedup/condense work — there's no point deduplicating content that is about to be rewritten.
When the drift is severe (whole sections are wrong), recommend
/agents init to scaffold a clean replacement rather than
patching forever.
copilot-instructions.md ships a "Known False Positives" section that
tells Copilot Code Review not to flag agent-config path patterns as
broken. When optimizing, keep that section intact — never delete
it as "redundant" and never trim its bullets. The patterns it covers:
.augment/ rules / skills
(../docs/guidelines/foo.md, ../contexts/bar.md) — paths resolve
from the file's delivered location, not from the symlink in
.claude/rules/ etc. (per road-to-path-fixes.md Strategy A).path_prefix: triggers containing src/ —
literal match patterns, not file refs (per Modified Option 1,
P2.2)..claude/rules/, .cursor/rules/,
.clinerules/ — targets resolve into .augment/rules/.If the consumer project's copilot-instructions.md is missing the
section, add it during optimization using the canonical block
from .augment/templates/copilot-instructions.md. Surfaces include
/agents init and /agents optimize.
When optimizing either file, check:
.augment/rules/?.augment/guidelines/?.augment/ instead of duplicating?agents/ docs are valid?/agents optimizecopilot-config — Copilot behavior and PR review patternsagent-docs-writing — documentation hierarchyaugment-infrastructure.md — full .augment/ overviewまだレビューはありません。使ってみた感想をお寄せください。
概要と使いどころ
Use when reviewing UI for accessibility — WCAG 2.2 AA, keyboard nav, focus, ARIA, contrast, screen-reader semantics — even on 'is this a11y-OK?' or 'mach das barrierefrei'.
日本語の概要は準備中です。原文の説明を表示しています。
Use when defining or auditing the activation event — aha-moment selection, retention correlation, falsifiable definition. Triggers on 'what is our aha moment', 'redefine activation'.
日本語の概要は準備中です。原文の説明を表示しています。
Use when capturing an architectural decision — file naming, next ADR number, Status / Context / Decision / Consequences, index regen; fires even without saying 'ADR'.
日本語の概要は準備中です。原文の説明を表示しています。
Adversarial critique — devil's advocate, stress-test, honest teardown ('poke holes', 'be brutal', 'was hältst du davon'); explicit request only. Routine code or design review → code-review.
日本語の概要は準備中です。原文の説明を表示しています。
Use when reading, creating, or updating agent documentation, module docs, roadmaps, or AGENTS.md. Understands the full .augment/, agents/, and copilot-instructions structure.
日本語の概要は準備中です。原文の説明を表示しています。
Use for an adversarial red-team / blue-team / auditor review of an AI agent's CONFIG + behaviour (rules, skills, MCP, hooks, permissions) — attack-chain → defensive-gap list, not a code audit.
日本語の概要は準備中です。原文の説明を表示しています。