用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/PiLastDigit/TRIP-workflow --skill trip-compact命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | TRIP-compact |
| description | Compact ARCHI.md when it exceeds recommended size - smart compression without losing relevance |
| disable-model-invocation | true |
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
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: