audit-config
Audit Antigravity project configuration and documentation for drift, staleness, and broken references. Use when user asks for 'config audit', 'docs audit',…
Generate or update a feature-organized CODEMAP.md for any codebase. Scans repos, detects frameworks, identifies features, traces full-stack flows (frontend routes → hooks → state → backend views → models → integrations), and produces a navigable reference with a directory table
$ npx -y skills add mikeprasad/aria-knowledge --skill codemap --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/codemapContext preview
The summary Claude sees to decide when to auto-load this skill.
Generate or update a feature-organized CODEMAP.md for any codebase. Scans repos, detects frameworks, identifies features, traces full-stack flows (frontend routes → hooks → state → backend views → models → integrations), and produces a navigable reference with a directory table
description: "Generate or update a feature-organized CODEMAP.md for any codebase. Scans repos, detects frameworks, identifies features, traces full-stack flows (frontend routes → hooks → state → backend views → models → integrations), and produces a navigable reference with a directory table for selective loading. Supports modes: create (full generation), inventory (quick index only), update (incremental refresh), section (rebuild one section). Trigger: '/codemap', '/codemap create', '/codemap inventory', '/codemap update', '/codemap section <name>'."
Systematically scan a codebase and produce a feature-organized CODEMAP.md. Works for any multi-repo or single-repo project, any framework. The output is optimized for AI-assisted development — a new session can load the directory (~50 lines) and selectively read only the sections relevant to its task.
Read `~/.gemini/antigravity/aria-knowledge.local.md` and extract `knowledge_folder`. If the file doesn't exist, the skill still works — `knowledge_folder` is only needed for the knowledge extraction offer in Step 5.
**Parse the mode from arguments:**
| Argument | Mode | What it does | |----------|------|-------------| | (none) | Auto | If CODEMAP.md exists → prompt: "update or recreate?" Otherwise → `create` | | `create` | Create | Full generation from scratch (Steps 1-8) | | `inventory` | Inventory | Steps 1-2 only — detect + index, report to user, no file written | | `update` | Update | Read existing CODEMAP.md, detect changes, refresh affected sections (Step 6) | | `section <name>` | Section | Rebuild one specific section in an existing CODEMAP.md (Step 7) |
**Locate the project root:**
**Locate or create CODEMAP.md:**
For `inventory` mode, skip to Step 1 and stop after Step 2. For `update` mode, verify CODEMAP.md exists. If it does, skip to Step 6. If not, tell the user: "No CODEMAP.md found — switching to create mode." and proceed with `create`. For `section` mode, verify CODEMAP.md exists. If it does, skip to Step 7. If not, same fallback as update. For `create` mode, proceed through Steps 1-5.
---
Scan the project root for framework indicators:
**Backend detection:**
**Frontend detection:**
**Repo structure detection:**
**Present detection results to user:**
## Project Detection Root: /path/to/your-project Structure: Multi-repo (2 repos) | Repo | Framework | Version | Language | |------|-----------|---------|----------| | frontend/ | Next.js (App Router) | 13.x | TypeScript | | backend/ | Django + DRF | 4.2.x | Python | Confirm or correct?
User confirms or corrects. Store the confirmed detection for subsequent steps.
---
For each confirmed repo, scan for key file categories using framework-aware patterns.
| Category | How to find | What to record | |----------|-------------|----------------| | **Apps** | Directories with `models/` or `models.py` + `views/` or `views.py` | App name, whether it has urls.py, admin.py | | **Models** | `*/models/*.py` and `*/models.py` (exclude `__init__.py`) | Model class names via `^class \w+\(` grep | | **Views** | `*/views/*.py` and `*/views.py` | View function/class names | | **URLs** | `*/urls.py` + root `urls.py` | URL patterns, include() targets | | **Config** | `settings.py`, `.env*`, `requirements.txt` | Framework version, installed apps, integrations | | **Middleware** | `MIDDLEWARE` in settings.py, `*/middlewares/` | Custom middleware files | | **Cron** | `CRONJOBS` in settings.py, `*/cron/*.py` | Cron job entries | | **Utils** | `*/utils/*.py`, `*/utils.py` | Utility module names |
| Category | How to find | What to record | |----------|-------------|----------------| | **Pages/Routes** | `app/**/page.tsx` or `pages/**/*.tsx` | Route paths (derive from directory structure) | | **Components** | `components/**/*.tsx` | Component directories and key files | | **Hooks** | `hooks/*.ts` or `hooks/**/*.ts` | Hook names (extract from filenames) | | **State** | `redux/`, `store/`, `context/` | Slice names, store shape | | **API layer** | Files containing `createApi`, `apiSlice`, `fetch(` | API definition files | | **Config** | `next.config.*`, `tsconfig.json`, `tailwind.config.*` | Key config values | | **Middleware** | `middleware.ts` | What it does (read first 20 lines) | | **Models/Types** | `models/`, `types/`, `interfaces/` | Type definition files |
Apply analogous patterns:
Group discovered apps into tiers:
Agent Memory · Context Engineering · Planning & Reasoning · Human-in-the-Loop Governance ARIA is the missing infrastructure layer for production AI coding agents: persistent memory that survives context compaction, deliberate context engineering that loads
Audit Antigravity project configuration and documentation for drift, staleness, and broken references. Use when user asks for 'config audit', 'docs audit',…
Scan Antigravity conversation transcript + artifact directory for extractable knowledge. Use when user asks for 'knowledge audit', 'audit knowledge', 'check…
Save the current Antigravity transcript to the knowledge intake on demand. Use when user says '/snapshot', 'snapshot the session', 'save this conversation',…
Morning product-management review across all your projects. Use when the user runs /aria-assist, asks for a morning review / daily PM digest / "what should I…
Research a question, check existing knowledge first, draft a knowledge doc from the answer, and save directly to the appropriate category. Use when user says…
Batch-review personal knowledge for promotion to team-shared project knowledge. Walks insights/decisions/approaches/rules and IDEAS-BACKLOG.md entries,…