AGENT SKILL

context-virtualization

Use after broad or noisy tool evidence has been safely narrowed or exhausted, or when an activity boundary leaves raw results that no longer need to remain active.

License 许可
MIT
最近更新
2026-11-15
Stars
★ 5
Forks
0

01 前言 Front Matter

name
context-virtualization
description
Use after broad or noisy tool evidence has been safely narrowed or exhausted, or when an activity boundary leaves raw results that no longer need to remain active.

03 SKILL.md 正文

Context Virtualization

Keep the active tool-evidence working set focused without removing evidence current work still needs. Context Virtualization changes future model projection, not canonical session history.

This skill begins after a tool result has been consumed. It owns that result's continued residency, not tool selection, task state, authority, or source truth.

Each resolvable tool result receives a current-session ctx:<entryId> reference and begins Full.

Protect Current Work

Keep a result Full while its raw text, images, structure, wording, or exact evidence may still support the current activity, its self-review, or its expected continuation.

Keep governing instructions, active skill bodies, current authority and task memory, active accepted artifacts, unresolved evidence, and current verification evidence Full while they govern work.

Archive only after positively establishing that the raw result is exhausted or has been adequately replaced. Size, age, tool name, consumption, or summarization alone does not establish that. When uncertain, keep it Full.

Narrow Broad Exploration

Treat broad discovery output as a temporary search surface:

  1. use it to locate relevant sources or evidence;
  2. inspect the focused source;
  3. confirm the focused evidence is sufficient for current work;
  4. archive the broad result.

When the focused result now carries everything required, archive the broad result without retained meaning. When paths, queries, URLs, candidates, provenance, or unresolved findings still matter, preserve them as retained meaning.

Do not archive a broad result while exact evidence remains trapped inside it. Materialize or inspect that evidence first.

broad repository search
-> focused file or symbol read
-> focused evidence remains Full
-> broad search result becomes Reference-only

Clean At Meaningful Boundaries

Reconsider visible results when:

  • an exploratory activity finishes;
  • verification and self-review settle an evidence boundary;
  • the route changes;
  • one task ends and another begins;
  • work resumes and the active working set is reconciled.

Start with likely pollutants: broad searches, repository inventories, verbose MCP or web output, logs, repeated diagnostics, and superseded exploratory paths. Then consider stale reads, mutation receipts, and superseded checks.

Tool type and output size determine inspection priority, not the final decision. A shell result may be exact verification evidence; a file read may be disposable exploration.

Review completed work once and batch related transitions when practical. Do not manage every result merely because it exists, wait for token pressure, or archive to satisfy a quota.

Choose The Required Fidelity

Decide in this order:

  1. Full: current work may still need the raw result.
  2. Retained: raw content is exhausted, but transformed conclusions, identifiers, constraints, provenance, or unresolved failures still matter.
  3. Reference-only: neither raw content nor its meaning needs to remain active.

Full wins whenever more than one state appears plausible.

Retained meaning is working memory, not verbatim evidence. Preserve enough for later work without copying the raw result. Include the relevant command, query, source, filters, paths, line numbers, URLs, failure states, provenance, uncertainty, contradictions, or next step when they matter. If exact content or quotation may still matter, keep the result Full.

Apply Transitions

Archive reference-only:

freeflow_context({ operation: "archive", targets: [{ ref: "ctx:<entryId>" }] })

Archive with retained meaning:

freeflow_context({
  operation: "archive",
  targets: [{ ref: "ctx:<entryId>", retained: "<necessary transformed meaning>" }],
})

Archive only references present in the current model-visible request; never guess or fabricate one.

For every non-ok transition:

  • read its status, reason, message, and changed references; treat only references reported as changed as applied;
  • when the failure is safely caller-correctable, rebuild the request from currently eligible references, correct or remove invalid items, recompute affected retained meaning, and retry once;
  • for unavailable, unstructured, persistence-uncertain, or repeated failures, do not loop; re-observe state when the outcome may be uncertain, otherwise report the failure and stop.

Recover Exact Evidence

