본문으로 건너뛰기
cccskills
무료GitHub에 공개

mk-context-engineering

Runtime router for context decisions: read-more/stop/ask/assume/delegate, minimal read-set, compaction timing. Model: Write/Select/Compress/Isolate. NOT for agent-tree overhead audit (context-audit).

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(2)

  • SKILL.md7.3 KB
  • references/pattern-index.md14.4 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

mk:context-engineering — Runtime Context Router

Decide the next context move for the task in front of you: read more, stop, ask, assume, or delegate — then load at most one pattern reference to execute it. This skill routes decisions; it does not preload a knowledge library.

Boundary vs mk:context-audit: that skill audits structural agent-tree overhead (what is statically loaded every session). This skill decides runtime context moves for one task. Structural question → context-audit. Runtime question → here. If a request is ambiguous between the two (e.g. "this project's context is messy"), ask ONE question — structural agent-tree setup or this session's runtime context? — then route.

When to Use

  • Context is near its working ceiling and phases remain — decide what to keep.
  • A long session is drifting or output quality is slipping.
  • You must choose the minimal read-set before a task (Plan/Build/Review).
  • You are choosing between /compact, /clear, and spawning a sub-agent.
  • A known pattern applies (lost-in-middle, RAG dump, few-shot drift) and you want the routing.

When NOT to Use

  • Auditing agent-tree token overhead → mk:context-audit.
  • Persisting a learning or reading memory topic files → mk:memory.
  • Finding where code lives → mk:scout (or Read for one known file).
  • USD run cost → mk:budget.
  • A trivial 1–2 file task — no routing needed; just do it.

Four Operations

The whole surface reduces to four moves. Name the one you need, then triage.

  • Write — push durable state out of the window (memory file, scratchpad, handoff brief) so it survives compaction. Route via the persistence patterns.
  • Select — load the smallest high-signal set; extract the function, not the file. Default stance for every read.
  • Compress — summarize essential state and restart when the window degrades; re-ground the summary against sources.
  • Isolate — give a sub-agent its own focused window for an independent slice; return a distilled result, not raw context.

Decision Framework

