Command Palette

Search for a command to run...

Back to skills
skill № 12354

agent-loop-l2-context

Use agent-loop to compile, inspect, and govern task-scoped Recall/L2 context without duplicating agent-recall-compiler's prompt schema or treating generated…

FreeNo executable scripts
vokuby voku★ 33 GitHub stars

Install agent-loop-l2-context in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

About this skill

Agent Loop L2 Context

Use this skill when a task needs agent-loop Recall compilation, governed L2 prompt construction, bounded context, map navigation, or evidence from the current repository.

Ownership Boundary

This skill owns the agent-loop orchestration surface around context:

  • how Loop invokes Recall for a governed task;
  • where Loop exposes the resulting task artifacts;
  • when an L2-generated execution contract becomes a Loop gate;
  • how Loop combines Recall with map and optional architecture evidence.

voku/agent-recall-compiler owns Recall-specific behavior and instructions:

  • compile input/output schema;
  • operating-prompt manifest schema and bundled first-party recipes;
  • L2 -> L1 construction semantics;
  • Recall evidence labels and review primitives.

Do not duplicate those contracts here. In an installed project, the canonical Recall skill and first-party recipe catalog are shipped with the tool at:

tools/agent-loop/vendor/voku/agent-recall-compiler/skills/agent-recall-consumer/SKILL.md
tools/agent-loop/vendor/voku/agent-recall-compiler/skills/agent-recall-consumer/operating-prompts.json

When Recall changes, update its owned skill with the code. This Loop skill should only change when Loop's orchestration of that tool changes.

Fast Path

For an existing governed task, inspect the bounded view and current state:

tools/agent-loop/vendor/bin/agent-loop workflow context <task-id> --max-lines 120 --max-bytes 12000
tools/agent-loop/vendor/bin/agent-loop workflow status <task-id>

For standalone exploration, compile task-scoped Recall through Loop and let the wrapper resolve the configured Learning and Recall roots:

tools/agent-loop/vendor/bin/agent-loop recall compile \
  --task <task-id> \
  --file <path-to-file-1> \
  --file <path-to-file-2>

workflow context is read-only. It does not recompile Recall, refresh a map, or embed arbitrary source bodies.

For governed starts, keep recall-documents.json intentionally small and Git-tracked beside the Learning root; the lifecycle owns when Recall receives it. Use explicit scopes, tags, and excerpt limits instead of making every document global context.

Reusable Operational Prompt Recipes

Use Recall's installed first-party catalog instead of a copied recipe file:

tools/agent-loop/vendor/bin/agent-loop workflow plan <task-id> \
  --by <actor> \
  --file src/Parser.php \
  --file tests/ParserTest.php \
  --goal 'Harden the parser tests.' \
  --validation 'composer ci' \
  --operating-prompt-manifest tools/agent-loop/vendor/voku/agent-recall-compiler/skills/agent-recall-consumer/operating-prompts.json \
  --operating-prompt '{"id":"coverage-mutation","arguments":{"minimum_percentage_points":10,"mutation_command":"vendor/bin/infection --threads=max"}}'

Recipe selection and arguments remain explicit Contract policy. Bundling the catalog with Recall does not make Loop select recipes automatically.

Approval is human authority, and what follows it is the kernel's decision, not this skill's. Drive governed work through the canonical lifecycle result and use the bounded context projection when that result or the task calls for it:

tools/agent-loop/vendor/bin/agent-loop workflow context <task-id> --max-lines 120 --max-bytes 12000

If the compiled Recall artifacts require an L2 construction pass, follow the current instructions in the Recall-owned system.md/skill rather than a restated schema in this file. Persist the constructed execution contract through Loop when the canonical lifecycle result asks for it:

tools/agent-loop/vendor/bin/agent-loop workflow contract <task-id> \
  --status ready \
  --from <project-specific-l1.md> \
  --by <actor>

If construction proves the approved task cannot safely be executed, persist a blocked or rejected state with evidence. Do not weaken the approved Contract inside the generated prompt.

Recall Artifacts Through Loop

Recall compilation produces the canonical task evidence consumed by Loop, including system.md, validation-plan.md, recall.bundle.json, facts.json, selection-report.json, recall-log.draft.json, and meta.json under the configured task Recall root.

These are evidence/harness inputs. They are not automatically injected into an agent and their presence does not prove an L1 prompt was constructed or executed.

Use the project layout instead of assuming a hard-coded Recall path:

tools/agent-loop/vendor/bin/agent-loop init paths --format=json
tools/agent-loop/vendor/bin/agent-loop workflow status <task-id>

Recompile only through the owning workflow when the approved Contract or relevant inputs changed. Do not hand-edit generated Recall evidence to make a gate pass.

Compact Map Navigation

map is a lookup tool, not a lifecycle gate. Use it whenever the task needs precise definitions, callers, or related symbols across more than one or two files:

tools/agent-
Full SKILL.md on GitHub

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

FAQ

What does the agent-loop-l2-context skill do?

Use agent-loop to compile, inspect, and govern task-scoped Recall/L2 context without duplicating agent-recall-compiler's prompt schema or treating generated artifacts as executed work.

How do I install the agent-loop-l2-context skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the agent-loop-l2-context skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare agent-loop-l2-context with