[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6C55BXBJJWZVVQPY7JATPXS":3,"skill-same:01M6C55BXBJJWZVVQPY7JATPXS":83},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":17,"categories":18,"keywords":29,"publishedAt":46,"linkOnly":47,"markdownContent":48,"markdownBody":49,"frontMatter":50,"refName":62,"commitSha":63,"skillDirectory":64,"forksCount":65,"repositoryHtmlUrl":66,"repositoryHomepageUrl":13,"ownerHtmlUrl":67,"ownerBlogUrl":13,"ownerDescription":13,"updatedAt":68,"install":69,"resources":82},"01M6C55BXBJJWZVVQPY7JATPXS","design-patterns","RTK Rust 设计模式应用","Rust design patterns for RTK. Newtype, Builder, RAII, Trait Objects, State Machine. Applied to CLI filter modules. Use when designing new modules or refactoring existing ones.","面向 RTK 的 Rust 设计模式：Newtype、Builder、RAII、Trait 对象（Trait Objects）、状态机（State Machine），应用于 CLI 过滤模块。在设计新模块或重构现有模块时使用。","MDMAtk\u002FTormentNexus","MDMAtk","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F288684999?v=4","01M6C54H4AG0BYB3HTFA4C0CBJ",null,"01M6C54H8146YDG94N9KWXV521",13,"AGPL-3.0","https:\u002F\u002Fgithub.com\u002FMDMAtk\u002FTormentNexus\u002Fblob\u002Fmain\u002Fthird_party\u002Frtk\u002F.claude\u002Fskills\u002Fdesign-patterns\u002FSKILL.md",[19,24],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":25,"categoryName":26,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BSNPHVX9Y1H3B2ZX3V06RF","Rust 开发","SCENARIO","使用场景",[30,31,32,33,34,5,35,36,37,38,39,40,41,42,43,44,45],"design patterns","design","grep","builder","newtype","rtk","modules","use","read","refactoring","how","refactor","state","architecture","rust","cli","2026-11-10 10:12:30",false,"---\nname: design-patterns\ndescription: Rust design patterns for RTK. Newtype, Builder, RAII, Trait Objects, State Machine. Applied to CLI filter modules. Use when designing new modules or refactoring existing ones.\ntriggers:\n  - \"design pattern\"\n  - \"how to structure\"\n  - \"best pattern for\"\n  - \"refactor to pattern\"\nallowed-tools:\n  - Read\n  - Grep\n  - Glob\neffort: medium\ntags: [rust, design-patterns, architecture, newtype, builder, rtk]\n---\n\n# RTK Rust Design Patterns\n\nPatterns that apply to RTK's filter module architecture. Focused on CLI tool patterns, not web\u002Fservice patterns.\n\n## Pattern 1: Newtype (Type Safety)\n\nUse when: wrapping primitive types to prevent misuse (command names, paths, token counts).\n\n```rust\n\u002F\u002F Without Newtype — easy to mix up\nfn track(input_tokens: usize, output_tokens: usize) { ... }\ntrack(output_tokens, input_tokens);  \u002F\u002F Silent bug!\n\n\u002F\u002F With Newtype — compile error on swap\npub struct InputTokens(pub usize);\npub struct OutputTokens(pub usize);\nfn track(input: InputTokens, output: OutputTokens) { ... }\ntrack(OutputTokens(100), InputTokens(400));  \u002F\u002F Compile error ✅\n```\n\n```rust\n\u002F\u002F Practical RTK example: command name validation\npub struct CommandName(String);\nimpl CommandName {\n    pub fn new(s: &str) -> Result\u003CSelf> {\n        if s.contains(';') || s.contains('|') || s.contains('`') {\n            anyhow::bail!(\"Invalid command name: shell metacharacters\");\n        }\n        Ok(Self(s.to_string()))\n    }\n    pub fn as_str(&self) -> &str { &self.0 }\n}\n```\n\n## Pattern 2: Builder (Complex Configuration)\n\nUse when: a struct has 4+ optional fields, many with defaults.\n\n```rust\n#[derive(Default)]\npub struct FilterConfig {\n    max_lines: Option\u003Cusize>,\n    strip_ansi: bool,\n    show_warnings: bool,\n    truncate_at: Option\u003Cusize>,\n}\n\nimpl FilterConfig {\n    pub fn new() -> Self { Self::default() }\n    pub fn max_lines(mut self, n: usize) -> Self { self.max_lines = Some(n); self }\n    pub fn strip_ansi(mut self, v: bool) -> Self { self.strip_ansi = v; self }\n    pub fn show_warnings(mut self, v: bool) -> Self { self.show_warnings = v; self }\n}\n\n\u002F\u002F Usage — readable, no positional arg confusion\nlet config = FilterConfig::new()\n    .max_lines(50)\n    .strip_ansi(true)\n    .show_warnings(false);\n```\n\nWhen NOT to use Builder: if the struct has 1-3 fields with obvious meaning. Over-engineering for simple cases.\n\n## Pattern 3: State Machine (Parser\u002FFilter Flows)\n\nUse when: parsing multi-section output (test results, build output) where context changes behavior.\n\n```rust\n\u002F\u002F RTK example: pytest output parsing\n#[derive(Debug, PartialEq)]\nenum ParseState {\n    LookingForTests,\n    InTestOutput,\n    InFailureSummary,\n    Done,\n}\n\nfn parse_pytest(input: &str) -> String {\n    let mut state = ParseState::LookingForTests;\n    let mut failures = Vec::new();\n\n    for line in input.lines() {\n        match state {\n            ParseState::LookingForTests => {\n                if line.contains(\"FAILED\") || line.contains(\"ERROR\") {\n                    state = ParseState::InFailureSummary;\n                    failures.push(line);\n                }\n            }\n            ParseState::InFailureSummary => {\n                if line.starts_with(\"=====\") { state = ParseState::Done; }\n                else { failures.push(line); }\n            }\n            ParseState::Done => break,\n            _ => {}\n        }\n    }\n    failures.join(\"\\n\")\n}\n```\n\n## Pattern 4: Trait Object (Command Dispatch)\n\nUse when: different command families need the same interface. Avoids massive match arms.\n\n```rust\n\u002F\u002F Define a common interface for filters\npub trait OutputFilter {\n    fn filter(&self, input: &str) -> Result\u003CString>;\n    fn command_name(&self) -> &str;\n}\n\npub struct GitFilter;\npub struct CargoFilter;\n\nimpl OutputFilter for GitFilter {\n    fn filter(&self, input: &str) -> Result\u003CString> { filter_git(input) }\n    fn command_name(&self) -> &str { \"git\" }\n}\n\n\u002F\u002F RTK currently uses match-based dispatch in main.rs (simpler, no dynamic dispatch overhead)\n\u002F\u002F Trait objects are useful if filter registry becomes dynamic (e.g., TOML-loaded plugins)\n```\n\nNote: RTK's current `match` dispatch in `main.rs` is intentional — static dispatch, zero overhead. Only move to trait objects if the match arm count exceeds ~20 commands.\n\n## Pattern 5: RAII (Resource Management)\n\nUse when: managing resources that need cleanup (temp files, SQLite connections).\n\n```rust\n\u002F\u002F RTK tee.rs — RAII for temp output files\npub struct TeeFile {\n    path: PathBuf,\n}\n\nimpl TeeFile {\n    pub fn create(content: &str) -> Result\u003CSelf> {\n        let path = tee_path()?;\n        fs::write(&path, content)\n            .with_context(|| format!(\"Failed to write tee file: {}\", path.display()))?;\n        Ok(Self { path })\n    }\n\n    pub fn path(&self) -> &Path { &self.path }\n}\n\n\u002F\u002F No explicit cleanup needed — file persists intentionally (rotation handled separately)\n\u002F\u002F If cleanup were needed: impl Drop { fn drop(&mut self) { let _ = fs::remove_file(&self.path); } }\n```\n\n## Pattern 6: Strategy (Swappable Filter Logic)\n\nUse when: a command has multiple filtering modes (e.g., compact vs. verbose).\n\n```rust\npub enum FilterMode {\n    Compact,    \u002F\u002F Show only failures\u002Ferrors\n    Summary,    \u002F\u002F Show counts + top errors\n    Full,       \u002F\u002F Pass through unchanged\n}\n\npub fn apply_filter(input: &str, mode: FilterMode) -> String {\n    match mode {\n        FilterMode::Compact => filter_compact(input),\n        FilterMode::Summary => filter_summary(input),\n        FilterMode::Full => input.to_string(),\n    }\n}\n```\n\n## Pattern 7: Extension Trait (Add Methods to External Types)\n\nUse when: you need to add methods to types you don't own (like `&str` for RTK-specific parsing).\n\n```rust\npub trait RtkStrExt {\n    fn is_error_line(&self) -> bool;\n    fn is_warning_line(&self) -> bool;\n    fn token_count(&self) -> usize;\n}\n\nimpl RtkStrExt for str {\n    fn is_error_line(&self) -> bool {\n        self.starts_with(\"error\") || self.contains(\"[E\")\n    }\n    fn is_warning_line(&self) -> bool {\n        self.starts_with(\"warning\")\n    }\n    fn token_count(&self) -> usize {\n        self.split_whitespace().count()\n    }\n}\n\n\u002F\u002F Usage\nif line.is_error_line() { ... }\nlet tokens = output.token_count();\n```\n\n## RTK Pattern Selection Guide\n\n| Situation | Pattern | Avoid |\n|-----------|---------|-------|\n| New `*_cmd.rs` filter module | Standard module pattern (see CLAUDE.md) | Over-abstracting |\n| 4+ optional config fields | Builder | Struct literal |\n| Multi-phase output parsing | State Machine | Nested if\u002Felse |\n| Type-safe wrapper around string | Newtype | Raw `String` |\n| Adding methods to `&str` | Extension Trait | Free functions |\n| Resource with cleanup | RAII \u002F Drop | Manual cleanup |\n| Dynamic filter registry | Trait Object | Match sprawl |\n\n## Anti-Patterns in RTK Context\n\n```rust\n\u002F\u002F ❌ Generic over-engineering for one command\npub trait Filterable\u003CT: CommandArgs + Send + Sync + 'static> { ... }\n\n\u002F\u002F ✅ Just write the function\npub fn filter_git_log(input: &str) -> Result\u003CString> { ... }\n\n\u002F\u002F ❌ Singleton registry with global state\nstatic FILTER_REGISTRY: Mutex\u003CHashMap\u003CString, Box\u003Cdyn Filter>>> = ...;\n\n\u002F\u002F ✅ Match in main.rs — simple, zero overhead, easy to trace\n\n\u002F\u002F ❌ Async traits for \"future-proofing\"\n#[async_trait]\npub trait Filter { async fn apply(&self, input: &str) -> Result\u003CString>; }\n\n\u002F\u002F ✅ Synchronous — RTK is single-threaded by design\npub trait Filter { fn apply(&self, input: &str) -> Result\u003CString>; }\n```\n","# RTK Rust Design Patterns\n\nPatterns that apply to RTK's filter module architecture. Focused on CLI tool patterns, not web\u002Fservice patterns.\n\n## Pattern 1: Newtype (Type Safety)\n\nUse when: wrapping primitive types to prevent misuse (command names, paths, token counts).\n\n```rust\n\u002F\u002F Without Newtype — easy to mix up\nfn track(input_tokens: usize, output_tokens: usize) { ... }\ntrack(output_tokens, input_tokens);  \u002F\u002F Silent bug!\n\n\u002F\u002F With Newtype — compile error on swap\npub struct InputTokens(pub usize);\npub struct OutputTokens(pub usize);\nfn track(input: InputTokens, output: OutputTokens) { ... }\ntrack(OutputTokens(100), InputTokens(400));  \u002F\u002F Compile error ✅\n```\n\n```rust\n\u002F\u002F Practical RTK example: command name validation\npub struct CommandName(String);\nimpl CommandName {\n    pub fn new(s: &str) -> Result\u003CSelf> {\n        if s.contains(';') || s.contains('|') || s.contains('`') {\n            anyhow::bail!(\"Invalid command name: shell metacharacters\");\n        }\n        Ok(Self(s.to_string()))\n    }\n    pub fn as_str(&self) -> &str { &self.0 }\n}\n```\n\n## Pattern 2: Builder (Complex Configuration)\n\nUse when: a struct has 4+ optional fields, many with defaults.\n\n```rust\n#[derive(Default)]\npub struct FilterConfig {\n    max_lines: Option\u003Cusize>,\n    strip_ansi: bool,\n    show_warnings: bool,\n    truncate_at: Option\u003Cusize>,\n}\n\nimpl FilterConfig {\n    pub fn new() -> Self { Self::default() }\n    pub fn max_lines(mut self, n: usize) -> Self { self.max_lines = Some(n); self }\n    pub fn strip_ansi(mut self, v: bool) -> Self { self.strip_ansi = v; self }\n    pub fn show_warnings(mut self, v: bool) -> Self { self.show_warnings = v; self }\n}\n\n\u002F\u002F Usage — readable, no positional arg confusion\nlet config = FilterConfig::new()\n    .max_lines(50)\n    .strip_ansi(true)\n    .show_warnings(false);\n```\n\nWhen NOT to use Builder: if the struct has 1-3 fields with obvious meaning. Over-engineering for simple cases.\n\n## Pattern 3: State Machine (Parser\u002FFilter Flows)\n\nUse when: parsing multi-section output (test results, build output) where context changes behavior.\n\n```rust\n\u002F\u002F RTK example: pytest output parsing\n#[derive(Debug, PartialEq)]\nenum ParseState {\n    LookingForTests,\n    InTestOutput,\n    InFailureSummary,\n    Done,\n}\n\nfn parse_pytest(input: &str) -> String {\n    let mut state = ParseState::LookingForTests;\n    let mut failures = Vec::new();\n\n    for line in input.lines() {\n        match state {\n            ParseState::LookingForTests => {\n                if line.contains(\"FAILED\") || line.contains(\"ERROR\") {\n                    state = ParseState::InFailureSummary;\n                    failures.push(line);\n                }\n            }\n            ParseState::InFailureSummary => {\n                if line.starts_with(\"=====\") { state = ParseState::Done; }\n                else { failures.push(line); }\n            }\n            ParseState::Done => break,\n            _ => {}\n        }\n    }\n    failures.join(\"\\n\")\n}\n```\n\n## Pattern 4: Trait Object (Command Dispatch)\n\nUse when: different command families need the same interface. Avoids massive match arms.\n\n```rust\n\u002F\u002F Define a common interface for filters\npub trait OutputFilter {\n    fn filter(&self, input: &str) -> Result\u003CString>;\n    fn command_name(&self) -> &str;\n}\n\npub struct GitFilter;\npub struct CargoFilter;\n\nimpl OutputFilter for GitFilter {\n    fn filter(&self, input: &str) -> Result\u003CString> { filter_git(input) }\n    fn command_name(&self) -> &str { \"git\" }\n}\n\n\u002F\u002F RTK currently uses match-based dispatch in main.rs (simpler, no dynamic dispatch overhead)\n\u002F\u002F Trait objects are useful if filter registry becomes dynamic (e.g., TOML-loaded plugins)\n```\n\nNote: RTK's current `match` dispatch in `main.rs` is intentional — static dispatch, zero overhead. Only move to trait objects if the match arm count exceeds ~20 commands.\n\n## Pattern 5: RAII (Resource Management)\n\nUse when: managing resources that need cleanup (temp files, SQLite connections).\n\n```rust\n\u002F\u002F RTK tee.rs — RAII for temp output files\npub struct TeeFile {\n    path: PathBuf,\n}\n\nimpl TeeFile {\n    pub fn create(content: &str) -> Result\u003CSelf> {\n        let path = tee_path()?;\n        fs::write(&path, content)\n            .with_context(|| format!(\"Failed to write tee file: {}\", path.display()))?;\n        Ok(Self { path })\n    }\n\n    pub fn path(&self) -> &Path { &self.path }\n}\n\n\u002F\u002F No explicit cleanup needed — file persists intentionally (rotation handled separately)\n\u002F\u002F If cleanup were needed: impl Drop { fn drop(&mut self) { let _ = fs::remove_file(&self.path); } }\n```\n\n## Pattern 6: Strategy (Swappable Filter Logic)\n\nUse when: a command has multiple filtering modes (e.g., compact vs. verbose).\n\n```rust\npub enum FilterMode {\n    Compact,    \u002F\u002F Show only failures\u002Ferrors\n    Summary,    \u002F\u002F Show counts + top errors\n    Full,       \u002F\u002F Pass through unchanged\n}\n\npub fn apply_filter(input: &str, mode: FilterMode) -> String {\n    match mode {\n        FilterMode::Compact => filter_compact(input),\n        FilterMode::Summary => filter_summary(input),\n        FilterMode::Full => input.to_string(),\n    }\n}\n```\n\n## Pattern 7: Extension Trait (Add Methods to External Types)\n\nUse when: you need to add methods to types you don't own (like `&str` for RTK-specific parsing).\n\n```rust\npub trait RtkStrExt {\n    fn is_error_line(&self) -> bool;\n    fn is_warning_line(&self) -> bool;\n    fn token_count(&self) -> usize;\n}\n\nimpl RtkStrExt for str {\n    fn is_error_line(&self) -> bool {\n        self.starts_with(\"error\") || self.contains(\"[E\")\n    }\n    fn is_warning_line(&self) -> bool {\n        self.starts_with(\"warning\")\n    }\n    fn token_count(&self) -> usize {\n        self.split_whitespace().count()\n    }\n}\n\n\u002F\u002F Usage\nif line.is_error_line() { ... }\nlet tokens = output.token_count();\n```\n\n## RTK Pattern Selection Guide\n\n| Situation | Pattern | Avoid |\n|-----------|---------|-------|\n| New `*_cmd.rs` filter module | Standard module pattern (see CLAUDE.md) | Over-abstracting |\n| 4+ optional config fields | Builder | Struct literal |\n| Multi-phase output parsing | State Machine | Nested if\u002Felse |\n| Type-safe wrapper around string | Newtype | Raw `String` |\n| Adding methods to `&str` | Extension Trait | Free functions |\n| Resource with cleanup | RAII \u002F Drop | Manual cleanup |\n| Dynamic filter registry | Trait Object | Match sprawl |\n\n## Anti-Patterns in RTK Context\n\n```rust\n\u002F\u002F ❌ Generic over-engineering for one command\npub trait Filterable\u003CT: CommandArgs + Send + Sync + 'static> { ... }\n\n\u002F\u002F ✅ Just write the function\npub fn filter_git_log(input: &str) -> Result\u003CString> { ... }\n\n\u002F\u002F ❌ Singleton registry with global state\nstatic FILTER_REGISTRY: Mutex\u003CHashMap\u003CString, Box\u003Cdyn Filter>>> = ...;\n\n\u002F\u002F ✅ Match in main.rs — simple, zero overhead, easy to trace\n\n\u002F\u002F ❌ Async traits for \"future-proofing\"\n#[async_trait]\npub trait Filter { async fn apply(&self, input: &str) -> Result\u003CString>; }\n\n\u002F\u002F ✅ Synchronous — RTK is single-threaded by design\npub trait Filter { fn apply(&self, input: &str) -> Result\u003CString>; }\n```\n",{"name":5,"tags":51,"effort":52,"triggers":53,"description":7,"allowed-tools":58},[44,5,43,34,33,35],"medium",[54,55,56,57],"design pattern","how to structure","best pattern for","refactor to pattern",[59,60,61],"Read","Grep","Glob","main","6079b2fd99329bb8a099e7708b0567b93edf8206","third_party\u002Frtk\u002F.claude\u002Fskills\u002Fdesign-patterns",2,"https:\u002F\u002Fgithub.com\u002FMDMAtk\u002FTormentNexus","https:\u002F\u002Fgithub.com\u002FMDMAtk","2026-11-13 07:20:41",{"source":9,"skillName":5,"commands":70,"prompt":80,"zipAvailable":81},[71,74,77],{"tool":72,"command":73},"npx","npx skills add MDMAtk\u002FTormentNexus --skill design-patterns",{"tool":75,"command":76},"bunx","bunx skills add MDMAtk\u002FTormentNexus --skill design-patterns",{"tool":78,"command":79},"pnpm","pnpm dlx skills add MDMAtk\u002FTormentNexus --skill design-patterns","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMDMAtk\u002FTormentNexus\u002Fblob\u002Fmain\u002Fthird_party\u002Frtk\u002F.claude\u002Fskills\u002Fdesign-patterns\u002FSKILL.md",true,[],[84,114,135,155,178,193],{"skillNo":85,"name":86,"nameZh":87,"description":88,"descriptionZh":89,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":90,"categories":91,"keywords":94,"publishedAt":46},"01M6C5659TDGC363E5EWMQZJGZ","tdd-rust","Rust TDD 开发工作流","TDD workflow for RTK filter development. Red-Green-Refactor with Rust idioms. Real fixtures, token savings assertions, snapshot tests with insta. Auto-triggers on new filter implementation.","面向 RTK 过滤器开发的 TDD 工作流。采用符合 Rust 惯用法的红-绿-重构（Red-Green-Refactor）流程。使用真实测试夹具、token 节省断言，以及基于 insta 的快照测试。在实现新过滤器时自动触发。","https:\u002F\u002Fgithub.com\u002FMDMAtk\u002FTormentNexus\u002Fblob\u002Fmain\u002Fthird_party\u002Frtk\u002F.claude\u002Fskills\u002Ftdd-rust\u002FSKILL.md",[92,93],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},{"categoryNo":25,"categoryName":26,"taxonomyType":27,"taxonomyTypeDesc":28},[95,96,44,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113],"tdd rust","tdd","testing","implement","command","token-savings","snapshots","filters","red-green-refactor","test coverage","auto","fix","coverage","Bash","development","add command","write tests","test","workflow",{"skillNo":115,"name":116,"nameZh":117,"description":118,"descriptionZh":119,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":120,"categories":121,"keywords":128,"publishedAt":46},"01M6C562NZPX3J6W8F6P4KZMV1","ship","构建提交与发布自动化","Build, commit, push & version bump workflow - automates the complete release cycle","构建、提交、推送与版本升级工作流——自动化完整的发布周期。","https:\u002F\u002Fgithub.com\u002FMDMAtk\u002FTormentNexus\u002Fblob\u002Fmain\u002Fthird_party\u002Frtk\u002F.claude\u002Fskills\u002Fship\u002FSKILL.md",[122,125],{"categoryNo":123,"categoryName":124,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BQNXPY1AV6BSR5VKHDMWRH","部署与发布管理",{"categoryNo":126,"categoryName":127,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8C78XMS93X21V52649FP9VH","发布经理",[116,129,130,131,132,38,32,108,133,134,113],"push","version","edit","write","release","commit",{"skillNo":136,"name":137,"nameZh":138,"description":139,"descriptionZh":140,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":141,"categories":142,"keywords":149,"publishedAt":46},"01M6C55ZXSNWBB861V5GGYR775","security-guardian","RTK CLI 安全守卫","CLI security expert for RTK - command injection, shell escaping, hook security","面向 RTK 的 CLI 安全专家——涵盖命令注入、shell 转义与 hook 安全。","https:\u002F\u002Fgithub.com\u002FMDMAtk\u002FTormentNexus\u002Fblob\u002Fmain\u002Fthird_party\u002Frtk\u002F.claude\u002Fskills\u002Fsecurity-guardian\u002FSKILL.md",[143,146],{"categoryNo":144,"categoryName":145,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BR4MYFKGCC4WCWVJ50KJ2C","安全工程师",{"categoryNo":147,"categoryName":148,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BSJ8FPTACYEEYRWQRNFXKY","安全检测工程",[150,151,152,35,38,108,32,153,154,45,99],"security guardian","guardian","security","shell","injection",{"skillNo":156,"name":157,"nameZh":158,"description":159,"descriptionZh":160,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":161,"categories":162,"keywords":167,"publishedAt":46},"01M6C55XHCBK612DXDAD08GGE1","rtk-triage","RTK 完整分诊分析","Triage complet RTK : exécute issue-triage + pr-triage en parallèle, puis croise les données pour détecter doubles couvertures, trous sécurité, P0 sans PR, et conflits internes. Sauvegarde dans claudedocs\u002FRTK-YYYY-MM-DD.md. Args: \"en\"\u002F\"fr\" pour la langue (défaut: fr), \"save\" pour forcer la sauvegarde.","RTK 完整分诊：并行执行 issue-triage 与 pr-triage，随后交叉比对数据，检测重复覆盖、安全漏洞、无 PR 的 P0 问题及内部冲突。结果保存至 claudedocs\u002FRTK-YYYY-MM-DD.md。参数：\"en\"\u002F\"fr\" 指定语言（默认 fr），\"save\" 强制保存。","https:\u002F\u002Fgithub.com\u002FMDMAtk\u002FTormentNexus\u002Fblob\u002Fmain\u002Fthird_party\u002Frtk\u002F.claude\u002Fskills\u002Frtk-triage\u002FSKILL.md",[163,164],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},{"categoryNo":165,"categoryName":166,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8C2MZSDTE56BDKER3VPW2JM","工单与问题跟踪管理",[168,35,169,152,170,38,171,132,108,172,173,174,175,176,177],"rtk triage","triage","orchestration","cross-analysis","save","analysis","sans","dd","issues","pr",{"skillNo":179,"name":180,"nameZh":181,"description":182,"descriptionZh":183,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":184,"categories":185,"keywords":188,"publishedAt":46},"01M6C55V1RDCNFJ019HRA16ZHM","rtk-tdd","Rust TDD 测试驱动开发","Enforces TDD (Red-Green-Refactor) for Rust development. Auto-triggers on implementation, testing, refactoring, and bug fixing tasks. Provides Rust-idiomatic testing patterns with anyhow\u002Fthiserror, cfg(test), and Arrange-Act-Assert workflow.","为 Rust 开发强制推行 TDD（红-绿-重构）。在实现、测试、重构和缺陷修复任务中自动触发。提供符合 Rust 习惯的测试模式，涵盖 anyhow\u002Fthiserror、cfg(test) 以及 Arrange-Act-Assert 工作流。","https:\u002F\u002Fgithub.com\u002FMDMAtk\u002FTormentNexus\u002Fblob\u002Fmain\u002Fthird_party\u002Frtk\u002F.claude\u002Fskills\u002Frtk-tdd\u002FSKILL.md",[186,187],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},{"categoryNo":25,"categoryName":26,"taxonomyType":27,"taxonomyTypeDesc":28},[189,35,96,39,97,103,44,105,131,132,38,108,190,191,41,109,192,112,113],"rtk tdd","CFG","testing patterns","tasks",{"skillNo":194,"name":195,"nameZh":196,"description":197,"descriptionZh":198,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":199,"categories":200,"keywords":205,"publishedAt":46},"01M6C55RQ5QH5MBSYXMC8KF0WV","repo-recap","代码仓库回顾报告","Generate a comprehensive repo recap (PRs, issues, releases) for sharing with team. Pass \"en\" or \"fr\" as argument for language (default fr).","生成全面的代码仓库回顾报告（PR、issue、release），用于与团队分享。传入 \"en\" 或 \"fr\" 作为参数指定语言（默认为 fr）。","https:\u002F\u002Fgithub.com\u002FMDMAtk\u002FTormentNexus\u002Fblob\u002Fmain\u002Fthird_party\u002Frtk\u002F.claude\u002Fskills\u002Frepo-recap\u002FSKILL.md",[201,202],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},{"categoryNo":203,"categoryName":204,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BR5V701HCN066VEP7H4812","代码仓库协作管理",[206,207,208,108,32,176,209,210,211,38],"repo recap","recap","repo","team","sharing","generate"]