Create the baseline session context from the in-folder of raw project documents, classifying each file by priority, writing a manifest, summarising oversized files and producing a token-budgeted baseline. Use when bootstrapping project context or setting up the ctx snapshot once per project. Triggers include "create context", "bootstrap context", "setup context", "init context".
91%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
Turn the raw documents in the in-folder into a prioritised, token-budgeted snapshot that later sessions load in one read.
.context/session/in/ immutable input: users drop documents here, no command edits it
.context/session/ctx/ generated snapshot: manifest, copies, summaries
.context/session/CONTEXT-baseline-llm.md single load point, 2000 tokens at most--force after the source documents changed materially.--force stops, and --force discards existing summaries.--force was passed.[ -d .context/session/in ] || { echo "No in-folder found. Add source files first." >&2; exit 1; }
[ -d .context/session/ctx ] && [ "$ARGUMENTS" != "--force" ] && { echo "ctx exists. Use --force." >&2; exit 1; }./scripts/scan-in-folder.sh .context/session/inwc -w, where tokens are words divided by 0.75, then apply the thresholds.| Priority | At or under threshold | Over threshold, up to 25K | Over 25K |
|---|---|---|---|
| HIGH (1500) | inline | summarise directly | summarise via sub-agent |
| MEDIUM (2500) | inline | summarise directly | summarise via sub-agent |
| LOW | reference only, no copy | not applicable | not applicable |
summarize-for-context sub-agent.manifest.yaml in the ctx folder after sizing, because each action value depends on it. Then validate it../scripts/validate-manifest.sh .context/session/ctx/manifest.yaml/save-context baseline.Outside Plan Mode the tool can return blank answers without showing its UI. After every call, check the answers. If they are blank, do not assume a priority. Print the options as a numbered list, ask for the number, and wait for the reply.
# BAD: fabricated, no scan, wrong shape
high_priority: []
# GOOD: sources.high/medium/low from a real scan
sources:
high:
- {file: design-doc.md, desc: "Architecture decisions", action: inline}
medium: []
low: []high, medium or low, even when empty. WHY: validate-manifest.sh fails and consumers cannot iterate predictably..env*, *credentials*, *secrets*, *token*, *.key, *.pem, *.crt, *.p12 or *.pfx. WHY: the ctx folder gets committed and shared, so a copied secret leaks.# BAD: copies everything, secrets included
cp -r .context/session/in/* .context/session/ctx/
# GOOD: select with the scanner, which also skips secrets inside a secrets/ directory
./scripts/scan-in-folder.sh .context/session/insecrets/prod.yaml. Check directory names too, as the scanner does.pantheon-org/tekhne
9aa89e5
Also appears in
last in sync Aug 28, 2026
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.