vite-patterns
Screenshots
Installation
Review the source and dependencies with a prompt.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "vite-patterns" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-075a8432fb78f6d2f8ba27f1129079a2d5759453bfeb557000d9989e6fdaa156. Verify the upstream source and version against https://github.com/affaan-m/ECC before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Download permission for this version is unverified or restricted.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Vite patterns: covers configuration, plugins, hot module replacement (HMR), environment variables, proxy settings, server-side rendering (SSR), library mode, dependency pre-bundling, and build optimizations. Activated when working with vite.config.ts, Vite plugins, or Vite-based projects.
Introduction source: third_party · affaan-m · 0.0.1 Reference
SkillPi interpretation
- Tasks
- Vite build tool patterns including config, plugins, HMR, env variables, proxy setup, SSR, library mode, dependency pre-bundling, and build optimization. Activate when working with vite.config.ts, Vite plugins, or Vite-based projects.
- Audience
- Configuring `vite.config.ts` or `vite.config.js` Setting up environment variables or `.env` files Configuring dev server proxy for API backends Optimizing build output (chunks, minification, assets) Publishing libraries with `build.lib` Troubleshooting dependency pre-bundling or CJS/ESM interop Debugging HMR, dev server, or build errors Choosing or ordering Vite plugins
- Inputs and outputs
- Not specified in the source documentation.
- Software, accounts and paid services
- Not specified in the source documentation.
- Limits and differences
- Not specified in the source documentation.
- Testing
- Not tested
Browse files
A verified file list is not available on Skillπ yet.
Browse files at the source ↗Frontmatter
name: vite-patterns
description: Vite build tool patterns including config, plugins, HMR, env variables, proxy setup, SSR, library mode, dependency pre-bundling, and build optimization. Activate when working with vite.config.ts, Vite plugins, or Vite-based projects.
metadata:
origin: ECCVite Patterns
Build tool and dev server patterns for Vite 8+ projects. Covers configuration, environment variables, proxy setup, library mode, dependency pre-bundling, and common production pitfalls.
When to Use
- Configuring
vite.config.tsorvite.config.js - Setting up environment variables or
.envfiles - Configuring dev server proxy for API backends
- Optimizing build output (chunks, minification, assets)
- Publishing libraries with
build.lib - Troubleshooting dependency pre-bundling or CJS/ESM interop
- Debugging HMR, dev server, or build errors
- Choosing or ordering Vite plugins
How It Works
- Dev mode serves source files as native ESM — no bundling. Transforms happen on-demand per module request, which is why cold starts are fast and HMR is precise.
- Build mode uses Rolldown (v7+) or Rollup (v5–v6) to bundle the app for production with tree-shaking, code-splitting, and Oxc-based minification.
- Dependency pre-bundling converts CJS/UMD deps to ESM once via esbuild and caches the result under
node_modules/.vite, so subsequent starts skip the work. - Plugins share a unified interface across dev and build — the same plugin object works for both the dev server's on-demand transforms and the production pipeline.
- Environment variables are statically inlined at build time.
VITE_-prefixed vars become public constants in the bundle; everything unprefixed is invisible to client code.
Examples
Config Structure
Basic Config
// vite.config.ts
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
export default defineConfig({
plugins: [react()],
resolve: {
alias: { '@': new URL('./src', import.meta.url).pathname },
},
})
Conditional Config
// vite.config.ts
import { defineConfig, loadEnv } from 'vite'
import react from '@vitejs/plugin-react'
export default defineConfig(({ command, mode }) => {
const env = loadEnv(mode, process.cwd()) // VITE_ prefixed only (safe)
return {
plugins: [react()],
server: command === 'serve' ? { port: 3000 } : undefined,
define: {
__API_URL__: JSON.stringify(env.VITE_API_URL),
},
}
})
Key Config Options
| Key | Default | Description |
|---|---|---|
root |
'.' |
Project root (where index.html lives) |
base |
'/' |
Public base path for deployed assets |
envPrefix |
'VITE_' |
Prefix for client-exposed env vars |
build.outDir |
'dist' |
Output directory |
build.minify |
'oxc' |
Minifier ('oxc', 'terser', or false) |
build.sourcemap |
false |
true, 'inline', or 'hidden' |
Plugins
Essential Plugins
Most plugin needs are covered by a handful of well-maintained packages. Reach for these before writing your own.
| Plugin | Purpose | When to use |
|---|---|---|
@vitejs/plugin-react-swc |
React HMR + Fast Refresh via SWC | Default for React apps (faster than Babel variant) |
@vitejs/plugin-react |
React HMR + Fast Refresh via Babel | Only if you need Babel plugins (emotion, MobX decorators) |
@vitejs/plugin-vue |
Vue 3 SFC support | Vue apps |
vite-plugin-checker |
Runs tsc + ESLint in worker thread with HMR overlay |
Any TypeScript app — Vite does NOT type-check during vite build |
vite-tsconfig-paths |
Honors tsconfig.json paths aliases |
Any time you already have aliases in tsconfig.json |
vite-plugin-dts |
Emits .d.ts files in library mode |
Publishing TypeScript libraries |
vite-plugin-svgr |
Imports SVGs as React components | React apps using SVGs as components |
rollup-plugin-visualizer |
Bundle treemap/sunburst report | Periodic bundle size audits (use enforce: 'post') |
vite-plugin-pwa |
Zero-config PWA + Workbox | Offline-capable apps |
Critical callout: vite build transpiles but does NOT type-check. Type errors silently ship to production unless you add vite-plugin-checker or run tsc --noEmit in CI.
Authoring Custom Plugins
Authoring is rare — most needs are covered by existing plugins. When you do need one, start inline in vite.config.ts and only extract if reused.
// vite.config.ts — minimal inline plugin
function myPlugin(): Plugin {
return {
name: 'my-plugin', // required, must be unique
enforce: 'pre', // 'pre' | 'post' (optional)
apply: 'build', // 'build' | 'serve' (optional)
transform(code, id) {
if (!id.endsWith('.custom')) return
return { code: transformCustom(code), map: null }
},
}
}
Key hooks: transform (modify source), resolveId + load (virtual modules), transformIndexHtml (inject into HTML), configureServer (add dev middleware), hotUpdate (custom HMR — replaces deprecated handleHotUpdate in v7+).
Virtual modules use the \0 prefix convention — resolveId returns '\0virtual:my-id' so other plugins skip it. User code imports 'virtual:my-id'.
For full plugin API, see vite.dev/guide/api-plugin. Use vite-plugin-inspect during development to debug the transform pipeline.
HMR API
Framework plugins (@vitejs/plugin-react, @vitejs/plugin-vue, etc.) handle HMR automatically. Reach for import.meta.hot directly only when building custom state stores, dev tools, or framework-agnostic utilities that need to persist state across updates.
// src/store.ts — manual HMR for a vanilla module
if (import.meta.hot) {
// Persist state across updates (must MUTATE, never reassign .data)
import.meta.hot.data.count = import.meta.hot.data.count ?? 0
// Cleanup side effects before module is replaced
import.meta.hot.dispose((data) => clearInterval(data.intervalId))
// Accept this module's own updates
import.meta.hot.accept()
}
All import.meta.hot code is tree-shaken out of production builds — no guard removal needed.
Environment Variables
Vite loads .env, .env.local, .env.[mode], and .env.[mode].local in that order (later overrides earlier); *.local files are gitignored and meant for local secrets.
Client-Side Access
Only VITE_-prefixed vars are exposed to client code:
import.meta.env.VITE_API_URL // string
import.meta.env.MODE // 'development' | 'production' | custom
import.meta.env.BASE_URL // base config value
import.meta.env.DEV // boolean
import.meta.env.PROD // boolean
import.meta.env.SSR // boolean
Using Env in Config
// vite.config.ts
import { defineConfig, loadEnv } from 'vite'
export default defineConfig(({ mode }) => {
const env = loadEnv(mode, process.cwd()) // VITE_ prefixed only (safe)
return {
define: {
__API_URL__: JSON.stringify(env.VITE_API_URL),
},
}
})
Security
VITE_ Prefix is NOT a Security Boundary
Any variable prefixed with VITE_ is statically inlined into the client bundle at build time. Minification, base64 encoding, and disabling source maps do NOT hide it. A determined attacker can extract any VITE_ var from the shipped JavaScript.
Rule: Only public values (API URLs, feature flags, public keys) go in VITE_ vars. Secrets (API tokens, database URLs, private keys) MUST live server-side behind an API or serverless function.
The loadEnv('') Trap
// BAD: passing '' as the third arg loads ALL env vars — including server secrets —
// and makes them available to inline into client code via `define`.
const env = loadEnv(mode, process.cwd(), '')
// GOOD: explicit prefix list
const env = loadEnv(mode, process.cwd(), ['VITE_', 'APP_'])
Source Maps in Production
Production source maps leak your original source code. Disable them unless you upload to an error tracker (Sentry, Bugsnag) and delete locally afterward:
build: {
sourcemap: false, // default — keep it this way
}
.gitignore Checklist
.env.local,.env.*.local— local secret overridesdist/— build outputnode_modules/.vite— pre-bundle cache (stale entries cause phantom errors)
Server Proxy
// vite.config.ts — server.proxy
server: {
proxy: {
'/foo': 'http://localhost:4567', // string shorthand
'/api': {
target: 'http://localhost:8080',
changeOrigin: true, // needed for virtual-hosted backends
rewrite: (path) => path.replace(/^\/api/, ''),
},
},
}
For WebSocket proxying, add ws: true to the route config.
Build Optimization
Manual Chunks
// vite.config.ts — build.rolldownOptions
build: {
rolldownOptions: {
output: {
// Object form: group specific packages
manualChunks: {
'react-vendor': ['react', 'react-dom'],
'ui-vendor': ['@radix-ui/react-dialog', '@radix-ui/react-popover'],
},
},
},
}
// Function form: split by heuristic
manualChunks(id) {
if (id.includes('node_modules/react')) return 'react-vendor'
if (id.includes('node_modules')) return 'vendor'
}
Performance
Avoid Barrel Files
Barrel files (index.ts re-exporting everything from a directory) force Vite to load every re-exported file even when you import a single symbol. This is the #1 dev-server slowdown flagged by the official docs.
// BAD — importing one util forces Vite to load the whole barrel
import { slash } from '@/utils'
// GOOD — direct import, only the one file is loaded
import { slash } from '@/utils/slash'
Be Explicit with Import Extensions
Each implicit extension forces up to 6 filesystem checks via resolve.extensions. In large codebases, this adds up.
// BAD
import Component from './Component'
// GOOD
import Component from './Component.tsx'
Narrow tsconfig.json allowImportingTsExtensions + resolve.extensions to only the extensions you actually use.
Warm-Up Hot-Path Routes
server.warmup.clientFiles pre-transforms known hot entries before the browser requests them — eliminating the cold-load request waterfall on large apps.
// vite.config.ts
server: {
warmup: {
clientFiles: ['./src/main.tsx', './src/routes/**/*.tsx'],
},
}
Profiling Slow Dev Servers
When vite dev feels slow, start with vite --profile, interact with the app, then press p+enter to save a .cpuprofile. Load it in Speedscope to find which plugins are eating time — usually buildStart, config, or configResolved hooks in community plugins.
Library Mode
When publishing an npm package, use build.lib. Two footguns matter more than config detail:
- Types are not emitted — add
vite-plugin-dtsor runtsc --emitDeclarationOnlyseparately. - Peer dependencies MUST be externalized — unlisted peers get bundled into your library, causing duplicate-runtime errors in consumers.
// vite.config.ts
build: {
lib: {
entry: 'src/index.ts',
formats: ['es', 'cjs'],
fileName: (format) => `my-lib.${format}.js`,
},
rolldownOptions: {
external: ['react', 'react-dom', 'react/jsx-runtime'], // every peer dep
},
}
SSR Externals
Bare createServer({ middlewareMode: true }) setups are framework-author territory. Most apps should use Nuxt, Remix, SvelteKit, Astro, or TanStack Start instead. What you will tweak as a framework user is the externals config when deps break in SSR:
// vite.config.ts — ssr options
ssr: {
external: ['node-native-package'], // keep as require() in SSR bundle
noExternal: ['esm-only-package'], // force-bundle into SSR output (fixes most SSR errors)
target: 'node', // 'node' or 'webworker'
}
Dependency Pre-Bundling
Vite pre-bundles dependencies to convert CJS/UMD to ESM and reduce request count.
// vite.config.ts — optimizeDeps
optimizeDeps: {
include: [
'lodash-es', // force pre-bundle known heavy deps
'cjs-package', // CJS deps that cause interop issues
'deep-lib/components/**', // glob for deep imports
],
exclude: ['local-esm-package'], // must be valid ESM if excluded
force: true, // ignore cache, re-optimize (temporary debugging)
}
Common Pitfalls
Dev Does Not Match Build
Dev uses esbuild/Rolldown for transforms; build uses Rolldown for bundling. CJS libraries can behave differently between the two. Always verify with vite build && vite preview before deploying.
Stale Chunks After Deployment
New builds produce new chunk hashes. Users with active sessions request old filenames that no longer exist. Vite has no built-in solution. Mitigations:
- Keep old
dist/assets/files live for a deployment window - Catch dynamic import errors in your router and force a page reload
Docker and Containers
Vite binds to localhost by default, which is unreachable from outside a container:
// vite.config.ts — Docker/container setup
server: {
host: true, // bind 0.0.0.0
hmr: { clientPort: 3000 }, // if behind a reverse proxy
}
Monorepo File Access
Vite restricts file serving to the project root. Packages outside root are blocked:
// vite.config.ts — monorepo file access
server: {
fs: {
allow: ['..'], // allow parent directory (workspace root)
},
}
Anti-Patterns
// BAD: Setting envPrefix to '' exposes ALL env vars (including secrets) to the client
envPrefix: ''
// BAD: Assuming require() works in application source code — Vite is ESM-first
const lib = require('some-lib') // use import instead
// BAD: Splitting every node_module into its own chunk — creates hundreds of tiny files
manualChunks(id) {
if (id.includes('node_modules')) {
return id.split('node_modules/')[1].split('/')[0] // one chunk per package
}
}
// BAD: Not externalizing peer deps in library mode — causes duplicate runtime errors
// build.lib without rolldownOptions.external
// BAD: Using deprecated esbuild minifier
build: { minify: 'esbuild' } // use 'oxc' (default) or 'terser'
// BAD: Mutating import.meta.hot.data by reassignment
import.meta.hot.data = { count: 0 } // WRONG: must mutate properties, not reassign
import.meta.hot.data.count = 0 // CORRECT
Process anti-patterns:
vite previewis NOT a production server — it is a smoke test for the built bundle. Deploydist/to a real static host (NGINX, Cloudflare Pages, Vercel static) or use a multi-stage Dockerfile.- Expecting
vite buildto type-check — it only transpiles. Type errors silently ship to production. Addvite-plugin-checkeror runtsc --noEmitin CI. - Shipping
@vitejs/plugin-legacyby default — it bloats bundles ~40%, breaks source-map bundle analyzers, and is unnecessary for the 95%+ of users on modern browsers. Gate it on real analytics, not assumption. - Hand-rolling 30+
resolve.aliasentries that duplicatetsconfig.jsonpaths — usevite-tsconfig-pathsinstead. Observed in Excalidraw and PostHog; avoid in new projects. - Leaving stale
node_modules/.viteafter dep changes — pre-bundle cache causes phantom errors. Clear it when switching branches or after patching deps.
Quick Reference
| Pattern | When to Use |
|---|---|
defineConfig |
Always — provides type inference |
loadEnv(mode, root, ['VITE_']) |
Access env vars in config (explicit prefix) |
vite-plugin-checker |
Any TypeScript app (fills the type-check gap) |
vite-tsconfig-paths |
Instead of hand-rolled resolve.alias |
optimizeDeps.include |
CJS deps causing interop issues |
server.proxy |
Route API requests to backend in dev |
server.host: true |
Docker, containers, remote access |
server.warmup.clientFiles |
Pre-transform hot-path routes |
build.lib + external |
Publishing npm packages |
manualChunks (object) |
Vendor bundle splitting |
vite --profile |
Debug slow dev server |
vite build && vite preview |
Smoke-test prod bundle locally (NOT a prod server) |
Related Skills
frontend-patterns— React component patternsdocker-patterns— containerized dev with Vitenextjs-turbopack— alternative bundler for Next.js
Version history
-
v2.2.3
GitHub ↗
Original release notes
# ECC 2.2.3 ECC 2.2.3 is a naming and release-reliability update. The project is called ECC everywhere it ships, starting with the `pi/core` profile, and the release workflow now waits long enough for npm to serve a freshly published version. ## Naming - `pi/core` no longer expands the project name: its README and the bundled `blueprint` skill refer to ECC only. The profile contents are otherwise unchanged: 123 curated skills and 24 prompt commands, 35,006 characters of skill description text. - Downstream packagers need no changes. The package is still `ecc-pi-core`, the directory is still `pi/core/`, and existing install paths keep working. ## Release workflow - After `npm publish`, the release workflow polls the registry for up to five minutes before verifying the published artifact. In 2.2.2 it gave up after about 30 seconds while npm was still processing the upload, so the run failed before promoting `latest` and creating the GitHub Release, and had to be re-run. Downstream consumption is unchanged: poll `/releases`, download `archive/refs/tags/vX.Y.Z.tar.gz`, pin its sha256, copy `pi/core/`, and load it offline.
-
v2.2.2
GitHub ↗
Original release notes
# ECC 2.2.2 ECC 2.2.2 adds `pi/core`, a curated Pi-native skills+prompts-only profile built for downstream packagers that mirror GitHub Releases, plus a set of packaging, memory, hooks, and Windows compatibility fixes. ## Pi core profile `pi/core/` is a self-contained package (`ecc-pi-core`) that downstream mirrors of the release tarball can copy directly: no build step, no extensions, no hooks, no runtime downloads, and no network or SaaS dependencies. - 123 curated skills (language and framework patterns, testing/TDD, code review, non-offensive security review, planning, refactoring, docs, and git/PR workflows) and 24 prompt commands that are pure prompt workflows. - Generated deterministically from the explicit include/exclude lists in `manifests/pi-core.json` by `scripts/build-pi-core.js` and committed, so the release tarball contains it verbatim. `pi/core/CURATION.md` lists every excluded skill and command with its reason; the `council` skill ships as `ecc-council` inside pi/core to avoid catalog name clashes. - The build fails on safety violations: non-allowlisted URL hosts, pipe-to-shell or fetch-and-run download forms, secrets or tokens, absolute per-user home paths, symlinks, invalid SKILL.md frontmatter, and duplicate skill names. - CI rebuilds pi/core on every PR and verifies it is up to date, then installs the Pi coding agent CLI and proves the profile loads fully offline (`PI_OFFLINE=1`), asserting that every curated command actually registers. - The release workflow additionally verifies that `VERSION` matches the tag and that pi/core is current before publishing. Downstream consumption: poll `/releases`, download `archive/refs/tags/vX.Y.Z.tar.gz`, pin its sha256, copy `pi/core/`, and load it offline with `pi --offline --skill pi/core/skills --prompt-template pi/core/commands`. ## Packaging - The compiled OpenCode payload is explicitly included in the npm package, and packing is verified from a clean state with lifecycle scripts enabled. ## Memory and MCP - Incomplete memory reads are distinguished from missing records, and directory traversal failures are classified. - The reserved `_meta` parameter is accepted on memory MCP ping requests. ## Hooks and Windows compatibility - `hooks.json` stays within Claude Code's schema; stable hook metadata moved into a validated sidecar. - The no-verify guard handles stuck optional values and long-option prefixes. - Windows linter paths and ESLint 9 are supported, and settings updates tolerate missing Windows device IDs while retaining full-precision inode checks. ## Workflow guidance, catalog, and dependency security - Epic sync filters issues by label; dependency bumps no longer document auto-merge; naming and Boolean guidance is language-neutral; the `prp-pr` command alias is distinguished; Rails skill discovery, invoice tax calculation order, and framework documentation were corrected; Serply and Squish catalog entries were removed. - `lru` updated to 0.18.2 (RUSTSEC-2026-0253) and `js-yaml` to 4.3.2 (GHSA-2883-xcg3-v3hh).
-
v2.2.1
GitHub ↗
Original release notes
# ECC 2.2.1 ECC 2.2.1 is a bug and security patch for ECC 2.2. It keeps the published `v2.2.0` history immutable. These notes describe the prepared patch; publication and signing evidence are tracked separately in the release checklist. ## Security and data protection - GateGuard and governance capture recognize destructive PowerShell commands, including the native PowerShell tool path. Dynamic command handling prevents later variable assignments from concealing earlier unresolved invocations ([#2961](https://github.com/affaan-m/ECC/pull/2961)). - Relative GateGuard exemption globs stay within the project root. Explicit absolute exemptions remain supported ([#2921](https://github.com/affaan-m/ECC/issues/2921)). - Installer writes reject collisions with untracked user-owned files. Failed installs refresh ownership hashes only for files they actually wrote, preserving the previous ownership hashes of untouched managed files ([#2964](https://github.com/affaan-m/ECC/issues/2964)). - Guided setup revalidates its preview before ownership filtering, so files appearing between preview and apply cause a clear retry instead of a false success. Existing identical user files stay outside ECC ownership. - Uninstall respects `ECC_DRY_RUN=1`, including legacy Codex paths, and rejects invalid dry-run values instead of silently allowing deletion ([#2952](https://github.com/affaan-m/ECC/issues/2952)). - Observer analysis retains observations on unsuccessful or unconfirmed processing. Exit code zero alone no longer permits archival ([#2971](https://github.com/affaan-m/ECC/pull/2971)). - The Yarn lockfile updates `toml` to 4.3.0, matching the npm lockfile and removing the affected older resolution. ## Hooks and installation - Manual Claude installs register ECC-owned hook entries in Claude settings. Repair, consent changes, and uninstall reconcile those entries while preserving unrelated settings. Atomic settings updates check directory identity and retry detected concurrent edits ([#2992](https://github.com/affaan-m/ECC/pull/2992)). - Direct hook entrypoints handle larger JSON payloads with bounded, UTF-8-safe reads instead of silently truncating valid inputs. Existing production wrapper limits remain unchanged ([#2924](https://github.com/affaan-m/ECC/issues/2924)). - The Pi adapter selects an actual Node runtime instead of recursively executing a compiled OMP host as Node ([#2909](https://github.com/affaan-m/ECC/issues/2909)). - Installer listing and control-pane help avoid eager third-party dependency loading. Features that require absent runtime packages report the missing dependency explicitly ([#2994](https://github.com/affaan-m/ECC/pull/2994)). - Autonomous harness setup documentation replaces nonexistent package names and unsupported CLI flags with documented interfaces, and distinguishes session scheduling from a durable external scheduler ([#2957](https://github.com/affaan-m/ECC/issues/2957)). ## Installer and release-surface hardening - Public and packaged install docs now consistently point at the published `ecc-universal` commands instead of stale or unrelated package names. - The AdaL adapter docs use the correct `npx ecc-universal doctor --target adal` command. - Claude setup preflights `git` before provider-specific work starts, so missing prerequisites fail fast with the right action. - Guided setup dry runs use isolated HOME, config, XDG, temp, and Windows app data roots to avoid ambient host state affecting review or tests. - The exact packed artifact now has stronger lifecycle coverage for Claude and Kimi setup, update, doctor, repeat install, uninstall, and dry-run flows. - Identifier regression coverage blocks stale `ecc`, `ecc-install`, and other mismatched release-path commands from creeping back into user-facing docs. ## Current-main documentation included in this patch - The canonical Itô workflow now documents `ecc ito accept <ticket-id>` and the `ito_accept` MCP tool. - Acceptance is explicitly bounded to buyer-authority routing. It routes the active desk quote to human review and does not claim to place a trade. ## Provenance boundary - `v2.2.1` is intended to be a signed annotated tag on exact green `main`. - `v2.2.0` remains the immutable historical unsigned exception. Do not move, recreate, or reuse that tag. ## Scope and limitations - Plugin dependency handling does not bundle or automatically install missing modules. Database and schema-validation features require their declared runtime dependencies. - Ownership protection covers untracked collisions and failed-install checkpoints. Successful upgrades retain the existing contract for replacing previously managed files. Back up intentional edits before upgrading. - This patch does not introduce new harness platforms or claim that every open community issue is resolved. ## Upgrade After the release workflow publishes 2.2.1 and verifies registry integrity, install or update the package, then run the same ECC command path you already use. Until publication completes, the exact-version command below returns E404. ```bash npm install -g [email protected] ecc doctor ``` For first-time or guided terminal setup: ```bash npx ecc-universal setup ``` The native Claude marketplace path remains supported: ```text /plugin marketplace add https://github.com/affaan-m/ECC /plugin install ecc@ecc ```
-
v2.2.0
GitHub ↗
Original release notes
ECC 2.2 is here, led by one guided installer for Claude Code, Codex, and Kimi. It also adds native Antigravity 2.0 support and an experimental, opt-in Nasiko CLI lifecycle bridge. The release pipeline is stricter too: the exact npm archive must pass lifecycle tests on Linux, macOS, and Windows before `latest` moves. ## One guided path into ECC  Start the guided installer with: ```bash npx --yes [email protected] install --guided ``` The installer checks every selected harness before writing files, then applies the setup as one operation. Provider-owned model and authentication settings stay under the provider's control. The terminal welcome appears only after a successful interactive install. ## Nasiko: experimental, opt-in, and explicit  ECC 2.2 can inspect, install, and remove one pinned Nasiko `v0.1.0` CLI build: ```bash npm install -g [email protected] ecc nasiko status --json ecc nasiko install --version v0.1.0 --dry-run --json ecc nasiko install --version v0.1.0 --yes --json ``` Downloads are content-addressed and SHA-256 verified, status is read-only, and uninstall protects modified or unqualified binaries. The dashboard above is Nasiko's own product. ECC does not connect agents, start a server, enable telemetry, share data, or operate that control plane. The bridge remains experimental and opt-in. Learn more in the [Nasiko repository](https://github.com/Nasiko-Labs/nasiko). ## More reliable across every harness - **Native Antigravity 2.0:** ECC installs to `.agents/{rules,workflows,skills,agents}` and safely migrates legacy ownership. - **Reliable uninstall:** repeated selective installs keep a complete ownership ledger, so unchanged ECC-managed files can be removed cleanly. - **Safer migrations:** OpenCode uses `~/.config/opencode`, while OpenCode and Codex preserve edited or untracked files during cleanup. - **More workflows:** Pi, Itô, agent evaluation, multi-model council, dev-team, living docs, secure terminal, TasteForge, and `skill-comply` all expand the shipped distribution. ECC 2.2 ships **68 agents, 286 skills, and 94 command shims**, plus the rules, hooks, memory, continuous-learning, and installation surfaces around them. ## Release assurance The tagged commit must match `origin/main`. One npm archive is packed, hashed, and tested on all three operating systems, then published under a staging tag. Registry integrity must match before `latest` moves. The prior 2.1.0 package remains the immediate rollback target. ## Install or upgrade For the native Claude Code plugin: ```text /plugin marketplace add https://github.com/affaan-m/ECC /plugin install ecc@ecc ``` Existing Claude installs can run `/plugin update ecc`. ## Thank you A special thank you to returning contributors [@gaurav0107](https://github.com/gaurav0107), [@Seekers2001](https://github.com/Seekers2001), and [@t0kubetsu](https://github.com/t0kubetsu) for substantial work on learning workflows, collaborative skills, and shared testing. Among our first-time contributors, [@renan-tiberio](https://github.com/affaan-m/ECC/pull/2759) brought Pi support, [@romanclaudersoai1](https://github.com/affaan-m/ECC/pull/2664) repaired `/evolve`, and [@djpjronline-netizen](https://github.com/affaan-m/ECC/pull/2405) hardened hook parsing. Eighteen people made their first ECC contribution in 2.2. Thank you to everyone who tested the installer, reported issues, and helped harden the release across harnesses and operating systems. ### New contributors - @AlbertChiu777 in [#2483](https://github.com/affaan-m/ECC/pull/2483) - @djpjronline-netizen in [#2405](https://github.com/affaan-m/ECC/pull/2405) - @shanujans in [#2538](https://github.com/affaan-m/ECC/pull/2538) - @HouMinXi in [#2609](https://github.com/affaan-m/ECC/pull/2609) - @agent-jeong in [#2670](https://github.com/affaan-m/ECC/pull/2670) - @karimfarahat in [#2462](https://github.com/affaan-m/ECC/pull/2462) - @romanclaudersoai1 in [#2664](https://github.com/affaan-m/ECC/pull/2664) - @Peopleoftech in [#2668](https://github.com/affaan-m/ECC/pull/2668) - @alejandorosumah-mansa in [#2700](https://github.com/affaan-m/ECC/pull/2700) - @imkp1 in [#2637](https://github.com/affaan-m/ECC/pull/2637) - @shivaG5 in [#2446](https://github.com/affaan-m/ECC/pull/2446) - @vitalii-novikov in [#2520](https://github.com/affaan-m/ECC/pull/2520) - @etisamhaq in [#2364](https://github.com/affaan-m/ECC/pull/2364) - @phumchai1515-prog in [#2723](https://github.com/affaan-m/ECC/pull/2723) - @cagrisolakoglu in [#2618](https://github.com/affaan-m/ECC/pull/2618) - @brianjkelly in [#2703](https://github.com/affaan-m/ECC/pull/2703) - @renan-tiberio in [#2759](https://github.com/affaan-m/ECC/pull/2759) - @ronimuliawan in [#2793](https://github.com/affaan-m/ECC/pull/2793) Join us in the [ECC Discord](https://discord.gg/36yGMHGFbR). Full changelog: <https://github.com/affaan-m/ECC/compare/v2.1.0...v2.2.0>
-
v2.1.0
GitHub ↗
Original release notes
# ECC 2.1.0: Plan Canvas, Kimi Harness, and Self-Hosted Compute ECC 2.1 turns plan review into a visual loop and opens the harness to self-hosted models. Plan Canvas lets you review agent plans in the browser. Point at the part you mean instead of retyping it in chat. A new Kimi Code install target and a verified Itô GPU path make ECC + open-source models a first-class setup, backed by our public sponsors: Moonshot AI (Kimi), Itô, and Atlas Cloud. ## Plan Canvas: review plans by pointing, not retyping  [Download the MP4 demo](https://raw.githubusercontent.com/affaan-m/ECC/main/docs/releases/2.1.0/assets/ecc-plan-canvas-demo.mp4) `/plan` ends with a confirm gate, and until now that review was a wall of markdown in the terminal. Now the agent opens the plan in a loopback-only browser canvas: - Click elements or select text to attach numbered annotations - Chat with the agent from a side rail while it works in the terminal - **Approve plan** / **Request changes** buttons map directly onto `/plan`'s CONFIRM gate - Mermaid diagrams, tables, and task lists render natively; file edits live-reload the page - Model- and harness-agnostic: a plain CLI + JSON protocol (`ecc-plan-canvas`), no Claude-only dependency ## Kimi harness: Moonshot AI partnership ECC now installs directly into [Kimi Code](https://moonshotai.github.io/kimi-cli/) (`--target kimi`). Kimi Code discovers the installed `.kimi/AGENTS.md` instructions and `.kimi/skills/` workflows natively: ```bash bash ./install.sh --target kimi --profile minimal npx ecc doctor --target kimi kimi ``` ## Self-host on Itô GPUs Run ECC against any self-hosted open-source model. If you need GPU capacity, [Itô](https://compute.itomarkets.com) is ECC's preferred compute sponsor. The integration shipped guarded end to end: - `ecc ito find`: opt-in bridge to the canonical Itô CLI that submits a live, authenticated RFQ (it does not reserve capacity) - Guarded live node qualification and read-only compute handoff - Credential-bearing CLI shims are rejected outright The sponsorship link itself is passive: it does not invoke an RFQ, reserve capacity, provision compute, or configure serving. Managed inference through Itô is not live yet. Any GPU provider works, and ECC stays provider-agnostic. ## Partners [Moonshot AI (Kimi)](https://www.moonshot.ai), [Itô](https://compute.itomarkets.com), and [Atlas Cloud](https://www.atlascloud.ai) are now public sponsors of ECC. The README documents a recommended self-host path: Itô for GPU capacity, a Kimi checkpoint served behind a compatible endpoint, then Kimi Code + ECC on top. Each choice remains separate and swappable. ## Also in 2.1 - **Hermes and OpenClaw install targets**: two more harnesses join Claude Code, Codex, OpenCode, Cursor, Gemini, Zed, Copilot, and Kimi - **Codex ECC navigation guide**: find the right skill/command surface from inside Codex - **GateGuard path exemptions** (`GATEGUARD_EXEMPT_GLOBS`) and configurable instinct injection (count + confidence threshold) - **PostToolUse hooks consolidated** into sync/async dispatchers, with fewer processes per tool call - **Supply-chain hardening**: the installer runtime passes strict vetting, and the pre-commit secret scan now catches Anthropic API keys (`sk-ant-...`) - A long tail of community fixes across OpenCode, Windows, bun lockfiles, the dashboard, and project detection The catalog now stands at **67 agents, 281 skills, and 94 command shims** (2.0.0 shipped 64/261/84), plus hooks, rules, memory, continuous learning, and AgentShield. ## Install or upgrade ```text /plugin marketplace add https://github.com/affaan-m/ECC /plugin install ecc@ecc ``` Existing installs: `/plugin update ecc` ## Community Join the ECC community for release announcements, questions, and Show and Tell: <https://discord.gg/36yGMHGFbR> Full changelog: <https://github.com/affaan-m/ECC/compare/v2.0.0...v2.1.0> ## New Contributors * @legeZZZ made their first contribution in https://github.com/affaan-m/ECC/pull/2200 * @tongshu2023 made their first contribution in https://github.com/affaan-m/ECC/pull/2216 * @mohameddsh3ban made their first contribution in https://github.com/affaan-m/ECC/pull/2195 * @fiedler-itlabs made their first contribution in https://github.com/affaan-m/ECC/pull/2240 * @daiki75 made their first contribution in https://github.com/affaan-m/ECC/pull/2245 * @wellkilo made their first contribution in https://github.com/affaan-m/ECC/pull/2194 * @rameshvr made their first contribution in https://github.com/affaan-m/ECC/pull/2144 * @aaronjmars made their first contribution in https://github.com/affaan-m/ECC/pull/2185 * @orbisai0security made their first contribution in https://github.com/affaan-m/ECC/pull/2149 * @xwang4-svg made their first contribution in https://github.com/affaan-m/ECC/pull/2186 * @kriptoburak made their first contribution in https://github.com/affaan-m/ECC/pull/2199 * @lamenting-hawthorn made their first contribution in https://github.com/affaan-m/ECC/pull/2235 * @mdayan8 made their first contribution in https://github.com/affaan-m/ECC/pull/2100 * @Naominour made their first contribution in https://github.com/affaan-m/ECC/pull/2188 * @Malphite10 made their first contribution in https://github.com/affaan-m/ECC/pull/2197 * @cogiwimute367-create made their first contribution in https://github.com/affaan-m/ECC/pull/2251 * @z3tz3r0 made their first contribution in https://github.com/affaan-m/ECC/pull/2250 * @rockwellwindsor made their first contribution in https://github.com/affaan-m/ECC/pull/2258 * @stroland02 made their first contribution in https://github.com/affaan-m/ECC/pull/2202 * @hretheum made their first contribution in https://github.com/affaan-m/ECC/pull/2221 * @BERORINPO made their first contribution in https://github.com/affaan-m/ECC/pull/2234 * @Victor-Casado made their first contribution in https://github.com/affaan-m/ECC/pull/2236 * @itkdm made their first contribution in https://github.com/affaan-m/ECC/pull/2241 * @leoeletronics made their first contribution in https://github.com/affaan-m/ECC/pull/2267 * @Seekers2001 made their first contribution in https://github.com/affaan-m/ECC/pull/2118 * @lucaszhu-hue made their first contribution in https://github.com/affaan-m/ECC/pull/2279 * @kapil971390 made their first contribution in https://github.com/affaan-m/ECC/pull/2292 * @danielnguyenfinhub made their first contribution in https://github.com/affaan-m/ECC/pull/2342 * @gpitrella made their first contribution in https://github.com/affaan-m/ECC/pull/2355 * @Angad2005 made their first contribution in https://github.com/affaan-m/ECC/pull/2366 * @quadcent made their first contribution in https://github.com/affaan-m/ECC/pull/2133 * @SiaoZeng made their first contribution in https://github.com/affaan-m/ECC/pull/2383 * @Tahiti18 made their first contribution in https://github.com/affaan-m/ECC/pull/2307 * @phobicdotno made their first contribution in https://github.com/affaan-m/ECC/pull/2343 * @sshworld made their first contribution in https://github.com/affaan-m/ECC/pull/2358 * @cd1amond made their first contribution in https://github.com/affaan-m/ECC/pull/2346 * @Tanaka-VivereGratis made their first contribution in https://github.com/affaan-m/ECC/pull/2388 * @KyawZinLatt made their first contribution in https://github.com/affaan-m/ECC/pull/2319 * @dieudonneAwa made their first contribution in https://github.com/affaan-m/ECC/pull/2288 * @carloscarvallo made their first contribution in https://github.com/affaan-m/ECC/pull/2273 * @mc856 made their first contribution in https://github.com/affaan-m/ECC/pull/2274 * @jvirgovic made their first contribution in https://github.com/affaan-m/ECC/pull/2338 * @m18897829375 made their first contribution in https://github.com/affaan-m/ECC/pull/2336 * @jack-finance-able made their first contribution in https://github.com/affaan-m/ECC/pull/2390 * @yerros made their first contribution in https://github.com/affaan-m/ECC/pull/2275 * @YuhaoLin2005 made their first contribution in https://github.com/affaan-m/ECC/pull/2377 * @Cb2i made their first contribution in https://github.com/affaan-m/ECC/pull/2437 * @28winz-bot made their first contribution in https://github.com/affaan-m/ECC/pull/2422 * @sutazca made their first contribution in https://github.com/affaan-m/ECC/pull/2425 * @nidelson made their first contribution in https://github.com/affaan-m/ECC/pull/2420 * @juujb made their first contribution in https://github.com/affaan-m/ECC/pull/2416 * @Zalasyu made their first contribution in https://github.com/affaan-m/ECC/pull/2432 * @Lxcardoza993 made their first contribution in https://github.com/affaan-m/ECC/pull/2433 * @haelyra made their first contribution in https://github.com/affaan-m/ECC/pull/2467 * @thejesh23 made their first contribution in https://github.com/affaan-m/ECC/pull/2515 * @nankingjing made their first contribution in https://github.com/affaan-m/ECC/pull/2501 * @samartomar made their first contribution in https://github.com/affaan-m/ECC/pull/2503 * @fletcherm-hub made their first contribution in https://github.com/affaan-m/ECC/pull/2460 * @someiyoshino-lab made their first contribution in https://github.com/affaan-m/ECC/pull/2471 * @WinterSold1er made their first contribution in https://github.com/affaan-m/ECC/pull/2511 * @EmadDoughan made their first contribution in https://github.com/affaan-m/ECC/pull/2543 * @Oleksandr-Kh4 made their first contribution in https://github.com/affaan-m/ECC/pull/2529 * @latreon made their first contribution in https://github.com/affaan-m/ECC/pull/2536 **Full Changelog**: https://github.com/affaan-m/ECC/compare/v2.0.0...v2.1.0
Only the five most recent versions are shown. View full version history at the source ↗
Current listing version
0.0.1
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 全面覆盖 Vite 构建工具的核心使用场景,包括配置、插件、HMR、环境变量、代理、SSR、库模式等
- 提供大量实用示例和最佳实践,直接解决开发者日常高频痛点
- 包含安全提醒和常见陷阱,提升开发者的避坑能力
Highlights
- 触发词精准完整,明确指出了激活场景:处理 vite.config.ts、Vite 插件或基于 Vite 的项目
- description 清晰描述了 Skill 的核心功能和适用范围
Highlights
- 结构非常清晰,包含 When to Use、How It Works、Examples、Quick Reference 等完整章节
- 示例丰富且规范,代码片段完整,表格清晰
- frontmatter 完整,文档组织良好
Highlights
- 内容准确,覆盖了常见陷阱和最佳实践
- 提供了安全提醒,如 VITE_ 前缀的安全边界、loadEnv 陷阱等
- 包含性能优化建议和调试方法,如避免 Barrel Files、Warm-Up Hot-Path Routes 等
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- localhost
- vite.dev
- www.speedscope.app
Security rating and access scope
risk · Static evidence review; not a runtime safety guarantee.
Not specified in the source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.