Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

Back to skills

Cchistory Cli

ASecurity

Operate the CCHistory CLI — discover sources, sync, query projects/turns/sessions, export/import/backup bundles, and verify restores. Use when the user wants to interact with CCHistory data through the local CLI. Covers all read, preview, and mutating workflows with safety-tiered command guidance.

207 stars
0 votes
0 copies
1 views
Added 9/4/2026
toolsbashnodeapi

Works with

cliapi

Security Analysis

A100/100

Scanned 9/4/2026

Install to Claude Code

$npx -y skills add NeverSight/skills_feed --skill cchistory-cli --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cchistory Cli?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Cchistory Cli
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/neversight-cchistory-cli/badge)](https://www.skillsdirectory.com/skills/neversight-cchistory-cli)

More formats (shields.io, HTML) on the badges page.

Download Zip
Files
SKILL.md
---
name: cchistory-cli
description: >
  Operate the CCHistory CLI — discover sources, sync, query projects/turns/sessions,
  export/import/backup bundles, and verify restores. Use when the user wants to
  interact with CCHistory data through the local CLI. Covers all read, preview,
  and mutating workflows with safety-tiered command guidance.
---

# CCHistory CLI

This skill covers the full CCHistory CLI surface. Commands are organized by
safety tier: read-only first, preview-first second, mutating last.

## Transport

Preferred command forms:

- Installed CLI: `cchistory ...`
- Repo checkout fallback: `node apps/cli/dist/index.js ...` (build first with
  `pnpm --filter @cchistory/cli build`)

Always add `--json` for machine-readable output. Read commands should default to
`--index` unless the user explicitly wants `--full` (re-scan from source roots).

Store targeting: `--store <dir>` or `--db <file>`.

## Tier 1 — Read-Only

These commands never mutate the store.

### Source & store inspection

```bash
cchistory discover --json                     # what sources exist on this host
cchistory discover --showall --json            # include missing candidates
cchistory ls sources --index --json            # indexed source inventory
cchistory ls projects --index --json           # project listing
cchistory ls sessions --index --json           # session listing
cchistory stats --index --json                 # store summary counts
cchistory stats usage --by model --index --json  # token usage breakdown (model|project|source|host|day|month)
```

### Project drill-down

```bash
cchistory query projects --index --json                          # project inventory
cchistory query project --id <project-id> --index --json         # one project + linked turns
cchistory query turns --project <id> --limit <n> --index --json  # filtered turn list
cchistory query turns --project <id> --search <q> --index --json # project-scoped search
```

Use `--link-state committed|candidate|unlinked|all` to filter linkage.

### Turn & session drill-down

```bash
cchistory query turn --id <turn-id> --index --json       # one turn + context + lineage
cchistory query session --id <session-ref> --index --json # one session + turns
```

Session refs accept: exact ID, unique ID prefix, exact title, or normalized
workspace path.

### Search

```bash
cchistory search <query> --index --json
cchistory search <query> --project <id> --source <id> --limit <n> --index --json
```

### Tree views (human-readable)

```bash
cchistory tree projects --index --json
cchistory tree project <id-or-slug> --index --json
cchistory tree session <session-ref> --index --json
```

### Post-import verification

```bash
cchistory restore-check --store <dir> --json
cchistory restore-check --db <file> --json
cchistory restore-check --store <dir> --showall --json   # include zero-token turns
```

## Tier 2 — Preview (dry-run)

These commands show what a mutation would do without writing anything.

```bash
cchistory sync --dry-run --json                                    # sync preview
cchistory sync --dry-run --source <slot-or-id> --json              # scoped sync preview
cchistory export --out <dir> --dry-run --json                      # export preview
cchistory export --out <dir> --source <id> --no-raw --dry-run --json
cchistory backup --out <dir> --json                                # backup preview (default is preview)
cchistory backup --out <dir> --source <id> --no-raw --json
cchistory import <bundle-dir> --dry-run --json                     # import preview
cchistory import <bundle-dir> --on-conflict skip --dry-run --json
cchistory gc --dry-run --json                                      # garbage collection preview
```

**Always run the Tier 2 preview before executing the corresponding Tier 3
command.** Show the preview result to the user and get confirmation.

## Tier 3 — Mutating

These commands write to the store or filesystem. Only run after the user has
seen and confirmed the Tier 2 preview.

```bash
cchistory sync --json                               # real sync
cchistory sync --source <slot-or-id> --json
cchistory export --out <dir> --json                  # write export bundle
cchistory backup --out <dir> --write --json           # write backup bundle
cchistory import <bundle-dir> --json                  # execute import
cchistory import <bundle-dir> --on-conflict skip --json
cchistory gc --json                                  # execute garbage collection
```

Carry forward the same scope flags (`--store`, `--db`, `--source`, `--no-raw`,
`--on-conflict`) used in the preview.

## Rules

- Do not start API or web services. This skill uses CLI only.
- Default to `--index` for reads; only use `--full` when user explicitly accepts
  a rescan.
- Always preview before mutating.
- Preserve canonical CLI JSON field names; do not invent skill-local schemas.
- Use domain terms exactly: project, turn, session, source, bundle, blob,
  context, lineage, store.
- Surface CLI errors directly; do not silently retry with a different command.

Attribution

NeverSightNeverSight
View sourceMore from NeverSight →
SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots · $299/mo · GSC-verified traffic · sponsors can never buy grades.

See placements

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots · $299/mo · GSC-verified traffic · sponsors can never buy grades.

See placements

Related Skills

ucoz-landing-skill

Playbook for creating and editing uCoz landing pages via MCP tools (`templates_tool`, `ftp_tool`, `modules_tool`). Use for tasks such as: "build a landing page", "update the homepage as a landing page", "create a promo page on the homepage", "add a lead form / menu / SEO to the homepage". Homepage: `page_list`, `page_get`; first publish — `page_update` with full `page_tmpl`; HTML edits after generation — `patch_template` (module_id=2, template_id=1), not `update_template`. Activate the mail f...

107 votes

Paperclip

Interact with the Paperclip control plane API for task coordination and governance. Use when checking assignments, updating issue status, posting comments, delegating work, managing routines, or calling Paperclip API endpoints.

805541 votes

Daw Music

Digital Audio Workstation usage, music composition, interactive music systems, and game audio implementation for immersive soundscapes.

761 votes

Instantly Rdsthomas Mission Control

Instantly.ai cold email outreach API - manage campaigns, leads, accounts, and analytics. Use for cold email automation, lead management, campaign creation/monitoring, and email account warmup.

761 votes

Caveman Compress

Compress natural language memory files (CLAUDE.md, todos, preferences) into caveman format to save input tokens. Preserves all technical substance, code, URLs, and structure. Compressed version overwrites the original file. Human-readable backup saved as FILE.original.md. Trigger: /caveman-compress FILEPATH or "compress memory file"

1023330 votes
View all in tools →