agent-restore-context-setup — community agent-restore-context-setup, nimbus, community, ide skills, Claude Code, Cursor, Windsurf

v1.0.0

このスキルについて

セッションのリセットまたは圧縮後にコンテキストを復元する必要がある会話型 AI エージェントに適しています。 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

セッションのリセットまたは圧縮後にコンテキストを復元する必要がある会話型 AI エージェントに適しています。 Set up the restore-context hook so skills can survive /clear and /compact. Detects .claude/ vs .agents/ layout automatically.

このスキルを使用する理由

エージェントに `.agent-restore-context-<name>` ファイルからコンテキストを自動的に再注入する機能を提供し、汎用的な `SessionStart` hook と `agent-restore-context.sh` スクリプトを使用して会話の連続性とワークフローの効率を向上させます。

おすすめ

セッションのリセットまたは圧縮後にコンテキストを復元する必要がある会話型 AI エージェントに適しています。

実現可能なユースケース for agent-restore-context-setup

セッションのリセット後に会話のコンテキストを復元する
ユーザー体験を無断にしたコンテキストの自動再注入
復元されたコンテキストを使用した会話フローのデバッグ

! セキュリティと制限

  • `.agent-restore-context-<name>` ファイルを読み取るためにファイルシステムへのアクセスが必要
  • `SessionStart` hook および `clear|compact` マッチャーに依存する
  • `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 supporting source material from the upstream repository. Use the Killer-Skills review above as the primary decision layer.

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?

セッションのリセットまたは圧縮後にコンテキストを復元する必要がある会話型 AI エージェントに適しています。 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: セッションのリセット後に会話のコンテキストを復元する, ユーザー体験を無断にしたコンテキストの自動再注入, 復元されたコンテキストを使用した会話フローのデバッグ.

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?

`.agent-restore-context-<name>` ファイルを読み取るためにファイルシステムへのアクセスが必要. `SessionStart` hook および `clear|compact` マッチャーに依存する. `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.

Imported Repository Instructions

The section below is supporting source material from the upstream repository. Use the Killer-Skills review above as the primary decision layer.

Supporting Evidence

agent-restore-context-setup

Install agent-restore-context-setup, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command...

SKILL.md
Readonly
Imported Repository Instructions
The section below is supporting source material from the upstream repository. Use the Killer-Skills review above as the primary decision layer.
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

関連スキル

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

すべて表示

openclaw-release-maintainer

Logo of openclaw
openclaw

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

333.8k
0
AI

widget-generator

Logo of f
f

カスタマイズ可能なウィジェットプラグインをprompts.chatのフィードシステム用に生成する

149.6k
0
AI

flags

Logo of vercel
vercel

React フレームワーク

138.4k
0
ブラウザ

pr-review

Logo of pytorch
pytorch

Pythonにおけるテンソルと動的ニューラルネットワーク(強力なGPUアクセラレーション)

98.6k
0
開発者