Pointer-style — the rules below own the detail; do not restate them here.

  • Read more — only when a Retrieval Trigger in context-budget-rules.md matches (schema/contract change, security surface, cross-cutting refactor, failed verification, resume). No trigger → no read. (Rule file is present in a toolkit install; if absent downstream, fall back to: read only what a named acceptance criterion requires.)
  • Stop — you have enough to act, OR two consecutive reads changed no decision, OR the phase/tier read ceiling is reached. "Seems right" without evidence is not stop — verify.
  • Ask — an ungreppable fact, a spec-vs-code conflict, or a business/irreversible decision (core-behaviors.md #2, if present). Scout first: if grep/read answers it, don't ask.
  • Assume — cheap-to-fix uncertainty. Emit an ASSUMPTIONS I'M MAKING block (format in Output Format below; matches core-behaviors.md #1 where present) and proceed; never silently guess.
  • Delegate — an independent sub-scope that would bloat this window → Isolate into a sub-agent.

Anti-overengineering (keep it small): pick the smallest read-set that satisfies the acceptance criteria; do not introduce a new pattern or abstraction without an observed failure; prefer the boring move.

Anti-hallucination (don't invent): never quote an API, number, or config from memory when it is greppable — read it. An unverifiable fact is an Ask or an explicit Assume, never a silent guess.

Triage (copy this checklist)

Context triage:
- [ ] 1. Phase + tier — which of Orient/Plan/Test/Build/Review/Ship/Reflect, and low/standard/complex?
- [ ] 2. Context risk — near ceiling? drifting? poisoned by a prior claim? key fact buried? (labeled heuristics, not measured)
- [ ] 3. Minimal read-set — the smallest set for THIS step (see context-budget-rules.md phase×tier, if present)
- [ ] 4. Route — load exactly ONE section of references/pattern-index.md matching the intent
- [ ] 5. Apply + emit the output contract (Context decision: …)

Step 2 thresholds are labeled heuristics (e.g. "compact around ~60–70% of the effective window") — signals to act on, not measured facts. Do not present them as measured.

Pattern Routing Table

Match the runtime intent, load that ONE section of references/pattern-index.md. Never load several.

Intent (runtime signal)Load section
Too much loaded; cut before addingless-noise
Long session, output driftingdegraded-session
State must survive compaction / new sessionpersistence
Decompose across sub-agentsdelegation
RAG / index-first / groundingretrieval
Prompt ordering, trust levels, constraintsprompt-structure
Few-shot, structured output, tool selectionexamples-tools
Images / video in contextmultimodal
Key fact ignored mid-contextcritical-position
A model-generated claim treated as truthsafety

If no intent matches, note "no matching pattern" and proceed with the Four Operations

  • Decision Framework — do not stall or invent a reference.

Host-Runtime Operations (host-specific)

The only host-coupled choices. Everything else above is host-agnostic.

SituationMoveWhy
Window long, task continues, keep thread/compactSummarize in place; costs latency — skip on small tasks.
Switching to an unrelated task/clearFresh window; only after durable state is Written out.
Independent sub-scope, would bloat this windowSub-agentIsolated window; returns a distilled result.

Output Format

When this skill drives a decision, emit one line:

Context decision: <read-more | stop | ask | assume | delegate> — <one-line reason>

For assume, follow it with the ASSUMPTIONS I'M MAKING block and → Correct me now or I'll proceed with these.

Gotchas

  • Compacting at ~50% is safe but wastes latency on small tasks — the threshold is a heuristic, not a rule.
  • Bad routing turns this into "a dump with extra steps" — load ONE reference section per decision, never several.
  • The risk thresholds here are labeled heuristics, not measured baselines — don't quote them as data.

Related Skills

  • mk:context-audit — use instead for structural agent-tree overhead (tokens/% statically loaded).
  • mk:memory — use instead to actually read/write canonical .meowkit/memory/ JSON stores; this skill only decides a write is warranted.
  • mk:scout — use instead to discover where code lives; this skill decides how much to read.
  • mk:agent-detector — use the canonical agent inventory for routing and on-demand instruction loading.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Use this skill to generate well-branded interfaces and assets for MeowKit (AI Agent Toolkit for Claude Code), either for production or throwaway prototypes/mocks/etc. Contains essential design guidelines, colors, type, fonts, assets, and UI kit components for prototyping.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

ngocsangyem/MeowKit152026년 7월 28일 업데이트

mk-advise

무료

Turn a raw idea into ONE honest recommendation: interview one question at a time until confirmed, then give a verdict with trade-offs and a checklist. Not for options or debate.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

ngocsangyem/MeowKit152026년 7월 28일 업데이트

Browser automation CLI for agents: navigate, click/fill, screenshot, extract data, test apps, Electron/Slack, cloud browsers. NOT for the user's real Chrome profile/cookies (mk:chrome-profile).

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

ngocsangyem/MeowKit152026년 7월 28일 업데이트

Detects the right agent and complexity tier at Phase 0 orient; runs first in every workflow. NOT for runtime agent routing inside a single skill.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

ngocsangyem/MeowKit152026년 7월 28일 업데이트

Angular v20+ patterns: components, signals, services, forms, routing, HTTP, testing, SSR. Auto-activates on .ts files in Angular projects (angular.json detected).

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

ngocsangyem/MeowKit152026년 7월 28일 업데이트

Design and review durable REST, GraphQL, RPC, or event API contracts: shape, compatibility, pagination, error semantics. Discovers existing consumers first. Not implementation, schema, or release.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

ngocsangyem/MeowKit152026년 7월 28일 업데이트

ngocsangyem의 스킬 모두 보기

이 스킬의 문제 신고