context-pack
Skill174 starsChanged 2 months agoMITView on GitHub
Assemble the context a role needs without reading whole files - structural search with ast-grep, and what to delegate instead of reading.
4 other projects use a version of this.
Adopted by
Most recently taken up by
- richardochristjia/skillstheir own version, first seen Nov 1, 2026
- TIKAZI/TIKAZ-Codex-Context-Economytheir own version, first seen Aug 31, 2026
- Mesteriis/Engineering-Bible-AItheir own version, first seen Jun 28, 2026
- kambleakash0/agent-skillstheir own version, first seen Apr 6, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- kambleakash0/agent-skills★ 10same name
- TIKAZI/TIKAZ-Codex-Context-Economy★ 3same name
- richardochristjia/skills★ 2same name
- Mesteriis/Engineering-Bible-AI★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository59 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- agent-runtimeSkill
- arc42-documentationSkill
- authoring-rolesSkill
- create-agent-skillSkill
- create-pr-azdoSkill
- create-pr-githubSkill
- detect-diagram-crossingsSkill
- flowchart_layout_optimizerSkill
- generate-demo-artifactsSkill
- generate-release-screenshotsSkill
- git-rebase-mainSkill
- merge-conflict-resolutionSkill
- next-issue-numberSkill
- pre-pr-checklistSkill
- retrospective-evidenceSkill
- run-dotnet-testsSkill
- run-uatSkill
- run-workflowSkill
- update-test-snapshotsSkill
- update-workflow-diagramSkill
- view-pr-githubSkill
- watch-uat-azdo-prSkill
- watch-uat-github-prSkill
- website-accessibility-checkSkill
- website-create-examplesSkill
- website-devtoolsSkill
- website-quality-checkSkill
- website-visual-assetsSkill
- agent-runtimeSkill
- arc42-documentationSkill
- authoring-rolesSkill
- context-packSkill
- create-agent-skillSkill
- create-pr-azdoSkill
- create-pr-githubSkill
- detect-diagram-crossingsSkill
- flowchart_layout_optimizerSkill
- generate-demo-artifactsSkill
- generate-release-screenshotsSkill
- git-rebase-mainSkill
- merge-conflict-resolutionSkill
- next-issue-numberSkill
- pre-pr-checklistSkill
- retrospective-evidenceSkill
- run-dotnet-testsSkill
- run-uatSkill
- run-workflowSkill
- update-test-snapshotsSkill
- update-workflow-diagramSkill
- view-pr-githubSkill
- watch-uat-azdo-prSkill
- watch-uat-github-prSkill
- website-accessibility-checkSkill
- website-create-examplesSkill
- website-devtoolsSkill
- website-quality-checkSkill
- website-visual-assetsSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 2 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 50
Do not delegate a single file read or one rg — the spawn costs more than the call.
- Very specific: line 67
Do not cat a 300-line file to answer a one-line question.
- Distinctive: line 68
Do not read a file "for context" before knowing what you are looking for.
- Distinctive: line 69
Do not paste a role file into a subagent prompt — the subagent reads it itself.
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Context Pack
Token cost is dominated by what enters context, not by what you do with it. This skill is about reading less while knowing more.
Read known paths, search for unknown ones
A role usually needs specific artifacts — specification.md, architecture.md,
tasks.md, analysis.md. Read those directly; there is nothing to discover.
Reach for search only when the question is "where is X". Then make the search structural rather than textual.
ast-grep for code questions
ast-grep matches syntax, not strings, so it returns the construct you asked about
instead of every line mentioning it.
# Every class implementing an interface, without reading any file whole
ast-grep --lang csharp -p 'class $NAME : $$$ IResourceRenderer $$$'
# Every call to a method, with its arguments
ast-grep --lang csharp -p 'RegisterRenderer($$$)'
# Every method with a given attribute
ast-grep --lang csharp -p '[Test] $RET $NAME($$$) { $$$ }'Always invoke ast-grep by its full name. On Linux, sg is util-linux's setgid
binary; a script that calls sg expecting ast-grep runs the wrong program silently.
Fall back to rg for prose, configuration and markdown, where there is no syntax tree
worth matching.
Delegate what you do not need verbatim
Spawn a cheap-tier subagent for anything whose output you need conclusions from rather than content:
- "Where is the display-name logic for azurerm?" — the answer is a path, not a file.
- Build and test runs where only pass/fail matters.
- "Does anything else already do X?" before writing something new.
Do not delegate a single file read or one rg — the spawn costs more than the call.
Command output is compressed for you
rtk sits in front of Bash calls and compresses the output of git, test runners,
linters, gh and docker before it reaches context. You do not invoke it; the hook
rewrites the command.
Two consequences worth knowing:
- Its compression is lossy — dedup, truncation, grouping. Where you need the exact
bytes, say so;
teemode preserves full output on failure. - The Code Reviewer's diff is excluded, because a truncated diff produces a confident review of code nobody saw.
What not to do
- Do not
cata 300-line file to answer a one-line question. - Do not read a file "for context" before knowing what you are looking for.
- Do not paste a role file into a subagent prompt — the subagent reads it itself.
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.

