blender-motion-state-inspection
AFaffaan-m/ECC314k近 7 天新增 4,125 个 star
Compact ARCHI.md when it exceeds recommended size - smart compression without losing relevance; --sync audits it against the codebase instead
You are now in compaction mode - intelligently reducing ARCHI.md size while preserving its value.
ARCHI.md should not exceed ~20k tokens. A bloated ARCHI:
Compact: @docs/ARCHI.md
If $ARGUMENTS contains --sync: run only the Sync Audit below, then stop. Otherwise run the Sync Audit first (a stale claim is bloat too), then Steps 1–6.
ARCHI.md is only useful while it is true. TRIP-3 verifies the sections each release touches; this audit covers the whole document and catches what accumulated in between.
Method — one section (##) at a time, cheapest check that settles each claim:
ls, grep -n, or a manifest lookup (package.json scripts, Cargo.toml, CMake targets…). Read a source file only when a claim describes a flow and a grep cannot settle it. Never read a file to confirm something ls already answered.section · claim · reality · proposed fix. Missing coverage counts too: a top-level directory or route module present in the tree but absent from ARCHI.Report the table (or "no drift found"), then use the AskUserQuestion tool:
docs/ARCHI-rules.md), "Let me pick" (user lists the rows to apply), "Report only" (stop here)In --sync mode, stop after applying. Otherwise continue to Step 1 with the corrected file.
First, measure the actual token count using the bundled script:
bash .claude/skills/TRIP-compact/count-tokens.sh docs/ARCHI.md
Then read the full ARCHI.md and evaluate:
If token count > 20,000, report the assessment to the user, then use the AskUserQuestion tool:
If token count <= 20,000, report to the user, then use the AskUserQuestion tool:
If "No" in either case, stop here.
Apply these strategies in order of priority:
Transform verbose patterns into dense ones:
Before (verbose):
## Authentication System
The authentication system in this project uses Supabase for managing user
authentication. When a user logs in, the system calls the Supabase auth API
to verify their credentials. After successful authentication, a session is
created and stored. The session token is then used for subsequent API calls
to authenticate the user. We also support role-based access control where
users can have either an ADMIN role or a USER role, which determines what
actions they can perform in the application.
After (dense):
## Authentication
**Provider**: Supabase Auth
**Flow**: Login → Supabase API → Session created → Token for subsequent calls
**RBAC**: `ADMIN` (full access) | `USER` (read-only library, settings)
code for paths, commands, typesKeep: What and Why Remove: How (implementation specifics)
Before:
The useTranscription hook manages the transcription state by using useState
for the segments array, useEffect to fetch data when videoId changes, and
useCallback for memoized handlers. It also implements error boundaries...
After:
`useTranscription`: Orchestrates transcription data fetching and state management
Before:
- `src/components/auth/LoginForm.tsx` - Login form component
- `src/components/auth/LogoutButton.tsx` - Logout button component
- `src/components/auth/RegisterForm.tsx` - Registration form component
- `src/components/auth/ForgotPassword.tsx` - Password reset component
- `src/components/auth/AuthProvider.tsx` - Auth context provider
After:
- `src/components/auth/` - Auth UI components (Login, Logout, Register, ForgotPassword, AuthProvider)
Instead of explaining the same pattern in multiple places:
See [Pattern Name](#pattern-name) for details.
NEVER compress or remove:
These are the backbone - compress everything else first.
After compaction, verify:
Run the script again on the compacted file:
bash .claude/skills/TRIP-compact/count-tokens.sh docs/ARCHI.md
Present the compaction results to the user, then use the AskUserQuestion tool:
If user identifies sections that need more detail:
If still over 15k tokens after smart compression:
--sync every few months, or the first time the agent guesses a path that ARCHI.md describes wronglyAFaffaan-m/ECC314k近 7 天新增 4,125 个 star
ANanthropics/skills203k近 7 天新增 3,333 个 star
HAharry0703/MoneyPrinterTurbo147k近 7 天新增 1,663 个 star
SHShubhamsaboo/awesome-llm-apps146k近 7 天新增 895 个 star
GAgarrytan/gstack143k近 7 天新增 636 个 star