用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tomevault-io/skills-registry --skill ears-init命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | ears-init |
| description | | Use when this capability is needed. |
Analyze the current project and generate customized EARS configuration files so that Claude Code (and optionally Cursor and Codex) can capture knowledge effectively.
Scan the project to build a profile:
Detect language and framework:
package.json → Node.js/TypeScriptpyproject.toml or setup.py or requirements.txt → PythonCargo.toml → Rustgo.mod → Gopom.xml or build.gradle → Java/Kotlin*.sln or *.csproj → C#/.NETMakefile + *.c/*.cpp/*.h → C/C++Gemfile → Rubymix.exs → ElixirDetect build commands:
package.json → read scripts (build, test, dev, start)pyproject.toml → read [project.scripts] and [tool.pytest]Makefile → list top-level targetsCargo.toml → cargo build, cargo testgo.mod → go build, go testDetect test commands:
pytest, python -m unittest, toxjest, vitest, mocha, npm testcargo testgo test ./...mvn test, gradle testUnderstand architecture:
Check for existing EARS artifacts:
CLAUDE.md → exists? has EARS section?KNOWN_ISSUES.md → exists?LEARNING.md → exists?traces/ → exists? has content?ears-config.json → exists?.cursor/rules/ → has EARS rules?AGENTS.md → exists?Use the project analysis to fill in a CLAUDE.md. Use the template from this plugin's templates/PROJECT-CLAUDE.md as the base structure.
If CLAUDE.md already exists:
If CLAUDE.md does not exist:
The EARS section must include:
[EARS] promptsCreate the directory structure and files:
traces/ directory — create if missing
Initial trace.md — ask user for the current task name, create traces/<task-name>/trace.md:
# Trace: <task-name>
Started: <current timestamp>
KNOWN_ISSUES.md — create from template if missing
LEARNING.md — create if missing:
# Learning Log
Tech decisions, new concepts, mistakes, and lessons for this project.
ears-config.json — create with project-specific error patterns:
For Python projects:
{
"error_patterns": [
"Traceback (most recent call last)",
"SyntaxError:", "TypeError:", "ValueError:", "KeyError:",
"IndexError:", "AttributeError:", "ImportError:",
"ModuleNotFoundError:", "FileNotFoundError:", "RuntimeError:",
"AssertionError:",
Ask the user: "Do you use Cursor or Codex for this project? I can generate EARS rules for them too."
If Cursor is used:
Generate .cursor/rules/ears-project.mdc (create .cursor/rules/ if needed):
templates/cursor-ears.mdc templatealwaysApply: trueIf Codex is used:
Generate project-level AGENTS.md:
templates/PROJECT-AGENTS.md template~/.claude/scripts/ears-trace.py existshooks/ears-trace.py from the plugin to ~/.claude/scripts/ears-trace.py~/.claude/settings.json has PostToolUse hooks configuredAfter completion, display a summary:
EARS initialized for <project-name>:
- CLAUDE.md: <created | updated | already exists>
- traces/<task>/trace.md: created
- KNOWN_ISSUES.md: <created | already exists>
- LEARNING.md: <created | already exists>
- ears-config.json: created (<tech-stack> patterns)
- Cursor rules: <created | skipped>
- Codex AGENTS.md: <created | skipped>
- Hook: <upgraded | current | skipped>
You're ready to go. EARS will automatically prompt you to record
errors, checkpoints, discoveries, and dead ends as you work.
Source: CHOSENX-GPU/synapse — distributed by TomeVault.
For Node.js/TypeScript projects:
{
"error_patterns": [
"ReferenceError:", "TypeError:", "SyntaxError:", "RangeError:",
"ENOENT:", "EACCES:", "ECONNREFUSED:", "ERR_MODULE_NOT_FOUND",
"Cannot find module", "Unexpected token", "FATAL ERROR:",
"UnhandledPromiseRejection"
],
"checkpoint_interval": 10,
"error_cooldown_seconds": 120,
"checkpoint_cooldown_seconds": 600,
"ignore_paths": [".git/", "node_modules/", "dist/", ".next/", "coverage/"]
}
For Rust projects:
{
"error_patterns": [
"error[E", "panicked at", "fatal runtime error",
"thread 'main' panicked", "cannot find", "mismatched types",
"borrow of moved value", "lifetime"
],
"checkpoint_interval": 10,
"error_cooldown_seconds": 120,
"checkpoint_cooldown_seconds": 600,
"ignore_paths": [".git/", "target/"]
}
For Go projects:
{
"error_patterns": [
"panic:", "fatal error:", "undefined:", "cannot use",
"too many arguments", "not enough arguments",
"imported and not used", "declared and not used"
],
"checkpoint_interval": 10,
"error_cooldown_seconds": 120,
"checkpoint_cooldown_seconds": 600,
"ignore_paths": [".git/", "vendor/"]
}
For other/mixed projects: use the default patterns from the hook.