coding-guidelines
Use when asking about Rust code style or best practices. Keywords: naming, formatting, comment, clippy, rustfmt, lint, code style, best practice, P.NAM, G.FMT,…
EXPERIMENTAL: Three-layer parallel meta-cognition analysis. Triggers on: /meta-parallel, 三层分析, parallel analysis, 并行元认知
$ npx -y skills add zhanghandong/rust-skills --skill meta-cognition-parallel --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/meta-cognition-parallelContext preview
The summary Claude sees to decide when to auto-load this skill.
EXPERIMENTAL: Three-layer parallel meta-cognition analysis. Triggers on: /meta-parallel, 三层分析, parallel analysis, 并行元认知
name: meta-cognition-parallel description: "EXPERIMENTAL: Three-layer parallel meta-cognition analysis. Triggers on: /meta-parallel, 三层分析, parallel analysis, 并行元认知" argument-hint: "<rust_question>"
> **Status:** Experimental | **Version:** 0.2.0 | **Last Updated:** 2025-01-27 > > This skill tests parallel three-layer cognitive analysis.
Instead of sequential analysis, this skill launches three parallel analyzers - one for each cognitive layer - then synthesizes their results.
User Question
│
▼
┌─────────────────────────────────────────────────────┐
│ meta-cognition-parallel │
│ (Coordinator) │
└─────────────────────────────────────────────────────┘
│
├─── Layer 1 ──► Language Mechanics ──► L1 Result
│
├─── Layer 2 ──► Design Choices ──► L2 Result
│ ├── Parallel (Agent Mode)
│ │ or Sequential (Inline)
└─── Layer 3 ──► Domain Constraints ──► L3 Result
│
▼
┌─────────────────────────────────────────────────────┐
│ Cross-Layer Synthesis │
│ (In main context with all results) │
└─────────────────────────────────────────────────────┘
│
▼
Domain-Correct Architectural Solution/meta-parallel <your Rust question>
**Example:**
/meta-parallel 我的交易系统报 E0382 错误,应该用 clone 吗?
**CRITICAL: Check agent file availability first to determine execution mode.**
Try to read layer analyzer files:
---
**When all layer analyzer files exist at `../../agents/`:**
Extract from `$ARGUMENTS`:
**CRITICAL: Launch all three Tasks in a SINGLE message to enable parallel execution.**
Read agent files, then launch in parallel:
Task(
subagent_type: "general-purpose",
run_in_background: true,
prompt: <content of ../../agents/layer1-analyzer.md>
+ "\n\n## User Query\n" + $ARGUMENTS
)
Task(
subagent_type: "general-purpose",
run_in_background: true,
prompt: <content of ../../agents/layer2-analyzer.md>
+ "\n\n## User Query\n" + $ARGUMENTS
)
Task(
subagent_type: "general-purpose",
run_in_background: true,
prompt: <content of ../../agents/layer3-analyzer.md>
+ "\n\n## User Query\n" + $ARGUMENTS
)Wait for all three agents to complete. Each returns structured analysis.
With all three results, perform synthesis per template below.
---
**When layer analyzer files are NOT available, execute analysis directly:**
Same as Agent Mode - extract question, code, and domain hints from `$ARGUMENTS`.
Analyze the Rust language mechanics involved:
## Layer 1: Language Mechanics **Error/Pattern Identified:** - Error code: E0XXX (if applicable) - Pattern: ownership/borrowing/lifetime/etc. **Root Cause:** [Explain why this error occurs in terms of Rust's ownership model] **Language-Level Solutions:** 1. [Solution 1]: description 2. [Solution 2]: description **Confidence:** HIGH | MEDIUM | LOW **Reasoning:** [Why this confidence level]
**Focus areas:**
Analyze the design patterns and trade-offs:
## Layer 2: Design Choices **Design Pattern Context:** - Current approach: [What pattern is being used] - Problem: [Why it conflicts with Rust's rules] **Design Alternatives:** | Pattern | Pros | Cons | When to Use | |---------|------|------|-------------| | Pattern A | ... | ... | ... | | Pattern B | ... | ... | ... | **Recommended Pattern:** [Which pattern fits best and why] **Confidence:** HIGH | MEDIUM | LOW **Reasoning:** [Why this confidence level]
**Focus areas:**
Analyze domain-specific requirements:
## Layer 3: Domain Constraints **Domain Identified:** [trading/fintech | web | CLI | embedded | etc.] **Domain-Specific Requirements:** - [ ] Performance: [requirements] - [ ] Safety: [requirements] - [ ] Concurrency: [requirements] - [ ] Auditability: [requirements] **Domain Best Practices:** 1. [Best practice 1] 2. [Best practice 2] **Constraints on Solution:** - MUST: [hard requirements] - SHOULD: [soft requirements] - AVOID: [anti-patterns for this domain] **Confidence:** HIGH | MEDIUM | LOW **Reasoning:** [Why this confidence level]
**Focus areas:**
Combine all three layers:
## Cross-Layer Synthesis ### Layer Results Summary | Layer | Key Finding | Confidence | |-------|-------------|------------| | L1 (Mechanics) | [Summary] | [Level] | | L2 (Design) | [Summary] | [Level] | | L3 (Domain) | [Summary] | [Level] | ### Cross-Layer Reasoning 1. **L3 → L2:** [How domain constraints affect design choice] 2. **L2 → L1:** [How design choice determines mechanism] 3. **L1 ← L3:** [Direct domain impact on language featur
AI-powered Rust development assistant with meta-cognition framework
Use when asking about Rust code style or best practices. Keywords: naming, formatting, comment, clippy, rustfmt, lint, code style, best practice, P.NAM, G.FMT,…
Internal support skill for actionbook MCP selectors used by Rust documentation research workflows. Use only when another rust-skills workflow explicitly…
Internal support skill for agent-browser CLI workflows used by rust-learner, docs-researcher, and crate-researcher. Use only when browser automation is…
Internal command support for dynamic Rust crate skill management. Use only when explicitly invoked by /sync-crate-skills, /clean-crate-skills, or…
Internal maintenance support for checking and fixing generated Rust skill documentation references. Use only when explicitly invoked by /fix-skill-docs.
Use when building CLI tools. Keywords: CLI, command line, terminal, clap, structopt, argument parsing, subcommand, interactive, TUI, ratatui, crossterm,…