Skip to content

armgit / ECC

Public Imported from GitHub
0

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

feat: integrate reviewed adapters, conversion and GateGuard improvements

haelyrabe230bd85ce8
diff --cc .claude-plugin/marketplace.json
index 1facd2c4e,1efd06955..363cba605
--- a/.claude-plugin/marketplace.json
+++ b/.claude-plugin/marketplace.json
@@@ -11,7 -11,7 +11,7 @@@
{
"name": "ecc",
"source": "./",
- "description": "Harness-native ECC operator layer - 71 agents, 304 skills, 95 legacy command shims, reusable hooks, rules, selective install profiles, and production-ready workflows for Claude Code, Codex, OpenCode, Cursor, and related agent harnesses",
- "description": "Harness-native ECC operator layer - 71 agents, 304 skills, 97 legacy command shims, reusable hooks, rules, selective install profiles, and production-ready workflows for Claude Code, Codex, OpenCode, Cursor, and related agent harnesses",
++ "description": "Harness-native ECC operator layer - 71 agents, 306 skills, 97 legacy command shims, reusable hooks, rules, selective install profiles, and production-ready workflows for Claude Code, Codex, OpenCode, Cursor, and related agent harnesses",
"version": "2.2.3",
"author": {
"name": "Affaan Mustafa",
diff --cc .claude-plugin/plugin.json
index bf818ac6c,58bf166ca..810d71650
--- a/.claude-plugin/plugin.json
+++ b/.claude-plugin/plugin.json
@@@ -1,7 -1,7 +1,7 @@@
{
"name": "ecc",
"version": "2.2.3",
- "description": "Harness-native ECC plugin for engineering teams - 71 agents, 304 skills, 95 legacy command shims, reusable hooks, rules, MCP conventions, and operator workflows for Claude Code plus adjacent agent harnesses",
- "description": "Harness-native ECC plugin for engineering teams - 71 agents, 304 skills, 97 legacy command shims, reusable hooks, rules, MCP conventions, and operator workflows for Claude Code plus adjacent agent harnesses",
++ "description": "Harness-native ECC plugin for engineering teams - 71 agents, 306 skills, 97 legacy command shims, reusable hooks, rules, MCP conventions, and operator workflows for Claude Code plus adjacent agent harnesses",
"author": {
"name": "Affaan Mustafa",
"url": "https://x.com/affaanmustafa"
diff --cc .gemini/GEMINI.md
index 0f6dec3c0,c04d415d7..b5fef6a07
--- a/.gemini/GEMINI.md
+++ b/.gemini/GEMINI.md
@@@ -4,7 -4,7 +4,7 @@@ This file provides Gemini CLI with the
## Overview
- ECC is a cross-harness coding system with 71 specialized agents, 304 skills, and 95 commands.
-ECC is a cross-harness coding system with 71 specialized agents, 304 skills, and 97 commands.
++ECC is a cross-harness coding system with 71 specialized agents, 306 skills, and 97 commands.
Gemini support is currently focused on a strong project-local instruction layer via `.gemini/GEMINI.md`, plus the shared MCP catalog and package-manager setup assets shipped by the installer.
diff --cc AGENTS.md
index 3f6733314,0dd3ecc25..114555bf9
--- a/AGENTS.md
+++ b/AGENTS.md
@@@ -1,6 -1,6 +1,6 @@@
# ECC — Agent Instructions
- This is a **production-ready AI coding plugin** providing 71 specialized agents, 304 skills, 95 commands, and automated hook workflows for software development.
-This is a **production-ready AI coding plugin** providing 71 specialized agents, 304 skills, 97 commands, and automated hook workflows for software development.
++This is a **production-ready AI coding plugin** providing 71 specialized agents, 306 skills, 97 commands, and automated hook workflows for software development.
**Version:** 2.2.3
@@@ -202,8 -202,8 +202,8 @@@ Troubleshoot failures: check test isola
```
agents/ — 71 specialized subagents
--skills/ — 304 workflow skills and domain knowledge
- commands/ — 95 slash commands
++skills/ — 306 workflow skills and domain knowledge
+ commands/ — 97 slash commands
hooks/ — Trigger-based automations
rules/ — Always-follow guidelines (common + per-language)
scripts/ — Cross-platform Node.js utilities
diff --cc README.md
index d415265b9,5a36d37b6..b8074ef4f
--- a/README.md
+++ b/README.md
@@@ -139,15 -138,15 +139,15 @@@ Instead of rebuilding that process in e
> Optimize the context window. Persist everything else.
- ECC is MIT-licensed open source. It works best with Claude Code today, has a supported Codex sync path, and provides capability-limited adapters for Cursor, OpenCode, Gemini, Zed, GitHub Copilot, Antigravity, Qwen, and other harnesses. See the [support status matrix](#platform-support) before assuming feature parity.
+ ECC is MIT-licensed open source. It works best with Claude Code today, has native Codex and Qoder plugin paths, and provides capability-limited adapters for Cursor, OpenCode, Gemini, Zed, GitHub Copilot, Antigravity, Qwen, and other harnesses. See the [support status matrix](#platform-support) before assuming feature parity.
- Access to 71 agents, 304 skills, and 95 legacy command shims, plus hooks, rules, memory, continuous learning, and AgentShield security scanning. The agents are specialized for planning, review, build repair, security, architecture, and domain work.
-Access to 71 agents, 304 skills, and 97 legacy command shims, plus hooks, rules, memory, continuous learning, and AgentShield security scanning. The agents are specialized for planning, review, build repair, security, architecture, and domain work.
++Access to 71 agents, 306 skills, and 97 legacy command shims, plus hooks, rules, memory, continuous learning, and AgentShield security scanning. The agents are specialized for planning, review, build repair, security, architecture, and domain work.
| Included | Count | What it gives you |
| ---------------- | ----------: | ------------------------------------------------------------------------------------ |
| Agents | 71 agents | Planning, review, build repair, security, architecture, and domain work |
--| Skills | 304 skills | TDD, research, security, docs, frontend, data, ML, operations, and more |
- | Commands | 95 commands | Convenient entry points while ECC moves to a skills-first surface |
++| Skills | 306 skills | TDD, research, security, docs, frontend, data, ML, operations, and more |
+ | Commands | 97 commands | Convenient entry points while ECC moves to a skills-first surface |
| Hooks and memory | Runtime | Enforcement, session summaries, continuous learning, instincts, and context controls |
| Rules | Selective | Always-loaded standards you choose by language or project |
| AgentShield | Included | Scanning for prompts, hooks, MCP config, permissions, secrets, and agent files |
@@@ -828,8 -858,8 +859,8 @@@ Stable graduation of the 2.0 line: cont
```text
ECC/
|-- agents/ # 71 specialized subagents for delegation
- |-- skills/ # 304 reusable workflows loaded on demand
- |-- commands/ # 95 maintained slash-command shims
-|-- skills/ # 293 reusable workflows loaded on demand
-|-- commands/ # 94 maintained slash-command shims
++|-- skills/ # 306 reusable workflows loaded on demand
++|-- commands/ # 97 maintained slash-command shims
|-- rules/ # opt-in common and language standards
|-- hooks/ # runtime automation and enforcement
|-- scripts/ # install, repair, sync, orchestration, and checks
diff --cc README.zh-CN.md
index 70d4e7bd4,26abefd3c..8e719b5c8
--- a/README.zh-CN.md
+++ b/README.zh-CN.md
@@@ -200,7 -200,7 +200,7 @@@ Copy-Item -Recurse rules/typescript "$H
/plugin list ecc@ecc
```
- **完成!** 你现在可以使用 71 个代理、304 个技能和 95 个命令。
-**完成!** 你现在可以使用 71 个代理、304 个技能和 97 个命令。
++**完成!** 你现在可以使用 71 个代理、306 个技能和 97 个命令。
### multi-* 命令需要额外配置
diff --cc SOUL.md
index 1d6c83ef6,4fb85aff0..d7bd7922f
--- a/SOUL.md
+++ b/SOUL.md
@@@ -1,7 -1,7 +1,7 @@@
# Soul
## Core Identity
- ECC is a production-ready AI coding plugin with 71 specialized agents, 304 skills, 95 commands, and automated hook workflows for software development.
-ECC is a production-ready AI coding plugin with 71 specialized agents, 304 skills, 97 commands, and automated hook workflows for software development.
++ECC is a production-ready AI coding plugin with 71 specialized agents, 306 skills, 97 commands, and automated hook workflows for software development.
## Core Principles
1. **Agent-First** — route work to the right specialist as early as possible.
diff --cc docs/tr/AGENTS.md
index c68352e90,5a269b536..40b826903
--- a/docs/tr/AGENTS.md
+++ b/docs/tr/AGENTS.md
@@@ -1,6 -1,6 +1,6 @@@
# ECC — Agent Talimatları
- Bu, yazılım geliştirme için 71 özel agent, 304 skill, 95 command ve otomatik hook iş akışları sağlayan **üretime hazır bir AI kodlama eklentisidir**.
-Bu, yazılım geliştirme için 71 özel agent, 303 skill, 96 command ve otomatik hook iş akışları sağlayan **üretime hazır bir AI kodlama eklentisidir**.
++Bu, yazılım geliştirme için 71 özel agent, 306 skill, 97 command ve otomatik hook iş akışları sağlayan **üretime hazır bir AI kodlama eklentisidir**.
**Sürüm:** 2.2.3
@@@ -142,8 -142,8 +142,8 @@@ Başarısızlık sorunlarını giderin
```
agents/ — 71 özel subagent
- skills/ — 304 iş akışı skillleri ve alan bilgisi
- commands/ — 95 slash command
-skills/ — 303 iş akışı skillleri ve alan bilgisi
-commands/ — 96 slash command
++skills/ — 306 iş akışı skillleri ve alan bilgisi
++commands/ — 97 slash command
hooks/ — Tetikleyici tabanlı otomasyonlar
rules/ — Her zaman uyulması gereken kurallar (ortak + dile özel)
scripts/ — Platformlar arası Node.js yardımcı programları
diff --cc docs/zh-CN/AGENTS.md
index 4bcd04f8f,25772a6fe..f8379e35a
--- a/docs/zh-CN/AGENTS.md
+++ b/docs/zh-CN/AGENTS.md
@@@ -1,6 -1,6 +1,6 @@@
# ECC — 智能体指令
- 这是一个**生产就绪的 AI 编码插件**,提供 71 个专业代理、304 项技能、95 条命令以及自动化钩子工作流,用于软件开发。
-这是一个**生产就绪的 AI 编码插件**,提供 71 个专业代理、304 项技能、97 条命令以及自动化钩子工作流,用于软件开发。
++这是一个**生产就绪的 AI 编码插件**,提供 71 个专业代理、306 项技能、97 条命令以及自动化钩子工作流,用于软件开发。
**版本:** 2.2.3
@@@ -147,8 -147,8 +147,8 @@@
```
agents/ — 71 个专业子代理
--skills/ — 304 个工作流技能和领域知识
- commands/ — 95 个斜杠命令
++skills/ — 306 个工作流技能和领域知识
+ commands/ — 97 个斜杠命令
hooks/ — 基于触发的自动化
rules/ — 始终遵循的指导方针(通用 + 每种语言)
scripts/ — 跨平台 Node.js 实用工具
diff --cc docs/zh-CN/README.md
index a958b85ce,490545ada..95031fa11
--- a/docs/zh-CN/README.md
+++ b/docs/zh-CN/README.md
@@@ -264,7 -264,7 +264,7 @@@ Copy-Item -Recurse rules/typescript "$H
/plugin list ecc@ecc
```
- **搞定!** 你现在可以使用 71 个智能体、304 项技能和 95 个命令了。
-**搞定!** 你现在可以使用 71 个智能体、304 项技能和 97 个命令了。
++**搞定!** 你现在可以使用 71 个智能体、306 项技能和 97 个命令了。
***
@@@ -1177,8 -1177,8 +1177,8 @@@ opencod
| 功能特性 | Claude Code | OpenCode | 状态 |
|---------|---------------|----------|--------|
| 智能体 | PASS: 71 个 | PASS: 12 个 | **Claude Code 领先** |
- | 命令 | PASS: 95 个 | PASS: 35 个 | **Claude Code 领先** |
- | 技能 | PASS: 304 项 | PASS: 37 项 | **Claude Code 领先** |
+ | 命令 | PASS: 97 个 | PASS: 35 个 | **Claude Code 领先** |
-| 技能 | PASS: 304 项 | PASS: 37 项 | **Claude Code 领先** |
++| 技能 | PASS: 306 项 | PASS: 37 项 | **Claude Code 领先** |
| 钩子 | PASS: 8 种事件类型 | PASS: 11 种事件 | **OpenCode 更多!** |
| 规则 | PASS: 29 条 | PASS: 13 条指令 | **Claude Code 领先** |
| MCP 服务器 | PASS: 14 个 | PASS: 完整 | **完全对等** |
@@@ -1285,8 -1285,8 +1285,8 @@@ ECC 是**第一个最大化利用每个
| 功能特性 | Claude Code | Cursor IDE | Codex CLI | OpenCode |
|---------|-----------------------|------------|-----------|----------|
| **智能体** | 71 | 共享 (AGENTS.md) | 共享 (AGENTS.md) | 12 |
- | **命令** | 95 | 共享 | 基于指令 | 35 |
- | **技能** | 304 | 共享 | 10 (原生格式) | 37 |
+ | **命令** | 97 | 共享 | 基于指令 | 35 |
-| **技能** | 304 | 共享 | 10 (原生格式) | 37 |
++| **技能** | 306 | 共享 | 10 (原生格式) | 37 |
| **钩子事件** | 8 种类型 | 15 种类型 | SessionStart(1 种类型) | 11 种类型 |
| **钩子脚本** | 20+ 个脚本 | 16 个脚本 (DRY 适配器) | 1 个 SessionStart 引导脚本 | 插件钩子 |
| **规则** | 34 (通用 + 语言) | 34 (YAML 前页) | 基于指令 | 13 条指令 |
diff --cc manifests/context-packs/[email protected]
index d01e35e63,3ee3177c6..ed3be0d40
--- a/manifests/context-packs/[email protected]
+++ b/manifests/context-packs/[email protected]
@@@ -1,1 -1,288 +1,295 @@@
- {"coverage":{"skills":304,"withTriggers":33},"generatedAt":"2026-09-24T23:51:22.784Z","id":"skill-triggers@1","model":{"effort":null,"id":"hand-seeded","source":"manual-curation-pending-regeneration"},"registryDigest":"9b937fa19a9403313d22ed0a1284c563333569fc04958c47defa28d436254815","schemaVersion":1,"triggers":{"skill:agent-runtime-gateway-smoke-test":["test local agent gateway","remote sandbox callback smoke test","agent task stuck after dispatch","verify gateway tunnel","restore web api after agent test"],"skill:api-connector-builder":["add api integration","new provider connector","match existing integration pattern"],"skill:api-design":["rest endpoint design","pagination api","status codes","api versioning","rate limiting api","resource naming","filtering api","api error responses","offset pagination","limit query parameter","pagination defaults"],"skill:backend-patterns":["express api","node backend architecture","nextjs api routes","server side patterns","data access layer","static file server","url path handling","file server"],"skill:browser-qa":["deployed feature test","visual regression screenshots","core web vitals check","axe accessibility audit","ship do not ship","staging verification"],"skill:canary-watch":["post deploy monitoring","smoke test url","production url check","console errors production","sse stream check","after deploy verification"],"skill:code-tour":["onboarding walkthrough","explain subsystem","architecture tour","pr walkthrough","rca tour"],"skill:coding-standards":["code review standards","naming conventions","readability review","immutability conventions","fix naming typo","export naming","consistent exports"],"skill:content-hash-cache-pattern":["cache file processing","content addressed cache","sha256 hash cache"],"skill:database-migrations":["zero downtime migration","schema change production","add column large table","backfill data","expand contract","concurrent index","migration rollback","prisma migration","django migration"],"skill:deployment-patterns":["ci cd setup","dockerize app","health checks","rollback strategy","production readiness","deploy pipeline","containerize application"],"skill:design-system":["design tokens","visual consistency audit","css custom properties","ui audit","design system bootstrap"],"skill:django-patterns":["django orm","drf api","django rest framework","django caching","django signals","django middleware"],"skill:django-security":["django authentication","csrf protection","sql injection prevention","xss prevention","django deployment security","role based access control","authorization middleware","permissions checks"],"skill:docker-patterns":["dockerfile review","docker compose setup","container security","multi service orchestration"],"skill:error-handling":["error types","retry logic","circuit breaker","user facing errors","exception handling patterns","typed errors","error boundaries","go error handling","custom error class","error codes","config validation"],"skill:evm-token-decimals":["token decimals","wei conversion","erc20 balance off","bridge token precision"],"skill:frontend-a11y":["aria attributes","screen reader support","focus management","semantic html","form labeling","keyboard navigation react","a11y lint errors"],"skill:git-workflow":["merge vs rebase","commit conventions","resolve merge conflict","branching strategy","clean up commits","pull request cleanup","git history tidy"],"skill:hexagonal-architecture":["ports and adapters","dependency injection boundaries","decouple domain from io"],"skill:kubernetes-patterns":["kubernetes manifests","kubectl debugging","pod probes","k8s rbac","autoscaling config","configmap secrets"],"skill:orch-fix-defect":["fix a bug","broken behavior","regression fix","reproduce bug","defect repair"],"skill:postgres-patterns":["slow postgres query","query optimization","index design","rls policies","supabase schema","postgres indexing","database performance","schema design postgres","postgres driver","node postgres","query planner"],"skill:python-patterns":["pythonic code","pep 8","type hints python","python code review","idiomatic python"],"skill:python-testing":["pytest fixtures","mocking python","parametrized tests","coverage python","tdd python"],"skill:redis-patterns":["cache aside pattern","distributed lock","redis rate limiting","cache invalidation"],"skill:regex-vs-llm-structured-text":["parse invoice","extract receipt data","text extraction pipeline","parse form fields","cheap document parser","extract table data","parse log lines","parse access logs","common log format","log line parsing"],"skill:rust-patterns":["rust ownership","borrow checker","rust error handling","traits rust","rust concurrency","idiomatic rust"],"skill:search-first":["find existing library","npm package research","before writing custom code","evaluate existing tools","add dependency research"],"skill:security-review":["security audit","authentication review","sanitize user input","secrets handling","payment security checklist","prevent injection attacks","secure api endpoints","authn authz review","vulnerability checklist","input validation security","parameterized queries","sql injection"],"skill:security-scan":["audit claude config","claudemd security","mcp server audit","agentshield scan","hook configuration audit","settings json security"],"skill:tdd-workflow":["write test first","failing test","red green refactor","test driven development","regression test first","write a regression test"],"skill:verification-loop":["pre pr checks","verification report","quality gates","build lint test coverage","before creating a pr"]},"triggersDigest":"054898acb769893c46e5bd7037141f7be83fb775515ea1dbb52fb1c18aca19e6"}
+ {
+ "coverage": {
- "skills": 302,
- "withTriggers": 32
++ "skills": 306,
++ "withTriggers": 33
+ },
+ "generatedAt": "2026-09-24T23:51:22.784Z",
+ "id": "skill-triggers@1",
+ "model": {
+ "effort": null,
+ "id": "hand-seeded",
+ "source": "manual-curation-pending-regeneration"
+ },
- "registryDigest": "280c821f48ecc538706e75d13175ec7707ade0d307b74f3c865d29edc6f39167",
++ "registryDigest": "16549b53055bf5c106e51ca7fb2fe68f8a705b5f6bad40d388349320caedfa63",
+ "schemaVersion": 1,
+ "triggers": {
++ "skill:agent-runtime-gateway-smoke-test": [
++ "test local agent gateway",
++ "remote sandbox callback smoke test",
++ "agent task stuck after dispatch",
++ "verify gateway tunnel",
++ "restore web api after agent test"
++ ],
+ "skill:api-connector-builder": [
+ "add api integration",
+ "new provider connector",
+ "match existing integration pattern"
+ ],
+ "skill:api-design": [
+ "rest endpoint design",
+ "pagination api",
+ "status codes",
+ "api versioning",
+ "rate limiting api",
+ "resource naming",
+ "filtering api",
+ "api error responses",
+ "offset pagination",
+ "limit query parameter",
+ "pagination defaults"
+ ],
+ "skill:backend-patterns": [
+ "express api",
+ "node backend architecture",
+ "nextjs api routes",
+ "server side patterns",
+ "data access layer",
+ "static file server",
+ "url path handling",
+ "file server"
+ ],
+ "skill:browser-qa": [
+ "deployed feature test",
+ "visual regression screenshots",
+ "core web vitals check",
+ "axe accessibility audit",
+ "ship do not ship",
+ "staging verification"
+ ],
+ "skill:canary-watch": [
+ "post deploy monitoring",
+ "smoke test url",
+ "production url check",
+ "console errors production",
+ "sse stream check",
+ "after deploy verification"
+ ],
+ "skill:code-tour": [
+ "onboarding walkthrough",
+ "explain subsystem",
+ "architecture tour",
+ "pr walkthrough",
+ "rca tour"
+ ],
+ "skill:coding-standards": [
+ "code review standards",
+ "naming conventions",
+ "readability review",
+ "immutability conventions",
+ "fix naming typo",
+ "export naming",
+ "consistent exports"
+ ],
+ "skill:content-hash-cache-pattern": [
+ "cache file processing",
+ "content addressed cache",
+ "sha256 hash cache"
+ ],
+ "skill:database-migrations": [
+ "zero downtime migration",
+ "schema change production",
+ "add column large table",
+ "backfill data",
+ "expand contract",
+ "concurrent index",
+ "migration rollback",
+ "prisma migration",
+ "django migration"
+ ],
+ "skill:deployment-patterns": [
+ "ci cd setup",
+ "dockerize app",
+ "health checks",
+ "rollback strategy",
+ "production readiness",
+ "deploy pipeline",
+ "containerize application"
+ ],
+ "skill:design-system": [
+ "design tokens",
+ "visual consistency audit",
+ "css custom properties",
+ "ui audit",
+ "design system bootstrap"
+ ],
+ "skill:django-patterns": [
+ "django orm",
+ "drf api",
+ "django rest framework",
+ "django caching",
+ "django signals",
+ "django middleware"
+ ],
+ "skill:django-security": [
+ "django authentication",
+ "csrf protection",
+ "sql injection prevention",
+ "xss prevention",
+ "django deployment security",
+ "role based access control",
+ "authorization middleware",
+ "permissions checks"
+ ],
+ "skill:docker-patterns": [
+ "dockerfile review",
+ "docker compose setup",
+ "container security",
+ "multi service orchestration"
+ ],
+ "skill:error-handling": [
+ "error types",
+ "retry logic",
+ "circuit breaker",
+ "user facing errors",
+ "exception handling patterns",
+ "typed errors",
+ "error boundaries",
+ "go error handling",
+ "custom error class",
+ "error codes",
+ "config validation"
+ ],
+ "skill:evm-token-decimals": [
+ "token decimals",
+ "wei conversion",
+ "erc20 balance off",
+ "bridge token precision"
+ ],
+ "skill:frontend-a11y": [
+ "aria attributes",
+ "screen reader support",
+ "focus management",
+ "semantic html",
+ "form labeling",
+ "keyboard navigation react",
+ "a11y lint errors"
+ ],
+ "skill:git-workflow": [
+ "merge vs rebase",
+ "commit conventions",
+ "resolve merge conflict",
+ "branching strategy",
+ "clean up commits",
+ "pull request cleanup",
+ "git history tidy"
+ ],
+ "skill:hexagonal-architecture": [
+ "ports and adapters",
+ "dependency injection boundaries",
+ "decouple domain from io"
+ ],
+ "skill:kubernetes-patterns": [
+ "kubernetes manifests",
+ "kubectl debugging",
+ "pod probes",
+ "k8s rbac",
+ "autoscaling config",
+ "configmap secrets"
+ ],
+ "skill:orch-fix-defect": [
+ "fix a bug",
+ "broken behavior",
+ "regression fix",
+ "reproduce bug",
+ "defect repair"
+ ],
+ "skill:postgres-patterns": [
+ "slow postgres query",
+ "query optimization",
+ "index design",
+ "rls policies",
+ "supabase schema",
+ "postgres indexing",
+ "database performance",
+ "schema design postgres",
+ "postgres driver",
+ "node postgres",
+ "query planner"
+ ],
+ "skill:python-patterns": [
+ "pythonic code",
+ "pep 8",
+ "type hints python",
+ "python code review",
+ "idiomatic python"
+ ],
+ "skill:python-testing": [
+ "pytest fixtures",
+ "mocking python",
+ "parametrized tests",
+ "coverage python",
+ "tdd python"
+ ],
+ "skill:redis-patterns": [
+ "cache aside pattern",
+ "distributed lock",
+ "redis rate limiting",
+ "cache invalidation"
+ ],
+ "skill:regex-vs-llm-structured-text": [
+ "parse invoice",
+ "extract receipt data",
+ "text extraction pipeline",
+ "parse form fields",
+ "cheap document parser",
+ "extract table data",
+ "parse log lines",
+ "parse access logs",
+ "common log format",
+ "log line parsing"
+ ],
+ "skill:rust-patterns": [
+ "rust ownership",
+ "borrow checker",
+ "rust error handling",
+ "traits rust",
+ "rust concurrency",
+ "idiomatic rust"
+ ],
+ "skill:search-first": [
+ "find existing library",
+ "npm package research",
+ "before writing custom code",
+ "evaluate existing tools",
+ "add dependency research"
+ ],
+ "skill:security-review": [
+ "security audit",
+ "authentication review",
+ "sanitize user input",
+ "secrets handling",
+ "payment security checklist",
+ "prevent injection attacks",
+ "secure api endpoints",
+ "authn authz review",
+ "vulnerability checklist",
+ "input validation security",
+ "parameterized queries",
+ "sql injection"
+ ],
+ "skill:security-scan": [
+ "audit claude config",
+ "claudemd security",
+ "mcp server audit",
+ "agentshield scan",
+ "hook configuration audit",
+ "settings json security"
+ ],
+ "skill:tdd-workflow": [
+ "write test first",
+ "failing test",
+ "red green refactor",
+ "test driven development",
+ "regression test first",
+ "write a regression test"
+ ],
+ "skill:verification-loop": [
+ "pre pr checks",
+ "verification report",
+ "quality gates",
+ "build lint test coverage",
+ "before creating a pr"
+ ]
+ },
- "triggersDigest": "25b97a9e06fc336c7cf95ab854ed1a41033a54bcd6e1fb1cf69dc906332462aa"
++ "triggersDigest": "054898acb769893c46e5bd7037141f7be83fb775515ea1dbb52fb1c18aca19e6"
+ }
diff --cc package.json
index 2691cd92e,0e1c4ca24..88ec7a84c
--- a/package.json
+++ b/package.json
@@@ -514,10 -520,10 +524,10 @@@
"orchestrate:status": "node scripts/orchestration-status.js",
"orchestrate:worker": "bash scripts/orchestrate-codex-worker.sh",
"orchestrate:tmux": "node scripts/orchestrate-worktrees.js",
- "test:validators": "node scripts/ci/check-unicode-safety.js && node scripts/ci/validate-agents.js && node scripts/ci/validate-commands.js && node scripts/ci/validate-rules.js && node scripts/ci/validate-skills.js && node scripts/ci/validate-hooks.js && node scripts/ci/check-hooks-schema-keys.js && node scripts/ci/validate-install-manifests.js && node scripts/ci/validate-context-profiles.js && node scripts/ci/validate-carrier-closure.js && node scripts/ci/validate-no-personal-paths.js && npm run catalog:check && npm run command-registry:check",
- "test:validators": "node scripts/ci/check-unicode-safety.js && node scripts/ci/validate-agents.js && node scripts/ci/validate-commands.js && node scripts/ci/validate-rules.js && node scripts/ci/validate-skills.js && node scripts/ci/validate-skill-host-compat.js && node scripts/ci/validate-hooks.js && node scripts/ci/check-hooks-schema-keys.js && node scripts/ci/validate-install-manifests.js && node scripts/ci/validate-context-profiles.js && node scripts/ci/validate-no-personal-paths.js && npm run catalog:check && npm run command-registry:check",
++ "test:validators": "node scripts/ci/check-unicode-safety.js && node scripts/ci/validate-agents.js && node scripts/ci/validate-commands.js && node scripts/ci/validate-rules.js && node scripts/ci/validate-skills.js && node scripts/ci/validate-skill-host-compat.js && node scripts/ci/validate-hooks.js && node scripts/ci/check-hooks-schema-keys.js && node scripts/ci/validate-install-manifests.js && node scripts/ci/validate-context-profiles.js && node scripts/ci/validate-carrier-closure.js && node scripts/ci/validate-no-personal-paths.js && npm run catalog:check && npm run command-registry:check",
"test:js": "node tests/run-all.js",
"test:python": "python3 -m pytest tests/ -q",
- "test": "node scripts/ci/check-unicode-safety.js && node scripts/ci/validate-agents.js && node scripts/ci/validate-commands.js && node scripts/ci/validate-rules.js && node scripts/ci/validate-skills.js && node scripts/ci/validate-hooks.js && node scripts/ci/check-hooks-schema-keys.js && node scripts/ci/validate-install-manifests.js && node scripts/ci/validate-context-profiles.js && node scripts/ci/validate-carrier-closure.js && node scripts/ci/validate-no-personal-paths.js && npm run catalog:check && npm run command-registry:check && node tests/run-all.js",
- "test": "node scripts/ci/check-unicode-safety.js && node scripts/ci/validate-agents.js && node scripts/ci/validate-commands.js && node scripts/ci/validate-rules.js && node scripts/ci/validate-skills.js && node scripts/ci/validate-skill-host-compat.js && node scripts/ci/validate-hooks.js && node scripts/ci/check-hooks-schema-keys.js && node scripts/ci/validate-install-manifests.js && node scripts/ci/validate-context-profiles.js && node scripts/ci/validate-no-personal-paths.js && npm run catalog:check && npm run command-registry:check && node tests/run-all.js",
++ "test": "node scripts/ci/check-unicode-safety.js && node scripts/ci/validate-agents.js && node scripts/ci/validate-commands.js && node scripts/ci/validate-rules.js && node scripts/ci/validate-skills.js && node scripts/ci/validate-skill-host-compat.js && node scripts/ci/validate-hooks.js && node scripts/ci/check-hooks-schema-keys.js && node scripts/ci/validate-install-manifests.js && node scripts/ci/validate-context-profiles.js && node scripts/ci/validate-carrier-closure.js && node scripts/ci/validate-no-personal-paths.js && npm run catalog:check && npm run command-registry:check && node tests/run-all.js",
"coverage:js": "c8 --all --include=\"scripts/**/*.js\" --include=\"scripts/**/*.mjs\" --check-coverage --lines 80 --functions 80 --branches 80 --statements 80 --reporter=text --reporter=lcov node tests/run-all.js",
"coverage:python": "python3 -m pytest tests/ -q --cov=src --cov-report=term --cov-fail-under=80",
"coverage": "c8 --all --include=\"scripts/**/*.js\" --include=\"scripts/**/*.mjs\" --check-coverage --lines 80 --functions 80 --branches 80 --statements 80 --reporter=text --reporter=lcov node tests/run-all.js",
diff --cc scripts/lib/install/content-transform.js
index a2c48a883,b1a16576d..b2f6e1fe1
--- a/scripts/lib/install/content-transform.js
+++ b/scripts/lib/install/content-transform.js
@@@ -17,9 -16,9 +17,12 @@@ function transformInstallContent(operat
if (!operation.contentTransform) {
return content;
}
+ if (operation.contentTransform === 'claude-manual-plugin-namespace') {
+ return stripPluginNamespace(content);
+ }
+ if (operation.contentTransform === 'qwen-agent-frontmatter') {
+ return require('../../qwen-adapt-agents').adaptFrontmatter(content).text;
+ }
if (operation.contentTransform === 'antigravity-agent-frontmatter') {
return adaptAntigravityAgent(content, operation.sourceRelativePath);
}
diff --cc tests/scripts/manual-claude-namespace.test.js
index b2e49bd9e,000000000..066731df7
mode 100644,000000..100644
--- a/tests/scripts/manual-claude-namespace.test.js
+++ b/tests/scripts/manual-claude-namespace.test.js
@@@ -1,111 -1,0 +1,111 @@@
+'use strict';
+
+const assert = require('assert');
+const fs = require('fs');
+const os = require('os');
+const path = require('path');
+const { spawnSync } = require('child_process');
+const { createHash } = require('crypto');
+const { readInstallState, writeInstallState } = require('../../scripts/lib/install-state');
+
+const cli = path.resolve(__dirname, '../../scripts/ecc.js');
+let passed = 0;
+let failed = 0;
+
+for (const target of ['claude', 'claude-project']) {
+ const root = fs.realpathSync(fs.mkdtempSync(path.join(os.tmpdir(), 'ecc-native-names-')));
+ const home = path.join(root, 'home');
+ const project = path.join(root, 'project');
+ fs.mkdirSync(home);
+ fs.mkdirSync(project);
+ const env = {
+ ...process.env,
+ HOME: home,
+ USERPROFILE: home,
+ CLAUDE_CONFIG_DIR: path.join(home, '.claude'),
+ ECC_AGENT_DATA_HOME: path.join(home, '.claude'),
+ XDG_CONFIG_HOME: path.join(home, '.config'),
+ OPENCODE_CONFIG_DIR: path.join(home, '.config/opencode'),
+ CODEX_HOME: path.join(home, '.codex'),
+ ECC_DRY_RUN: '0',
+ };
+ const installRoot = path.join(target === 'claude' ? home : project, '.claude');
+ const rule = path.join(installRoot, 'rules/ecc/common/agents.md');
+ const run = args => {
+ const result = spawnSync(process.execPath, [cli, ...args], {
- cwd: project, env, encoding: 'utf8', timeout: 45000,
++ cwd: project, env, encoding: 'utf8', maxBuffer: 4 * 1024 * 1024, timeout: 45000,
+ });
+ assert.ifError(result.error);
+ assert.strictEqual(result.status, 0, result.stderr || result.stdout);
+ return result;
+ };
+ const assertNativeNames = () => {
+ assert.match(fs.readFileSync(rule, 'utf8'), /Agent\(subagent_type: "planner"/);
+ assert.doesNotMatch(fs.readFileSync(rule, 'utf8'), /Agent\(subagent_type: "ecc:planner"/);
+ assert.ok(fs.existsSync(path.join(installRoot, 'agents/planner.md')));
+ assert.ok(fs.existsSync(path.join(installRoot, 'skills/tdd-workflow/SKILL.md')));
+ };
+ try {
+ const installArgs = ['install', '--target', target, '--modules', 'rules-core',
+ '--with', 'agent:planner', '--with', 'skill:tdd-workflow', '--no-hooks'];
+ run(installArgs);
+ assertNativeNames();
+ const report = JSON.parse(run(['doctor', '--target', target, '--json']).stdout);
+ assert.strictEqual(report.summary.errorCount, 0);
+ assert.strictEqual(report.summary.warningCount, 0);
+ // Seed obsolete managed records from an older install, then exercise the
+ // public reinstall instead of calling reconciliation directly.
+ const statePath = path.join(installRoot, 'ecc/install-state.json');
+ const obsoleteContent = '# obsolete managed rule\n';
+ const stalePaths = ['obsolete-unchanged.md', 'obsolete-edited.md']
+ .map(name => path.join(installRoot, 'rules/ecc/common', name));
+ const state = readInstallState(statePath);
+ for (const file of stalePaths) {
+ fs.writeFileSync(file, obsoleteContent);
+ state.operations.push({
+ kind: 'copy-file', moduleId: 'rules-core',
+ sourceRelativePath: `rules/common/${path.basename(file)}`,
+ destinationPath: file, strategy: 'preserve-relative-path',
+ ownership: 'managed', scaffoldOnly: false,
+ contentTransform: 'claude-manual-plugin-namespace',
+ contentSha256: createHash('sha256').update(obsoleteContent).digest('hex'),
+ });
+ }
+ writeInstallState(statePath, state);
+ const userEdit = '# user wants to keep this obsolete rule\n';
+ fs.writeFileSync(stalePaths[1], userEdit);
+ const reinstall = JSON.parse(run([...installArgs, '--json']).stdout).result;
+ assert.ok(!fs.existsSync(stalePaths[0]), 'Unmodified obsolete managed files should be removed');
+ assert.strictEqual(fs.readFileSync(stalePaths[1], 'utf8'), userEdit);
+ assert.deepStrictEqual(reinstall.reconciledStalePaths, [stalePaths[0]]);
+ assert.strictEqual(reinstall.warnings.filter(warning => warning.startsWith('Preserved orphaned file ')).length, 1);
+ assert.ok(readInstallState(statePath).operations.every(operation => !stalePaths.includes(operation.destinationPath)));
+ assertNativeNames();
+ const afterReinstall = JSON.parse(run(['doctor', '--target', target, '--json']).stdout);
+ assert.strictEqual(afterReinstall.summary.errorCount, 0);
+ assert.strictEqual(afterReinstall.summary.warningCount, 0);
+ fs.appendFileSync(rule, '\nlocal drift\n');
+ run(['repair', '--target', target, '--json']);
+ assertNativeNames();
+ assert.doesNotMatch(fs.readFileSync(rule, 'utf8'), /local drift/);
+ run(installArgs);
+ assertNativeNames();
+ const userFile = path.join(installRoot, 'user-note.txt');
+ fs.writeFileSync(userFile, 'keep this user file\n');
+ run(['uninstall', '--target', target, '--json']);
+ assert.ok(!fs.existsSync(rule));
+ assert.strictEqual(fs.readFileSync(userFile, 'utf8'), 'keep this user file\n');
+ assert.strictEqual(fs.readFileSync(stalePaths[1], 'utf8'), userEdit);
+ passed++;
+ console.log(` PASS ${target} install, doctor, repair, reinstall and uninstall preserve native names`);
+ } catch (error) {
+ failed++;
+ console.error(` FAIL ${target}: ${error.stack}`);
+ } finally {
+ fs.rmSync(root, { recursive: true, force: true });
+ }
+}
+
+console.log(`Passed: ${passed}`);
+console.log(`Failed: ${failed}`);
+process.exitCode = failed ? 1 : 0;