跳到正文
cccskills
免费在 GitHub 公开

dotnet-agent-harness-manifest

Skill manifest management for dotnet-agent-harness. Tracks skill dependencies, conflicts, version compatibility, and provides validation and resolution tools. Triggers on: skill manifest, dependency resolution, skill compatibility, version conflicts, build manifest, validate dependencies.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md6.1 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

dotnet-agent-harness-manifest

Skill manifest management for dotnet-agent-harness toolkit. Tracks dependencies between skills, version compatibility, and conflicts.

When to Use

Load this skill when:

  • Resolving skill dependencies before invocation
  • Validating skill compatibility
  • Building the skill manifest
  • Detecting version conflicts
  • Analyzing skill dependency graphs

Key Concepts

Manifest Structure

Each skill declares dependencies and conflicts in frontmatter:

depends_on:
  - dotnet-version-detection
  - dotnet-project-analysis
conflicts_with:
  - legacy-ef-core-patterns
version: '2.1.0'

Dependency Types

  1. Required (depends_on): Must be loaded before this skill
  2. Optional (optional): Loaded if available, skipped if missing
  3. Conflicts (conflicts_with): Cannot be used with these skills

Version Semantics

  • Follows semantic versioning (MAJOR.MINOR.PATCH)
  • Breaking changes bump MAJOR
  • New features bump MINOR
  • Bug fixes bump PATCH
  • Version ranges supported: ^1.0.0, ~1.2.0, >=1.0.0 <2.0.0

Workflow

  1. Inspect catalog metadata -- Run [dotnet-agent-harness:profile] for a catalog item or the whole catalog.
  2. Trace dependencies -- Run [dotnet-agent-harness:graph] to follow references between skills, subagents, personas, and commands.
  3. Run repository validation -- Use dotnet agent-harness validate before relying on new metadata changes.
  4. Check exported inventories -- Inspect .dotnet-agent-harness/exports/mcp/manifest.json and .dotnet-agent-harness/exports/mcp-report.json when you need the checked-in MCP bundle view.

Commands

Catalog Profile

/dotnet-agent-harness:profile <catalog-item-id> [--format text|json]

Shows item metadata, tags, references, and approximate size.

Dependency Graph

/dotnet-agent-harness:graph --item <catalog-item-id> --format mermaid

Generates a dependency visualization from catalog references.

Repository Validation

dotnet agent-harness validate

Runs repo validation checks before or after manifest-related changes.

Manifest Schema

There are two different manifest shapes in this repository:

  • .dotnet-agent-harness/metadata/skill-manifest.schema.json is the primary schema for authored toolkit metadata.
  • .dotnet-agent-harness/exports/mcp/manifest.json is the compact MCP export bundle manifest. It does not use the old per-skill object map shape.
  • .dotnet-agent-harness/exports/mcp-report.json is the richer export report with per-item prompt/resource listings and resolved references.

Current MCP bundle manifest example:

{
  "generatedAtUtc": "2026-03-06T11:51:41.7827192+00:00",
  "sourceOfTruth": "../../.rulesync",
  "repoRoot": "../..",
  "platform": "geminicli",
  "kind": "all",
  "promptCount": 47,
  "resourceCount": 240,
  "promptIndexPath": "./prompts/index.json",
  "resourceIndexPath": "./resources/index.json"
}

Dependency Resolution Algorithm

  1. Load target skill
  2. Collect dependencies (recursive, breadth-first)
  3. Detect cycles (fail fast on circular deps)
  4. Check conflicts (fail if conflict found)
  5. Topological sort (dependency order)
  6. Validate versions (ensure compatibility)

Example Usage

Basic Dependency Check

# Inspect one catalog item
dotnet agent-harness profile dotnet-efcore-patterns --format json

# Output:
# tags, references, source path, and token estimate

Dependency Visualization

# Graph the reachable references
dotnet agent-harness graph --item dotnet-advisor --depth 2 --format mermaid

# Output:
# Mermaid graph of related catalog items

Validate Repository Metadata

# Validate the current repository state
dotnet agent-harness validate

# Confirms repo metadata and authored content are internally consistent

Best Practices

  • Declare minimal dependencies: Only require what's essential
  • Use optional for enhancements: Features that improve but aren't required
  • Document conflicts: Explain why skills conflict in description
  • Version skills: Always include version for tracking
  • Test manifest builds: Run validation before committing

Integration with Advisor

The [skill:dotnet-advisor] uses the manifest to:

  • Route to appropriate skills based on dependencies
  • Warn about version mismatches
  • Suggest compatible alternatives
  • Build dependency chains for complex scenarios

References

  • [skill:dotnet-advisor] -- skill routing and delegation
  • [skill:dotnet-project-analysis] -- project context detection
  • [skill:dotnet-version-detection] -- TFM and SDK detection
  • .dotnet-agent-harness/metadata/skill-manifest.schema.json -- manifest JSON schema
  • .dotnet-agent-harness/exports/mcp/manifest.json -- checked-in MCP export manifest
  • .dotnet-agent-harness/exports/mcp-report.json -- checked-in MCP export report

Code Navigation (Serena MCP)

Primary approach: Use Serena symbol operations for efficient code navigation:

  1. Find definitions: serena_find_symbol instead of text search
  2. Understand structure: serena_get_symbols_overview for file organization
  3. Track references: serena_find_referencing_symbols for impact analysis
  4. Precise edits: serena_replace_symbol_body for clean modifications

When to use Serena vs traditional tools:

  • Use Serena: Navigation, refactoring, dependency analysis, precise edits
  • Use Read/Grep: Reading full files, pattern matching, simple text operations
  • Fallback: If Serena unavailable, traditional tools work fine

Example workflow:

# Instead of:
Read: src/Services/OrderService.cs
Grep: "public void ProcessOrder"

# Use:
serena_find_symbol: "OrderService/ProcessOrder"
serena_get_symbols_overview: "src/Services/OrderService.cs"

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Patterns and techniques for evaluating and improving AI agent outputs.

中文简介正在准备中。当前显示原文说明。

rudironsoni/Synaxis22026年3月17日 更新

Comprehensive AI prompt engineering safety review and improvement prompt. Analyzes prompts for safety, bias, security vulnerabilities, and effectiveness while providing detailed improvement recommendations.

中文简介正在准备中。当前显示原文说明。

rudironsoni/Synaxis22026年3月17日 更新

Use when user requests research requiring multiple sources, comprehensive analysis, or synthesis across topics - technical research, domain knowledge gathering, market analysis, or learning about complex subjects

中文简介正在准备中。当前显示原文说明。

rudironsoni/Synaxis22026年3月17日 更新

deep-wiki

免费

AI-powered wiki generation for code repositories with commands, agents, and skills

中文简介正在准备中。当前显示原文说明。

rudironsoni/Synaxis22026年3月17日 更新

Use when building .NET 10 or C# 14 applications; when using minimal APIs, modular monolith patterns, or feature folders; when implementing HTTP resilience, Options pattern, Channels, or validation; when seeing outdated patterns like old extension method syntax

中文简介正在准备中。当前显示原文说明。

rudironsoni/Synaxis22026年3月17日 更新

Implements accessible .NET UI. SemanticProperties, ARIA, AutomationPeer, testing per platform.

中文简介正在准备中。当前显示原文说明。

rudironsoni/Synaxis22026年3月17日 更新

查看 rudironsoni 的全部技能

报告此技能的问题