Use restore when an archived result must rejoin ongoing work and its marker remains visible:

freeflow_context({ operation: "restore", refs: ["ctx:<entryId>"] })

Restore reverses projection; it does not retrieve content removed by compaction. When Conversation History is available, use its search and retrieve guidance for hidden historical sources. Never reconstruct exact evidence from retained meaning.

04 同仓库更多 Skills

hassan-mohiddin
hassan-mohiddin/freeflow

write-skill

Use when creating, revising, merging or splitting a skill or any other text an agent acts on: a SKILL.md and its description, the references and scripts in a skill, AGENTS.md, CLAUDE.md, system or runtime prompts, tool descriptions, subagent briefs or judge prompts. Also use when deciding where an instruction should live, and when a skill is read at the wrong time, not read at all, or read but not followed.

★ 5
hassan-mohiddin
hassan-mohiddin/freeflow

verify-work

Use whenever you need to know whether something works or a claim is true: running tests, builds, linters or type checks; reproducing a bug or checking a fix; trying the real path in the running software, a browser or a CLI; measuring performance; and reading what the output actually shows, including failures and conflicting results. Read it before saying a change works, is fixed or is done, and to check your own change or document before reporting it done. Also use when writing, designing or changing a test, fixture or regression check; when a claim depends on an integration, host lifecycle, an installed package, rendered UI or browser behavior, or performance; and when setting up, following or updating a project's saved steps for launching its software and trying each feature as a user would, or rechecking them after the software changed.

★ 5
hassan-mohiddin
hassan-mohiddin/freeflow

setup-freeflow

Use when installing, activating or turning off Freeflow in a repository, changing or repairing its repository or personal configuration (.freeflow/config.json, .freeflow/local.json), setting up the Freeflow store that keeps task memory (local only, or local + cloud with a private repository, in a cloud session too) and moving older task records into it, or checking whether the current host is loading Freeflow's guidance and skills.

★ 5
hassan-mohiddin
hassan-mohiddin/freeflow

research-work

Use when a question has to be answered from evidence gathered and checked first: an in-depth report on a codebase, library, agent harness or tool; a survey, literature or systematic review of papers, docs or prior work; finding out what sources say before relying on them, and rechecking a published study's numbers; a study or experiment whose plan is fixed before the data, or a quick check on about twenty tasks of whether a change helped; writing a paper from results with its figures, references and PDF, and answering its reviewers. Also use when citing code at a pinned commit, deciding how strong a claim's evidence is, checking that each number traces to its log and each citation supports its claim, designing a measurement or a model judge, and computing statistics for a result (intervals, paired comparisons, clustered runs, rater agreement, pass@k, multiple comparisons, power, meta-analysis). Comparing options from facts already in hand is Discuss Work's; checking whether a change works is Verify Work's.

★ 5
hassan-mohiddin
hassan-mohiddin/freeflow

execute-work

Use for any task that uses tools: reading or searching a repository, running commands, diagnosing, and any work that changes code, files or settings: implementing a feature, fixing a bug, adding or changing behavior, configuring, prototyping, refactoring, simplifying or cleaning up code, deleting dead code, or maintaining a project. Also use when something fails, breaks, regresses or slows down and the cause is unknown, or a fix did not hold; when migrating users, data, a schema, a service or traffic to a replacement and removing the old path; when adding edge-case handling or code comments; and when handing work to subagents or parallel workers, or working from another agent's brief. Read it before your first tool call on a task, even a small or read-only one: it reads the request for its asks and implied requirements, finds what the change touches before you edit, and reports the result.

★ 5
hassan-mohiddin
hassan-mohiddin/freeflow

evaluate-behavior

Use when testing, evaluating or comparing how an agent behaves: whether a skill triggers, whether a change to a prompt, skill, model, setting or extension changes outcomes, measuring a reviewer or checker, or benchmarking agents on coding tasks, conversations or pipelines. Also use when writing or checking an eval's JSON files, running an eval and reading its results, and deciding what a result can claim, how many cases and trials it needs and what it costs.

★ 5