AGENT SKILL

Session Continuity

Maintains state across multiple agent commands to handle complex, multi-step logins or navigate paginated dashboards.

License 许可
MIT
最近更新
2026-11-12
Stars
★ 1
Forks
0

01 前言 Front Matter

name
Session Continuity
description
Maintains state across multiple agent commands to handle complex, multi-step logins or navigate paginated dashboards.

03 SKILL.md 正文

Session Continuity Instructions

When interacting with authenticated web services or multi-step processes via script, YOU MUST persist the session state.

Implementation Guide

  • If using requests in Python, ALWAYS instantiate a requests.Session() object instead of using requests.get() directly. This ensures cookies and authentication tokens are automatically passed to subsequent requests.
  • If using Playwright, save the browser context state to a local file (context.storage_state(path="state.json")) after login, and load it upon the next script execution.

Do not attempt to re-authenticate on every single step of a multi-step task.

04 同仓库更多 Skills