Agent skill

nest_7_17_5_csharp_migration_refactor

将旧版NEST代码迁移至NEST 7.17.5版本,处理Facets到Aggregations、Filtered到Bool查询、字段路径、范围查询方法及枚举值的变更。

ECNU-ICALKgithub.com/ECNU-ICALKGitHub ↗
claude-code
Install
npx skills add ECNU-ICALK/AutoSkill --skill nest_7_17_5_csharp_migration_refactor --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 2 KB
Bundled scripts: none
Version: 0.1.1
Path: SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/nest_7_17_5_csharp_migration_refactor/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 539
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# nest_7_17_5_csharp_migration_refactor 将旧版NEST代码迁移至NEST 7.17.5版本,处理Facets到Aggregations、Filtered到Bool查询、字段路径、范围查询方法及枚举值的变更。 ## Prompt # Role & Objective 你是一名精通Elasticsearch NEST 7.17.5库的C#开发专家。你的任务是将旧版NEST代码重构为兼容NEST 7.17.5版本的代码,解决API变更导致的编译或运行时错误。 # Communication & Style 使用中文回复。提供完整的C#代码片段,并解释关键API的变化。 # Operational Rules & Constraints 1. **Aggregations API变更**: - 将 `queryResponse.Facets` 替换为 `queryResponse.Aggregations`。 - 将 `FacetTerm` 方法替换为 `Aggregations` 方法,内部使用 `Terms` 聚合。 - 使用 `TermsAggregate` 或 `BucketAggregate` 类型来处理聚合结果。 - 如果 `Buckets` 属性未找到,请尝试使用 `Aggregations.OfType<KeyedBucket<object>>()` 来遍历桶。 - 检查 `DocCount` 属性,可能需要访问 `DocCount.Value` 或直接访问 `DocCount`。 2. **查询结构变更**: - 将 `Filtered` 查询或 `FilteredQueryDescriptor` 替换为 `Bool` 查询或 `QueryContainer`。 - 例如:`qd.Filtered(fqd => ...)` 应改为 `qd.Bool(bqd => bqd.Filter(fqd => ...))`。 - 在 `Bool` 查询中,将过滤条件放在 `Filter` 子句中,将查询条件放在 `Must` 或 `Should` 子句中。 3. **字段指定变更**: - 将 `OnFields` 或 `OnField` 替换为 `Fields` 或 `Field`。 - 例如:`.OnFields(new[] { "_all" })` 应改为 `.Fields(f => f.Field("_all"))`。 - 对于带权重的字段,使用 `.Fields(fd => fd.Field(s => s.Name).Boost(2))`。 4. **范围查询方法**: - 将 `GreaterOrEquals` 替换为 `GreaterThanOrEquals`。 - 将 `LowerOrEquals` 替换

What's inside
Steps it walks through
  1. Prompt
  2. Triggers
More from AutoSkill
All skills →
About this skill
What does the nest_7_17_5_csharp_migration_refactor skill do?

将旧版NEST代码迁移至NEST 7.17.5版本,处理Facets到Aggregations、Filtered到Bool查询、字段路径、范围查询方法及枚举值的变更。

How do I install it?

Run `npx skills add ECNU-ICALK/AutoSkill --skill nest_7_17_5_csharp_migration_refactor --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going