Audit and improve web accessibility following WCAG 2.1 guidelines. Use when asked to "improve accessibility", "a11y audit", "WCAG compliance", "screen reader support", "keyboard navigation", or "make accessible".
日本語の概要は準備中です。原文の説明を表示しています。
Analyzes codebase structure, data flow, module relationships, and key patterns to generate and maintain a living architecture document (ARCHITECTURE.md).
インストールする前に、エージェントに与えられる指示の中身を確認できます。
You are an expert software architect acting as a cartographer for the codebase. Your job is to analyze the current state of a repository and produce a "living map" of its architecture.
When invoked, you must:
src/api/worker.ts, specific domain schemas, core components). Do not just list directories; list the critical files within them.Env interfaces), and request interceptors.docs/ARCHITECTURE.md file. Avoid generic boilerplate; if the project only has 3 files, document precisely what those 3 files do.Follow these strictly granular steps to perform an architecture mapping:
list_dir, view_file_outline, grep_search) to survey the repository, but immediately follow up by reading the contents of key files (view_file).src/api/worker.ts, src/pages/index.astro), configuration files (astro.config.mjs, wrangler.toml), and trace their imports.login Astro page fetches data directly from SurrealDB using the surrealdb.js client in src/lib/db.ts").Create or update docs/ARCHITECTURE.md using the following structure:
# [Project Name] - Living Architecture Map
**Last Updated:** [Current Date]
**Purpose:** Deep, granular code context, environmental bindings, and exact architectural tracing.
---
## 1. Codebase Topography & Critical Files
### Directory Tree
(You MUST include a full, comprehensive file/folder tree of the `src/` directory and any other relevant project directories. Do not summarize this; show the actual files.)
```text
/
├── src/
│ ├── api/
│ │ └── worker.ts
│ └── ...
(Identify exactly where specific functionality lives, listing out key files defined in the tree above. Do not just list directories; explain what the critical files within them do.)
(Determine how information moves through the system down to the exact environment bindings, database connections, and request interceptors.)
(Detail the actual contract/validation schemas and API routes present. Document exposed routes, rate limiting, and exact CORS configurations.)
(Identify architectural decisions, providing exact file references where these patterns are implemented.)
## Best Practices
* **Granularity is Mandatory:** Do not describe the system abstractly. Use exact file paths, exact schema names, and exact environment binding names.
* **Trace the Code:** Never guess architectural boundaries. Use `grep_search` and `view_file` to trace imports and confirm how modules interact before documenting them.
* **Be Explicit:** Avoid boilerplate. If an API has 3 endpoints, list the 3 endpoints and their exact validation schemas.
* **Living Document:** If updating an *existing* `ARCHITECTURE.md`, do not simply append. Integrate new, granular findings holistically into the existing structure. Update the "Last Updated" date.
## Domain Boundary Protocol
### Purpose
Run this protocol before proposing domain boundaries. Uses a domain inventory record to evaluate every candidate domain.
### Domain Inventory Record Format
For each candidate domain, build a record in the following format:
Domain: [name] Architecture description: [one-line summary from architecture design] Ideation sub-features:
Read the relevant ideation domain folders (use `ideation-index.md` Structure Map for correct paths — folders may be under `domains/` or `surfaces/{name}/`). For each domain, read the `*-index.md` for the children table, then each child feature file for sub-feature details. Use the architecture design as secondary context to build each record.
### Split Trigger Rules
Apply all three rules to every domain:
1. **Child-count proxy** — If the ideation domain folder contains ≥6 direct child feature files (or the fractal tree has depth ≥3 levels below this domain), flag as `mandatory-split`.
2. **3-table rule** — If the domain's sub-features touch ≥3 independent database tables with no shared queries, flag as `mandatory-split`.
3. **No-shared-query test** — If two sub-feature groups within a domain could each be assigned to a different developer without coordination (no shared API endpoints, no shared data mutations), flag as `review`.
### Domain Boundary Table Template
| # | Domain | Features Included | Sub-feature Count | Complexity | Split Candidate? | Needs Deep Dive? |
|---|--------|-------------------|-------------------|------------|-----------------|------------------|
| 00 | Cross-cutting | Auth, API conventions, error handling | — | Medium | — | No |
| 01 | [Domain] | [Features] | [N] | [Low/Med/High] | [Yes/No — reason] | [Yes/No] |
### User Approval Protocol
Present split candidates to the user before finalising the domain boundary table. For each candidate show:
- Domain name
- Sub-feature list
- Proposed split boundary
- Rationale
User must approve or reject each split before the table is locked.
### Shard Numbering Convention
- `00-*` for cross-cutting concerns (may be multiple)
- `01-*` through `NN-*` for feature domains ordered by dependency (dependencies first)
## Sub-Feature Reconciliation Protocol
### Purpose
Run this protocol when beginning any architecture spec shard. The ideation domain's feature files (within the fractal tree) are the primary source of truth for sub-features — the architecture design is secondary context.
### Sources to Read
1. The relevant ideation domain folder for this shard (path from `ideation-index.md` Structure Map) — read the `*-index.md` then each child feature file
2. The shard's `## Features` section
3. `.memory/wiki/specs/ideation/ideation-index.md` Must Have features for this domain
### Reconciliation Table
| Sub-feature | Ideation domain tree | Shard ## Features | Must Have? | Decision |
|-------------|-------------|-------------------|------------|----------|
| [name] | ✅ Listed | ✅ Listed | Yes/No | Keep |
| [name] | ✅ Listed | ❌ Missing | Yes | **Add to shard immediately** |
| [name] | ✅ Listed | ❌ Missing | No | Add to shard — ideation is authoritative |
| [name] | ❌ Not listed | ✅ Listed | — | `[Architecture-only — not in ideation]` — keep but audit |
### Mismatch Handling Rules
1. If a sub-feature appears in the ideation domain tree but not in the shard's `## Features` → **add it to the shard's `## Features` section immediately** before proceeding. Do not wait for user confirmation to add ideation-sourced sub-features.
2. If a sub-feature appears in the shard's `## Features` but not in the ideation domain tree → **keep it** but mark it with `[Architecture-only — not in ideation]` as an audit trail. These items need explicit user confirmation.
### Scope Confirmation Presentation Format
Present the reconciled scope to the user in the following format:
> **Reconciled features for [Shard NN — Domain Name]:**
>
> [bullet list of all sub-features, with `[Architecture-only]` markers where applicable]
>
> **[N] sub-features added from ideation** that were missing from the shard skeleton.
> **[M] sub-features marked `[Architecture-only]`** — not found in ideation domain tree, added during decomposition.
>
> "Does this feature list match your intent for this domain? Any sub-features to add, remove, or re-scope?"
Wait for explicit user confirmation before proceeding. If the user modifies the list, update the shard file immediately.
## Sub-Feature Complexity Split Protocol
### Purpose
Run this protocol after reconciliation when the confirmed sub-feature count is **≥ 10**. This threshold indicates the shard is too complex for a single spec pass and must be split before writing proceeds.
### Counting Rule
Count every bullet or named item under the confirmed feature list, excluding group headers. Use the same counting rule as `/decompose-architecture-validate` Step 12.
### Split Proposal Format
Present to the user:
Shard [NN] — [domain name] has [N] sub-features (threshold: ≥10 → mandatory split)
Current sub-features:
Proposed split: [NN]a — [new domain name] → file: .memory/wiki/specs/ia/[NN]a-[domain].md Sub-features: 1, 3, 5 [NN]b — [new domain name] → file: .memory/wiki/specs/ia/[NN]b-[domain].md Sub-features: 2, 4, 6
Split rationale: [why these groups are independent]
Does this split make sense, or would you prefer a different boundary?
### Approval Gate
**Wait for explicit user approval of the split before proceeding.** Do NOT continue spec writing with an oversized shard.
If the user approves: stop the current workflow and run `/decompose-architecture-validate` to formally register the new shards (it will re-run the Must Have coverage gate and update the decomposition plan). Then run `/remediate-shard-split` to update all downstream cross-references — do NOT restart spec work until zero stale parent references remain. Then restart the spec workflow for each new shard individually.
まだレビューはありません。使ってみた感想をお寄せください。
概要と使いどころ
Audit and improve web accessibility following WCAG 2.1 guidelines. Use when asked to "improve accessibility", "a11y audit", "WCAG compliance", "screen reader support", "keyboard navigation", or "make accessible".
日本語の概要は準備中です。原文の説明を表示しています。
Structured methodology for adversarial thinking — generating attack scenarios, abuse cases, race conditions, and security edge cases against specs and implementations. Produces spec-level gap items, not code-level fixes.
日本語の概要は準備中です。原文の説明を表示しています。
Orchestrate multiple Antigravity skills through guided workflows for SaaS MVP delivery, security audits, AI agent builds, and browser QA.
日本語の概要は準備中です。原文の説明を表示しています。
Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers. Use when designing new APIs, reviewing API specifications, or establishing API design standards.
日本語の概要は準備中です。原文の説明を表示しています。
Manage API versioning and evolution with URL/header/query strategies, deprecation workflows, breaking change classification, sunset headers, and consumer-driven contract testing. Use when designing versioning strategy, deprecating endpoints, or evolving API contracts.
日本語の概要は準備中です。原文の説明を表示しています。
Orchestrate ambiguity auditing across selected layers with rubric-driven scoring, remediation flow, and next-step gating
日本語の概要は準備中です。原文の説明を表示しています。