Trigger Keywords Index
Complete mapping of keywords to skills.
Error Codes → Skills
| Error Code | Description | Route To |
| E0382 | Use of moved value | m01-ownership |
| E0597 | Lifetime too short | m01-ownership |
| E0506 | Cannot assign to borrowed | m01-ownership |
| E0507 | Cannot move out of borrowed | m01-ownership |
| E0515 | Return local reference | m01-ownership |
| E0716 | Temporary value dropped | m01-ownership |
| E0106 | Missing lifetime specifier | m01-ownership |
| E0596 | Cannot borrow as mutable | m03-mutability |
| E0499 | Multiple mutable borrows | m03-mutability |
| E0502 | Borrow conflict | m03-mutability |
| E0277 | Trait bound not satisfied | m04-zero-cost / m07-concurrency |
| E0308 | Type mismatch | m04-zero-cost |
| E0599 | No method found | m04-zero-cost |
| E0038 | Trait not object-safe | m04-zero-cost |
| E0433 | Cannot find crate/module | m11-ecosystem |
Keywords → Skills
Layer 1: Language Mechanics
| Keywords | Route To |
| ownership, borrow, lifetime, move, moved value | m01-ownership |
| Box, Rc, Arc, RefCell, Cell, smart pointer | m02-resource |
| mut, mutable, interior mutability | m03-mutability |
| generic, trait, inline, monomorphization | m04-zero-cost |
| type state, phantom, newtype, PhantomData | m05-type-driven |
| Result, Option, Error, panic, ?, anyhow, thiserror | m06-error-handling |
| Send, Sync, thread, async, await, channel, tokio | m07-concurrency |
| unsafe, FFI, extern, raw pointer, transmute | unsafe-checker |
Layer 2: Design Choices
| Keywords | Route To |
| domain model, DDD, business logic | m09-domain |
| performance, optimization, benchmark, profiling | m10-performance |
| crate, dependency, interop, ecosystem | m11-ecosystem |
| RAII, Drop, resource lifecycle | m12-lifecycle |
| domain error, retry, circuit breaker, recovery | m13-domain-error |
| mental model, how to think, learning Rust | m14-mental-model |
| anti-pattern, common mistake, pitfall, code smell | m15-anti-pattern |
Layer 3: Domain Constraints
| Keywords | Route To |
| fintech, trading, decimal, currency, payment | domain-fintech |
| web, HTTP, REST, axum, actix, handler | domain-web |
| CLI, command line, clap, terminal | domain-cli |
| kubernetes, docker, grpc, microservice | domain-cloud-native |
| embedded, no_std, microcontroller, firmware | domain-embedded |
| ML, tensor, model, inference, ndarray | domain-ml |
| IoT, sensor, mqtt, edge | domain-iot |
Chinese Keywords → Skills
| 中文关键词 | Route To |
| 所有权, 借用, 生命周期 | m01-ownership |
| 智能指针 | m02-resource |
| 可变性, 内部可变性 | m03-mutability |
| 泛型, 特征, 零成本抽象 | m04-zero-cost |
| 类型状态, 新类型 | m05-type-driven |
| 错误处理, 结果类型 | m06-error-handling |
| 并发, 异步, 线程安全 | m07-concurrency |
| 不安全, FFI | unsafe-checker |
| 领域模型 | m09-domain |
| 性能优化, 基准测试 | m10-performance |
| 生态系统, 依赖 | m11-ecosystem |
| 资源生命周期, RAII | m12-lifecycle |
| 领域错误 | m13-domain-error |
| 心智模型, 如何思考 | m14-mental-model |
| 反模式, 常见错误 | m15-anti-pattern |
Query Patterns → Actions
| Pattern | Action |
| "比较 X 和 Y" / "compare" / "vs" | Enable Negotiation Protocol |
| "最佳实践" / "best practice" | Enable Negotiation Protocol |
| Domain + Error (e.g., "交易系统 E0382") | Enable Negotiation Protocol |
| Single error code (e.g., "E0382") | Direct lookup, no negotiation |
| Single version query (e.g., "tokio 版本") | Direct lookup, no negotiation |
Priority Rules
When multiple skills match, use this priority:
- Error codes take highest priority (direct mapping)
- Domain keywords + error → load BOTH domain skill and error skill
- Comparison queries → enable negotiation, load multiple skills
- General keywords → route to most specific skill
Conflict Resolution
| Conflict | Resolution |
| unsafe in m11 vs unsafe-checker | unsafe-checker (more specific) |
| error in m06 vs m13 | m06 for general, m13 for domain-specific |
| RAII in m01 vs m12 | m12 for design, m01 for implementation |
Related Documents
Framework
Router
你可能感兴趣的文章
Agents Index
Domain Extension Index
Meta-Question Categories Index
Commands Index
Technical Subcategory Index (YYY)
Skills Index
Rust Compiler Error Code Index