Skip to content
Back to skills

Everywhere Mod

ASecurity

Official developer guide, SDK reference, collectible hot-unload rules, extension recipes, and modding policy for building Everywhere mods (.NET 11 & Avalonia UI). Use when scaffolding, developing, packaging, testing, signing, publishing, or reviewing mods for Everywhere using Everywhere.Modding.Sdk, IMod/IModContext, ModChatPlugin, OpenSettingsAsync/IModSettingsRegistry, Avalonia UI/navigation, cross-mod dependencies, repository indexes, or checking Everywhere's Modding Policy and Acceptable ...

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 23, 2026
ai-agentsgobashtestinggitapisecurity

Works with

  • terminal
  • cli
  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned December 5, 2026

npx -y skills add Sylinko/skills --skill everywhere-mod --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Everywhere Mod?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Everywhere Mod
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sylinko-everywhere-mod/badge)](https://www.skillsdirectory.com/skills/sylinko-everywhere-mod)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: everywhere-mod
description: >-
  Official developer guide, SDK reference, collectible hot-unload rules, extension recipes, and modding policy for building Everywhere mods (.NET 11 & Avalonia UI).
  Use when scaffolding, developing, packaging, testing, signing, publishing, or reviewing mods for Everywhere using Everywhere.Modding.Sdk, IMod/IModContext, ModChatPlugin, OpenSettingsAsync/IModSettingsRegistry, Avalonia UI/navigation, cross-mod dependencies, repository indexes, or checking Everywhere's Modding Policy and Acceptable Use Guidelines.
license: Apache-2.0
metadata:
  author: Sylinko
  version: "1.0.0"
  repository: "https://github.com/Sylinko/Everywhere"
---

# Everywhere Mod Development Guide

**Everywhere** supports runtime-loaded, collectible `.NET 11` mods packaged with **`Everywhere.Modding.Sdk`**. Each mod loads into an isolated, collectible `AssemblyLoadContext` (`AssemblyOwner`), receives host services and lifecycle signals through `IMod` / `IModContext`, and supports hot enable, disable, update, rollback, and uninstall without restarting the application when resource reversal is clean (with `ModEngine` falling back cleanly to a restart prompt when complex integrations cannot immediately collect).

---

## Prerequisite: Enabling `Mod Creator` (`everywhere.creator`)

Everywhere ships a built-in developer mod **`Mod Creator`** (zh-Hans: **模组创作套件**, ID: `everywhere.creator`) that exposes the **`manage_mod_dev_host`** and **`manage_mod`** AI tools for host path discovery, isolated Watchdog-supervised `--dev-host` testing, hot-reload verification, and safe installation into the primary instance.

- **Opt-in by default (`EverywhereModDefaultEnabled=false`)**: Although `everywhere.creator` is bundled with Everywhere, it is **not installed or enabled by default**—it lives under **Mods → Discover** (模组 → 发现), **not** under **Mods → Installed** (已安装).
- **If `manage_mod_dev_host` or `manage_mod` is missing from your tool list**:
  1. **Do NOT improvise risky workarounds** (such as manually mutating `~/.everywhere` mod folders/state files or launching ad-hoc host processes to bypass `ModManager` / Dev Host).
  2. Instruct the user to open the Everywhere Main Window → **Mods** (`Puzzle` icon) → **Discover** tab → find **Mod Creator** (`everywhere.creator`) → click **Install** (and confirm it is enabled). If it is already installed yet the tools remain unavailable, ask the user to verify the plugin is enabled under **Custom Assistants → Tool Settings** for the active assistant and continue once loaded.
  3. Only fall back to manual `.zip` packaging (`dotnet build -c Release -t:EverywherePack`) + asking the user to import via **Mods → Import (`FileImport`) → Import `.zip` / Directory** when the user explicitly declines enabling `Mod Creator` or is developing outside Everywhere (e.g., in an external IDE or terminal).

---

## How to Load Reference Documents (Progressive Disclosure)

Keep context usage minimal by reading only the reference documents relevant to your current task.

1. **[Project SDK, Manifest & Repository Packaging](references/project-sdk-and-packaging.md)**
   - **Read first when setting up the environment, creating a mod project, configuring `.csproj` / `Everywhere.local.props`, or publishing packages/indexes.** Covers .NET 11 SDK terminal checks + `Creator` (`manage_mod_dev_host` & `manage_mod`), NuGet `<Project Sdk="Everywhere.Modding.Sdk/...">` vs. in-repo `<Import>`, bundled source generators (`I18N`, `Configuration`, `Mvvm`, `Avalonia`), `sylinko-nuget-feed` manual package alignment, MSBuild properties, `EverywhereStage`/`EverywherePack`, generated `mod.json`, and `Everywhere.Modding.Sdk` CLI (`check`, `keygen`, `build-index`).
2. **[Lifecycle, ModResource & Collectible Hot-Unload Rules](references/lifecycle-and-hot-unload.md)**
   - **Mandatory before writing `IMod`, event handlers, background tasks, caches, or UI code.** Covers `IMod`, `IModContext`, `ModResource`, `[RequiresMod]`, hot unload (`ModStopReason.Unload`) vs. exit (`ModStopReason.Exit`), `ModEngine`'s Avalonia `ContextIdle` sweep & GC retry loop, pragmatic hot-unload expectations (preferring hot unload where practical, without over-investing on host/Avalonia retention), leak-prevention checklist, and automated testing with `Everywhere.Modding.Testing.NUnit` (`[EverywhereModTest]` / `ModTestHost.RunAsync`).
3. **[Host Extension Points & End-to-End Recipes](references/extension-points-and-recipes.md)**
   - **Read when implementing real mod features.** End-to-end patterns grounded in Everywhere's reference mods: AI tools (`ModChatPlugin` & `IChatPluginManager`), persistent migrated settings (`context.OpenSettingsAsync` + `IModSettingsRegistry`), navigation pages & `.resx` localization (`MainViewModel.RegisterNavigationItem`, `LocaleManager`), consuming or designing extensible cross-mod APIs (`<EverywhereModDependency>`, reading target mod READMEs, and returning `IDisposable` handles), and advanced non-public host integration (reflection, `[UnsafeAccessor]`, `IgnoresAccessChecksTo`, and reversible `MonoMod.RuntimeDetour`) when public APIs do not suffice.
4. **[Mod Ecosystem & Acceptable Use Policy](references/mod-policy-and-guidelines.md)**
   - **Mandatory before publishing, reviewing, or declaring mod metadata.** Defines multi-licensing (`AGPL-3.0-only` host + Mod Interface Additional Permission, `Apache-2.0` SDK/Skills), brand and artwork boundaries (`TRADEMARK.md`), reserved `everywhere` / `*sylinko*` identifiers, security and content compliance requirements, and platform integrity boundaries (prohibiting modification, concealment, or circumvention of Account, Cloud Sync, Official Model Gateway, Mod Verification, or official repository/website/sponsorship links).

---

## Quick Orientation Cheat Sheet

### Minimal External Mod `.csproj` (`Everywhere.Modding.Sdk`)

```xml
<Project Sdk="Everywhere.Modding.Sdk/1.0.0">

  <PropertyGroup>
    <Version>1.0.0</Version>
    <EverywhereHostVersion>[1.0.0,)</EverywhereHostVersion>
    <EverywhereModId>alice.hello</EverywhereModId>
    <EverywhereModCategory>general</EverywhereModCategory>
    <EverywhereModEntryType>Alice.Hello.HelloMod</EverywhereModEntryType>
    <EverywhereModAuthor>Alice</EverywhereModAuthor>
    <EverywhereModLicense>Apache-2.0</EverywhereModLicense>
  </PropertyGroup>

  <ItemGroup>
    <EverywhereModLocalization Include="en">
      <Name>Hello Everywhere</Name>
      <Description>Adds a sample greeting tool to Everywhere.</Description>
      <Readme>README.md</Readme>
    </EverywhereModLocalization>
  </ItemGroup>

</Project>
```

Pair with a gitignored `Everywhere.local.props` pointing to a mod-enabled Everywhere installation (containing `mod-host.json`), and build the distributable `.zip` with:

```bash
dotnet build -c Release -t:EverywherePack
```

### Extension Surfaces at a Glance

| Goal | Host API / Entry | Reversal Registration |
| :--- | :--- | :--- |
| **AI Chat Tools** | Subclass `ModChatPlugin`, register via `IChatPluginManager.RegisterChatPlugin(...)` | `context.Register(...)` or `DisposeAsync` (use UI thread on `Unload`, skip dispatcher on `Exit`) |
| **Web Search Providers** | Implement `IWebSearchEngineProvider` (or subclass `ApiKeyWebSearchEngineProvider` / `OptionalApiKeyWebSearchEngineProvider`) + register via `IWebSearchEngineRegistry.RegisterProvider(...)` | Dispose handle before flushing `OpenSettingsAsync(...)` (`Dispatcher.UIThread.InvokeAsync` on `Unload`, direct await on `Exit`) |
| **Persistent Settings** | `await context.OpenSettingsAsync(...)` (`SettingsEngine<T>`) | Dispose & flush inside `IMod.DisposeAsync()` (`finally` block) for both `Unload` and `Exit` |
| **Mod Settings UI** | `IModSettingsRegistry.Register(context, () => settings.SettingsItems)` | Dispose in `IMod.DisposeAsync()` before saving final settings |
| **Sidebar Navigation Page** | `MainViewModel.RegisterNavigationItem(IMainViewNavigationTopLevelItem)` on `Dispatcher.UIThread` | Pass returned `IAsyncDisposable` to `context.Register(...)` |
| **Localization (`.resx`)** | `LocaleManager.RegisterProvider(assembly, () => new ResourceManagerLocaleResourceProvider(...))` | Pass returned `IDisposable` to `context.Register(...)` |
| **Cross-Mod Extensions** | Declare `<EverywhereModDependency>`, check the target mod's `README.md` for its public API | Pass returned `IDisposable` / `IAsyncDisposable` tokens to `context.Register(...)` |

### Mandatory Engineering and Policy Requirements

1. **Practice clean teardown (with collectible hot unload as an advanced goal)**: Always dispose UI subscriptions, tasks, timers, detours, and host registrations in `DisposeAsync` or `context.Register(...)`, avoid reflection on global `JsonSerializerOptions.Default`, and never block on `Dispatcher.UIThread` when `context.StopReason == ModStopReason.Exit`. Prefer full collectible hot unload when straightforward, without over-investing if host or Avalonia internals hold a stubborn root.
2. **Maintain platform integrity**: Mods must not modify, conceal, intercept, replace, or circumvent Everywhere's Account/Auth, Cloud Sync, Official Model Gateway, Mod Verification/Signing, or built-in official repository, website, attribution, and sponsorship links.
3. **Respect reserved identifiers**: Exact `everywhere`, prefixes `everywhere.` / `everywhere-` / `everywhere_`, and any identifier containing `sylinko` (in any position, case-insensitive) are reserved exclusively for official Sylinko mods.

Files in this skill

  • SKILL.md6.9 KB
  • references/extension-points-and-recipes.md8.9 KB
  • references/lifecycle-and-hot-unload.md10.5 KB
  • references/mod-policy-and-guidelines.md16.4 KB
  • references/project-sdk-and-packaging.md11.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.