agent-restore-context-setup — community agent-restore-context-setup, nimbus, community, ide skills

v1.0.0

Sobre este Skill

Perfeito para Agentes de IA Conversacional que necessitam de restauração de contexto após redefinições ou compactações de sessão. Set up the restore-context hook so skills can survive /clear and /compact. Detects .claude/ vs .agents/ layout automatically.

commercetools commercetools
[4]
[2]
Updated: 3/19/2026

Killer-Skills Review

Decision support comes first. Repository text comes second.

Reference-Only Page Review Score: 9/11

This page remains useful for operators, but Killer-Skills treats it as reference material instead of a primary organic landing page.

Original recommendation layer Concrete use-case guidance Explicit limitations and caution Quality floor passed for review
Review Score
9/11
Quality Score
52
Canonical Locale
en
Detected Body Locale
en

Perfeito para Agentes de IA Conversacional que necessitam de restauração de contexto após redefinições ou compactações de sessão. Set up the restore-context hook so skills can survive /clear and /compact. Detects .claude/ vs .agents/ layout automatically.

Por que usar essa habilidade

Habilita os agentes a reinjetar automaticamente o contexto dos arquivos `.agent-restore-context-<name>` após os comandos `/clear` ou `/compact`, utilizando um gancho genérico `SessionStart` e o script `agent-restore-context.sh`, melhorando assim a continuidade e a eficiência do fluxo de trabalho conversacional.

Melhor para

Perfeito para Agentes de IA Conversacional que necessitam de restauração de contexto após redefinições ou compactações de sessão.

Casos de Uso Práticos for agent-restore-context-setup

Restaurar o contexto da conversa após redefinições de sessão
Automatizar a reinjeção de contexto para uma experiência de usuário sem interrupções
Depurar fluxos de conversa com contexto restaurado

! Segurança e Limitações

  • Exige acesso ao sistema de arquivos para ler arquivos `.agent-restore-context-<name>`
  • Dependente do gancho `SessionStart` com correspondente `clear|compact`
  • Limitado a agentes capazes de executar scripts de shell como `agent-restore-context.sh`

Why this page is reference-only

  • - Current locale does not satisfy the locale-governance contract.

Source Boundary

The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.

After The Review

Decide The Next Action Before You Keep Reading Repository Material

Killer-Skills should not stop at opening repository instructions. It should help you decide whether to install this skill, when to cross-check against trusted collections, and when to move into workflow rollout.

Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is agent-restore-context-setup?

Perfeito para Agentes de IA Conversacional que necessitam de restauração de contexto após redefinições ou compactações de sessão. Set up the restore-context hook so skills can survive /clear and /compact. Detects .claude/ vs .agents/ layout automatically.

How do I install agent-restore-context-setup?

Run the command: npx killer-skills add commercetools/nimbus/agent-restore-context-setup. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for agent-restore-context-setup?

Key use cases include: Restaurar o contexto da conversa após redefinições de sessão, Automatizar a reinjeção de contexto para uma experiência de usuário sem interrupções, Depurar fluxos de conversa com contexto restaurado.

Which IDEs are compatible with agent-restore-context-setup?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for agent-restore-context-setup?

Exige acesso ao sistema de arquivos para ler arquivos `.agent-restore-context-<name>`. Dependente do gancho `SessionStart` com correspondente `clear|compact`. Limitado a agentes capazes de executar scripts de shell como `agent-restore-context.sh`.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add commercetools/nimbus/agent-restore-context-setup. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use agent-restore-context-setup immediately in the current project.

! Reference-Only Mode

This page remains useful for installation and reference, but Killer-Skills no longer treats it as a primary indexable landing page. Read the review above before relying on the upstream repository instructions.

Upstream Repository Material

The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.

Upstream Source

agent-restore-context-setup

Install agent-restore-context-setup, an AI agent skill for AI agent workflows and automation. Review the use cases, limitations, and setup path before...

SKILL.md
Readonly
Upstream Repository Material
The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.
Supporting Evidence

Setup Restore Context

Set up a generic SessionStart hook that re-injects context after /clear or /compact. Any skill that writes a .agent-restore-context-<name> file in the project root will have its contents automatically injected into the fresh conversation.

How It Works

  1. Skills write .agent-restore-context-<skill-name> files with resume prompts.
  2. A SessionStart hook with matcher clear|compact runs agent-restore-context.sh.
  3. The script globs for .agent-restore-context-* and outputs their contents.
  4. The model receives that output and follows the resume instructions.
  5. Skills manage their own file lifecycle (write/delete).

Process

1. Detect Layout

Determine which configuration layer the project uses:

CheckLayoutSkills directory
.agents/ directory existsagents.agents/skills/
Only .claude/ existsclaude.claude/skills/

Settings files always live under .claude/ regardless of layout.

2. Check if Already Configured

Read .claude/settings.json and .claude/settings.local.json (if it exists). Search both for restore-context. If found in either file, report that the hook is already configured and stop.

3. Locate the Hook Script

The script is at <skills-dir>/agent-restore-context-setup/resources/agent-restore-context.sh (using the skills directory from step 1).

Verify the script exists and is executable. If not executable, run chmod +x.

4. Register the Hook

Permission check

Run gh repo view --json viewerPermission --jq '.viewerPermission'. If the result is READ, warn the user that the repo is read-only — any changes made to .claude/settings.json or .gitignore will need to be committed and pushed manually. Continue with the rest of the steps as normal.

Choose settings file

Ask the user:

"Should I add the restore-context hook to .claude/settings.json (shared/committed) or .claude/settings.local.json (local only)?"

Compute the script path relative to the project root (from step 3), then merge the following into the chosen file's hooks object. Do not overwrite existing hooks — add to or create the SessionStart array:

json
1{ 2 "SessionStart": [ 3 { 4 "matcher": "clear|compact", 5 "hooks": [ 6 { 7 "type": "command", 8 "command": "bash <skills-dir>/agent-restore-context-setup/resources/agent-restore-context.sh" 9 } 10 ] 11 } 12 ] 13}

5. Add Gitignore Entry

Check .gitignore for .agent-restore-context-*. If not present, append:

# Restore context files (used by skills to survive /clear and /compact)
.agent-restore-context-*

6. Confirm

Report to the user:

  • Where the hook was registered (which settings file)
  • The path to the script
  • That any skill can now write .agent-restore-context-<name> files to use this pattern

Guidelines

  • Always read target files before modifying them
  • Do not create .agents/ or .agents/skills/ directories — only use them if they already exist
  • This skill is idempotent — safe to run multiple times

Habilidades Relacionadas

Looking for an alternative to agent-restore-context-setup or another community skill for your workflow? Explore these related open-source skills.

Ver tudo

openclaw-release-maintainer

Logo of openclaw
openclaw

Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞

widget-generator

Logo of f
f

Gerar plugins de widgets personalizáveis para o sistema de feed do prompts.chat

flags

Logo of vercel
vercel

O Framework React

138.4k
0
Navegador

pr-review

Logo of pytorch
pytorch

Tensors and Dynamic neural networks in Python with strong GPU acceleration

98.6k
0
Desenvolvedor