From mk
Analyzes external systems, repos, or descriptions and produces a spec for replicating or adapting features into the current project. Supports compare, copy, improve, and port modes.
How this skill is triggered — by the user, by Claude, or both
Slash command
/mk:chom <source-url|path|description> [feature] [--compare|--copy|--improve|--port] [--lean|--auto]When to use
Use when copy-catting or replicating features from external systems/repos into the current project. NOT for packing the current project (see mk:pack) or one-shot URL fetches (see mk:web-to-markdown).
<source-url|path|description> [feature] [--compare|--copy|--improve|--port] [--lean|--auto]The summary Claude sees in its skill listing — used to decide when to auto-load this skill
<!-- SECURITY ANCHOR
Analyze external systems, repos, apps, or ideas and produce a spec for replicating them in your project.
Principles: understand before copy | challenge before plan | adapt to YOUR stack
/mk:chom <github-url|web-url|local-path|description> [feature] [--compare|--copy|--improve|--port] [--lean|--auto]
Modes (all user-explicit — chom does NOT auto-derive adaptation depth):
--compare: side-by-side analysis only (phases 1–3), no decision or handoff--copy: user intent = transplant with minimal changes; biases Phase 3 toward compatibility gaps--improve: user intent = adapt anti-patterns during port; biases Phase 3 toward anti-pattern detection--port: user intent = rewrite idiomatically for local stack; biases Phase 3 toward idiom translationSpeed flags (default OFF):
--lean: skip Phase 1 researcher-agent background gathering. HARD GATE still enforced.--auto: auto-approve non-HARD-GATE steps. HARD GATE still requires human approval.Migration (v1 → v2): --analyze (v1 default) now aliases the no-flag default and emits a deprecation notice. Removed in v1.2.
If the user provides natural-language mode hints, map them to an explicit flag:
| User says | Suggested flag |
|---|---|
| "compare", "vs", "how does X do Y" | --compare |
| "copy", "1:1", "exact", "as-is" | --copy |
| "adapt", "improve", "like how X does it" | --improve |
| "port", "rewrite", "convert", "steal", "bring from" | --port |
If no hint and no flag, run no-flag default (full workflow, no mode declaration in handoff).
Detect input type FIRST, then route:
| Input | Detection | Tool |
|---|---|---|
Git URL (github.com/*, gitlab.com/*) | URL contains git host | git clone --depth 1 → mk:scout |
Web URL (https://...) | URL, not git host | mk:web-to-markdown (static) or mk:agent-browser (SPA) |
Local path (./, ../, /) | Starts with . or / | Direct Read/Glob |
| Freeform text | No URL or path | researcher agent via Task() (WebSearch) |
| Image/screenshot | Image file extension | mk:multimodal (Gemini vision) |
Clean up cloned repos after analysis.
[1. Recon] → [2. Map] → [3. Analyze] → [4. Challenge] ══ HARD GATE ══ [5. Decision] → [6. Handoff]
Hard gate: Phase 4 must complete and get human approval before Phase 5. HARD GATE is non-bypassable — no flag (including --lean or --auto) skips human approval here.
Route input per table above. Always also read local docs/project-context.md for YOUR project's stack.
For git repos: clone shallow, run mk:scout for architecture fingerprint.
For web URLs: fetch content, capture structure and behavior.
--lean effect depends on input type:
researcher agent background gathering; proceed to Phase 2 with only the user's description + docs/project-context.mdBuild dependency matrix: source components → local equivalents (EXISTS / NEW / CONFLICT). For each component: what exists locally, what needs building, what libraries are needed.
Trace execution flow, data model, API contracts, UX patterns. Understand WHY, not just HOW.
Mode-specific focus when the user passed an explicit mode:
--copy: compatibility gaps and minimum adaptation needed--improve: anti-patterns to replace during adoption--port: idiomatic translation into local patterns--compare or no flag: architectural differences and trade-offsEscalation: if the feature has ≥3 architectural layers OR stateful workflows, emit handoff text: "Complex flow detected. Before Phase 4, trace via /mk:sequential-thinking, then return to chom." Do NOT auto-invoke any skill.
For --compare: produce Comparison Report and STOP here.
Load references/challenge-framework.md. Ask 7 questions. Score risk. Present decision matrix.
Get human approval before continuing. If risk ≥ 5: recommend rejection.
Go/no-go. If go: formalize Replication Spec (no mode declaration — the user's flag, if any, is noted but chom does not pick --copy/--improve/--port on the user's behalf). If no-go: Rejection Report with reasoning.
Output Replication Spec + handoff text:
Replication Spec ready.
Challenge summary: <N> stack-fit reds, <N> data-model red, <N> blast-radius reds.
Risk level: <low|medium|high> (per challenge-framework.md 0-2 low / 3-4 medium / 5+ high).
To implement, run:
/mk:plan-creator "Replicate [feature] from [source]"
To bias future chom analysis toward a specific adaptation depth, re-invoke with:
/mk:chom [source] --copy | --improve | --port
# Replication Spec: [Feature/System Name]
## 1. Source — name, URL, tech stack, what we're replicating
## 2. What to Build — specific features/patterns to replicate
## 3. Stack Fit — maps to our stack (exists / new / conflicts)
## 4. Risks & Effort — what's hard, estimated complexity
## 5. Recommendation — replicate / adapt / reject + next step
Handoff text enriches this with challenge reds + risk score.
Same as Replication Spec but replace sections 2+5 with Head-to-Head table + Takeaways. Print to conversation; do not write to disk unless user explicitly asks (the report is single-use analysis, not a durable artifact).
This skill emits handoff text. It does NOT invoke any other skill mid-flow — including /mk:plan-creator, /mk:brainstorming, /mk:cook, /mk:sequential-thinking.
This is chom's design choice, not a a platform rule. Skills can reference other skills and the model may invoke them; chom opts out because mid-flow invocations of other orchestration skills (plan-creator, brainstorming, cook) would break phase ownership — each of those skills has its own multi-phase workflow that would interleave with chom's HARD GATE discipline. chom's job ends at Phase 6 Handoff; the user invokes the next skill.
HARD GATE (Phase 4 human approval) is non-bypassable. No flag, including --lean or --auto, skips this step.
--compare fallback--compare--copy/--improve/--port explicitly if you want the analysis biased toward that intent. No-flag runs emit a Replication Spec without mode declaration./mk:pack --compress, not chom. If the question is "what's the public API of library X" rather than "should we replicate it," pack's Tree-sitter signature extraction is the right tool. chom is for replication decisions, not API exploration./mk:sequential-thinking, then return to chom.--lean and --auto. Phase 4 human approval is never skipped.docs/project-context.md first. Without it, recommendations won't fit your stack.references/challenge-framework.mdnpx claudepluginhub ngocsangyem/meowkit --plugin mkClones, ports, or converts features from any GitHub repo into your project with 4 modes: port (rewrite), compare (analysis), copy (transplant), improve (copy + optimize). Enforces license and fit checks before adoption.
Scouts GitHub repos for patterns, features, and ideas to improve your project by cloning, analyzing architecture and code, comparing with your codebase, and delivering actionable recommendations.
Reads existing source code as a specification and reimplements its semantics in a different language or stack, preserving behavior while using native idioms.