a-fig/accordion/accordion-context-folding
Claude Code and agent skill by a-fig/accordion
- community
Checking that the SKILL.md file is still in the repository.
Read this skill if you see {#<code> FOLDED} markers in your context (e.g. {#3f9a2c FOLDED}), or if earlier parts of your context look summarized. Accordion is a desktop tool that may compact older context blocks to keep you under a token budget. The unfold tool restores a folded block (open from your next turn); the recall tool reads its full content right now as a tool result without changing your standing context.
Install
npx vskill@latest install a-fig/accordion/accordion-context-foldingSKILL.md
Accordion, an external desktop app, may be folding parts of your context to keep token usage within a budget. This is opt-in and controlled by the human — you cannot disable it, but you can always pull specific blocks back.
What folding looks like
A folded block appears as:
The 3f9a2c is a short fold code — an opaque handle for that block. The part after FOLDED} is a short summary. The original content is preserved and retrievable — nothing is lost.
Restoring folded content
Call the unfold tool with one or more codes copied from the markers:
(Pass the codes exactly as shown, as strings — a code may have leading zeros.)
The tool returns a confirmation. The restored content appears in your context on your next turn — not immediately. If you need the content now, call unfold and then take another step (e.g. re-read, continue the task) so the next turn picks it up.
Reading folded content right now (recall)
If you need the full content of a folded block for the current step but do not want to change your standing context, call recall instead of unfold:
recall returns the block's full original content as this tool's result, immediately — like reading a file. It does not force the block open: your standing context is unchanged (the block stays folded), so it costs nothing beyond this one result.
Choose between them:
- recall — read it once, now. Content comes back as the tool result this turn; your context is untouched.
- unfold — keep it open. The block returns to your context on your next turn and stays open until the human re-folds it.
Prefer recall when you just need to glance at a value or quote; use unfold when you will keep referring to the block over several turns.
What to unfold
Only unfold what you genuinely need. Agent unfolds are sticky — the human can see and re-fold them in the GUI, but they will not be auto-refolded while you work. Unfolding costs tokens; if the budget is tight, Accordion may fold other blocks to compensate.
If a block looks irrelevant to your current task, leave it folded. If you need the exact content (code, a specific value, a previous decision), unfold it. If a code matches more than one block (rare), all matching blocks are restored.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingextension/skills/accordion-context-folding/SKILL.md
Popularity
- Repository stars
- 243
- Repository forks
- 19
- 7-day trend score
- 27
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/a-fig/accordion/accordion-context-folding)