configure-ecc
它能做什么
这个工具可以帮你安装和配置 ECC。ECC 是一套能自动执行任务、为你的编程环境加强安全性的系统。它会一步一步引导你完成配置。
适用场景
- ✓第一次安装 ECC 时。
- ✓需要更新或重新配置 ECC 时。
- ✓ECC 出了问题,需要修复安装时。
技能链接
https://github.com/affaan-m/ECC/blob/main/skills/configure-ecc/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
📦 包含此技能的技能包
可以这样问 AI
“帮我设置 ECC,使用标准安全级别,并且作用范围设为项目。”
每周 5 个新技能,1 分钟读完。
工作原理
工具会问你一些关于使用方式的问题,比如设置应该保存在哪里(你的个人账户、项目中,还是仅本地),以及你希望自动化到什么程度。之后它会列出即将执行的操作摘要,并在应用更改前请你确认。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Configure ECC
Run a conversational wizard inside the current harness. Inventory first, collect only supported choices, preview, confirm once, apply non-interactively, verify, and show the welcome only after success. Never clone ECC into a temporary directory or copy plugin components by hand.
For a human-operated terminal, the canonical entry points are ecc setup and
npx ecc-universal setup. Inside a harness, use the explicit non-interactive
commands below instead.
Route by the current harness
- In Claude Code, use the full scope-and-hook wizard below.
- In Codex, use Codex's native plugin lifecycle. Do not offer Claude scopes or map ECC's four Claude hook profiles onto Codex.
- In Kimi, install the project surface under
./.kimi-code. Kimi does not provide ECC's Claude lifecycle-hook profiles. - If the harness is uncertain, state the detected evidence and ask which harness to configure before running a mutating command.
This skill is a post-install reconfiguration path. It cannot intercept or replace a provider's built-in first-install UI.
Claude Code: run the full conversational wizard
1. Inventory without changing anything
Run both commands and summarize the installed ECC scope, enabled state, and marketplace source:
claude plugin list --json
claude plugin marketplace list --json
Treat a single existing ecc@ecc installation as a reconfiguration. Do not
interpret Claude's provider-owned "Open home page" control as installation
evidence. Stop and report the recovery returned by setup for multiple ECC
scopes, a legacy/manual install, malformed settings, or a marketplace collision;
never guess which state to delete.
2. Collect exactly two choices
Ask exactly one scope question and require one value:
user | project | localuseris global for this user.projectis shared through repository settings.localis private to the current project.
Visually mark only the selected scope as selected or installing. If the user
chooses a different scope from a single existing install, describe it as a
scope migration and include --move-scope in the commands below.
Ask exactly one hook-mode question and require one value:
off | minimal | standard | strictoffkeeps skills and commands but disables ECC hook automation.minimalenables the lightest lifecycle and safety automation.standardbalances quality and safety automation.strictenables the strongest checks and reminders.
Hook preference is personal Claude plugin configuration; it does not follow the selected install scope.
3. Preview and confirm once
Prefer the plugin-bundled setup script. Substitute the two selected values and
include --move-scope only for a scope migration:
node "$CLAUDE_PLUGIN_ROOT/scripts/setup.js" --mode claude-plugin \
--scope <scope> --hooks <hooks> [--move-scope] --dry-run --json
If $CLAUDE_PLUGIN_ROOT is unavailable, use the published npm package:
npx --yes --package ecc-universal ecc setup --mode claude-plugin \
--scope <scope> --hooks <hooks> [--move-scope] --dry-run --json
Show exactly one confirmation summary containing the planned action, one scope,
one hook mode, marketplace action, and any source-to-destination migration.
Ask one yes/no question. Do not run a bare interactive ecc setup through a
harness shell tool because that shell is commonly non-TTY.
4. Apply the explicit choices
After confirmation, rerun the same route without --dry-run. Keep every choice
explicit and request JSON so success can be checked deterministically:
node "$CLAUDE_PLUGIN_ROOT/scripts/setup.js" --mode claude-plugin \
--scope <scope> --hooks <hooks> [--move-scope] --yes --json
Fallback:
npx --yes --package ecc-universal ecc setup --mode claude-plugin \
--scope <scope> --hooks <hooks> [--move-scope] --yes --json
5. Verify, then render the welcome
Require a zero exit status and a setup result whose scope and hooks equal
the selected values. Then independently run:
claude plugin list --json
Continue only when exactly one enabled ecc@ecc entry exists at the selected
scope. When $CLAUDE_PLUGIN_ROOT is available, pass the successful setup
action (installed, updated, migrated, resumed, or
already-migrated) to the bundled renderer:
Before invoking it, require the provider-reported version to match
…
常见问题
“作用范围”是什么意思?
作用范围决定 ECC 设置在哪里生效:“user”表示你的所有项目,“project”表示与他人共享的某个特定项目,“local”表示仅在当前项目中供你自己使用。
“hooks”是什么?
hooks 是 ECC 可以执行的自动化操作。级别从“off”(不进行自动化)到“strict”(检查和提醒最为严格)不等。
如果我不确认会怎样?
如果你不确认,就不会应用任何更改,配置也会被取消。工具只有在得到你明确同意后才会继续执行。
详情
作者的原始描述
Run the conversational ECC setup wizard inside the current harness: inventory the install, collect scope (user/project/local) and hook mode (off/minimal/standard/strict) in Claude Code, use Codex's native plugin lifecycle, or install the project surface under ./.kimi-code, then preview, apply, and verify. Use when installing, updating, reconfiguring, or repairing an ECC installation, changing hook
repo: affaan-m/ECC
热度
- GitHub 星标
- 280k
- 排名
- #282
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
accessibility
280k帮你的智能体创建人人都能使用的界面。确保网站和应用对残障人士友好,比如失明或行动不便的用户也能顺畅使用。
agent-architecture-audit
280k让你的智能体检查一切是否正常运行。它能找出并修复 AI 系统中的问题,确保系统按预期工作。
agent-eval
280k帮你的智能体比较不同的 AI 编程工具。它能衡量哪个工具在特定任务上更快、更便宜、更可靠。
agent-harness-construction
280k让你的智能体更好地理解如何完成任务。它会优化智能体使用的工具和指令,提高成功的几率。