context-governor
Skill17 starsChanged 8 months agoMITView on GitHub
任务需要在生成前制定受限的上下文加载计划,或当前加载策略有上下文腐蚀风险时使用。
In this repository31 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- how-to-make-scriptSkill
- audience-insightSkill
- boundary-mappingSkill
- character-worldSkill
- commercial-scriptSkill
- development-strategySkill
- dialogue-subtextSkill
- expert-subagent-castingSkill
- genre-adaptationSkill
- idea-discoverySkill
- interactive-branchingSkill
- logline-premiseSkill
- path-explorationSkill
- pattern-referenceSkill
- project-surface-designSkill
- quality-gatingSkill
- research-backgroundSkill
- rewrite-doctorSkill
- scene-writingSkill
- scope-correctionSkill
- screen-to-video-bridgeSkill
- story-memory-checkpointSkill
- structure-beatSkill
- subagent-dispatch-designSkill
- team-orchestrationSkill
- team-workflow-designSkill
- visual-languageSkill
- voice-style-calibrationSkill
- writer-developmentSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 6 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use this skill when the user asks about agent-skill design, loading strategy, context balance, reference breadth, or when the route is at …
- Distinctive: line 13
If the request is broad and theory-facing, pick one declared research bundle before expanding.
- Very specific: line 14
If continuity pressure is the real bottleneck, test whether a story_memory_checkpoint should replace broader reload.
- Distinctive: line 18
If voice is the real bottleneck, prefer one bounded expression lens over a broad style survey.
- Distinctive: line 22
Do not confuse "more related material" with "better generation conditions."
- Distinctive: line 25
If the real problem is resumable continuity, prefer a checkpoint artifact over a wider bundle.
- Distinctive: line 26
Treat expression guidance as an adjunct bundle, not as a reason to pre-load every nearby style example.
- Very specific: line 34
Use compare_pack mode: lock the primary route, then load one rival route or one contrastive boundary layer.
- Very specific: line 37
Use focus_pack or route_kernel.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Context Governor
Use this skill when the user asks about agent-skill design, loading strategy, context balance, reference breadth, or when the route is at risk of being drowned by too much adjacent material.
Workflow
- Lock the primary route first.
- Choose one loading mode from
route_kernel,focus_pack,compare_pack,teaching_pack, orsurvey_pack. - If the request is broad and theory-facing, pick one declared research bundle before expanding.
- If continuity pressure is the real bottleneck, test whether a
story_memory_checkpointshould replace broader reload. - Define the mandatory bundle.
- Define the optional expansion queue and triggers.
- Define stop conditions and corrosion signals.
- If voice is the real bottleneck, prefer one bounded expression lens over a broad style survey.
Output Contract
context_loading_plan: primary route, loading mode, mandatory bundle, optional expansion queue, stop rules, and context-corrosion warnings.- Do not confuse "more related material" with "better generation conditions."
- Expand only when the next asset can plausibly change route quality, answer quality, or creative extension quality.
- For broad theory/background requests, mandatory bundle should include one declared background bundle rather than a grab bag of neighboring docs.
- If the real problem is resumable continuity, prefer a checkpoint artifact over a wider bundle.
- Treat expression guidance as an adjunct bundle, not as a reason to pre-load every nearby style example.
Posture-Adaptive Guidance
When certainty = lost:
Skip the loading plan. Ask: "What is the one thing you actually need to know or produce right now?" Route to the narrowest possible answer first. A loading plan is only useful once the destination is clear.
When certainty = exploring:
Use compare_pack mode: lock the primary route, then load one rival route or one contrastive boundary layer. Do not expand to survey_pack unless the user explicitly asks for breadth.
When certainty = certain:
Use focus_pack or route_kernel. Stop expansion as soon as the next asset would not change the answer quality.
When source = discover:
Prioritise possibility-expanding assets. Suppress loading of hard constraints and evaluation rubrics until the route is stable.
When source = construct:
Apply full loading discipline: lock route → choose mode → define mandatory bundle → define expansion queue → state stop conditions.
References
wp.context-loading-planreferences/background-bundles.jsonrb.context-loading-planka.bounded-context-loadingka.context-corrosion-signalska.cross-protocol-referral-edgeska.reference-expansion-balanceka.scenario-factorizationka.story-memory-checkpoint
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

