AgentSkillsCN

sme-consultation

在实现功能、修复 Bug,或进行架构变更前,务必咨询 SME 代理。适用于 LSP 功能开发、GraphQL 校验、Lint 规则、VSCode 扩展、Salsa 查询、CLI 变更,或 Rust API 设计时。

SKILL.md
--- frontmatter
name: sme-consultation
description: Consult SME agents before implementing features, fixing bugs, or making architecture changes. Use when working on LSP features, GraphQL validation, lint rules, VSCode extension, Salsa queries, CLI changes, or Rust API design.
user-invocable: true

SME Agent Consultation

Before implementing features, fixing bugs, or making architecture changes, you MUST consult the relevant Subject Matter Expert agents in .claude/agents/.

Work Type to Agent Mapping

Work TypeRequired Agents
New LSP featureslsp.md, rust-analyzer.md, rust.md
GraphQL validation/lintinggraphql.md, apollo-rs.md
VSCode extension changesvscode-extension.md
CLI tool changesgraphql-cli.md
Salsa/incremental computationsalsa.md, rust-analyzer.md
Salsa debugging (hangs, cache issues)salsa.md
IDE UX featuresgraphiql.md, lsp.md
Apollo-specific patternsapollo-client.md, apollo-rs.md
Rust API designrust.md

How to Consult

  1. Identify the work type from the table above
  2. Read the relevant agent files in .claude/agents/
  3. Apply the guidance to your implementation
  4. Document what you learned (see below)

Use the Task tool with subagent_type=general-purpose for deep consultation when needed.

Documentation Requirements

In User Communications

When proposing or explaining a solution, mention which agents were consulted:

"I consulted the lsp.md and rust-analyzer.md agents for guidance on this feature. The LSP agent confirmed this follows the specification, and the rust-analyzer agent recommended using a Salsa query for incremental computation."

In PR Descriptions

Include a "Consulted SME Agents" section:

markdown
## Consulted SME Agents

- **lsp.md**: Confirmed `textDocument/definition` response format
- **rust-analyzer.md**: Recommended query-based architecture for goto definition
- **rust.md**: Advised on error handling patterns using `Result<Option<T>>`

In Issue Comments

Note agent consultations when providing analysis:

"After consulting the graphql.md agent, I can confirm this is expected behavior per section 5.8.3 of the GraphQL specification regarding fragment spread validation."

Why This Matters

  • Traceability: Users can understand reasoning behind decisions
  • Review Quality: Reviewers know which domain expertise was applied
  • Knowledge Transfer: Future sessions can see what guidance was relevant
  • Accountability: Ensures agents are actually being consulted

Available Agents

AgentDomain
graphql.mdGraphQL spec compliance, validation rules, type system
apollo-client.mdApollo Client patterns, caching, fragment colocation
rust-analyzer.mdQuery-based architecture, Salsa, incremental computation
salsa.mdSalsa framework, database design, snapshot isolation, concurrency
rust.mdIdiomatic Rust, ownership, error handling, API design
lsp.mdLSP specification, protocol messages, client compatibility
graphiql.mdIDE features, graphql-language-service, UX patterns
graphql-cli.mdCLI design, graphql-config, ecosystem tooling
vscode-extension.mdExtension development, activation, language client
apollo-rs.mdapollo-parser, apollo-compiler, error-tolerant parsing