CrestApps.AgentSkills
Copilot instructions13 starsChanged 10 months agoMITView on GitHub
ALWAYS reference these instructions first and fall back to searching only if needed. Use ASD-STE100 Simplified Technical English for all responses. CrestApps.AgentSkills contains shared AI agent skills and MCP tooling for .NET applications and Orchard Core projects. Tests: test/CrestApps.AgentSkills.Mcp.Tests/, test/CrestApps.AgentSkills.Mcp.OrchardCore.Tests/ Run builds and tests from the repository root: Note: Tests use xUnit v3 (xunit.v3). Test classes follow the pattern <Subject>Tests.cs with the sealed modifier. Each skill directory under src/CrestApps.AgentSkills/orchardcore/, src/CrestApps.AgentSkills/crestapps-orchardcore/, or src/CrestApps.AgentSkills/crestapps-core/ must contain a SKILL.md file with YAML front-matter…
In this repositoryOne other file it gives its agents.
- AGENTS.mdAGENTS.md
The file
Show its rules and text
We split this copilot-instructions.md into the rules it gives an agent
24 rules. About 0 are common, 12 are distinctive, and 12 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈12
Distinctive · estimate
This author's own choices. Worth a look.
12
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 5
Use ASD-STE100 Simplified Technical English for all responses.
- Distinctive: line 23
Not packable — purely a source container referenced by the other packages and plugin bundles
- Distinctive: line 31
No bundled skills — expects consumer to provide skill directory
- Distinctive: line 36
No runtime code — purely for local AI authoring
- Distinctive: line 48
Run builds and tests from the repository root:
- Very specific: line 77
namefield: Must exactly match the directory name (e.g., orchardcore-content-types) - Very specific: line 78
Front-matter: Must start with --- and contain closing ---
- Very specific: line 80
Description length: Keep description under the 1024 character limit
- Very specific: line 92
After editing any skill front matter, run a quick repository-wide search for unsafe descriptions, for example searching ^description: .*: …
- Distinctive: line 93
If a description truly requires YAML quoting to stay correct, keep it valid YAML first, but prefer rewording over quoting when possible to …
- Very specific: line 97
All recipe step JSON blocks must be wrapped in root recipe format: { "steps": [...] }
- Very specific: line 98
All C# classes in code samples must use the sealed modifier, except for View Models which must not be sealed because they are used for …
- Distinctive: line 100
Keep guidance concise, example-driven, and actionable
- Distinctive: line 101
Prefer ready-to-use patterns over abstract descriptions
- Distinctive: line 114
Search & Media: search-indexing, media, graphql
- Very specific: line 166
Keep .claude-plugin/marketplace.json aligned with .github/plugin/marketplace.json according to the current repo convention.
- Very specific: line 170
All package versions are centrally managed in Directory.Packages.props
- Very specific: line 181
Follow .editorconfig for formatting and naming rules
- Very specific: line 182
All classes must be sealed unless explicitly designed for inheritance
- Very specific: line 186
After completing work, clean up the code by removing any unused services injected through dependency injection, as well as any unused using …
- Distinctive: line 235
Create the skill directory under the correct source root:
- Very specific: line 239
Add SKILL.md with front-matter name matching the directory name exactly
- Distinctive: line 240
Run validation scripts and full build/test
- Distinctive: line 245
Prefer minimal, focused changes and keep documentation in sync with code updates
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CrestApps.AgentSkills Development Instructions
ALWAYS reference these instructions first and fall back to searching only if needed.
Use ASD-STE100 Simplified Technical English for all responses.
Project Overview
CrestApps.AgentSkills contains shared AI agent skills and MCP tooling for .NET applications and Orchard Core projects.
- Target Framework: .NET 10 (net10.0)
- SDK Version: .NET 10.0.100 (see
global.json) - Package Management: Central Package Management via
Directory.Packages.props - Skill source roots:
src/CrestApps.AgentSkills/orchardcore/- framework-only Orchard Core skillssrc/CrestApps.AgentSkills/crestapps-orchardcore/-CrestApps.OrchardCoremodule skillssrc/CrestApps.AgentSkills/crestapps-core/- directCrestApps.Coreskills
Four Source Projects
CrestApps.AgentSkills- Skill content container- Contains canonical skill source roots under
orchardcore/,crestapps-orchardcore/, andcrestapps-core/ - Not packable — purely a source container referenced by the other packages and plugin bundles
- Contains canonical skill source roots under
CrestApps.AgentSkills.Mcp- Generic MCP engine- Framework-agnostic skill parser and MCP provider
- Supports
.md(front-matter) and.yaml/.ymlskill formats - Key interfaces:
IAgentSkillFilesStore,IMcpPromptProvider,IMcpResourceProvider - Key implementations:
DefaultAgentSkillFilesStore,SkillPromptProvider,SkillResourceProvider - Key parsers:
SkillFrontMatterParser,SkillYamlParser,SkillFileParser - No bundled skills — expects consumer to provide skill directory
CrestApps.AgentSkills.OrchardCore- Dev-time skill distributor- Development dependency only (
IncludeBuildOutput=false,DevelopmentDependency=true) - Uses MSBuild
.targetsto copy bothorchardcore/andcrestapps-orchardcore/to solution root.agents/skills/on first build - No runtime code — purely for local AI authoring
- Development dependency only (
CrestApps.AgentSkills.Mcp.OrchardCore- Runtime MCP server for Orchard Core- Extends
CrestApps.AgentSkills.Mcpwith Orchard Core–specific convenience wrappers - Bundles both
orchardcore/andcrestapps-orchardcore/, packed underskills/and copied to the consuming app's build and publish output at.agents/skills/by abuildTransitivetargets file (notcontentFiles, which NuGet drops for transitive references) - Entry point:
OrchardCoreSkillMcpExtensions(AddOrchardCoreSkills,AddOrchardCoreAgentSkillServices) - Services registered as singletons for caching
- Extends
Tests: test/CrestApps.AgentSkills.Mcp.Tests/, test/CrestApps.AgentSkills.Mcp.OrchardCore.Tests/
Build & Test
Run builds and tests from the repository root:
# Build (treat warnings as errors, run analyzers)
dotnet build -c Release -warnaserror /p:TreatWarningsAsErrors=true /p:RunAnalyzers=true /p:NuGetAudit=false
# Run all tests
dotnet test -c Release --no-build --verbosity normal
# Run tests from a single project
dotnet test -c Release --no-build test/CrestApps.AgentSkills.Mcp.Tests/
# Run a specific test class
dotnet test -c Release --no-build --filter "FullyQualifiedName~SkillFrontMatterParserTests"
# Run a specific test method
dotnet test -c Release --no-build --filter "FullyQualifiedName~SkillFrontMatterParserTests.TryParse_ValidFrontMatter_ReturnsTrueAndExtractsFields"Note: Tests use xUnit v3 (xunit.v3). Test classes follow the pattern <Subject>Tests.cs with the sealed modifier.
Skill Validation
Each skill directory under src/CrestApps.AgentSkills/orchardcore/, src/CrestApps.AgentSkills/crestapps-orchardcore/, or src/CrestApps.AgentSkills/crestapps-core/ must contain a SKILL.md file with YAML front-matter (must include name and description).
Skill Requirements
- File name:
SKILL.md(uppercase, notskill.md) - Directory naming: lowercase, hyphenated, prefixed with
orchardcore-(e.g.,orchardcore-content-types) namefield: Must exactly match the directory name (e.g.,orchardcore-content-types)- Front-matter: Must start with
---and contain closing--- - References: Optional
references/subdirectory for additional.mdfiles (notexamples/) - Description length: Keep
descriptionunder the1024character limit
Front-Matter Safety Rules
- The
descriptionfield is intentionally kept as a plain single-line YAML scalar in this repository unless quoting is absolutely necessary. - Do not introduce raw
:inside an unquoteddescriptionvalue. Phrases likeStep 1: Build,Example: Foo,Client: SSE, orWorkflow: Publishcan breakskills-refYAML parsing. - Rewrite those phrases instead, for example:
Step 1 BuildExample FooMCP Client Connecting to External MCP ServersTwo Approaches Webhook vs. Protocol-Agnostic Relay
- Watch for namespaced configuration keys in descriptions as well. If mentioned in front matter, prefer forms that avoid YAML-like
key: valuetext. - After editing any skill front matter, run a quick repository-wide search for unsafe descriptions, for example searching
^description: .*: .*across all source roots undersrc/CrestApps.AgentSkills/**/SKILL.md. - If a description truly requires YAML quoting to stay correct, keep it valid YAML first, but prefer rewording over quoting when possible to stay consistent with the existing corpus and user preference.
Skill Documentation Conventions (from CONTRIBUTING.md)
- All recipe step JSON blocks must be wrapped in root recipe format:
{ "steps": [...] } - All C# classes in code samples must use the
sealedmodifier, except for View Models which must not besealedbecause they are used for model binding - Third-party module packages (non
OrchardCore.*) must be installed in the web/startup project - Keep guidance concise, example-driven, and actionable
- Prefer ready-to-use patterns over abstract descriptions
Skill Categories
Skills are organized by Orchard Core functional area:
- AI & MCP: ai, ai-chat, ai-chat-interactions, ai-mcp
- Content Model: content-types, content-parts, content-fields, content-items, content-queries, taxonomies
- Templating: theming, razor, liquid, shapes, placement, display-management
- Infrastructure: modules, features, setup, tenants, data-migrations, background-tasks, caching
- Recipes & Deployment: recipes, deployments, autoroute, site-settings
- Security: security, users-roles, openid
- UI & Navigation: navigation, menus, widgets, forms, admin
- Search & Media: search-indexing, media, graphql
- Communication: email, notifications, workflows
- Tooling: module-creator, theme-creator, tester
- Other: localization, seo, audit-trail
Local Validation Scripts
Bash:
for root in src/CrestApps.AgentSkills/orchardcore src/CrestApps.AgentSkills/crestapps-orchardcore src/CrestApps.AgentSkills/crestapps-core; do
[ -d "$root" ] || continue
for dir in "$root"/*/; do
[ -d "$dir" ] || continue
name=$(basename "$dir")
if [ ! -f "$dir/SKILL.md" ]; then echo "FAIL: $name missing SKILL.md"; continue; fi
if ! head -1 "$dir/SKILL.md" | grep -q "^---$"; then echo "FAIL: $name bad front-matter"; continue; fi
echo "OK: $name"
done
donePowerShell:
Get-ChildItem -Path "src\CrestApps.AgentSkills" -Directory | ForEach-Object {
Get-ChildItem -Path $_.FullName -Directory | ForEach-Object {
$skillFile = Join-Path $_.FullName "SKILL.md"
if (-not (Test-Path $skillFile)) { Write-Host "FAIL: $($_.FullName) missing SKILL.md" -ForegroundColor Red }
elseif ((Get-Content $skillFile -First 1) -ne "---") { Write-Host "FAIL: $($_.FullName) bad front-matter" -ForegroundColor Red }
else { Write-Host "OK: $($_.FullName)" -ForegroundColor Green }
}
}Useful validation habit after front-matter edits:
rg '^description: .*: .*' src/CrestApps.AgentSkills -g '*/SKILL.md'Packaging Notes
The solution is configured for preview packages by default (VersionSuffix=preview in Directory.Build.props).
For release builds, override the version (for example via CI) and publish with dotnet pack.
Plugin Bundle Publishing
- Plugin bundles are published from the canonical skill sources at
src/CrestApps.AgentSkills/orchardcore/,src/CrestApps.AgentSkills/crestapps-orchardcore/, andsrc/CrestApps.AgentSkills/crestapps-core/. - The workflow that refreshes the published plugin bundles and opens the automation PR is
.github/workflows/publish-plugin.yml. - That workflow:
- deletes and recreates
plugins/orchardcore/skills,plugins/crestapps-orchardcore/skills, andplugins/crestapps-core/skills - copies the latest skills from each matching source root into those folders
- increments changed plugin versions in
.github/plugin/marketplace.jsonand keeps.claude-plugin/marketplace.jsonaligned
- deletes and recreates
- The plugin version source of truth is not any
plugins/*/plugin.json; it is the matching plugin entry in.github/plugin/marketplace.json. - Keep
.claude-plugin/marketplace.jsonaligned with.github/plugin/marketplace.jsonaccording to the current repo convention.
Central Package Management
- All package versions are centrally managed in
Directory.Packages.props - Key dependencies:
ModelContextProtocol(0.8.0-preview.1) - MCP C# SDKYamlDotNet(16.3.0) - YAML parsingMicrosoft.Extensions.Logging.Abstractions(10.0.3) - Logging abstractionsxunit.v3(3.2.2) - Testing framework
Key Conventions
Code Style
- Follow
.editorconfigfor formatting and naming rules - All classes must be
sealedunless explicitly designed for inheritance - Use file-scoped namespaces
- Enable nullable reference types (
<Nullable>enable</Nullable>) - Prefix interfaces with
I(e.g.,IAgentSkillFilesStore) - After completing work, clean up the code by removing any unused services injected through dependency injection, as well as any unused
usingstatements
MCP Architecture Pattern
Services are registered as singletons with caching for performance:
IAgentSkillFilesStore- File system abstraction (implementation:DefaultAgentSkillFilesStore)IMcpPromptProvider- Skill body content → MCP prompts, cached after first call (implementation:SkillPromptProvider)IMcpResourceProvider- Skill files + references → MCP resources, cached after first call (implementation:SkillResourceProvider)
Parsers are static utility classes:
SkillFrontMatterParser- Extracts YAML from.mdfront-matterSkillYamlParser- Parses.yaml/.ymlfilesSkillFileParser- Unified parser that detects format and delegates
MCP Registration API
Generic (any .NET app), from CrestApps.AgentSkills.Mcp:
// Register services only (without attaching to an MCP server)
services.AddAgentSkillServices();
services.AddAgentSkillServices(options => options.Path = "/path/to/skills");
// Register services and attach prompts/resources to the MCP server builder
builder.AddAgentSkills();
builder.AddAgentSkills(options => options.Path = "/path/to/skills");Orchard Core–specific wrappers, from CrestApps.AgentSkills.Mcp.OrchardCore:
// Register services only
services.AddOrchardCoreAgentSkillServices();
// Register services and attach prompts/resources to the MCP server builder
builder.AddOrchardCoreSkills();Working with Skills
Warning: The CrestApps.AgentSkills.OrchardCore package always overwrites files in the .agents/ folder at the solution root. Treat generated files as read-only — modifications will be lost on the next build.
Warning: Never modify files under plugins/ (i.e., plugins/orchardcore/skills/, plugins/crestapps-orchardcore/skills/, plugins/crestapps-core/skills/). These are auto-generated by the Publish plugin bundles workflow (.github/workflows/publish-plugin.yml) after merging to main. Any manual edits will be overwritten. Always make skill changes in the canonical source roots under src/CrestApps.AgentSkills/ instead.
Adding a new skill:
- Open/confirm a "New Skill Request" issue first
- Create the skill directory under the correct source root:
src/CrestApps.AgentSkills/orchardcore/orchardcore-<skill-name>/for framework-only Orchard Core skillssrc/CrestApps.AgentSkills/crestapps-orchardcore/<skill-name>/forCrestApps.OrchardCoremodule skillssrc/CrestApps.AgentSkills/crestapps-core/<skill-name>/for directCrestApps.Coreskills
- Add
SKILL.mdwith front-matternamematching the directory name exactly - Run validation scripts and full build/test
- Submit PR linking the issue (e.g.,
Fix #123)
Coding Standards
- Prefer minimal, focused changes and keep documentation in sync with code updates
- Analysis level:
latest-Recommended(seeDirectory.Build.propsfor suppressed warnings) - Build acceleration enabled for Visual Studio (
AccelerateBuildsInVisualStudio=true)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

