backup

backup is a skill for Claude Code, Codex from Alex8791-cyber/cognithor. It costs 51 tokens per session (484 once invoked), scanned A, original, Apache-2.0.

An automated backup workflow for Cognithor configuration files, skill definitions, and data directories. It creates timestamped compressed archives on an hourly cron schedule, a system scheduler for recurring commands.

In plain words
What is it for?
Use it to create scheduled Cognithor backups, verify archive integrity, retain recent hourly snapshots, and report backup or storage failures.
Why use it?
It provides restorable snapshots and checks that each archive can be read. It also removes older snapshots beyond the configured retention window and reports problems such as a full disk.

Skill for Claude CodeCodex

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

Good fit Use it to create scheduled Cognithor backups, verify archive integrity, retain recent hourly snapshots, and report backup or storage failures.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alex8791-cyber/cognithor/backup
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Alex8791-cyber/cognithor --skill backup
Clone the repo
git clone --depth 1 https://github.com/Alex8791-cyber/cognithor

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 backup

README.md
[![agentmods](https://agentmods.dev/badge/skills/alex8791-cyber/cognithor/backup/github.svg)](https://agentmods.dev/skills/alex8791-cyber/cognithor/backup)
Your own site
<a href="https://agentmods.dev/skills/alex8791-cyber/cognithor/backup"><img src="https://agentmods.dev/badge/skills/alex8791-cyber/cognithor/backup/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for backup

Your own site · 80×15
<a href="https://agentmods.dev/skills/alex8791-cyber/cognithor/backup"><img src="https://agentmods.dev/badge/skills/alex8791-cyber/cognithor/backup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 484 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Tool Misuse · line 30
    Tool calls are chained to bypass individual safety checks or escalate capabilities beyond what any single tool call would allow.
    Fix: Limit tool chaining depth and validate the output of each tool before passing it to the next. Require explicit user approval for multi-step chains.
How audits are shown
Origin original No closer match found 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.00051 $0.00484
Opus 5 $0.00026 $0.00242
Sonnet 5 $0.00010 $0.00097
Haiku 4.5 $0.00005 $0.00048

Measured 10d ago against content hash 02342e7a4d38, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

backup 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 10d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (__init__.py, skill.py, test_skill.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/backup/SKILL.md · 47 lines

What it actually says

Backup

Automated backup skill that creates timestamped archives of Cognithor configuration, skills, and data on a cron schedule (0 * * * * — hourly by default).

Steps

  1. Check prerequisites — verify backup target exists and has write access:
    BACKUP_DIR="${COGNITHOR_HOME:-$HOME/.cognithor}/backups"
    mkdir -p "$BACKUP_DIR" && test -w "$BACKUP_DIR"
    
  2. Create timestamped archive of config, skills, and data:
    STAMP=$(date +%Y%m%d_%H%M%S)
    tar czf "$BACKUP_DIR/cognithor_$STAMP.tar.gz" \
      -C "${COGNITHOR_HOME:-$HOME/.cognithor}" \
      config/ skills/ data/
    
  3. Validate integrity — verify the archive is readable:
    tar tzf "$BACKUP_DIR/cognithor_$STAMP.tar.gz" > /dev/null
    
  4. Prune old backups — keep the last 24 hourly snapshots:
    ls -1t "$BACKUP_DIR"/cognithor_*.tar.gz | tail -n +25 | xargs rm -f
    
  5. Return status — the skill returns {"status": "ok", "automated": true} on success

Example

User > Starte ein Backup meiner Cognithor-Daten
Cognithor > Backup erstellt: cognithor_20260420_140000.tar.gz (12 MB)
         Nächstes automatisches Backup: 15:00 Uhr

Error Handling

  • Disk full: Log warning, skip archive creation, alert user to free space
  • Permission denied: Verify $BACKUP_DIR ownership and retry with correct permissions
  • Corrupt archive: Re-run backup immediately; if persistent, check filesystem health
Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 10d ago First seen · 47 lines · 51 tokens per session scan A 02342e7a4d38

Subscribe to this mod's changes

backup is a skill published in the GitHub repository Alex8791-cyber/cognithor (154 stars, last pushed 3d ago), licensed Apache-2.0. It adds 51 tokens to every session and 484 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

forkmind-archivist

Use when conversation context should be saved and then removed from the live model window — context is getting full, a sub-topic is finished, a large file dump or tool transcript is done being useful, or the user says "offload my context", "save this conversation and clear it", "archive this as a DAG", "restore that…

Medhovarsh/forkmind · 136 tokens

forkmind

Use when debugging, comparing, or regression-testing LLM / agent calls — when the user wants to capture LLM traffic, see a conversation as a branchable DAG, fork an alternative prompt or model from a past turn, or pin good outputs as baselines to catch drift. ForkMind is local-first (no cloud, no account) and proxies…

Medhovarsh/forkmind · 132 tokens

dws

A command-line guide for DingTalk, a workplace platform with chat, documents, calendars, approvals, tasks, and other business tools.

Pinvou/pinvou-agent · 187 tokens

package-author

A packaging guide for turning scripts, skills, or an MCP service into a standard plugin package. MCP is a way for an AI assistant to connect to external tools.

Pinvou/pinvou-agent · 133 tokens

notes

Skill "notes" from Pinvou/pinvou-agent, covering ima notes, operations, write rules, examples and response handling.

Pinvou/pinvou-agent · 0 tokens

visual-design

A design skill for turning content into complete, self-contained HTML pages and visual materials such as websites, banners, posters, reports, resumes, and portfolios. It follows a defined visual design system and does not use outside images or code libraries.

Pinvou/pinvou-agent · 152 tokens