is-ai-native: Skill for Claude Code

.copilot/skills/session-recovery/SKILL.md

session-recovery is a skill for Claude Code, Codex from webmaxru/is-ai-native. It costs 16 tokens per session (1,215 once invoked), scanned A, a copy of session-recovery, MIT.

A recovery skill for finding interrupted Copilot CLI sessions in a read-only session database and understanding where they stopped. Copilot CLI is a command-line coding-agent tool, and a session is one continuous work period.

In plain words
What is it for?
Use it to query recent sessions, filter out automated sessions, and identify work that may be ready to resume. It uses session history and checkpoint records to locate the stopping point.
Why use it?
It helps distinguish abandoned work from active work after a crash, network failure, restart, or closed terminal. It can reveal unfinished branches, in-progress issues, and the last recorded checkpoint.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

This is webmaxru/is-ai-native's own configuration. It tells Claude Code and Codex how to work on is-ai-native itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything is-ai-native configures →

Reuse

Borrowing it

Nothing to install: this file belongs to webmaxru/is-ai-native. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/webmaxru/is-ai-native/main/.copilot/skills/session-recovery/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/webmaxru/is-ai-native

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for session-recovery

README.md
[![agentmods](https://agentmods.dev/badge/skills/webmaxru/is-ai-native/session-recovery.svg)](https://agentmods.dev/skills/webmaxru/is-ai-native/session-recovery)
Your own site
<a href="https://agentmods.dev/skills/webmaxru/is-ai-native/session-recovery"><img src="https://agentmods.dev/badge/skills/webmaxru/is-ai-native/session-recovery.svg" alt="Measured on agentmods" height="20"></a>
Per session 16 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,215 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00016 $0.01215
Opus 5 $0.00008 $0.00607
Sonnet 5 $0.00003 $0.00243
Haiku 4.5 $0.00002 $0.00121

Measured 6d ago against content hash 54a7c1feba61, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

session-recovery scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to session-recovery — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.copilot/skills/session-recovery/SKILL.md · 156 lines

How it starts

The opening of the file, as written. The whole thing — 156 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Context

Squad agents run in Copilot CLI sessions that can be interrupted — terminal crashes, network drops, machine restarts, or accidental window closes. When this happens, in-progress work may be left in a partially-completed state: branches with uncommitted changes, issues marked in-progress with no active agent, or checkpoints that were never finalized.

Copilot CLI stores session history in a SQLite database called session_store (read-only, accessed via the sql tool with database: "session_store"). This skill teaches agents how to query that store to detect interrupted sessions and resume work.

Patterns

1. Find Recent Sessions

Query the sessions table filtered by time window. Include the last checkpoint to understand where the session stopped:

SELECT
  s.id,
  s.summary,
  s.cwd,
  s.branch,
  s.updated_at,
  (SELECT title FROM checkpoints
   WHERE session_id = s.id
   ORDER BY checkpoint_number DESC LIMIT 1) AS last_checkpoint
FROM sessions s
WHERE s.updated_at >= datetime('now', '-24 hours')
ORDER BY s.updated_at DESC;

2. Filter Out Automated Sessions

Automated agents (monitors, keep-alive, heartbeat) create high-volume sessions that obscure human-initiated work. Exclude them:

SELECT s.id, s.summary, s.cwd, s.updated_at,
  (SELECT title FROM checkpoints
   WHERE session_id = s.id
   ORDER BY checkpoint_number DESC LIMIT 1) AS last_checkpoint
FROM sessions s
WHERE s.updated_at >= datetime('now', '-24 hours')
  AND s.id NOT IN (
    SELECT DISTINCT t.session_id FROM turns t
    WHERE t.turn_index = 0
      AND (LOWER(t.user_message) LIKE '%keep-alive%'
           OR LOWER(t.user_message) LIKE '%heartbeat%')
  )
ORDER BY s.updated_at DESC;

3. Search by Topic (FTS5)

Use the search_index FTS5 table for keyword search. Expand queries with synonyms since this is keyword-based, not semantic:

SELECT DISTINCT s.id, s.summary, s.cwd, s.updated_at
FROM search_index si
JOIN sessions s ON si.session_id = s.id
WHERE search_index MATCH 'auth OR login OR token OR JWT'
  AND s.updated_at >= datetime('now', '-48 hours')
ORDER BY s.updated_at DESC
LIMIT 10;

Read the full file on GitHub · 156 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 156 lines · 16 tokens per session scan A 54a7c1feba61

Subscribe to this mod's changes

session-recovery is a skill published in the GitHub repository webmaxru/is-ai-native (5 stars, last pushed 15d ago), licensed MIT. It adds 16 tokens to every session and 1,215 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to session-recovery, differing in 0 lines, and is treated as a copy.