docs/MANUAL-ADAPTATION-GUIDE.md
Use this guide when you want ECC behavior inside a harness that does not natively load .claude/, .codex/, .opencode/, .cursor/, or .agent/ layouts.
This is the fallback path for tools like Grok and other chat-style interfaces that can accept system prompts, uploaded files, or pasted instructions, but cannot execute the repo's native install surfaces directly.
Use manual adaptation when the target harness:
Prefer a first-class ECC target whenever one exists:
Use this guide only when you need ECC behavior in a non-native harness.
When you adapt ECC manually, you are trying to preserve four things:
You are not trying to mirror every file in the repo. You are trying to recreate the useful behavior with the smallest possible context bundle.
Default to manual selection from the repo itself.
Start with only the files you actually need:
Good minimal examples:
skills/python-patterns/SKILL.mdskills/tdd-workflow/SKILL.mdskills/verification-loop/SKILL.mdskills/backend-patterns/SKILL.mdskills/security-review/SKILL.mdskills/tdd-workflow/SKILL.mdskills/brand-voice/SKILL.mdskills/content-engine/SKILL.mdskills/crosspost/SKILL.mdIf the harness supports file upload, upload only those files.
If the harness only supports pasted context, extract the relevant sections and paste a compressed bundle rather than the raw full files.
You do not need extra tooling to do this.
Use the repo directly:
cd /path/to/everything-claude-code
sed -n '1,220p' skills/tdd-workflow/SKILL.md > /tmp/ecc-context.md
printf '\n\n---\n\n' >> /tmp/ecc-context.md
sed -n '1,220p' skills/backend-patterns/SKILL.md >> /tmp/ecc-context.md
printf '\n\n---\n\n' >> /tmp/ecc-context.md
sed -n '1,220p' skills/security-review/SKILL.md >> /tmp/ecc-context.md
You can also use rg to identify the right skills before packing:
rg -n "When to use|Use when|Trigger" skills -g 'SKILL.md'
Optional: if you already use a repo packer like repomix, it can help compress selected files into one handoff document. It is a convenience tool, not the canonical ECC path.
When manually packing ECC for another harness:
If you need a tighter prompt format, convert the essential parts into a compact structured block:
<skill name="tdd-workflow">
<when>New feature, bug fix, or refactor that should be test-first.</when>
<steps>
<step>Write a failing test.</step>
<step>Make it pass with the smallest change.</step>
<step>Refactor and rerun validation.</step>
</steps>
</skill>
If the harness has no slash-command system, define a small command registry in the system prompt or session preamble.
Example:
Command registry:
- /plan -> use planner-style reasoning, produce a short execution plan, then act
- /tdd -> follow the tdd-workflow skill
- /review -> switch into code-review mode and enumerate findings first
- /verify -> run a verification loop before claiming completion
You are not implementing real commands. You are giving the harness explicit invocation handles that map to ECC behavior.
If the harness has no native hooks, move the hook intent into the standing instructions.
Example:
Before writing code:
1. Check whether a relevant skill should be activated.
2. Check for security-sensitive changes.
3. Prefer tests before implementation when feasible.
Before finalizing:
1. Re-read the user request.
2. Verify the main changed paths.
3. State what was actually validated and what was not.
That does not recreate true automation, but it captures the operational discipline of ECC.
| Capability | First-Class ECC Targets | Manual-Adaptation Targets |
|---|---|---|
| Folder-based install | Native | No |
| Slash commands | Native | Simulated in prompt |
| Hooks | Native | Simulated in prompt |
| Skill activation | Native | Manual |
| Repo-local tooling | Native | Depends on harness |
| Context packing | Optional | Required |
Example starter preamble:
You are operating with a manually adapted ECC bundle.
Active skills:
- backend-patterns
- tdd-workflow
- security-review
Command registry:
- /plan
- /tdd
- /verify
Before writing code, follow the active skill instructions.
Before finalizing, verify what changed and report any remaining gaps.
Manual adaptation is useful, but it is still second-class compared with native targets.
You lose:
So the rule is simple: